@charset "UTF-8";
.react-datepicker__year-read-view--down-arrow,
.react-datepicker__month-read-view--down-arrow,
.react-datepicker__month-year-read-view--down-arrow, .react-datepicker__navigation-icon::before {
  border-color: #ccc;
  border-style: solid;
  border-width: 3px 3px 0 0;
  content: "";
  display: block;
  height: 9px;
  position: absolute;
  top: 6px;
  width: 9px;
}
.react-datepicker-wrapper {
  display: inline-block;
  padding: 0;
  border: 0;
}

.react-datepicker {
  font-family: "Helvetica Neue", helvetica, arial, sans-serif;
  font-size: 0.8rem;
  background-color: #fff;
  color: #000;
  border: 1px solid #aeaeae;
  border-radius: 0.3rem;
  display: inline-block;
  position: relative;
  line-height: initial;
}

.react-datepicker--time-only .react-datepicker__time-container {
  border-left: 0;
}
.react-datepicker--time-only .react-datepicker__time,
.react-datepicker--time-only .react-datepicker__time-box {
  border-bottom-left-radius: 0.3rem;
  border-bottom-right-radius: 0.3rem;
}

.react-datepicker-popper {
  z-index: 1;
  line-height: 0;
}
.react-datepicker-popper .react-datepicker__triangle {
  stroke: #aeaeae;
}
.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle {
  fill: #f0f0f0;
  color: #f0f0f0;
}
.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle {
  fill: #fff;
  color: #fff;
}

.react-datepicker__header {
  text-align: center;
  background-color: #f0f0f0;
  border-bottom: 1px solid #aeaeae;
  border-top-left-radius: 0.3rem;
  padding: 8px 0;
  position: relative;
}
.react-datepicker__header--time {
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
}
.react-datepicker__header--time:not(.react-datepicker__header--time--only) {
  border-top-left-radius: 0;
}
.react-datepicker__header:not(.react-datepicker__header--has-time-select) {
  border-top-right-radius: 0.3rem;
}

.react-datepicker__year-dropdown-container--select,
.react-datepicker__month-dropdown-container--select,
.react-datepicker__month-year-dropdown-container--select,
.react-datepicker__year-dropdown-container--scroll,
.react-datepicker__month-dropdown-container--scroll,
.react-datepicker__month-year-dropdown-container--scroll {
  display: inline-block;
  margin: 0 15px;
}

.react-datepicker__current-month,
.react-datepicker-time__header,
.react-datepicker-year-header {
  margin-top: 0;
  color: #000;
  font-weight: bold;
  font-size: 0.944rem;
}

.react-datepicker-time__header {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.react-datepicker__navigation {
  align-items: center;
  background: none;
  display: flex;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  position: absolute;
  top: 2px;
  padding: 0;
  border: none;
  z-index: 1;
  height: 32px;
  width: 32px;
  text-indent: -999em;
  overflow: hidden;
}
.react-datepicker__navigation--previous {
  left: 2px;
}
.react-datepicker__navigation--next {
  right: 2px;
}
.react-datepicker__navigation--next--with-time:not(.react-datepicker__navigation--next--with-today-button) {
  right: 85px;
}
.react-datepicker__navigation--years {
  position: relative;
  top: 0;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.react-datepicker__navigation--years-previous {
  top: 4px;
}
.react-datepicker__navigation--years-upcoming {
  top: -4px;
}
.react-datepicker__navigation:hover *::before {
  border-color: #a6a6a6;
}

.react-datepicker__navigation-icon {
  position: relative;
  top: -1px;
  font-size: 20px;
  width: 0;
}
.react-datepicker__navigation-icon--next {
  left: -2px;
}
.react-datepicker__navigation-icon--next::before {
  transform: rotate(45deg);
  left: -7px;
}
.react-datepicker__navigation-icon--previous {
  right: -2px;
}
.react-datepicker__navigation-icon--previous::before {
  transform: rotate(225deg);
  right: -7px;
}

.react-datepicker__month-container {
  float: left;
}

.react-datepicker__year {
  margin: 0.4rem;
  text-align: center;
}
.react-datepicker__year-wrapper {
  display: flex;
  flex-wrap: wrap;
  max-width: 180px;
}
.react-datepicker__year .react-datepicker__year-text {
  display: inline-block;
  width: 4rem;
  margin: 2px;
}

.react-datepicker__month {
  margin: 0.4rem;
  text-align: center;
}
.react-datepicker__month .react-datepicker__month-text,
.react-datepicker__month .react-datepicker__quarter-text {
  display: inline-block;
  width: 4rem;
  margin: 2px;
}

.react-datepicker__input-time-container {
  clear: both;
  width: 100%;
  float: left;
  margin: 5px 0 10px 15px;
  text-align: left;
}
.react-datepicker__input-time-container .react-datepicker-time__caption {
  display: inline-block;
}
.react-datepicker__input-time-container .react-datepicker-time__input-container {
  display: inline-block;
}
.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input {
  display: inline-block;
  margin-left: 10px;
}
.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input {
  width: auto;
}
.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]::-webkit-inner-spin-button,
.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time] {
  -moz-appearance: textfield;
}
.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__delimiter {
  margin-left: 5px;
  display: inline-block;
}

.react-datepicker__time-container {
  float: right;
  border-left: 1px solid #aeaeae;
  width: 85px;
}
.react-datepicker__time-container--with-today-button {
  display: inline;
  border: 1px solid #aeaeae;
  border-radius: 0.3rem;
  position: absolute;
  right: -87px;
  top: 0;
}
.react-datepicker__time-container .react-datepicker__time {
  position: relative;
  background: white;
  border-bottom-right-radius: 0.3rem;
}
.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box {
  width: 85px;
  overflow-x: hidden;
  margin: 0 auto;
  text-align: center;
  border-bottom-right-radius: 0.3rem;
}
.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list {
  list-style: none;
  margin: 0;
  height: calc(195px + 1.7rem / 2);
  overflow-y: scroll;
  padding-right: 0;
  padding-left: 0;
  width: 100%;
  box-sizing: content-box;
}
.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item {
  height: 30px;
  padding: 5px 10px;
  white-space: nowrap;
}
.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item:hover {
  cursor: pointer;
  background-color: #f0f0f0;
}
.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected {
  background-color: #216ba5;
  color: white;
  font-weight: bold;
}
.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected:hover {
  background-color: #216ba5;
}
.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled {
  color: #ccc;
}
.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled:hover {
  cursor: default;
  background-color: transparent;
}

.react-datepicker__week-number {
  color: #ccc;
  display: inline-block;
  width: 1.7rem;
  line-height: 1.7rem;
  text-align: center;
  margin: 0.166rem;
}
.react-datepicker__week-number.react-datepicker__week-number--clickable {
  cursor: pointer;
}
.react-datepicker__week-number.react-datepicker__week-number--clickable:not(.react-datepicker__week-number--selected,
.react-datepicker__week-number--keyboard-selected):hover {
  border-radius: 0.3rem;
  background-color: #f0f0f0;
}
.react-datepicker__week-number--selected {
  border-radius: 0.3rem;
  background-color: #216ba5;
  color: #fff;
}
.react-datepicker__week-number--selected:hover {
  background-color: #1d5d90;
}
.react-datepicker__week-number--keyboard-selected {
  border-radius: 0.3rem;
  background-color: #2a87d0;
  color: #fff;
}
.react-datepicker__week-number--keyboard-selected:hover {
  background-color: #1d5d90;
}

.react-datepicker__day-names {
  white-space: nowrap;
  margin-bottom: -8px;
}

.react-datepicker__week {
  white-space: nowrap;
}

.react-datepicker__day-name,
.react-datepicker__day,
.react-datepicker__time-name {
  color: #000;
  display: inline-block;
  width: 1.7rem;
  line-height: 1.7rem;
  text-align: center;
  margin: 0.166rem;
}

.react-datepicker__day,
.react-datepicker__month-text,
.react-datepicker__quarter-text,
.react-datepicker__year-text {
  cursor: pointer;
}
.react-datepicker__day:hover,
.react-datepicker__month-text:hover,
.react-datepicker__quarter-text:hover,
.react-datepicker__year-text:hover {
  border-radius: 0.3rem;
  background-color: #f0f0f0;
}
.react-datepicker__day--today,
.react-datepicker__month-text--today,
.react-datepicker__quarter-text--today,
.react-datepicker__year-text--today {
  font-weight: bold;
}
.react-datepicker__day--highlighted,
.react-datepicker__month-text--highlighted,
.react-datepicker__quarter-text--highlighted,
.react-datepicker__year-text--highlighted {
  border-radius: 0.3rem;
  background-color: #3dcc4a;
  color: #fff;
}
.react-datepicker__day--highlighted:hover,
.react-datepicker__month-text--highlighted:hover,
.react-datepicker__quarter-text--highlighted:hover,
.react-datepicker__year-text--highlighted:hover {
  background-color: #32be3f;
}
.react-datepicker__day--highlighted-custom-1,
.react-datepicker__month-text--highlighted-custom-1,
.react-datepicker__quarter-text--highlighted-custom-1,
.react-datepicker__year-text--highlighted-custom-1 {
  color: magenta;
}
.react-datepicker__day--highlighted-custom-2,
.react-datepicker__month-text--highlighted-custom-2,
.react-datepicker__quarter-text--highlighted-custom-2,
.react-datepicker__year-text--highlighted-custom-2 {
  color: green;
}
.react-datepicker__day--holidays,
.react-datepicker__month-text--holidays,
.react-datepicker__quarter-text--holidays,
.react-datepicker__year-text--holidays {
  position: relative;
  border-radius: 0.3rem;
  background-color: #ff6803;
  color: #fff;
}
.react-datepicker__day--holidays .overlay,
.react-datepicker__month-text--holidays .overlay,
.react-datepicker__quarter-text--holidays .overlay,
.react-datepicker__year-text--holidays .overlay {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 4px;
  border-radius: 4px;
  white-space: nowrap;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.3s ease-in-out;
}
.react-datepicker__day--holidays:hover,
.react-datepicker__month-text--holidays:hover,
.react-datepicker__quarter-text--holidays:hover,
.react-datepicker__year-text--holidays:hover {
  background-color: #cf5300;
}
.react-datepicker__day--holidays:hover .overlay,
.react-datepicker__month-text--holidays:hover .overlay,
.react-datepicker__quarter-text--holidays:hover .overlay,
.react-datepicker__year-text--holidays:hover .overlay {
  visibility: visible;
  opacity: 1;
}
.react-datepicker__day--selected, .react-datepicker__day--in-selecting-range, .react-datepicker__day--in-range,
.react-datepicker__month-text--selected,
.react-datepicker__month-text--in-selecting-range,
.react-datepicker__month-text--in-range,
.react-datepicker__quarter-text--selected,
.react-datepicker__quarter-text--in-selecting-range,
.react-datepicker__quarter-text--in-range,
.react-datepicker__year-text--selected,
.react-datepicker__year-text--in-selecting-range,
.react-datepicker__year-text--in-range {
  border-radius: 0.3rem;
  background-color: #216ba5;
  color: #fff;
}
.react-datepicker__day--selected:hover, .react-datepicker__day--in-selecting-range:hover, .react-datepicker__day--in-range:hover,
.react-datepicker__month-text--selected:hover,
.react-datepicker__month-text--in-selecting-range:hover,
.react-datepicker__month-text--in-range:hover,
.react-datepicker__quarter-text--selected:hover,
.react-datepicker__quarter-text--in-selecting-range:hover,
.react-datepicker__quarter-text--in-range:hover,
.react-datepicker__year-text--selected:hover,
.react-datepicker__year-text--in-selecting-range:hover,
.react-datepicker__year-text--in-range:hover {
  background-color: #1d5d90;
}
.react-datepicker__day--keyboard-selected,
.react-datepicker__month-text--keyboard-selected,
.react-datepicker__quarter-text--keyboard-selected,
.react-datepicker__year-text--keyboard-selected {
  border-radius: 0.3rem;
  background-color: #bad9f1;
  color: rgb(0, 0, 0);
}
.react-datepicker__day--keyboard-selected:hover,
.react-datepicker__month-text--keyboard-selected:hover,
.react-datepicker__quarter-text--keyboard-selected:hover,
.react-datepicker__year-text--keyboard-selected:hover {
  background-color: #1d5d90;
}
.react-datepicker__day--in-selecting-range:not(.react-datepicker__day--in-range,
.react-datepicker__month-text--in-range,
.react-datepicker__quarter-text--in-range,
.react-datepicker__year-text--in-range),
.react-datepicker__month-text--in-selecting-range:not(.react-datepicker__day--in-range,
.react-datepicker__month-text--in-range,
.react-datepicker__quarter-text--in-range,
.react-datepicker__year-text--in-range),
.react-datepicker__quarter-text--in-selecting-range:not(.react-datepicker__day--in-range,
.react-datepicker__month-text--in-range,
.react-datepicker__quarter-text--in-range,
.react-datepicker__year-text--in-range),
.react-datepicker__year-text--in-selecting-range:not(.react-datepicker__day--in-range,
.react-datepicker__month-text--in-range,
.react-datepicker__quarter-text--in-range,
.react-datepicker__year-text--in-range) {
  background-color: rgba(33, 107, 165, 0.5);
}
.react-datepicker__month--selecting-range .react-datepicker__day--in-range:not(.react-datepicker__day--in-selecting-range,
.react-datepicker__month-text--in-selecting-range,
.react-datepicker__quarter-text--in-selecting-range,
.react-datepicker__year-text--in-selecting-range), .react-datepicker__year--selecting-range .react-datepicker__day--in-range:not(.react-datepicker__day--in-selecting-range,
.react-datepicker__month-text--in-selecting-range,
.react-datepicker__quarter-text--in-selecting-range,
.react-datepicker__year-text--in-selecting-range),
.react-datepicker__month--selecting-range .react-datepicker__month-text--in-range:not(.react-datepicker__day--in-selecting-range,
.react-datepicker__month-text--in-selecting-range,
.react-datepicker__quarter-text--in-selecting-range,
.react-datepicker__year-text--in-selecting-range),
.react-datepicker__year--selecting-range .react-datepicker__month-text--in-range:not(.react-datepicker__day--in-selecting-range,
.react-datepicker__month-text--in-selecting-range,
.react-datepicker__quarter-text--in-selecting-range,
.react-datepicker__year-text--in-selecting-range),
.react-datepicker__month--selecting-range .react-datepicker__quarter-text--in-range:not(.react-datepicker__day--in-selecting-range,
.react-datepicker__month-text--in-selecting-range,
.react-datepicker__quarter-text--in-selecting-range,
.react-datepicker__year-text--in-selecting-range),
.react-datepicker__year--selecting-range .react-datepicker__quarter-text--in-range:not(.react-datepicker__day--in-selecting-range,
.react-datepicker__month-text--in-selecting-range,
.react-datepicker__quarter-text--in-selecting-range,
.react-datepicker__year-text--in-selecting-range),
.react-datepicker__month--selecting-range .react-datepicker__year-text--in-range:not(.react-datepicker__day--in-selecting-range,
.react-datepicker__month-text--in-selecting-range,
.react-datepicker__quarter-text--in-selecting-range,
.react-datepicker__year-text--in-selecting-range),
.react-datepicker__year--selecting-range .react-datepicker__year-text--in-range:not(.react-datepicker__day--in-selecting-range,
.react-datepicker__month-text--in-selecting-range,
.react-datepicker__quarter-text--in-selecting-range,
.react-datepicker__year-text--in-selecting-range) {
  background-color: #f0f0f0;
  color: #000;
}
.react-datepicker__day--disabled,
.react-datepicker__month-text--disabled,
.react-datepicker__quarter-text--disabled,
.react-datepicker__year-text--disabled {
  cursor: default;
  color: #ccc;
}
.react-datepicker__day--disabled:hover,
.react-datepicker__month-text--disabled:hover,
.react-datepicker__quarter-text--disabled:hover,
.react-datepicker__year-text--disabled:hover {
  background-color: transparent;
}
.react-datepicker__day--disabled .overlay,
.react-datepicker__month-text--disabled .overlay,
.react-datepicker__quarter-text--disabled .overlay,
.react-datepicker__year-text--disabled .overlay {
  position: absolute;
  bottom: 70%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 4px;
  border-radius: 4px;
  white-space: nowrap;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.3s ease-in-out;
}

.react-datepicker__input-container {
  position: relative;
  display: inline-block;
  width: 100%;
}
.react-datepicker__input-container .react-datepicker__calendar-icon {
  position: absolute;
  padding: 0.5rem;
  box-sizing: content-box;
}

.react-datepicker__view-calendar-icon input {
  padding: 6px 10px 5px 25px;
}

.react-datepicker__year-read-view,
.react-datepicker__month-read-view,
.react-datepicker__month-year-read-view {
  border: 1px solid transparent;
  border-radius: 0.3rem;
  position: relative;
}
.react-datepicker__year-read-view:hover,
.react-datepicker__month-read-view:hover,
.react-datepicker__month-year-read-view:hover {
  cursor: pointer;
}
.react-datepicker__year-read-view:hover .react-datepicker__year-read-view--down-arrow,
.react-datepicker__year-read-view:hover .react-datepicker__month-read-view--down-arrow,
.react-datepicker__month-read-view:hover .react-datepicker__year-read-view--down-arrow,
.react-datepicker__month-read-view:hover .react-datepicker__month-read-view--down-arrow,
.react-datepicker__month-year-read-view:hover .react-datepicker__year-read-view--down-arrow,
.react-datepicker__month-year-read-view:hover .react-datepicker__month-read-view--down-arrow {
  border-top-color: #b3b3b3;
}
.react-datepicker__year-read-view--down-arrow,
.react-datepicker__month-read-view--down-arrow,
.react-datepicker__month-year-read-view--down-arrow {
  transform: rotate(135deg);
  right: -16px;
  top: 0;
}

.react-datepicker__year-dropdown,
.react-datepicker__month-dropdown,
.react-datepicker__month-year-dropdown {
  background-color: #f0f0f0;
  position: absolute;
  width: 50%;
  left: 25%;
  top: 30px;
  z-index: 1;
  text-align: center;
  border-radius: 0.3rem;
  border: 1px solid #aeaeae;
}
.react-datepicker__year-dropdown:hover,
.react-datepicker__month-dropdown:hover,
.react-datepicker__month-year-dropdown:hover {
  cursor: pointer;
}
.react-datepicker__year-dropdown--scrollable,
.react-datepicker__month-dropdown--scrollable,
.react-datepicker__month-year-dropdown--scrollable {
  height: 150px;
  overflow-y: scroll;
}

.react-datepicker__year-option,
.react-datepicker__month-option,
.react-datepicker__month-year-option {
  line-height: 20px;
  width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.react-datepicker__year-option:first-of-type,
.react-datepicker__month-option:first-of-type,
.react-datepicker__month-year-option:first-of-type {
  border-top-left-radius: 0.3rem;
  border-top-right-radius: 0.3rem;
}
.react-datepicker__year-option:last-of-type,
.react-datepicker__month-option:last-of-type,
.react-datepicker__month-year-option:last-of-type {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  border-bottom-left-radius: 0.3rem;
  border-bottom-right-radius: 0.3rem;
}
.react-datepicker__year-option:hover,
.react-datepicker__month-option:hover,
.react-datepicker__month-year-option:hover {
  background-color: #ccc;
}
.react-datepicker__year-option:hover .react-datepicker__navigation--years-upcoming,
.react-datepicker__month-option:hover .react-datepicker__navigation--years-upcoming,
.react-datepicker__month-year-option:hover .react-datepicker__navigation--years-upcoming {
  border-bottom-color: #b3b3b3;
}
.react-datepicker__year-option:hover .react-datepicker__navigation--years-previous,
.react-datepicker__month-option:hover .react-datepicker__navigation--years-previous,
.react-datepicker__month-year-option:hover .react-datepicker__navigation--years-previous {
  border-top-color: #b3b3b3;
}
.react-datepicker__year-option--selected,
.react-datepicker__month-option--selected,
.react-datepicker__month-year-option--selected {
  position: absolute;
  left: 15px;
}

.react-datepicker__close-icon {
  cursor: pointer;
  background-color: transparent;
  border: 0;
  outline: 0;
  padding: 0 6px 0 0;
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  display: table-cell;
  vertical-align: middle;
}
.react-datepicker__close-icon::after {
  cursor: pointer;
  background-color: #216ba5;
  color: #fff;
  border-radius: 50%;
  height: 16px;
  width: 16px;
  padding: 2px;
  font-size: 12px;
  line-height: 1;
  text-align: center;
  display: table-cell;
  vertical-align: middle;
  content: "×";
}
.react-datepicker__close-icon--disabled {
  cursor: default;
}
.react-datepicker__close-icon--disabled::after {
  cursor: default;
  background-color: #ccc;
}

.react-datepicker__today-button {
  background: #f0f0f0;
  border-top: 1px solid #aeaeae;
  cursor: pointer;
  text-align: center;
  font-weight: bold;
  padding: 5px 0;
  clear: left;
}

.react-datepicker__portal {
  position: fixed;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  left: 0;
  top: 0;
  justify-content: center;
  align-items: center;
  display: flex;
  z-index: 2147483647;
}
.react-datepicker__portal .react-datepicker__day-name,
.react-datepicker__portal .react-datepicker__day,
.react-datepicker__portal .react-datepicker__time-name {
  width: 3rem;
  line-height: 3rem;
}
@media (max-width: 400px), (max-height: 550px) {
  .react-datepicker__portal .react-datepicker__day-name,
  .react-datepicker__portal .react-datepicker__day,
  .react-datepicker__portal .react-datepicker__time-name {
    width: 2rem;
    line-height: 2rem;
  }
}
.react-datepicker__portal .react-datepicker__current-month,
.react-datepicker__portal .react-datepicker-time__header {
  font-size: 1.44rem;
}

.react-datepicker__children-container {
  width: 13.8rem;
  margin: 0.4rem;
  padding-right: 0.2rem;
  padding-left: 0.2rem;
  height: auto;
}

.react-datepicker__aria-live {
  position: absolute;
  clip-path: circle(0);
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  width: 1px;
  white-space: nowrap;
}

.react-datepicker__calendar-icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
}
/* Admin Panel Specific Styles - Unique class names to avoid conflicts */
:root {
    --admin-primary: #6366f1;
    --admin-primary-dark: #4f46e5;
    --admin-primary-light: rgba(99, 102, 241, 0.1);
    --admin-secondary: #0ea5e9;
    --admin-success: #10b981;
    --admin-warning: #f59e0b;
    --admin-danger: #ef4444;
    --admin-background: #f8fafc;
    --admin-surface: #ffffff;
    --admin-text-primary: #1e293b;
    --admin-text-secondary: #64748b;
    --admin-border: #e2e8f0;
    --admin-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --admin-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --admin-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.admin-panel-dashboard {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding-top: var(--header-height);
}

/* Admin Panel Layout */
.admin-panel-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
}

/* Admin Panel Header */
.admin-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-radius: 1rem;
}

.admin-title-section h1 {
    font-size: 1.875rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--admin-primary) 0%, var(--admin-primary-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.subtitle {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Search Bar */
.search-container {
    position: relative;
    min-width: 300px;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 2px solid var(--border);
    border-radius: 1rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background-color: var(--surface);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Admin Button Styles */
.admin-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.admin-btn.refresh {
    background-color: white;
    color: var(--admin-text-secondary);
    border: 1px solid var(--admin-border);
    margin-left: 20px;
}

.admin-btn.refresh:hover {
    background-color: var(--admin-background);
    color: var(--admin-primary);
    transform: translateY(-1px);
}

/* Admin Analytics Section */
.admin-analytics-section {
    background: var(--admin-surface);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--admin-shadow-sm);
    border: 1px solid var(--admin-border);
    margin-bottom: 2rem;
}

.admin-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    position: relative;
}

.admin-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--admin-text-primary);
    margin: 0;
}

.admin-section-icon {
    color: var(--admin-primary);
}

.admin-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--admin-border) 0%, transparent 100%);
    margin-left: 1rem;
}

/* Loading State */
.admin-loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    gap: 1rem;
}

.admin-loading-text {
    color: var(--admin-text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

/* Error State */
.admin-no-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
    color: var(--admin-text-secondary);
}

.admin-no-data-icon {
    margin-bottom: 1rem;
    opacity: 0.5;
}

.admin-no-data h3 {
    color: var(--admin-text-primary);
    margin: 0 0 0.5rem 0;
}

.admin-no-data p {
    margin: 0;
    font-size: 0.875rem;
}

/* Admin Stat Cards */
.admin-stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.admin-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.admin-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.admin-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.admin-stat-icon.primary {
    background: linear-gradient(135deg, var(--admin-primary) 0%, var(--admin-primary-dark) 100%);
    color: white;
}

.admin-stat-icon.success {
    background: linear-gradient(135deg, var(--admin-success) 0%, #059669 100%);
    color: white;
}

.admin-stat-icon.warning {
    background: linear-gradient(135deg, var(--admin-warning) 0%, #d97706 100%);
    color: white;
}

.admin-stat-icon.info {
    background: linear-gradient(135deg, var(--admin-secondary) 0%, #0284c7 100%);
    color: white;
}

.admin-stat-icon.accent {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

.admin-stat-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 4px;
}

.admin-stat-indicator.positive {
    background: var(--admin-success);
}

.admin-stat-indicator.neutral {
    background: var(--admin-warning);
}

.admin-stat-content {
    text-align: left;
}

.admin-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--admin-text-primary);
    margin: 0 0 0.25rem 0;
    line-height: 1.1;
}

.admin-stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--admin-text-primary);
    margin: 0 0 0.25rem 0;
}

.admin-stat-sublabel {
    font-size: 0.75rem;
    color: var(--admin-text-secondary);
    margin: 0;
}

/* Admin Web Grid - 5 cards layout */
.admin-web-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Admin Web Cards */
.admin-web-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    overflow: hidden;
    min-height: 140px;
    cursor: pointer;
    /* Add cursor pointer */
}

.admin-web-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    /* Add subtle background change on hover */
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
}

/* Add a subtle pulse effect for the view details */
.admin-web-card:hover .admin-view-details {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

/* Make the external link icon more visible on hover */
.admin-web-card:hover .admin-external-link {
    opacity: 1;
    color: var(--admin-primary);
}

.admin-web-card.featured {
    background: linear-gradient(135deg, var(--admin-primary) 0%, var(--admin-primary-dark) 100%);
    color: white;
}

.admin-web-card.featured .admin-card-count,
.admin-web-card.featured .admin-card-label,
.admin-web-card.featured .admin-card-sublabel {
    color: white;
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.admin-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.admin-card-icon.primary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.admin-card-icon.admin {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
}

.admin-card-icon.superuser {
    background: linear-gradient(135deg, var(--admin-primary) 0%, var(--admin-primary-dark) 100%);
    color: white;
}

.admin-card-icon.manager {
    background: linear-gradient(135deg, var(--admin-warning) 0%, #d97706 100%);
    color: white;
}

.admin-card-icon.standard {
    background: linear-gradient(135deg, var(--admin-success) 0%, #059669 100%);
    color: white;
}

.admin-external-link {
    color: var(--admin-text-secondary);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.admin-web-card:hover .admin-external-link {
    opacity: 1;
}

.admin-card-content {
    flex: 1;
}

.admin-card-count {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 0.25rem 0;
    color: var(--admin-text-primary);
    line-height: 1.1;
}

.admin-card-count.featured {
    font-size: 2rem;
}

.admin-card-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--admin-text-primary);
    margin: 0 0 0.25rem 0;
}

.admin-card-sublabel {
    font-size: 0.75rem;
    color: var(--admin-text-secondary);
    margin: 0;
}

.admin-card-footer {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(226, 232, 240, 0.3);
}

.admin-view-details {
    font-size: 0.75rem;
    color: var(--admin-primary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.admin-web-card.featured .admin-view-details {
    color: rgba(255, 255, 255, 0.9);
}

/* AWS File Analytics - Exact Theme Match */
.admin-aws-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* Changed from 4 to 5 */
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.admin-aws-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.25rem;
    /* Slightly reduced padding to fit 5 cards */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 160px;
    /* Set minimum height for consistency */
}

.admin-aws-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Top colored border for each card */
.admin-aws-card.blue::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.admin-aws-card.green::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #34d399);
}

.admin-aws-card.orange::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.admin-aws-card.cyan::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #06b6d4, #22d3ee);
}

.admin-aws-card.purple::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}

.admin-aws-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    /* Reduced margin */
}

.admin-aws-icon-container {
    width: 44px;
    /* Slightly smaller for 5 cards */
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.admin-aws-icon-container.blue {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.admin-aws-icon-container.green {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
}

.admin-aws-icon-container.orange {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.admin-aws-icon-container.cyan {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.admin-aws-icon-container.purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.admin-aws-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 4px;
}

.admin-aws-indicator.green {
    background: #10b981;
}

.admin-aws-indicator.orange {
    background: #f59e0b;
}

.admin-aws-content {
    text-align: left;
}

.admin-aws-number {
    font-size: 2rem;
    /* Slightly smaller for 5 cards */
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
    line-height: 1;
}

.admin-aws-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 0.25rem 0;
}

.admin-aws-subtitle {
    font-size: 0.75rem;
    color: #9ca3af;
    margin: 0;
}

/* Responsive Design for Admin Panel */
@media (max-width: 1600px) {
    .admin-aws-grid {
        grid-template-columns: repeat(5, 1fr);
        /* Keep 5 on large screens */
    }
}

@media (max-width: 1400px) {

    .admin-web-grid,
    .admin-aws-grid {
        grid-template-columns: repeat(5, 1fr);
        /* 4 on medium-large screens */
    }
}

@media (max-width: 1200px) {

    .admin-web-grid,
    .admin-aws-grid {
        grid-template-columns: repeat(3, 1fr);
        /* 3 on medium screens */
    }
}

@media (max-width: 900px) {

    .admin-web-grid,
    .admin-aws-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 on small screens */
    }
}

@media (max-width: 600px) {
    .admin-panel-container {
        padding: 1rem;
    }

    .admin-web-grid,
    .admin-aws-grid {
        grid-template-columns: 1fr;
        /* 1 on mobile */
    }

    .admin-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .admin-btn.refresh {
        margin-left: 0;
    }
}


/* ...existing styles... */

/* Creative Web Analytics Design */
.admin-web-analytics-container {
    padding: 1rem 0;
}

.admin-web-creative-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.admin-web-creative-card {
    position: relative;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    min-height: 280px;
}

.admin-web-creative-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.admin-web-card-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.admin-web-card-pattern {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    right: -50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.1;
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.admin-web-creative-card:hover .admin-web-card-pattern {
    transform: rotate(45deg) scale(1.1);
    opacity: 0.15;
}

.admin-web-card-pattern.personal {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    /* Changed from pink to cyan/teal */
}

.admin-web-card-content {
    position: relative;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.admin-web-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.admin-web-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.admin-web-creative-card:hover .admin-web-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.admin-web-icon-wrapper.personal {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    /* Changed from pink to cyan/teal */
    box-shadow: 0 8px 16px rgba(6, 182, 212, 0.3);
}

.admin-web-card-badge {
    padding: 6px 16px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.admin-web-card-badge.personal {
    background: rgba(6, 182, 212, 0.1);
    color: #0891b2;
}

.admin-web-stats-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.admin-web-main-stat {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.admin-web-stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.my-files .admin-web-stat-number {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    /* Changed from pink to cyan/teal */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.admin-web-stat-label {
    font-size: 1rem;
    color: #595959;
    font-weight: 500;
}

.admin-web-progress-section {
    margin-bottom: 1.5rem;
}

.admin-web-progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.admin-web-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #06b6d4 0%, #0891b2 100%);
    /* Changed from pink to cyan/teal */
    border-radius: 4px;
    transition: width 0.6s ease;
}

.admin-web-percentage {
    font-size: 0.875rem;
    color: #8c8c8c;
    font-weight: 500;
}

.admin-web-stat-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.admin-web-trend-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #52c41a;
    font-size: 0.875rem;
    font-weight: 500;
}

.admin-web-view-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 16px;
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-web-view-btn:hover {
    background: #667eea;
    color: white;
    transform: translateX(4px);
}

.admin-web-view-btn.personal {
    border-color: #06b6d4;
    color: #0891b2;
}

.admin-web-view-btn.personal:hover {
    background: #06b6d4;
    color: white;
}

/* Responsive Design */
@media (max-width: 900px) {
    .admin-web-creative-grid {
        grid-template-columns: 1fr;
    }

    .admin-web-creative-card {
        min-height: 240px;
    }

    .admin-web-stat-number {
        font-size: 2.5rem;
    }
}

/* Loading Animation */
@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

.admin-web-creative-card.loading {
    animation: pulse 2s infinite;
    cursor: not-allowed;
}

/* Remove fixed viewport-height + hidden overflow so page can grow and scroll normally */
.dashboard,
.dashboard-container {
    min-height: 100vh;
    height: auto;
    overflow: visible;
    margin: 0;
    padding: 0;
}

.dashboard {
    overflow: visible;
    max-height: none;
}/* Show grid lines and align header text for the skipped files table */
.skipped-files-table .ant-table-ontainer table {
    border-collapse: collapse;
    width: 100%;
}

/* Add borders to header cells and body cells and default to LEFT alignment */
.skipped-files-table .ant-table-thead>tr>th,
.skipped-files-table .ant-table-tbody>tr>td {
    border: 1px solid #e6e6e6;
    padding: 8px;
    text-align: left;
    /* left-align headers and cell text */
}

/* Keep first column (file name) left-aligned for readability (redundant but explicit) */
.skipped-files-table .ant-table-thead>tr>th:first-child,
.skipped-files-table .ant-table-tbody>tr>td:first-child {
    text-align: left;
}

/* Header style: stronger weight and subtle background */
.skipped-files-table .ant-table-thead>tr>th {
    background: #fafafa;
    font-weight: 600;
    color: #111827;
}

/* Make body rows readable and keep alternating row feel */
.skipped-files-table .ant-table-tbody>tr:nth-child(even)>td {
    background: #ffffff;
}

/* Ensure table scroll container keeps headers visible */
.skipped-files-table .ant-table-container .ant-table-content {
    overflow: auto;
}

/* Small responsive tweaks */
@media (max-width: 800px) {

    .skipped-files-table .ant-table-thead>tr>th,
    .skipped-files-table .ant-table-tbody>tr>td {
        padding: 6px;
    }
}

/* New: filters layout (re-uses .header-filter/.header-title from OrganizationList.css) */
.skipped-filters {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-top: 20px;
    margin-bottom: 20px;
}

.skipped-filters .filter-group {
    display: flex;
    flex-direction: column;
}

.skipped-filters .header-title {
    font-size: 0.95em;
    color: #1565c0;
    margin-bottom: 6px;
    text-align: left;
}

.skipped-filters .header-filter {
    width: 100%;
    box-sizing: border-box;
}

/* Override uppercase and align label/input side by side */
.skipped-filters .filter-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    margin-right: 18px;
}

.skipped-filters .header-title {
    font-size: 0.95em;
    color: #1565c0;
    font-weight: 600;
    margin-bottom: 0;
    text-align: left;
    text-transform: none !important;
    white-space: nowrap;
}

/* Make the AntD table look like OrganizationManagement table */
.skipped-table-wrap .ant-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 0.85em;
}

/* header styling (matching OrganizationList.css) */
.skipped-table-wrap .ant-table-thead>tr>th {
    vertical-align: middle;
    text-align: center;
    /* headers centered */
    height: 36px;
    padding: 6px 4px 2px 4px;
    font-size: 0.95em;
    background: #e3f2fd;
    color: #1565c0;
    font-weight: 700;
    border-bottom: 2px solid #bbdefb;
    border-right: 1px solid #bbdefb;
    white-space: nowrap;
}

/* Ensure header inner cell content is centered (AntD uses .ant-table-cell inside th) */
.skipped-table-wrap .ant-table-thead>tr>th .ant-table-cell {
    display: flex;
    justify-content: center !important;
    align-items: center !important;
    padding: 6px 8px;
    /* keep same vertical spacing */
}

/* Force header content centered */
.skipped-table-wrap .ant-table-thead>tr>th,
.skipped-table-wrap .ant-table-thead>tr>th .ant-table-cell,
.skipped-table-wrap .ant-table-thead th .ant-table-column-title,
.skipped-table-wrap .ant-table-thead th .ant-ellipsis {
    text-align: center !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Keep first column header left-aligned */
.skipped-table-wrap .ant-table-thead>tr>th:first-child,
.skipped-table-wrap .ant-table-thead>tr>th:first-child .ant-table-cell,
.skipped-table-wrap .ant-table-thead>tr>th:first-child .ant-table-column-title {
    text-align: center !important;
    justify-content: center !important;
    padding-left: 0 !important;
}

/* keep first column left-aligned for readability (BODY only) */
.skipped-table-wrap .ant-table-tbody>tr>td:first-child {
    text-align: left;
}


/* body cell styling */
.skipped-table-wrap .ant-table-tbody>tr>td {
    background: #f9fbfd;
    color: #333;
    padding: 6px 8px;
    font-size: 0.85em;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
    /* data left-aligned */
    border-right: 1px solid #e0e0e0;
    vertical-align: middle;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Ensure body cell content stays left aligned */
.skipped-table-wrap .ant-table-tbody>tr>td .ant-table-cell {
    display: block;
    text-align: left;
    padding: 6px 8px;
}

/* Override AntD right-align for specific columns (3 = Audio Duration, 4 = File Size)
   Make body cells left-aligned while keeping header centered */
.skipped-table-wrap .ant-table-tbody>tr>td:nth-child(3),
.skipped-table-wrap .ant-table-tbody>tr>td:nth-child(4),
.skipped-table-wrap .ant-table-tbody>tr>td.ant-table-column-align-right,
.skipped-table-wrap .ant-table-tbody>tr>td.ant-table-cell-align-right {
    text-align: left !important;
}

/* Ensure inner .ant-table-cell for those columns is also left */
.skipped-table-wrap .ant-table-tbody>tr>td:nth-child(3) .ant-table-cell,
.skipped-table-wrap .ant-table-tbody>tr>td:nth-child(4) .ant-table-cell,
.skipped-table-wrap .ant-table-tbody>tr>td.ant-table-column-align-right .ant-table-cell,
.skipped-table-wrap .ant-table-tbody>tr>td.ant-table-cell-align-right .ant-table-cell {
    display: block;
    text-align: left !important;
}

/* Keep the corresponding headers centered */
.skipped-table-wrap .ant-table-thead>tr>th:nth-child(3) .ant-table-cell,
.skipped-table-wrap .ant-table-thead>tr>th:nth-child(4) .ant-table-cell {
    justify-content: center !important;
    text-align: center !important;
}

/* Pagination container already matches Org styles — keep using .orgm-* classes */
/* Responsive tweaks */
@media (max-width: 768px) {
    .skipped-filters {
        gap: 8px;
    }

    .skipped-filters .header-title {
        font-size: 0.85em;
    }

    .skipped-table-wrap .ant-table-thead>tr>th,
    .skipped-table-wrap .ant-table-tbody>tr>td {
        padding: 6px;
        font-size: 0.78em;
    }
}

/* Make the modal background mask fully transparent and remove blur */
.ant-modal-root .ant-modal {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}.migration-dashboard {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding-top: var(--header-height);
}
 
.migration-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}
 
.migration-header {
  margin-bottom: 2rem;
}
 
.title-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}
 
.title-section h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}
 
.title-section p {
  color: #64748b;
  margin: 0.5rem 0 0 0;
}
 
.migration-content {
  display: grid;
  gap: 2rem;
}
 
.upload-section {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}
 
.upload-area {
  position: relative;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f8fafc;
}
 
.upload-area:hover,
.upload-area.drag-active {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.05);
}
 
.upload-area svg {
  color: #6366f1;
  margin-bottom: 1rem;
}
 
.upload-area h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 0.5rem 0;
}
 
.upload-area p {
  color: #64748b;
  margin: 0;
}
 
.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
 
.file-list {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}
 
.file-list h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1rem;
}
 
.file-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}
 
.file-item svg {
  color: #6366f1;
}
 
.file-name {
  flex: 1;
  font-weight: 500;
  color: #1e293b;
}
 
.file-size {
  color: #64748b;
  font-size: 0.875rem;
}
 
.remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #ef4444;
  padding: 0.25rem;
  border-radius: 4px;
  transition: background 0.2s;
}
 
.remove-btn:hover {
  background: rgba(239, 68, 68, 0.1);
}
 
.migration-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  width: 100%;
  padding: 1rem 2rem;
  background: #6366f1;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 2rem;
}
 
.migration-btn:hover:not(:disabled) {
  background: #4f46e5;
  transform: translateY(-1px);
}
 
.migration-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
 
.results-section {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}
 
.results-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1.5rem;
}
 
.status-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
}
 
.status-badge.success {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}
 
.status-badge.error {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}
 
.status-badge.warning {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}
 
@media (max-width: 768px) {
  .migration-container {
    padding: 1rem;
  }
 
  .upload-area {
    padding: 2rem 1rem;
  }
 
  .file-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
.file-input {
  display: none;
}
 /* ===== EmailScribe Dashboard — unique prefix: esdb- ===== */

/* Layout */
.esdb-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #fff;
}

.esdb-main {
    flex: 1;
    padding: calc(var(--header-height, 64px) + 32px) 48px 48px;
    max-width: 1400px;
    margin: -60px auto;
    width: 100%;
    box-sizing: border-box;
}

/* Page Title */
.esdb-title-section {
    margin-bottom: 32px;
}

.esdb-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #101828;
    margin: 0 0 4px;
    line-height: 2rem;
}

.esdb-subtitle {
    font-size: 0.875rem;
    color: #4A5565;
    margin: 0;
    line-height: 1.25rem;
}

/* Summary Cards */
.esdb-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.esdb-card {
    border-radius: 12px;
    padding: 24px;
}

.esdb-card__label {
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    line-height: 1rem;
}

.esdb-card__value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 2.375rem;
}

.esdb-card--total {
    background: #E0F2FE;
}

.esdb-card--total .esdb-card__label {
    color: #0369A1;
}

.esdb-card--total .esdb-card__value {
    color: #075985;
}

.esdb-card--serious {
    background: #FECACA;
}

.esdb-card--serious .esdb-card__label {
    color: #B91C1C;
}

.esdb-card--serious .esdb-card__value {
    color: #991B1B;
}

.esdb-card--non-serious {
    background: #D1FAE5;
}

.esdb-card--non-serious .esdb-card__label {
    color: #047857;
}

.esdb-card--non-serious .esdb-card__value {
    color: #065F46;
}

/* Email History */
.esdb-history {
    border-bottom: 1px solid #F3F4F6;
}

.esdb-history__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 24px 0;
    gap: 16px;
    border-bottom: 1px solid #F3F4F6;
    flex-wrap: wrap;
}

.esdb-history__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #101828;
    margin: 0 0 4px;
    line-height: 1.75rem;
}

.esdb-history__subtitle {
    font-size: 0.875rem;
    color: #4A5565;
    margin: 0;
    line-height: 1.25rem;
}

.esdb-history__controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Search */
.esdb-search {
    position: relative;
    display: flex;
    align-items: center;
}

.esdb-search__icon {
    position: absolute;
    left: 12px;
    width: 16px;
    height: 16px;
    color: #6B7280;
    pointer-events: none;
}

.esdb-search__input {
    padding: 10px 16px 10px 36px;
    border: 1px solid #D1D5DB;
    border-radius: 10px;
    font-size: 0.875rem;
    color: #101828;
    background: #fff;
    width: 280px;
    outline: none;
    transition: border-color 0.15s;
}

.esdb-search__input::placeholder {
    color: #9CA3AF;
}

.esdb-search__input:focus {
    border-color: #0288D1;
}

/* Date filter */
.esdb-filter {
    padding: 10px 16px;
    border: 1px solid #D1D5DB;
    border-radius: 10px;
    font-size: 0.875rem;
    color: #101828;
    background: #fff;
    outline: none;
    cursor: pointer;
    transition: border-color 0.15s;
}

.esdb-filter:focus {
    border-color: #0288D1;
}

/* Fetch button */
.esdb-fetch-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #0288D1;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: background 0.15s;
}

.esdb-fetch-btn svg,
.esdb-fetch-icon {
    width: 16px;
    height: 16px;
}

.esdb-fetch-btn:hover {
    background: #0277bd;
}

.esdb-fetch-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: esdb-spin 0.8s linear infinite;
}

/* Table */
.esdb-table-wrap {
    overflow-x: auto;
}

.esdb-table {
    width: 100%;
    border-collapse: collapse;
}

.esdb-table thead tr {
    background: #0288D1;
}

.esdb-table thead th {
    padding: 14px 24px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
    white-space: nowrap;
    cursor: grab;
    user-select: none;
    transition: background 0.15s;
}

.esdb-table thead th:active {
    cursor: grabbing;
}

.esdb-table__th--drop-target {
    background: #0277BD !important;
    outline: 2px dashed rgba(255, 255, 255, 0.6);
    outline-offset: -3px;
}

.esdb-th-inner {
    display: flex;
    align-items: center;
    gap: 8px;
}

.esdb-drag-handle {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.7;
    pointer-events: none;
}

.esdb-table tbody td {
    padding: 0 24px;
    height: 60px;
    font-size: 0.8125rem;
    color: #101828;
    border-bottom: 1px solid #F3F4F6;
    vertical-align: middle;
}

.esdb-table__row--alt {
    background: #E0F2FE;
}

.esdb-table__cell--total {
    color: #0288D1;
    font-weight: 700;
    font-size: 0.9375rem;
}

.esdb-table__cell--serious {
    color: #DC2626;
    font-weight: 700;
    font-size: 0.9375rem;
}

.esdb-table__cell--non-serious {
    color: #047857;
    font-weight: 700;
    font-size: 0.9375rem;
}

/* Folder Link */
.esdb-folder-link {
    color: #0288D1;
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
    text-decoration: none;
    transition: text-decoration 0.1s;
}

.esdb-folder-link:hover {
    text-decoration: underline;
}

/* Date time sub-text */
.esdb-date-time {
    font-size: 0.7rem;
    color: #6B7280;
    margin-top: 2px;
    line-height: 1rem;
}

/* Pagination */
.esdb-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    flex-wrap: wrap;
    gap: 12px;
}

.esdb-pagination__info {
    font-size: 0.8125rem;
    color: #6A7282;
}

.esdb-pagination__nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.esdb-pagination__btn {
    padding: 8px 16px;
    border: none;
    border-radius: 10px;
    font-size: 0.8125rem;
    color: #6A7282;
    background: transparent;
    cursor: pointer;
    transition: color 0.15s;
}

.esdb-pagination__btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.esdb-pagination__btn--active {
    background: #0288D1;
    color: #fff;
    font-weight: 700;
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Loading Overlay */
.esdb-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.esdb-spinner {
    width: 64px;
    height: 64px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: esdb-spin 1s linear infinite;
    margin-bottom: 24px;
}

@keyframes esdb-spin {
    to {
        transform: rotate(360deg);
    }
}

.esdb-loading-title {
    margin: 0 0 8px;
    font-size: 1.125rem;
    font-weight: 500;
    color: #fff;
    text-align: center;
}

.esdb-loading-text {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.875rem;
    text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
    .esdb-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .esdb-main {
        padding: calc(var(--header-height, 64px) + 24px) 16px 24px;
    }

    .esdb-history__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .esdb-search__input {
        width: 200px;
    }
}

@media (min-width: 480px) and (max-width: 900px) {
    .esdb-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* ===== EmailScribe Metadata — unique prefix: esmd- ===== */

/* Layout */
.esmd-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #fff;
}

.esmd-main {
    flex: 1;
    padding: calc(var(--header-height, 64px) + 32px) 48px 48px;
    max-width: 1400px;
    margin: -60px auto;
    width: 100%;
    box-sizing: border-box;
}

/* Back Button */
.esmd-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #0288D1;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    margin-bottom: 24px;
    transition: opacity 0.15s;
}
.esmd-back-btn:hover { opacity: 0.75; }
.esmd-back-btn svg { width: 20px; height: 20px; }

/* Title */
.esmd-title-section { margin-bottom: 32px; }

.esmd-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #101828;
    margin: 0 0 4px;
    line-height: 2rem;
}

.esmd-subtitle {
    font-size: 0.875rem;
    color: #4A5565;
    margin: 0;
    line-height: 1.25rem;
}

/* History / Table container */
.esmd-history { border-bottom: 1px solid #F3F4F6; }
.esmd-table-wrap { overflow-x: auto; }

.esmd-table { width: 100%; border-collapse: collapse; }
.esmd-table thead tr { background: #0288D1; }
.esmd-table thead th {
    padding: 14px 24px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
    white-space: nowrap;
    cursor: grab;
    user-select: none;
    transition: background 0.15s;
}
.esmd-table thead th:active { cursor: grabbing; }

.esmd-table__th--drop-target {
    background: #0277BD !important;
    outline: 2px dashed rgba(255,255,255,0.6);
    outline-offset: -3px;
}

.esmd-th-inner { display: flex; align-items: center; gap: 8px; }

.esmd-drag-handle {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.7;
    pointer-events: none;
}

.esmd-table tbody td {
    padding: 0 24px;
    height: 60px;
    font-size: 0.8125rem;
    color: #101828;
    border-bottom: 1px solid #F3F4F6;
    vertical-align: middle;
}

/* Status / Category Badges */
.esmd-badge {
    display: inline-block;
    padding: 4px 13px;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
}

.esmd-badge--serious    { background: #FECACA; color: #991B1B; outline: 1px solid #FCA5A5; }
.esmd-badge--non-serious { background: #D1FAE5; color: #065F46; outline: 1px solid #86EFAC; }
.esmd-badge--category-ae      { background: #FEF3C7; color: #92400E; outline: 1px solid #FCD34D; }
.esmd-badge--category-pqc     { background: #E0E7FF; color: #3730A3; outline: 1px solid #A5B4FC; }
.esmd-badge--category-mi      { background: #DBEAFE; color: #1E40AF; outline: 1px solid #93C5FD; }
.esmd-badge--category-others  { background: #F3F4F6; color: #374151; outline: 1px solid #D1D5DB; }

/* Action Icons */
.esmd-actions { display: flex; align-items: center; gap: 12px; }

.esmd-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    transition: opacity 0.15s;
}
.esmd-action-btn:hover { opacity: 0.7; }
.esmd-action-btn svg { width: 20px; height: 20px; }
.esmd-eye-icon { width: 20px; height: 20px; display: block; }
.esmd-action-btn--view { color: #0288D1; }

/* Pagination */
.esmd-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    flex-wrap: wrap;
    gap: 12px;
}

.esmd-pagination__info { font-size: 0.8125rem; color: #6A7282; }
.esmd-pagination__nav { display: flex; align-items: center; gap: 8px; }

.esmd-pagination__btn {
    padding: 8px 16px;
    border: none;
    border-radius: 10px;
    font-size: 0.8125rem;
    color: #6A7282;
    background: transparent;
    cursor: pointer;
    transition: color 0.15s;
}
.esmd-pagination__btn:disabled { opacity: 0.5; cursor: not-allowed; }
.esmd-pagination__btn--active {
    background: #0288D1;
    color: #fff;
    font-weight: 700;
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 900px) {
    .esmd-main { padding: calc(var(--header-height, 64px) + 24px) 16px 24px; }
}
/* ===== EmailScribe Detail — unique prefix: ed- ===== */

/* Layout */
.ed-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #fff;
}

.ed-main {
    flex: 1;
    padding: calc(var(--header-height, 64px) + 32px) 48px 48px;
    max-width: 1400px;
    margin: -60px auto;
    width: 100%;
    box-sizing: border-box;
}

/* Page title / subtitle */
.ed-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #101828;
    margin: 0 0 4px;
    line-height: 2rem;
}

.ed-page-subtitle {
    font-size: 0.875rem;
    color: #4A5565;
    margin: 0;
    line-height: 1.25rem;
}

/* Back button */
.ed-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #0288D1;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    margin-bottom: 24px;
    transition: opacity 0.15s;
}
.ed-back-btn:hover { opacity: 0.75; }
.ed-back-btn svg { width: 20px; height: 20px; }

/* Badges */
.ed-badge {
    display: inline-block;
    padding: 4px 13px;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
}
.ed-badge--serious    { background: #FECACA; color: #991B1B; outline: 1px solid #FCA5A5; }
.ed-badge--non-serious { background: #D1FAE5; color: #065F46; outline: 1px solid #86EFAC; }
.ed-badge--category-ae      { background: #FEF3C7; color: #92400E; outline: 1px solid #FCD34D; }
.ed-badge--category-pqc     { background: #E0E7FF; color: #3730A3; outline: 1px solid #A5B4FC; }
.ed-badge--category-mi      { background: #DBEAFE; color: #1E40AF; outline: 1px solid #93C5FD; }
.ed-badge--category-others  { background: #F3F4F6; color: #374151; outline: 1px solid #D1D5DB; }

/* ===== Breadcrumb ===== */
.ed-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.85rem;
}

.ed-breadcrumb-link {
    color: #0288D1;
    cursor: pointer;
    font-weight: 500;
}

.ed-breadcrumb-link:hover {
    text-decoration: underline;
}

.ed-breadcrumb-sep {
    color: #9CA3AF;
}

.ed-breadcrumb-current {
    color: #6B7280;
    font-weight: 500;
}

/* ===== Title Row ===== */
.ed-title-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.ed-title-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.ed-export-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    background: #217346;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s;
}

.ed-export-btn:hover:not(:disabled) {
    background: #1a5c38;
}

.ed-export-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.ed-title-tags {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.ed-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1.5px solid;
}

.ed-tag--category {
    background: #EFF6FF;
    color: #1D4ED8;
    border-color: #BFDBFE;
}

.ed-tag--serious {
    background: #FEF2F2;
    color: #DC2626;
    border-color: #FECACA;
}

.ed-tag--non-serious {
    background: #F0FDF4;
    color: #16A34A;
    border-color: #BBF7D0;
}

/* ===== Three-Column Layout ===== */
.ed-three-col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.ed-col {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ed-col--body {
    min-height: 300px;
}

.ed-col--ai {
    min-height: 300px;
}

/* ===== Column Headers ===== */
.ed-col-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #F1F5F9;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #E5E7EB;
}

.ed-col-header svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.ed-col-header--blue {
    background: #0288D1;
    color: #fff;
    border-bottom: none;
}

.ed-col-header--green {
    background: #16A34A;
    color: #fff;
    border-bottom: none;
}

/* ===== Email Subject in Content Column ===== */
.ed-email-subject-label {
    font-size: 13px;
    color: #374151;
    padding: 10px 0 8px 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 10px;
}

/* ===== Column Body ===== */
.ed-col-body {
    padding: 16px 20px;
    flex: 1;
    overflow-y: auto;
}

/* ===== Field Items ===== */
.ed-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
}

.ed-field:last-child {
    margin-bottom: 0;
}

.ed-field-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ed-field-value {
    font-size: 0.85rem;
    color: #101828;
    word-break: break-word;
    line-height: 1.4;
}

/* ===== Email Body Content ===== */
.ed-body-content {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    font-size: 0.85rem;
    line-height: 1.75;
    color: #374151;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
    background: #fff;
}

/* ===== Attachment Body Section (inside Email Content column) ===== */
.ed-attachment-body-section {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed #D1D5DB;
}

.ed-attachment-body-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

/* ===== AI Summary Sections ===== */
.ed-ai-section {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #F1F5F9;
}

.ed-ai-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.ed-ai-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #16A34A;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 8px 0;
}

.ed-ai-narrative {
    font-size: 0.85rem;
    line-height: 1.7;
    color: #374151;
    margin: 0;
    white-space: pre-wrap;
}

.ed-ai-classification {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ed-ai-rationale {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #4B5563;
    margin: 0;
    font-style: italic;
}

.ed-ai-empty {
    color: #9CA3AF;
    font-size: 0.85rem;
    font-style: italic;
    margin: 0;
}

/* ===== Purple Header ===== */
.ed-col-header--purple {
    background: #7C3AED;
    color: #fff;
    border-bottom: none;
}

/* ===== Extracted Fields Card ===== */
.ed-extracted-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

.ed-extracted-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    padding: 20px;
}

.ed-extracted-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 14px;
    background: #F8FAFC;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
}

/* ===== Attachments Card ===== */
.ed-attachments-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

.ed-attachments-list {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ed-attachment-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #F8FAFC;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
}

.ed-attachment-icon {
    width: 20px;
    height: 20px;
    color: #6B7280;
    flex-shrink: 0;
}

.ed-attachment-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ed-attachment-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #101828;
}

.ed-attachment-meta {
    font-size: 0.75rem;
    color: #6B7280;
}

.ed-attachment-item--clickable {
    cursor: pointer;
}

.ed-attachment-item--clickable:hover {
    background: #EFF6FF;
    border-color: #93C5FD;
}

.ed-attachment-text {
    margin: 0 14px 10px;
    padding: 12px 16px;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #334155;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 300px;
    overflow-y: auto;
    line-height: 1.5;
}

/* ===== View Image Button ===== */
.ed-view-image-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 8px;
    color: #0288D1;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.ed-view-image-btn:hover {
    background: #DBEAFE;
    border-color: #93C5FD;
}

.ed-view-image-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.ed-view-image-btn svg {
    width: 16px;
    height: 16px;
}

.ed-img-btn-spinner {
    display: block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(2, 136, 209, 0.3);
    border-top-color: #0288D1;
    border-radius: 50%;
    animation: ed-spin 0.7s linear infinite;
}

@keyframes ed-spin {
    to { transform: rotate(360deg); }
}

/* ===== Image Preview Modal ===== */
.ed-img-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 24px;
    box-sizing: border-box;
}

.ed-img-modal {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.ed-img-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #E5E7EB;
    flex-shrink: 0;
}

.ed-img-modal-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #101828;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 60vw;
}

.ed-img-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: #6B7280;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}

.ed-img-modal-close:hover {
    background: #F3F4F6;
    color: #111827;
}

.ed-img-modal-close svg {
    width: 18px;
    height: 18px;
}

.ed-img-modal-body {
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    flex: 1;
    min-height: 0;
}

.ed-img-modal-img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 4px;
}

/* PDF modal overrides */
.ed-pdf-modal {
    width: 90vw;
    max-width: 1100px;
    height: 90vh;
    max-height: 90vh;
}

.ed-pdf-modal-body {
    padding: 0;
    flex: 1;
    min-height: 0;
}

.ed-pdf-modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .ed-three-col {
        grid-template-columns: 1fr 1fr;
    }

    .ed-col--ai {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .ed-three-col {
        grid-template-columns: 1fr;
    }

    .ed-title-row {
        flex-direction: column;
    }
}
/* ===== PDFScribe Dashboard — unique prefix: psdb- ===== */

.psdb-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #fff;
}

.psdb-main {
    flex: 1;
    padding: calc(var(--header-height, 64px) + 32px) 48px 48px;
    max-width: 1400px;
    margin: -60px auto;
    width: 100%;
    box-sizing: border-box;
}

/* Page Title */
.psdb-title-section { margin-bottom: 32px; }

.psdb-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #101828;
    margin: 0 0 4px;
    line-height: 2rem;
}

.psdb-subtitle {
    font-size: 0.875rem;
    color: #4A5565;
    margin: 0;
    line-height: 1.25rem;
}

/* Summary Cards */
.psdb-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.psdb-card {
    border-radius: 12px;
    padding: 24px;
}

.psdb-card__label {
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    line-height: 1rem;
}

.psdb-card__value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 2.375rem;
}

.psdb-card--total { background: #E0F2FE; }
.psdb-card--total .psdb-card__label { color: #0369A1; }
.psdb-card--total .psdb-card__value { color: #075985; }

.psdb-card--serious { background: #FECACA; }
.psdb-card--serious .psdb-card__label { color: #B91C1C; }
.psdb-card--serious .psdb-card__value { color: #991B1B; }

.psdb-card--non-serious { background: #D1FAE5; }
.psdb-card--non-serious .psdb-card__label { color: #047857; }
.psdb-card--non-serious .psdb-card__value { color: #065F46; }

/* History section */
.psdb-history { border-bottom: 1px solid #F3F4F6; }

.psdb-history__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 24px 0;
    gap: 16px;
    border-bottom: 1px solid #F3F4F6;
    flex-wrap: wrap;
}

.psdb-history__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #101828;
    margin: 0 0 4px;
    line-height: 1.75rem;
}

.psdb-history__subtitle {
    font-size: 0.875rem;
    color: #4A5565;
    margin: 0;
    line-height: 1.25rem;
}

.psdb-history__controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Search */
.psdb-search { position: relative; display: flex; align-items: center; }

.psdb-search__icon {
    position: absolute;
    left: 12px;
    width: 16px;
    height: 16px;
    color: #6B7280;
    pointer-events: none;
}

.psdb-search__input {
    padding: 10px 16px 10px 36px;
    border: 1px solid #D1D5DB;
    border-radius: 10px;
    font-size: 0.875rem;
    color: #101828;
    background: #fff;
    width: 280px;
    outline: none;
    transition: border-color 0.15s;
}

.psdb-search__input::placeholder { color: #9CA3AF; }
.psdb-search__input:focus { border-color: #0288D1; }

/* Upload button */
.psdb-upload-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #0288D1;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.1);
    transition: background 0.15s;
}

.psdb-upload-btn svg { width: 16px; height: 16px; }
.psdb-upload-btn:hover:not(:disabled) { background: #0277bd; }
.psdb-upload-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Drop zone */
.psdb-dropzone {
    border: 2px dashed #93C5FD;
    border-radius: 12px;
    padding: 24px 32px;
    text-align: center;
    transition: background 0.15s, border-color 0.15s;
    margin: 0 0 0;
    background: #F0F9FF;
}

.psdb-dropzone--active {
    background: #DBEAFE;
    border-color: #3B82F6;
}

.psdb-dropzone__icon {
    width: 40px;
    height: 40px;
    color: #0288D1;
    margin: 0 auto 12px;
}

.psdb-dropzone__label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0288D1;
    margin: 0 0 4px;
}

.psdb-dropzone__hint {
    font-size: 0.8rem;
    color: #6B7280;
    margin: 0;
}

/* Selected files section */
.psdb-file-section {
    padding: 16px 0 8px;
    border-bottom: 1px solid #F3F4F6;
}

.psdb-file-list {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* File actions (process + clear) */
.psdb-file-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.psdb-process-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #0288D1;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.1);
    transition: background 0.15s;
}
.psdb-process-btn svg { width: 16px; height: 16px; }
.psdb-process-btn:hover:not(:disabled) { background: #0277bd; }
.psdb-process-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.psdb-clear-btn {
    background: none;
    border: none;
    color: #6B7280;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    transition: color 0.15s;
}
.psdb-clear-btn:hover { color: #DC2626; }

.psdb-file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #334155;
}

.psdb-file-item__name { flex: 1; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.psdb-file-item__size { color: #6B7280; white-space: nowrap; }
.psdb-file-item__remove {
    background: none; border: none; cursor: pointer; color: #9CA3AF;
    padding: 0; display: flex; align-items: center;
}
.psdb-file-item__remove:hover { color: #DC2626; }
.psdb-file-item__remove svg { width: 14px; height: 14px; }

/* Table */
.psdb-table-wrap { overflow-x: auto; }

.psdb-table { width: 100%; border-collapse: collapse; }
.psdb-table thead tr { background: #0288D1; }
.psdb-table thead th {
    padding: 14px 24px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    background: #0288D1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
    white-space: nowrap;
    cursor: grab;
    user-select: none;
    transition: background 0.15s;
}
.psdb-table thead th:active { cursor: grabbing; }
.psdb-table thead th[draggable="true"]:not(.psdb-table__th--drop-target) {
    background: #0288D1;
}

.psdb-table__th--drop-target {
    background: #0277BD !important;
    outline: 2px dashed rgba(255,255,255,0.6);
    outline-offset: -3px;
}

.psdb-th-inner { display: flex; align-items: center; gap: 8px; }
.psdb-drag-handle { width: 14px; height: 14px; flex-shrink: 0; opacity: 0.7; pointer-events: none; }

.psdb-table tbody td {
    padding: 0 24px;
    height: 60px;
    font-size: 0.8125rem;
    color: #101828;
    border-bottom: 1px solid #F3F4F6;
    vertical-align: middle;
}

.psdb-table__row--alt { background: #E0F2FE; }
.psdb-table__cell--total     { color: #0288D1; font-weight: 700; font-size: 0.9375rem; }
.psdb-table__cell--serious   { color: #DC2626; font-weight: 700; font-size: 0.9375rem; }
.psdb-table__cell--non-serious { color: #047857; font-weight: 700; font-size: 0.9375rem; }

/* File name link */
.psdb-file-link {
    color: #0288D1;
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
    text-decoration: none;
}
.psdb-file-link:hover { text-decoration: underline; }

/* Date time sub-text */
.psdb-date-time {
    font-size: 0.7rem;
    color: #6B7280;
    margin-top: 2px;
    line-height: 1rem;
}

/* Status badge */
.psdb-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
}
.psdb-status-badge--processing { background: #FEF3C7; color: #92400E; }
.psdb-status-badge--completed  { background: #D1FAE5; color: #065F46; }
.psdb-status-badge--failed     { background: #FECACA; color: #991B1B; }

/* Pagination */
.psdb-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    flex-wrap: wrap;
    gap: 12px;
}

.psdb-pagination__info { font-size: 0.8125rem; color: #6A7282; }
.psdb-pagination__nav { display: flex; align-items: center; gap: 8px; }

.psdb-pagination__btn {
    padding: 8px 16px;
    border: none;
    border-radius: 10px;
    font-size: 0.8125rem;
    color: #6A7282;
    background: transparent;
    cursor: pointer;
    transition: color 0.15s;
}
.psdb-pagination__btn:disabled { opacity: 0.5; cursor: not-allowed; }
.psdb-pagination__btn--active {
    background: #0288D1;
    color: #fff;
    font-weight: 700;
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Loading Overlay */
.psdb-loading-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.psdb-spinner {
    width: 64px;
    height: 64px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: psdb-spin 1s linear infinite;
    margin-bottom: 24px;
}

@keyframes psdb-spin { to { transform: rotate(360deg); } }

.psdb-loading-title {
    margin: 0 0 8px;
    font-size: 1.125rem;
    font-weight: 500;
    color: #fff;
    text-align: center;
}

.psdb-loading-text {
    color: rgba(255,255,255,0.8);
    margin: 0;
    font-size: 0.875rem;
    text-align: center;
}

/* ===== PDF Detail Modal ===== */
.psdb-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 32px 16px;
    overflow-y: auto;
}

.psdb-modal {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 1360px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    position: relative;
}

.psdb-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #E5E7EB;
    gap: 16px;
    flex-wrap: wrap;
}

.psdb-modal-header-left { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.psdb-modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #101828;
    margin: 0;
    word-break: break-word;
}

.psdb-modal-subtitle {
    font-size: 0.8rem;
    color: #6B7280;
    margin: 0;
}

.psdb-modal-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }

.psdb-modal-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.psdb-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    color: #6B7280;
    transition: background 0.15s, color 0.15s;
}
.psdb-modal-close:hover { background: #F3F4F6; color: #101828; }
.psdb-modal-close svg { width: 16px; height: 16px; }

.psdb-modal-body {
    padding: 20px 24px 24px;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
}

/* Responsive */
@media (max-width: 900px) {
    .psdb-cards { grid-template-columns: 1fr; gap: 16px; }
    .psdb-main { padding: calc(var(--header-height, 64px) + 24px) 16px 24px; }
    .psdb-history__header { flex-direction: column; align-items: flex-start; }
    .psdb-search__input { width: 200px; }
}

@media (min-width: 480px) and (max-width: 900px) {
    .psdb-cards { grid-template-columns: repeat(2, 1fr); }
}
/* ===== PDFScribe Detail — unique prefix: psd- ===== */

.psd-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #fff;
}

.psd-main {
    flex: 1;
    padding: calc(var(--header-height, 64px) + 32px) 48px 48px;
    max-width: 1400px;
    margin: -60px auto;
    width: 100%;
    box-sizing: border-box;
}

/* Back button */
.psd-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #0288D1;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    margin-bottom: 24px;
    transition: opacity 0.15s;
}
.psd-back-btn:hover { opacity: 0.75; }
.psd-back-btn svg { width: 20px; height: 20px; }

/* Breadcrumb */
.psd-breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 0.85rem; }
.psd-breadcrumb-link { color: #0288D1; cursor: pointer; font-weight: 500; }
.psd-breadcrumb-link:hover { text-decoration: underline; }
.psd-breadcrumb-sep { color: #9CA3AF; }
.psd-breadcrumb-current { color: #6B7280; font-weight: 500; }

/* Title row */
.psd-title-row { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.psd-title-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }

.psd-page-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #101828;
    margin: 0 0 4px;
    line-height: 1.75rem;
    word-break: break-word;
}

.psd-page-subtitle {
    font-size: 0.875rem;
    color: #4A5565;
    margin: 0;
    line-height: 1.25rem;
}

/* Export button */
.psd-export-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    background: #217346;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s;
}
.psd-export-btn:hover:not(:disabled) { background: #1a5c38; }
.psd-export-btn:disabled { opacity: 0.65; cursor: not-allowed; }

/* Tags */
.psd-title-tags { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.psd-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1.5px solid;
}

.psd-tag--category   { background: #EFF6FF; color: #1D4ED8; border-color: #BFDBFE; }
.psd-tag--serious    { background: #FEF2F2; color: #DC2626; border-color: #FECACA; }
.psd-tag--non-serious { background: #F0FDF4; color: #16A34A; border-color: #BBF7D0; }

/* Badges */
.psd-badge {
    display: inline-block;
    padding: 4px 13px;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
}
.psd-badge--serious      { background: #FECACA; color: #991B1B; outline: 1px solid #FCA5A5; }
.psd-badge--non-serious  { background: #D1FAE5; color: #065F46; outline: 1px solid #86EFAC; }
.psd-badge--category-ae      { background: #FEF3C7; color: #92400E; outline: 1px solid #FCD34D; }
.psd-badge--category-pqc     { background: #E0E7FF; color: #3730A3; outline: 1px solid #A5B4FC; }
.psd-badge--category-mi      { background: #DBEAFE; color: #1E40AF; outline: 1px solid #93C5FD; }
.psd-badge--category-others  { background: #F3F4F6; color: #374151; outline: 1px solid #D1D5DB; }

/* Three-column layout */
.psd-three-col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.psd-col {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 420px;
}

/* Column headers */
.psd-col-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #F1F5F9;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #E5E7EB;
}
.psd-col-header svg { width: 16px; height: 16px; flex-shrink: 0; }
.psd-col-header--blue  { background: #0288D1; color: #fff; border-bottom: none; }
.psd-col-header--green { background: #16A34A; color: #fff; border-bottom: none; }
.psd-col-header--purple { background: #7C3AED; color: #fff; border-bottom: none; }

/* Column body */
.psd-col-body { padding: 16px 20px; flex: 1; overflow-y: auto; }

/* Field items */
.psd-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.psd-field:last-child { margin-bottom: 0; }

.psd-field-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.psd-field-value {
    font-size: 0.85rem;
    color: #101828;
    word-break: break-word;
    line-height: 1.4;
}

/* PDF text content */
.psd-body-content {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    font-size: 0.85rem;
    line-height: 1.75;
    color: #374151;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
    background: #fff;
}

/* AI summary sections */
.psd-ai-section {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #F1F5F9;
}
.psd-ai-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.psd-ai-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #16A34A;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 8px 0;
}

.psd-ai-narrative {
    font-size: 0.85rem;
    line-height: 1.7;
    color: #374151;
    margin: 0;
    white-space: pre-wrap;
}

.psd-ai-classification { display: flex; flex-direction: column; gap: 12px; }

.psd-ai-rationale {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #4B5563;
    margin: 0;
    font-style: italic;
}

.psd-ai-empty { color: #9CA3AF; font-size: 0.85rem; font-style: italic; margin: 0; }

/* Extracted fields card */
.psd-extracted-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

.psd-extracted-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    padding: 20px;
}

.psd-extracted-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 14px;
    background: #F8FAFC;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
}

/* View PDF button */
.psd-view-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    background: #EFF6FF;
    color: #0288D1;
    border: 1px solid #BFDBFE;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    margin-top: 12px;
}
.psd-view-pdf-btn:hover { background: #DBEAFE; border-color: #93C5FD; }
.psd-view-pdf-btn svg { width: 15px; height: 15px; }

/* Spinner */
.psd-spinner-inline {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(2, 136, 209, 0.3);
    border-top-color: #0288D1;
    border-radius: 50%;
    animation: psd-spin 0.7s linear infinite;
}
@keyframes psd-spin { to { transform: rotate(360deg); } }

/* ── Uploaded Files Section ──────────────────────────────────── */
.psd-uploaded-section {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

.psd-uploaded-list {
    max-height: 220px;
    overflow-y: auto;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.psd-uploaded-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #F8FAFC;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
}

.psd-uploaded-file-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.psd-uploaded-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.psd-uploaded-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #101828;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.psd-uploaded-size {
    font-size: 0.75rem;
    color: #6B7280;
}

.psd-uploaded-eye-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #BFDBFE;
    border-radius: 6px;
    background: #EFF6FF;
    color: #0288D1;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s;
}
.psd-uploaded-eye-btn:hover:not(:disabled) { background: #DBEAFE; border-color: #93C5FD; }
.psd-uploaded-eye-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.psd-uploaded-eye-btn svg { width: 16px; height: 16px; }

/* ── PDF Viewer Popup ──────────────────────────────────────────── */
.psd-viewer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.psd-viewer-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 1100px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.psd-viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid #E5E7EB;
    flex-shrink: 0;
}

.psd-viewer-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #101828;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.psd-viewer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    color: #6B7280;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}
.psd-viewer-close:hover { background: #F3F4F6; color: #101828; }
.psd-viewer-close svg { width: 14px; height: 14px; }

.psd-viewer-iframe {
    flex: 1;
    width: 100%;
    border: none;
}

/* Responsive */
@media (max-width: 1200px) {
    .psd-three-col { grid-template-columns: 1fr 1fr; }
    .psd-col:last-child { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
    .psd-three-col { grid-template-columns: 1fr; }
    .psd-main { padding: calc(var(--header-height, 64px) + 24px) 16px 24px; }
}
/* ===== ImageScribe Dashboard — unique prefix: isdb- ===== */

.isdb-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #fff;
}

.isdb-main {
    flex: 1;
    padding: calc(var(--header-height, 64px) + 32px) 48px 48px;
    max-width: 1400px;
    margin: -60px auto;
    width: 100%;
    box-sizing: border-box;
}

/* Page Title */
.isdb-title-section {
    margin-bottom: 32px;
}

.isdb-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #101828;
    margin: 0 0 4px;
    line-height: 2rem;
}

.isdb-subtitle {
    font-size: 0.875rem;
    color: #4A5565;
    margin: 0;
    line-height: 1.25rem;
}

/* Summary Cards */
.isdb-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.isdb-card {
    border-radius: 12px;
    padding: 24px;
}

.isdb-card__label {
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    line-height: 1rem;
}

.isdb-card__value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 2.375rem;
}

.isdb-card--total {
    background: #E0F2FE;
}

.isdb-card--total .isdb-card__label {
    color: #0369A1;
}

.isdb-card--total .isdb-card__value {
    color: #075985;
}

.isdb-card--serious {
    background: #FECACA;
}

.isdb-card--serious .isdb-card__label {
    color: #B91C1C;
}

.isdb-card--serious .isdb-card__value {
    color: #991B1B;
}

.isdb-card--non-serious {
    background: #D1FAE5;
}

.isdb-card--non-serious .isdb-card__label {
    color: #047857;
}

.isdb-card--non-serious .isdb-card__value {
    color: #065F46;
}

/* History section */
.isdb-history {
    border-bottom: 1px solid #F3F4F6;
}

.isdb-history__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 24px 0;
    gap: 16px;
    border-bottom: 1px solid #F3F4F6;
    flex-wrap: wrap;
}

.isdb-history__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #101828;
    margin: 0 0 4px;
    line-height: 1.75rem;
}

.isdb-history__subtitle {
    font-size: 0.875rem;
    color: #4A5565;
    margin: 0;
    line-height: 1.25rem;
}

.isdb-history__controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Search */
.isdb-search {
    position: relative;
    display: flex;
    align-items: center;
}

.isdb-search__icon {
    position: absolute;
    left: 12px;
    width: 16px;
    height: 16px;
    color: #6B7280;
    pointer-events: none;
}

.isdb-search__input {
    padding: 10px 16px 10px 36px;
    border: 1px solid #D1D5DB;
    border-radius: 10px;
    font-size: 0.875rem;
    color: #101828;
    background: #fff;
    width: 280px;
    outline: none;
    transition: border-color 0.15s;
}

.isdb-search__input::placeholder {
    color: #9CA3AF;
}

.isdb-search__input:focus {
    border-color: #0288D1;
}

/* Upload button */
.isdb-upload-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #0288D1;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: background 0.15s;
}

.isdb-upload-btn svg {
    width: 16px;
    height: 16px;
}

.isdb-upload-btn:hover:not(:disabled) {
    background: #0277bd;
}

.isdb-upload-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Drop zone */
.isdb-dropzone {
    border: 2px dashed #93C5FD;
    border-radius: 12px;
    padding: 24px 32px;
    text-align: center;
    transition: background 0.15s, border-color 0.15s;
    margin: 0 0 0;
    background: #F0F9FF;
}

.isdb-dropzone--active {
    background: #DBEAFE;
    border-color: #3B82F6;
}

.isdb-dropzone__icon {
    width: 40px;
    height: 40px;
    color: #0288D1;
    margin: 0 auto 12px;
}

.isdb-dropzone__label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0288D1;
    margin: 0 0 4px;
}

.isdb-dropzone__hint {
    font-size: 0.8rem;
    color: #6B7280;
    margin: 0;
}

/* Selected files section */
.isdb-file-section {
    padding: 16px 0 8px;
    border-bottom: 1px solid #F3F4F6;
}

.isdb-file-list {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* File actions (process + clear) */
.isdb-file-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.isdb-process-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #0288D1;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: background 0.15s;
}

.isdb-process-btn svg {
    width: 16px;
    height: 16px;
}

.isdb-process-btn:hover:not(:disabled) {
    background: #0277bd;
}

.isdb-process-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.isdb-clear-btn {
    background: none;
    border: none;
    color: #6B7280;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    transition: color 0.15s;
}

.isdb-clear-btn:hover {
    color: #DC2626;
}

.isdb-file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #334155;
}

.isdb-file-item__name {
    flex: 1;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.isdb-file-item__size {
    color: #6B7280;
    white-space: nowrap;
}

.isdb-file-item__remove {
    background: none;
    border: none;
    cursor: pointer;
    color: #9CA3AF;
    padding: 0;
    display: flex;
    align-items: center;
}

.isdb-file-item__remove:hover {
    color: #DC2626;
}

.isdb-file-item__remove svg {
    width: 14px;
    height: 14px;
}

/* Table */
.isdb-table-wrap {
    overflow-x: auto;
}

.isdb-table {
    width: 100%;
    border-collapse: collapse;
}

.isdb-table thead tr {
    background: #0288D1;
}

.isdb-table thead th {
    padding: 14px 24px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    background: #0288D1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
    white-space: nowrap;
    cursor: grab;
    user-select: none;
    transition: background 0.15s;
}

.isdb-table thead th:active {
    cursor: grabbing;
}

.isdb-table thead th[draggable="true"]:not(.isdb-table__th--drop-target) {
    background: #0288D1;
}

.isdb-table__th--drop-target {
    background: #0277BD !important;
    outline: 2px dashed rgba(255, 255, 255, 0.6);
    outline-offset: -3px;
}

.isdb-th-inner {
    display: flex;
    align-items: center;
    gap: 8px;
}

.isdb-drag-handle {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.7;
    pointer-events: none;
}

.isdb-table tbody td {
    padding: 0 24px;
    height: 60px;
    font-size: 0.8125rem;
    color: #101828;
    border-bottom: 1px solid #F3F4F6;
    vertical-align: middle;
}

.isdb-table__row--alt {
    background: #E0F2FE;
}

.isdb-table__cell--total {
    color: #0288D1;
    font-weight: 700;
    font-size: 0.9375rem;
}

.isdb-table__cell--serious {
    color: #DC2626;
    font-weight: 700;
    font-size: 0.9375rem;
}

.isdb-table__cell--non-serious {
    color: #047857;
    font-weight: 700;
    font-size: 0.9375rem;
}

/* File name link */
.isdb-file-link {
    color: #0288D1;
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
    text-decoration: none;
}

.isdb-file-link:hover {
    text-decoration: underline;
}

/* Date time sub-text */
.isdb-date-time {
    font-size: 0.7rem;
    color: #6B7280;
    margin-top: 2px;
    line-height: 1rem;
}

/* Pagination */
.isdb-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    flex-wrap: wrap;
    gap: 12px;
}

.isdb-pagination__info {
    font-size: 0.8125rem;
    color: #6A7282;
}

.isdb-pagination__nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.isdb-pagination__btn {
    padding: 8px 16px;
    border: none;
    border-radius: 10px;
    font-size: 0.8125rem;
    color: #6A7282;
    background: transparent;
    cursor: pointer;
    transition: color 0.15s;
}

.isdb-pagination__btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.isdb-pagination__btn--active {
    background: #0288D1;
    color: #fff;
    font-weight: 700;
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Loading Overlay */
.isdb-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.isdb-spinner {
    width: 64px;
    height: 64px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: isdb-spin 1s linear infinite;
    margin-bottom: 24px;
}

@keyframes isdb-spin {
    to {
        transform: rotate(360deg);
    }
}

.isdb-loading-title {
    margin: 0 0 8px;
    font-size: 1.125rem;
    font-weight: 500;
    color: #fff;
    text-align: center;
}

.isdb-loading-text {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.875rem;
    text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
    .isdb-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .isdb-main {
        padding: calc(var(--header-height, 64px) + 24px) 16px 24px;
    }

    .isdb-history__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .isdb-search__input {
        width: 200px;
    }
}

@media (min-width: 480px) and (max-width: 900px) {
    .isdb-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}/* ===== ImageScribe Detail — unique prefix: isd- ===== */

.isd-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #fff;
}

.isd-main {
    flex: 1;
    padding: calc(var(--header-height, 64px) + 32px) 48px 48px;
    max-width: 1400px;
    margin: -60px auto;
    width: 100%;
    box-sizing: border-box;
}

/* Back button */
.isd-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #0288D1;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    margin-bottom: 24px;
    transition: opacity 0.15s;
}

.isd-back-btn:hover {
    opacity: 0.75;
}

.isd-back-btn svg {
    width: 20px;
    height: 20px;
}

/* Breadcrumb */
.isd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.85rem;
}

.isd-breadcrumb-link {
    color: #0288D1;
    cursor: pointer;
    font-weight: 500;
}

.isd-breadcrumb-link:hover {
    text-decoration: underline;
}

.isd-breadcrumb-sep {
    color: #9CA3AF;
}

.isd-breadcrumb-current {
    color: #6B7280;
    font-weight: 500;
}

/* Title row */
.isd-title-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.isd-title-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.isd-page-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #101828;
    margin: 0 0 4px;
    line-height: 1.75rem;
    word-break: break-word;
}

.isd-page-subtitle {
    font-size: 0.875rem;
    color: #4A5565;
    margin: 0;
    line-height: 1.25rem;
}

/* Export button */
.isd-export-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    background: #217346;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s;
}

.isd-export-btn:hover:not(:disabled) {
    background: #1a5c38;
}

.isd-export-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Tags */
.isd-title-tags {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.isd-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1.5px solid;
}

.isd-tag--category {
    background: #EFF6FF;
    color: #1D4ED8;
    border-color: #BFDBFE;
}

.isd-tag--serious {
    background: #FEF2F2;
    color: #DC2626;
    border-color: #FECACA;
}

.isd-tag--non-serious {
    background: #F0FDF4;
    color: #16A34A;
    border-color: #BBF7D0;
}

/* Badges */
.isd-badge {
    display: inline-block;
    padding: 4px 13px;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
}

.isd-badge--serious {
    background: #FECACA;
    color: #991B1B;
    outline: 1px solid #FCA5A5;
}

.isd-badge--non-serious {
    background: #D1FAE5;
    color: #065F46;
    outline: 1px solid #86EFAC;
}

.isd-badge--category-ae {
    background: #FEF3C7;
    color: #92400E;
    outline: 1px solid #FCD34D;
}

.isd-badge--category-pqc {
    background: #E0E7FF;
    color: #3730A3;
    outline: 1px solid #A5B4FC;
}

.isd-badge--category-mi {
    background: #DBEAFE;
    color: #1E40AF;
    outline: 1px solid #93C5FD;
}

.isd-badge--category-others {
    background: #F3F4F6;
    color: #374151;
    outline: 1px solid #D1D5DB;
}

/* Three-column layout */
.isd-three-col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.isd-col {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 420px;
}

/* Column headers */
.isd-col-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #F1F5F9;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #E5E7EB;
}

.isd-col-header svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.isd-col-header--blue {
    background: #0288D1;
    color: #fff;
    border-bottom: none;
}

.isd-col-header--green {
    background: #16A34A;
    color: #fff;
    border-bottom: none;
}

.isd-col-header--purple {
    background: #7C3AED;
    color: #fff;
    border-bottom: none;
}

/* Column body */
.isd-col-body {
    padding: 16px 20px;
    flex: 1;
    overflow-y: auto;
}

/* Field items */
.isd-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
}

.isd-field:last-child {
    margin-bottom: 0;
}

.isd-field-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.isd-field-value {
    font-size: 0.85rem;
    color: #101828;
    word-break: break-word;
    line-height: 1.4;
}

/* Image text content */
.isd-body-content {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    font-size: 0.85rem;
    line-height: 1.75;
    color: #374151;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
    background: #fff;
}

/* AI summary sections */
.isd-ai-section {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #F1F5F9;
}

.isd-ai-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.isd-ai-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #16A34A;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 8px 0;
}

.isd-ai-narrative {
    font-size: 0.85rem;
    line-height: 1.7;
    color: #374151;
    margin: 0;
    white-space: pre-wrap;
}

.isd-ai-classification {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.isd-ai-rationale {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #4B5563;
    margin: 0;
    font-style: italic;
}

.isd-ai-empty {
    color: #9CA3AF;
    font-size: 0.85rem;
    font-style: italic;
    margin: 0;
}

/* Extracted fields card */
.isd-extracted-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

.isd-extracted-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    padding: 20px;
}

.isd-extracted-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 14px;
    background: #F8FAFC;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
}

/* Spinner */
.isd-spinner-inline {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(2, 136, 209, 0.3);
    border-top-color: #0288D1;
    border-radius: 50%;
    animation: isd-spin 0.7s linear infinite;
}

@keyframes isd-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Uploaded Files Section ──────────────────────────────────── */
.isd-uploaded-section {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

.isd-uploaded-list {
    max-height: 220px;
    overflow-y: auto;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.isd-uploaded-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #F8FAFC;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
}

.isd-uploaded-file-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.isd-uploaded-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.isd-uploaded-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #101828;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.isd-uploaded-size {
    font-size: 0.75rem;
    color: #6B7280;
}

.isd-uploaded-eye-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #BFDBFE;
    border-radius: 6px;
    background: #EFF6FF;
    color: #0288D1;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s;
}

.isd-uploaded-eye-btn:hover:not(:disabled) {
    background: #DBEAFE;
    border-color: #93C5FD;
}

.isd-uploaded-eye-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.isd-uploaded-eye-btn svg {
    width: 16px;
    height: 16px;
}

/* ── Image Viewer Popup ──────────────────────────────────────── */
.isd-viewer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.isd-viewer-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 1100px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.isd-viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid #E5E7EB;
    flex-shrink: 0;
}

.isd-viewer-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #101828;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.isd-viewer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    color: #6B7280;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}

.isd-viewer-close:hover {
    background: #F3F4F6;
    color: #101828;
}

.isd-viewer-close svg {
    width: 14px;
    height: 14px;
}

.isd-viewer-body {
    flex: 1;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #f5f5f5;
}

.isd-viewer-image {
    max-width: 100%;
    max-height: calc(90vh - 80px);
    object-fit: contain;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 1200px) {
    .isd-three-col {
        grid-template-columns: 1fr 1fr;
    }

    .isd-col:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .isd-three-col {
        grid-template-columns: 1fr;
    }

    .isd-main {
        padding: calc(var(--header-height, 64px) + 24px) 16px 24px;
    }
}/* Base Styles & Variables */
:root {
  --primary: #0288D1;
  --gray-text: #6B7280;
  --dark-text: #101828;
  --light-bg: #F9FAFB;
  --shadow-sm: 0px 1px 2px -1px rgba(0, 0, 0, 0.10), 0px 1px 3px rgba(0, 0, 0, 0.10);
  --border-radius: 20px;
  --border-radius-md: 16px;
}

/* Dashboard Root */
.dashboard-root {
  background: var(--light-bg);
  min-height: 100vh;
  padding: 32px 46px 40px;
  font-family: Arial, sans-serif;
}

.dashboard-shell {
  max-width: 1440px;
  margin: 0 auto;
}

/* Page Title */
.dashboard-page-title {
  margin-bottom: 15px;
  margin-top: -10px;
}

.dashboard-page-title h1 {
  color: var(--primary);
  font-size: 28px;
  font-weight: 700;
  line-height: 42px;
  margin-bottom: 10px;
}

/* Top 3 Metrics */
.dashboard-top-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.top-metric-card {
  background: #B8C5D6;
  box-shadow: var(--shadow-sm);
  border-radius: var(--border-radius);
  padding: 16px;
  display: flex;
  flex-direction: row; /* moved label and number side-by-side */
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 84px; /* reduced height */
}

.metric-total-articles {
  background: #B8C5D6;
}
.metric-valid-articles {
  background: #8BC3AD;
}
.metric-critical-invalids {
  background: #E8BFB9;
}

.top-metric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
}

.top-metric-label {
  color: var(--gray-text);
  font-size: 11px; /* slight bump for readability */
  font-weight: 700;
  text-transform: uppercase;
  line-height: 15px;
  letter-spacing: 0.8px;
  flex: 1;
}

.top-metric-value {
  color: var(--dark-text);
  font-size: 36px; /* reduced from 48 */
  font-weight: 400;
  line-height: 40px;
  margin-left: 16px;
}

/* Archived Section */
.archived-section {
  margin-bottom: 32px;
}

.dashboard-section-title-new {
  margin-bottom: 16px;
}

.dashboard-section-title-new h3 {
  color: var(--gray-text);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 16.5px;
  letter-spacing: 0.88px;
  margin: 0;
}

/* Archived Statistics */
.archived-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 280px));
  gap: 16px;
}

.archived-large-card {
  background: #B8C5D6;
  box-shadow: var(--shadow-sm);
  border-radius: var(--border-radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 238px;
}

.archived-large-card:hover {
  transform: translateY(-4px);
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
}

.archived-safety-card {
  background: #B8C5D6;
}

.archived-closed-card {
  background: #E8BFB9;
}

.archived-large-label {
  color: var(--gray-text);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 16.5px;
  letter-spacing: 0.88px;
}

.archived-large-value {
  color: var(--dark-text);
  font-size: 64px;
  font-weight: 400;
  line-height: 64px;
  margin-top: auto;
}

/* Additional Metrics */
.additional-metrics-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.additional-metric-bar {
  background: #B8C5D6;
  box-shadow: var(--shadow-sm);
  border-radius: var(--border-radius-md);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 68px;
}

.additional-metric-bar:hover {
  transform: translateY(-2px);
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
}

.metric-duplicate-bar {
  background: #B8C5D6;
}

.metric-invalid-safety-bar {
  background: #E8BFB9;
}

.additional-metric-label {
  color: var(--gray-text);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 15px;
  letter-spacing: 0.8px;
}

.additional-metric-value {
  color: var(--dark-text);
  font-size: 36px;
  font-weight: 400;
  line-height: 36px;
}

/* Full Text Requests */
.dashboard-requests-new {
  margin-bottom: 32px;
}

.requests-header {
  margin-bottom: 16px;
}

.requests-header h3 {
  color: #1E2939;
  font-size: 14px;
  font-weight: 700;
  line-height: 21px;
  margin: 0 0 4px 0;
}

.requests-subtitle {
  color: #99A1AF;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  margin: 0;
}

.requests-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.request-card-new {
  background: #C4CCDA;
  box-shadow: var(--shadow-sm);
  border-radius: var(--border-radius-md);
  border: 1.26px solid rgba(0, 0, 0, 0.05);
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 111px;
}

.request-card-new:hover {
  transform: translateY(-4px);
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
}

.req-total-new {
  background: #C4CCDA;
}

.req-pending-new {
  background: #E8D4B0;
}

.req-approved-new {
  background: #B5D4C5;
}

.req-rejected-new {
  background: #E5C1BC;
}

.request-value-new {
  color: #6A7282;
  font-size: 36px;
  font-weight: 400;
  line-height: 36px;
}

.request-label-new {
  color: rgba(16, 24, 40, 0.70);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 16.5px;
  letter-spacing: 0.88px;
}

.requests-footer {
  text-align: center;
  margin-top: 16px;
}

.requests-footer p {
  color: #99A1AF;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  margin: 0;
}

/* Article Distribution */
.article-distribution-section {
  margin-bottom: 32px;
}

.distribution-header {
  margin-bottom: 16px;
}

.distribution-header h3 {
  color: #1E2939;
  font-size: 14px;
  font-weight: 700;
  line-height: 21px;
  margin: 0 0 4px 0;
}

.distribution-subtitle {
  color: #6A7282;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  margin: 0;
}

.distribution-content {
  display: flex;
  gap: 48px;
  align-items: center;
}

.distribution-chart {
  flex-shrink: 0;
}

.distribution-chart svg {
  display: block;
}

.distribution-legend {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-valid {
  background: #8BC3AD;
}

.legend-duplicate {
  background: #9BACC4;
}

.legend-invalid {
  background: #E5E7EB;
}

.legend-invalid-safety {
  background: #F7A6C2;
}

.legend-safety {
  background: #B8C5D6;
}

.legend-closed {
  background: #F2D7D5;
}

.legend-critical {
  background: #DBB0AA;
}

.legend-text {
  color: #364153;
  font-size: 13px;
  font-weight: 400;
  line-height: 19.5px;
  flex: 1;
}

.legend-value {
  color: var(--dark-text);
  font-size: 20px;
  font-weight: 400;
  line-height: 30px;
  margin-left: auto;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .distribution-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .dashboard-root {
    padding: 20px;
  }

  .dashboard-top-metrics {
    grid-template-columns: 1fr;
  }

  .archived-cards-grid {
    grid-template-columns: 1fr;
  }

  .requests-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .requests-cards-grid {
    grid-template-columns: 1fr;
  }
}/* Auto Reason modal styles */
.rev-lit-autoreason-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.4);
	z-index: 3000;
}

.rev-lit-autoreason-card {
	position: fixed;
	width: 650px;
	max-width: calc(100% - 40px);
	border-radius: 12px;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	background: white;
	box-shadow: 0px 10px 32px rgba(17, 24, 39, 0.15);
	z-index: 3010;
	overflow: hidden;
}

.rev-lit-autoreason-header {
	height: 61.21px;
	padding: 0 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: linear-gradient(180deg, #F0F9FF 0%, #FFFFFF 100%);
	border-bottom: 1.26px solid #E5E7EB;
}

.rev-lit-autoreason-header-left {
	display: flex;
	align-items: center;
	gap: 8px;
}

.rev-lit-autoreason-icon-outer {
	width: 20px;
	height: 20px;
	position: relative;
}

.rev-lit-autoreason-icon-inner {
	width: 16.66px;
	height: 16.66px;
	position: absolute;
	left: 1.67px;
	top: 1.67px;
	outline: 1.67px solid #0288D1;
	outline-offset: -0.83px;
	border-radius: 2px;
}

.rev-lit-autoreason-title {
	font-size: 18px;
	font-family: Arial, Helvetica, sans-serif;
	font-weight: 700;
	color: #1F2937;
	line-height: 27px;
}

.rev-lit-autoreason-header-right {
	display: flex;
	gap: 6px;
	align-items: center;
}

.rev-lit-autoreason-dot {
	width: 20px;
	height: 20px;
	padding: 4px;
	border-radius: 4px;
	box-sizing: border-box;
	outline: 1.67px solid #9CA3AF;
	outline-offset: -0.83px;
}

/* Close button in auto reason header */
.rev-lit-autoreason-close-btn {
	background: transparent;
	border: none;
	padding: 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	cursor: pointer;
}

.rev-lit-autoreason-close-btn svg {
	display: block;
}

.rev-lit-autoreason-close-btn:hover {
	background: rgba(15, 23, 42, 0.04);
}

.rev-lit-autoreason-body {
	padding: 20px 24px;
	background: transparent;
}

.rev-lit-autoreason-body-inner {
	background: #F8FAFB;
	border-radius: 10px;
	padding: 21.26px;
	outline: 1.26px solid #E5E7EB;
	outline-offset: -1.26px;
	color: #374151;
	font-size: 14px;
	line-height: 24px;
}

.rev-lit-autoreason-footer {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	padding: 16px 24px;
	border-top: 1.26px solid #E5E7EB;
	background: #fff;
}

.rev-lit-autoreason-gotit {
	background: #0288D1;
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 8px 20px;
	font-size: 14px;
	font-family: Arial, Helvetica, sans-serif;
	cursor: pointer;
}

.rev-lit-autoreason-gotit:active {
	transform: translateY(1px);
}

/* Action Close button inside Abstract modal (styled like screenshot) */
.rev-lit-autoreason-modal-close-btn {
	background: linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%);
	color: #111827;
	border: 1px solid #CFCFCF;
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 13px;
	font-family: Arial, Helvetica, sans-serif;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(17, 24, 39, 0.08);
	transition: background 0.15s ease, transform 0.08s ease, box-shadow 0.15s ease;
}

.rev-lit-autoreason-modal-close-btn:hover {
	background: linear-gradient(180deg, #F8FBFF 0%, #EEF3FB 100%);
	box-shadow: 0 4px 8px rgba(2, 136, 209, 0.08);
	transform: translateY(-1px);
}

.rev-lit-autoreason-modal-close-btn:active {
	transform: translateY(0);
}

.rev-lit-autoreason-modal-close-btn:focus {
	outline: none;
	box-shadow: 0 0 0 4px rgba(2, 136, 209, 0.12);
	border-color: rgba(2, 136, 209, 0.18);
}

/* Request Full Text modal styles (new) */
.rev-lit-fulltext-card {
	width: 600px;
	max-width: calc(100% - 40px);
	background: white;
	border-radius: 12px;
	box-shadow: 0px 25px 50px -12px rgba(0, 0, 0, 0.25);
	padding: 0;
	overflow: hidden;
	position: fixed;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 3010;
}

.rev-lit-fulltext-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.4);
	z-index: 3000;
}

.rev-lit-fulltext-header {
	padding: 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: linear-gradient(180deg, #F0F9FF 0%, #FFFFFF 100%);
	border-bottom: 1.26px solid #E5E7EB;
}

.rev-lit-fulltext-header-right {
	display: flex;
	align-items: center;
	gap: 8px;
}

.rev-lit-fulltext-title {
	color: #1F2933;
	font-size: 18px;
	font-family: Arial, Helvetica, sans-serif;
	font-weight: 700;
	line-height: 27px;
}

.rev-lit-fulltext-body {
	padding: 0 24px 18px 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.rev-lit-fulltext-row {
	position: relative;
	height: auto;
}

.rev-lit-fulltext-label {
	color: #6B7280;
	font-size: 13px;
	font-family: Arial, Helvetica, sans-serif;
	font-weight: 400;
	line-height: 19.5px;
	margin-top: 10px;
}

.rev-lit-fulltext-value {
	color: #0288D1;
	font-size: 13px;
	font-family: Arial, Helvetica, sans-serif;
	font-weight: 400;
	line-height: 19.5px;
	margin-top: 6px;
}

.rev-lit-fulltext-title-row .rev-lit-fulltext-article-title {
	color: #1F2933;
	font-size: 13px;
	font-family: Arial, Helvetica, sans-serif;
	font-weight: 400;
	line-height: 19.5px;
	margin-top: 6px;
}

.rev-lit-fulltext-textarea-wrap {
	background: white;
	padding: 10px 12px;
	border-radius: 6px;
	outline: 1.26px solid #D1D5DB;
	outline-offset: -1.26px;
}

.rev-lit-fulltext-textarea {
	width: 100%;
	height: 120px;
	border: none;
	resize: vertical;
	font-size: 13px;
	font-family: Arial, Helvetica, sans-serif;
	color: #374151;
	line-height: 19.5px;
	background: transparent;
}

.rev-lit-fulltext-textarea::placeholder {
	color: #9CA3AF;
}

.rev-lit-fulltext-textarea-error {
	color: #D32F2F;
	font-size: 12px;
	margin-top: 8px;
}

.rev-lit-fulltext-footer {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	padding: 16px 24px 24px 24px;
	background: white;
}

.rev-lit-fulltext-cancel {
	background: #6B7280;
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 8px 20px;
	font-size: 13px;
	font-family: Arial, Helvetica, sans-serif;
	cursor: pointer;
}

.rev-lit-fulltext-send {
	background: #0288D1;
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 8px 18px;
	font-size: 13px;
	font-family: Arial, Helvetica, sans-serif;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(2, 136, 209, 0.2);
}

.rev-lit-fulltext-send:hover:not(.disabled):not(:disabled) {
	filter: brightness(0.96);
}

.rev-lit-fulltext-send:active:not(.disabled):not(:disabled) {
	transform: translateY(1px);
}

.rev-lit-fulltext-send.disabled,
.rev-lit-fulltext-send:disabled {
	opacity: 0.5;
	cursor: default;
	box-shadow: none;
}

/* Abstract Modal: center and style like Auto Reason modal */
.rev-lit-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.4);
	z-index: 3000;
}

.rev-lit-modal {
	position: fixed;
	width: 900px;
	max-width: calc(100% - 40px);
	max-height: 90vh;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	background: white;
	border-radius: 12px;
	box-shadow: 0px 10px 32px rgba(17, 24, 39, 0.15);
	z-index: 3010;
	overflow: visible;
	padding: 24px;
	display: flex;
	flex-direction: column;
}

.rev-lit-modal-close {
	position: absolute;
	top: 12px;
	right: 20px;
	color: #9ca3af;
	background: transparent;
	border: none;
	padding: 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	cursor: pointer;
	font-size: 20px;
	line-height: 1;
}

.rev-lit-modal-close:hover {
	background: rgba(15, 23, 42, 0.08);
	transition: background 0.2s ease;
}

.rev-lit-modal-pmid {
	color: #9CA3AF;
	font-size: 12px;
	margin-bottom: 6px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.rev-lit-modal-title {
	font-size: 14px;
	font-weight: 600;
	color: #1f2937;
	margin-bottom: 16px;
	font-family: Arial;
	line-height: 24px;
	word-wrap: break-word;
}

.rev-lit-modal-content-row {
	display: flex;
	gap: 24px;
	align-items: flex-start;
	overflow: hidden;
	flex: 1;
}

.rev-lit-modal-abstract {
	flex: 1;
	max-height: 55vh;
	overflow: auto;
	padding-right: 6px;
	-webkit-overflow-scrolling: touch;
}

.rev-lit-modal-abstract {
	scrollbar-width: thin;
	scrollbar-color: #6B7280;
}

.rev-lit-modal-abstract::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

.rev-lit-modal-abstract::-webkit-scrollbar-track {
	background: rgba(243, 244, 246, 0.8);
	border-radius: 8px;
}

.rev-lit-modal-abstract::-webkit-scrollbar-thumb {
	background: rgba(2, 136, 209, 0.65);
	border-radius: 8px;
	border: 2px solid transparent;
	background-clip: content-box;
}

.rev-lit-modal-abstract::-webkit-scrollbar-thumb:hover {
	background: rgba(2, 136, 209, 0.85);
}

.rev-lit-modal-analysis {
	width: 320px;
	min-width: 220px;
	max-width: 360px;
	max-height: 55vh;
	overflow-y: auto;
	overflow-x: hidden;
	padding-right: 6px;
	scrollbar-width: thin;
	scrollbar-color: #6B7280;
}

.rev-lit-modal-analysis::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

.rev-lit-modal-analysis::-webkit-scrollbar-track {
	background: rgba(243, 244, 246, 0.8);
	border-radius: 8px;
}

.rev-lit-modal-analysis::-webkit-scrollbar-thumb {
	background: rgba(2, 136, 209, 0.65);
	border-radius: 8px;
	border: 2px solid transparent;
	background-clip: content-box;
}

.rev-lit-modal-analysis::-webkit-scrollbar-thumb:hover {
	background: rgba(2, 136, 209, 0.85);
}

.rev-lit-modal-abstract .rev-lit-modal-abstract-section {
	margin-bottom: 12px;
}

.rev-lit-modal-actions {
	display: flex;
	gap: 12px;
	justify-content: flex-end;
	margin-top: 16px;
}

/* Enhanced Abstract content styling - modern design */
.rev-lit-modal-abstract-content {
	line-height: 1.8;
	font-size: 13.5px;
	color: #2D3E50;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-weight: 400;
}

.rev-lit-modal-abstract-section {
	margin-bottom: 14px;
	padding: 10px 12px;
	background: linear-gradient(135deg, #F8FAFB 0%, #F5F9FC 100%);
	border-radius: 7px;
	border-left: 3px solid #0288D1;
	border: 1px solid #E3E8F3;
	border-left: 3px solid #0288D1;
	box-shadow: 0 2px 6px rgba(17, 24, 39, 0.04), inset 0 1px 1px rgba(255, 255, 255, 0.6);
	transition: all 0.2s ease;
}

.rev-lit-modal-abstract-section:hover {
	border-color: #D9E2F0;
	box-shadow: 0 3px 8px rgba(17, 24, 39, 0.06), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.rev-lit-modal-abstract-heading {
	font-weight: 700;
	color: #0288D1;
	text-transform: uppercase;
	font-size: 11px;
	letter-spacing: 0.6px;
	margin-right: 6px;
	opacity: 0.95;
}

/* Enhanced dropdown styling */
.rev-lit-modal-dropdown {
	position: fixed !important;
	background: white;
	border: 1px solid #E5E7EB;
	border-radius: 8px;
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), 0 0 1px rgba(0, 0, 0, 0.1);
	padding: 4px 0;
	min-width: 180px;
	z-index: 3050 !important;
}

.rev-lit-modal-dropdown-title {
	padding: 8px 12px;
	font-size: 12px;
	color: #6B7280;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-bottom: 1px solid #F3F4F6;
}

.rev-lit-modal-dropdown-option {
	padding: 10px 12px;
	font-size: 14px;
	color: #374151;
	cursor: pointer;
	transition: all 0.15s ease;
	border-left: 3px solid transparent;
}

.rev-lit-modal-dropdown-option:hover {
	background: #F0F9FF;
	color: #0288D1;
	border-left-color: #0288D1;
	padding-left: 15px;
}

/* Enhanced analysis section styling */
.rev-lit-modal-analysis-title {
	font-size: 12px;
	font-weight: 500;
	color: #111827;
	margin-bottom: 16px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.rev-lit-modal-analysis-section {
	margin-bottom: 16px;
	/* padding: 12px;
  background: linear-gradient(135deg, #F8FAFB 0%, #F5F9FC 100%);
  border-radius: 7px;
  border: 1px solid #E3E8F3;
  border-left: 3px solid #0288D1;
  box-shadow: 0 2px 6px rgba(17,24,39,0.04), inset 0 1px 1px rgba(255,255,255,0.6);
  transition: all 0.2s ease; */
}

.rev-lit-modal-analysis-label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	margin-bottom: 8px;
	opacity: 0.95;
}

.rev-lit-modal-analysis-label-product {
	color: #00897B;
}

.rev-lit-modal-analysis-label-adverse {
	color: #D32F2F;
}

.rev-lit-modal-analysis-label-patient {
	color: #F57C00;
}

.rev-lit-modal-analysis-label-problem {
	color: #7B1FA2;
}

.rev-lit-modal-analysis-label-history {
	color: #388E3C;
}

.rev-lit-modal-analysis-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

/* Enhanced tag styling */
.rev-lit-modal-tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 6px 10px;
	border-radius: 15px;
	font-size: 11px;
	font-weight: 400;
	background: white;
	border: 1px solid #E5E7EB;
	transition: all 0.2s ease;
	cursor: default;
}

.rev-lit-modal-tag-product {
	background: #E0F2F1;
	border-color: #00897B;
	color: #00897B;
}

.rev-lit-modal-tag-product:hover {
	background: #B2DFDB;
	border-color: #00695C;
}

.rev-lit-modal-tag-adverse {
	background: #FFEBEE;
	border-color: #D32F2F;
	color: #D32F2F;
}

.rev-lit-modal-tag-adverse:hover {
	background: #FFCDD2;
	border-color: #B71C1C;
}

.rev-lit-modal-tag-patient {
	background: #FFF3E0;
	border-color: #F57C00;
	color: #F57C00;
}

.rev-lit-modal-tag-patient:hover {
	background: #FFE0B2;
	border-color: #E65100;
}

.rev-lit-modal-tag-problem {
	background: #F3E5F5;
	border-color: #7B1FA2;
	color: #7B1FA2;
}

.rev-lit-modal-tag-problem:hover {
	background: #E1BEE7;
	border-color: #512DA8;
}

.rev-lit-modal-tag-history {
	background: #E8F5E9;
	border-color: #388E3C;
	color: #388E3C;
}

.rev-lit-modal-tag-history:hover {
	background: #C8E6C9;
	border-color: #1B5E20;
}

.rev-lit-modal-tag-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	cursor: pointer;
	border-radius: 50%;
	transition: all 0.2s ease;
	opacity: 0.7;
}

.rev-lit-modal-tag-remove:hover {
	background: rgba(0, 0, 0, 0.1);
	opacity: 1;
}

/* Enhanced fulltext link styling */
.rev-lit-modal-fulltext-link {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	background: #0288D1;
	color: white;
	text-decoration: none;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 500;
	transition: all 0.2s ease;
	box-shadow: 0 2px 4px rgba(2, 136, 209, 0.2);
}

.rev-lit-modal-fulltext-link:hover {
	background: #0277BD;
	box-shadow: 0 4px 8px rgba(2, 136, 209, 0.3);
	transform: translateY(-1px);
}/* Toolbar Styles */
.rev-lit-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 10px;
  flex-wrap: wrap;
}

.rev-lit-content-wrapper {
  padding: 0 10px 20px 10px;
}

.rev-lit-search-box {
  min-width: 500px;
  padding-left: 40px;
  padding-right: 16px;
  height: 40px;
  border-radius: 8px;
  outline: 1.26px solid #D1D5DB;
  outline-offset: -1.26px;
  background: white;
  color: #9CA3AF;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  overflow: hidden;
  word-wrap: break-word;
  border: none;
  transition: all 0.15s ease;
}

.rev-lit-search-box:focus {
  outline-color: #1976d2;
  outline-offset: -1.26px;
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.08);
}

.rev-lit-search-box::placeholder {
  color: #9CA3AF;
  opacity: 1;
}

/* Toolbar Right Section */
.rev-lit-toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

/* Filter Button (circular blue) */
.rev-lit-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #0288D1;
  color: white;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  position: relative;
  box-shadow: 0px 2px 4px -2px rgba(0, 0, 0, 0.10), 0px 4px 6px -1px rgba(0, 0, 0, 0.10);
}

.rev-lit-filter-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0px 6px 10px -4px rgba(0, 0, 0, 0.12), 0px 8px 14px -6px rgba(0, 0, 0, 0.10);
}

.rev-lit-filter-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: #ff6b6b;
  border-radius: 50%;
}

/* Source Wrapper */
.rev-lit-source-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rev-lit-source-label {
  font-size: 13px;
  font-weight: 500;
  color: #666;
  white-space: nowrap;
}

.rev-lit-source-select {
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: white;
  color: #333;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 100px;
}

.rev-lit-source-select:hover {
  border-color: #999;
}

.rev-lit-source-select:focus {
  outline: none;
  border-color: #1976d2;
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

/* Export Wrapper */
.rev-lit-export-wrapper {
  position: relative;
}

.rev-lit-export-btn-primary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px 10px 16px;
  background: #0288D1;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 400;
  font-family: Arial, sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0px 2px 4px -2px rgba(0, 0, 0, 0.10), 0px 4px 6px -1px rgba(0, 0, 0, 0.10);
}

.rev-lit-export-btn-primary:hover:not(:disabled) {
  background: #1565c0;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
}

.rev-lit-export-btn-primary:active:not(:disabled) {
  background: #0d47a1;
}

.rev-lit-export-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.rev-lit-export-menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  min-width: 150px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  margin-top: 4px;
}

.rev-lit-export-menu-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  text-align: left;
  border: none;
  background: none;
  color: #333;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: inherit;
}

.rev-lit-export-menu-item:first-child {
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.rev-lit-export-menu-item:last-child {
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}

.rev-lit-export-menu-item:hover:not(:disabled) {
  background: #f5f5f5;
}

.rev-lit-export-menu-item:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.rev-lit-export-error-message {
  padding: 10px 14px;
  background: #ffebee;
  color: #c62828;
  border-radius: 4px;
  font-size: 13px;
  margin-top: 8px;
  width: 100%;
}

.rev-lit-summary-row-margin {
  margin: 20px 0;
}

/* Summary Row */
.rev-lit-summary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 10px;
  align-items: flex-start;
}

/* Summary Cards */
.rev-lit-summary-card {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  padding: 18px 20px;
  border-radius: 14px;
  min-width: 180px;
  flex: 0 1 auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.rev-lit-summary-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(2, 6, 23, 0.12);
}

/* Blue Cards */
.rev-lit-card-blue {
  background: linear-gradient(135deg, #A8B8CE 0%, #9BACC4 100%);
}

/* Green Cards (Valid) */
.rev-lit-card-valid {
  background: linear-gradient(135deg, #9BCDB7 0%, #8BC3AD 100%);
}

/* Red Cards (Invalid) */
.rev-lit-card-invalid {
  background: linear-gradient(135deg, #FCDBD8 0%, #FAD0CC 100%);
}

/* Small Card Styling */
.rev-lit-summary-card-small {
  padding: 18px 22px;
}

/* Card Label */
.rev-lit-summary-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #6b7280;
  line-height: 16px;
  word-wrap: break-word;
  letter-spacing: 0.2px;
  margin-bottom: 8px;
  text-align: left;
}

/* Card Count */
.rev-lit-summary-count {
  font-size: 34px;
  font-weight: 400;
  line-height: 40px;
  color: #111827;
  word-wrap: break-word;
  text-align: left;
}

.rev-lit-div-table {
  /* dynamic column widths using flexible sizing */
  position: relative;
  --col-id: 90px;
  --col-product: 120px;
  --col-country: 90px;
  --col-fetched: 100px;
  --col-search-period: 130px;
  --col-auto-val: 100px;
  --col-title: 1fr;
  --col-abstract: 1fr;
  --col-auto-reason: 1fr;
  --col-full-text: 140px;
  --col-decision: 140px;
}

/* Header Row Styling */
.rev-lit-div-header {
  display: grid;
  background: #0288D1;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom: 3px solid #0277bd;
  position: sticky;
  top: 0;
  z-index: 20;
  gap: 0;
  box-shadow: 0 2px 4px rgba(2, 136, 209, 0.06);
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  overflow: hidden;
}

.rev-lit-div-header .rev-lit-div-cell {
  padding: 12px 10px;
  text-align: center;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 11px;
  line-height: 19.50px;
  letter-spacing: 0.50px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

/* Row Styling */
.rev-lit-div-row {
  display: grid;
  border-bottom: 1px solid #E5E7EB;
  background: white;
  transition: background-color 0.15s ease;
}

.rev-lit-div-row:hover {
  background: #F9FAFB;
}

/* Highlight rows that have a requested full-text */
.rev-lit-div-row-requested {
  background: linear-gradient(90deg, #FFFDE6 0%, #FFF8D6 100%);
  border-left: 4px solid #FFD54F;
}

.rev-lit-div-row-requested:hover {
  background: linear-gradient(90deg, #FFF9D1 0%, #FFF2B8 100%);
}

.rev-lit-div-row .rev-lit-div-cell {
  padding: 12px;
  display: flex;
  font-size: 13px;
  font-family: 'Arial';
  color: #1f2933;
  font-weight: 400;
  line-height: 19.50px;
  word-break: break-word;
  overflow: hidden;
  border-right: 1px solid #E5E7EB;
}

.rev-lit-div-row .rev-lit-div-cell:last-child {
  border-right: none;
}

/* Badge Styling for Auto Validation and Decisions */
.rev-lit-div-cell-bold {
  font-weight: 500;
}

.rev-lit-div-cell-valid {
  color: #065f46;
}

.rev-lit-div-cell-invalid {
  color: #7f1d1d;
}

/* 'View more' small link for Abstract / Auto Reason */
.rev-lit-search-td-more {
  color: #0288D1;
  font-weight: 400;
  text-align: right;
  line-height: 19.50px;
  font-size: 12px;
  margin-left: 0;
  margin-top: 6px;
}

.rev-lit-search-td-more:hover {
  text-decoration: underline;
}

/* Stack truncated text and the 'View more' link vertically for specific cells */
.rev-lit-div-cell-abstract,
.rev-lit-div-cell-auto-reason {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  /* push the 'View more' link to the bottom of the cell */
  justify-content: space-between;
  /* allow the cell to grow a bit so the bottom-aligned link has room */
  min-height: 48px;
}

/* Full Text Link Button Styling */
.rev-lit-search-fulltext-request {
  background: #0288D1;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.rev-lit-search-fulltext-request:hover {
  background: #0277bd;
  box-shadow: 0 2px 6px rgba(2, 136, 209, 0.3);
}

.rev-lit-search-fulltext-request:active {
  background: #01579b;
}

.rev-lit-search-fulltext-request:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* View PDF Link Button */
.rev-lit-search-pdf-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1e88e5;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.rev-lit-search-pdf-link:hover {
  background: #1976d2;
  box-shadow: 0 2px 6px rgba(30, 136, 229, 0.3);
  text-decoration: none;
  color: white;
}

.rev-lit-search-pdf-link:active {
  background: #1565c0;
}

/* View Article Link Button */
.rev-lit-search-fulltext-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #00897b;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.rev-lit-search-fulltext-link:hover {
  background: #00695c;
  box-shadow: 0 2px 6px rgba(0, 137, 123, 0.3);
  text-decoration: none;
  color: white;
}

.rev-lit-search-fulltext-link:active {
  background: #004d40;
}

/* Validation Status Badges */
.rev-lit-search-validation-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 40px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  white-space: normal;
  text-align: center;
  background: #ffcdd2;
  color: #c62828;
  padding: 4px;
  box-sizing: border-box;
}

.rev-lit-search-validation-status-valid {
  background: #c8e6c9;
  color: #1b5e20;
}

.rev-lit-search-validation-status-invalid {
  background: #ffcdd2;
  color: #c62828;
}

.rev-lit-search-fulltext-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.rev-lit-search-fulltext-approved {
  background: #D4EDDA;
  color: #155724;
}

.rev-lit-search-fulltext-rejected {
  background: #F8D7DA;
  color: #721c24;
}

.rev-lit-search-fulltext-requested {
  background: #FFF3CD;
  color: #856404;
}

/* Decision Select (Manual Validation) - Small, Enhanced Styling */
/* Decision Select (Manual Validation) - Transparent background with down arrow */
.rev-lit-decision-select {
  padding: 5px 6px;
  border-radius: 6px;
  order: 1.5px solid #ddd;
  font-weight: 600;
  font-size: 12px;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 120px;
  height: 30px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: white;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-size: 12px 8px;
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 28px;
  box-shadow: none;
}

.rev-lit-decision-select:hover:not(:disabled) {
  border-color: #999;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rev-lit-decision-select:focus {
  outline: none;
  border-color: #0288D1;
  box-shadow: 0 0 0 2px rgba(2, 136, 209, 0.1);
}

.rev-lit-decision-valid {
  color: #165c33;
  border-color: #4caf50;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23165c33' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

.rev-lit-decision-invalid {
  color: #7f1d1d;
  border-color: #f44336;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%237f1d1d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

.rev-lit-decision-select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 1400px) {
  .rev-lit-summary-row {
    gap: 14px;
  }

  .rev-lit-summary-card {
    padding: 16px 18px;
    min-width: 150px;
  }

  .rev-lit-summary-count {
    font-size: 32px;
  }
}

@media (max-width: 1024px) {
  .rev-lit-summary-row {
    gap: 12px;
  }

  .rev-lit-summary-card {
    padding: 14px 16px;
    min-width: 140px;
  }

  .rev-lit-summary-label {
    margin-bottom: 6px;
    font-size: 11px;
  }

  .rev-lit-summary-count {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  .rev-lit-summary-row {
    gap: 10px;
  }

  .rev-lit-summary-card {
    padding: 12px 14px;
    min-width: 140px;
    flex: 1 1 calc(50% - 5px);
  }

  .rev-lit-summary-label {
    font-size: 10px;
    margin-bottom: 6px;
    letter-spacing: 0.4px;
  }

  .rev-lit-summary-count {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .rev-lit-summary-row {
    gap: 8px;
  }

  .rev-lit-summary-card {
    padding: 12px 14px;
    min-width: 100%;
    flex: 1 1 100%;
  }

  .rev-lit-summary-label {
    font-size: 10px;
    margin-right: 8px;
  }

  .rev-lit-summary-count {
    font-size: 24px;
  }
}

/* Actions Box */
.rev-lit-actions-box {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

/* Generic filter button fallback (text) */
.rev-lit-filter-btn-text {
  padding: 8px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: white;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rev-lit-filter-btn-text:hover {
  border-color: #999;
  background: #f9f9f9;
}

/* Export Button */
.rev-lit-export-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  background: #4A90E2;
  color: white;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rev-lit-export-btn:hover {
  background: #357ABD;
}

.rev-lit-export-btn:active {
  background: #2E5FA3;
}

/* Dropdown Styles */
.rev-lit-dropdown {
  position: relative;
  display: inline-block;
}

/* Sidebar Filter Panel */
.rev-lit-sidebar-filter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1500;
}

.rev-lit-sidebar-filter {
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh;
  width: 380px;
  background: #ffffff;
  z-index: 1600;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0px 24px rgba(17, 24, 39, 0.12);
  transform: translateX(100%);
  transition: transform 220ms cubic-bezier(.2, .9, .3, 1);
}

.rev-lit-sidebar-filter.open {
  transform: translateX(0);
}

.rev-lit-sidebar-filter-header {
  height: 61px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.26px solid #E5E7EB;
  color: #1F2937;
  font-size: 18px;
  font-weight: 700;
}

.rev-lit-sidebar-filter-close {
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: #374151;
}

.rev-lit-filter-fields {
  flex: 1 1 auto;
  padding: 20px 24px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.rev-lit-filter-fields label {
  display: block;
  font-size: 13px;
  color: #374151;
  font-weight: 400;
}

.rev-lit-filter-input {
  width: 100%;
  height: 40px;
  padding: 4px 12px;
  background: #F3F3F5;
  border-radius: 8px;
  outline: 1.26px solid #D1D5DB;
  outline-offset: -1.26px;
  border: none;
  color: #717182;
  font-size: 14px;
  box-sizing: border-box;
}

.rev-lit-filter-input[type="date"] {
  background: #F3F3F5;
}

.rev-lit-multiselect-dropdown .rev-lit-multiselect-btn {
  width: 100%;
  height: 36px;
  padding: 6px 12px;
  background: #F3F3F5;
  border-radius: 8px;
  outline: 1.26px solid #D1D5DB;
  outline-offset: -1.26px;
  border: none;
  text-align: left;
}

/* Multiselect options panel: show 5 items high with scroll */
.rev-lit-multiselect-dropdown {
  position: relative;
}

.rev-lit-multiselect-options {
  position: absolute;
  left: 0;
  right: 0;
  margin-top: 8px;
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.08);
  z-index: 1700;
  padding: 6px 0;
  /* show 5 items (approx. 36-40px per item) then scroll */
  max-height: 200px;
  /* ~5 items */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.rev-lit-multiselect-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
}

.rev-lit-multiselect-options label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.rev-lit-multiselect-options label:hover {
  background: #F8FAFC;
}

.rev-lit-multiselect-options::-webkit-scrollbar {
  width: 8px;
}

.rev-lit-multiselect-options::-webkit-scrollbar-thumb {
  background: rgba(16, 24, 40, 0.12);
  border-radius: 8px;
}

.rev-lit-filter-actions {
  padding: 16px 24px;
  border-top: 1px solid transparent;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.rev-lit-filter-clear {
  background: white;
  border: 1px solid #D1D5DB;
  color: #374151;
  padding: 8px 20px;
  border-radius: 8px;
  cursor: pointer;
}

.rev-lit-filter-apply {
  background: #0288D1;
  color: white;
  padding: 8px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

/* Pagination styles (matches provided inline mockup) */
.rev-lit-pagination-controls {
  width: 100%;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: white;
  border-top: 1.26px solid #E5E7EB;
  box-sizing: border-box;
}

.rev-lit-pagination-info {
  color: #6B7280;
  font-size: 13px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  line-height: 19.5px;
}

.rev-lit-pagination-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rev-lit-page-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1.26px solid #D1D5DB;
  outline-offset: -1.26px;
  cursor: pointer;
  font-size: 13px;
  color: #111827;
}

.rev-lit-page-btn.rev-lit-page-icon {
  opacity: 0.9;
}

.rev-lit-page-number {
  min-width: 32px;
  padding: 0 8px;
}

.rev-lit-page-number.active {
  background: #0288D1;
  color: white;
  border: none;
}

.rev-lit-page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.rev-lit-perpage-select-wrapper {
  margin-left: 8px;
  background: #F3F3F5;
  border-radius: 8px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  outline: 1.26px solid #D1D5DB;
  outline-offset: -1.26px;
  position: relative;
}

.rev-lit-perpage-select-wrapper .rev-lit-pagination-select {
  background: transparent;
  border: none;
  font-size: 13px;
  color: #0A0A0A;
  padding: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Polished per-page select: custom chevron, spacing, and focus ring */
.rev-lit-perpage-select-wrapper .rev-lit-pagination-select {
  padding-right: 20px;
  /* room for chevron */
  cursor: pointer;
}

.rev-lit-perpage-select-wrapper .rev-lit-pagination-select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%23717182' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 12px 12px;
}

.rev-lit-perpage-select-wrapper:focus-within {
  box-shadow: 0 0 0 4px rgba(2, 136, 209, 0.08);
  outline-color: #1976d2;
}

.rev-lit-perpage-select-wrapper .rev-lit-pagination-select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Small responsive tweaks */
@media (max-width: 480px) {
  .rev-lit-pagination-info {
    font-size: 12px;
  }

  .rev-lit-page-btn {
    width: 28px;
    height: 28px;
  }

  .rev-lit-perpage-select-wrapper {
    padding: 6px 8px;
  }
}

/* Centered loading animation and messaging */
.rev-lit-loading-animated {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 1200;
  pointer-events: none;
}

.rev-lit-spinner-modern {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  box-sizing: border-box;
  border: 6px solid rgba(0, 0, 0, 0.08);
  border-top-color: #0288D1;
  /* export button blue to match UI */
  animation: rev-lit-spin 1s linear infinite;
  box-shadow: 0 6px 18px rgba(2, 136, 209, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.01));
}

@keyframes rev-lit-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.rev-lit-loading-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: #263238;
  font-weight: 600;
  pointer-events: none;
}

.rev-lit-loading-dots {
  display: inline-block;
  width: 28px;
  text-align: left;
}

.rev-lit-loading-dots::after {
  content: '...';
  display: inline-block;
  animation: rev-lit-dots 1s steps(4, end) infinite;
  color: #0288D1;
  margin-left: 4px;
}

@keyframes rev-lit-dots {
  0% {
    content: '';
  }

  25% {
    content: '.';
  }

  50% {
    content: '..';
  }

  75% {
    content: '...';
  }

  100% {
    content: '';
  }
}

.rev-lit-loading-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #eaf6ff;
  /* light blue hint */
  color: #1b4f72;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: 0 2px 6px rgba(2, 136, 209, 0.06);
  pointer-events: none;
}

.rev-lit-loading-tip-icon {
  font-size: 18px;
}

/* Ensure loading overlay doesn't break layout on smaller containers */
.rev-lit-content-wrapper {
  position: relative;
}

/* When rendering loader below header, position accordingly */
.rev-lit-loading-below-header {
  position: absolute;
  left: 50%;
  /* keep horizontally centered, but move slightly lower so it doesn't overlap the table header */
  transform: translate(-50%, 0);
  top: 110px;
  /* moved down from 72px to 110px */
  /* ensure the sticky header stays visually above the loader */
  z-index: 10;
  pointer-events: none;
}

/* Duplicate pill displayed under the Article ID */
.rev-lit-div-cell-id {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.rev-lit-search-duplicate-pill {
  display: inline-block;
  margin-top: 6px;
  background: #FFF7E6;
  /* pale yellow */
  color: #8a6d0a;
  border: 1px solid #FFD27A;
  border-radius: 999px;
  padding: 4px 4px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
  white-space: nowrap;
}

.rev-lit-search-duplicate-pill::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #ff9f1c;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

/* No-articles empty state centered within the table */
.rev-lit-no-articles-center {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 16px;
  box-sizing: border-box;
  color: #374151;
}

.rev-lit-no-articles-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px auto;
}

.rev-lit-no-articles-text {
  font-size: 16px;
  font-weight: 500;
  color: #1F2937;
  margin-bottom: 6px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.rev-lit-no-articles-subtext {
  font-size: 12px;
  color: #6B7280;
  margin-bottom: 12px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.rev-lit-no-articles-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  background: #0288D1;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(2, 136, 209, 0.12);
}

.rev-lit-no-articles-action:hover {
  background: #1976d2;
}

.rev-lit-no-articles-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  max-width: 420px;
}

/* Ensure header stays visible above centered empty state */
.rev-lit-div-header {
  z-index: 20;
}

/* make the empty state visually distinct inside the table area */
.rev-lit-no-articles-center {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 16px;
  box-sizing: border-box;
  color: #374151;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.6) 0%, rgba(255, 255, 255, 0) 100%);
  border-bottom: 1px solid #F1F5F9;
}

/* Toast notifications positioned bottom-right */
.rev-lit-toast-container {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  z-index: 2200;
  pointer-events: none;
}

.rev-lit-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  color: #0B1220;
  padding: 10px 14px;
  border-radius: 10px;
  min-width: 220px;
  box-shadow: 0 10px 30px rgba(2,6,23,0.12);
  border-left: 4px solid transparent;
  animation: rev-lit-toast-slide-up 320ms cubic-bezier(.2,.9,.3,1);
}

.rev-lit-toast-success {
  border-left-color: #145A2A;
  background: linear-gradient(90deg, #145A2A 0%, #0B3D1A 100%);
  color: #FFFFFF;
  box-shadow: 0 10px 30px rgba(6, 95, 70, 0.18);
}

.rev-lit-toast-error {
  border-left-color: #7f1d1d;
  background: linear-gradient(90deg, #A82828 0%, #7F1D1D 100%);
  color: #FFFFFF;
  box-shadow: 0 10px 30px rgba(140, 20, 20, 0.18);
}

.rev-lit-toast-icon {
  font-size: 18px;
  flex: 0 0 auto;
}

.rev-lit-toast-message {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: inherit;
}

.rev-lit-toast-close {
  margin-left: 8px;
  background: transparent;
  border: none;
  color: inherit;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
}

@keyframes rev-lit-toast-slide-up {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}/* Styles for workflow action buttons shown below the Initial Assessment */
.rev-litsearch-panel-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end; /* right-align buttons */
    width: 100%;
    margin-top: 16px; /* space from assessment */
    padding-top: 10px;
}

.rev-litsearch-panel-action-btn {
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 13px;
    line-height: 1;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 140ms ease, box-shadow 140ms ease, opacity 120ms ease;
}

/* Primary: Move to Next Level (blue) */
.rev-litsearch-panel-action-next {
    background: #0288d1;
    color: #ffffff;
    box-shadow: 0 10px 28px rgba(2,136,209,0.12);
}
.rev-litsearch-panel-action-next:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(2,136,209,0.18);
}

/* Safety: amber/orange */
.rev-litsearch-panel-action-safety {
    background: #fb923c; /* orange */
    color: #fff;
    box-shadow: 0 8px 22px rgba(251,146,60,0.10);
}
.rev-litsearch-panel-action-safety:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(251,146,60,0.14);
}

/* Close: pink */
.rev-litsearch-panel-action-close {
    background: #ec4899; /* pink */
    color: #fff;
    box-shadow: 0 8px 22px rgba(236,72,153,0.10);
}
.rev-litsearch-panel-action-close:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(236,72,153,0.14);
}

.rev-litsearch-panel-action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Responsive: center actions on small screens and wrap if needed */
@media (max-width: 720px) {
    .rev-litsearch-panel-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .rev-litsearch-panel-action-btn {
        flex: 0 0 auto;
        margin-bottom: 6px;
    }
}

/* User selection modal styles */
.rev-user-selection-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1400;
    padding: 20px;
    animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.rev-user-selection-modal {
    width: 520px;
    max-width: 92%;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 18px 36px -10px rgba(0,0,0,0.22), 0 0 0 1px rgba(255,255,255,0.04);
    border: 1px solid rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    transform: scale(0.97);
    animation: modalScaleIn 0.18s ease-out forwards;
}

@keyframes modalScaleIn {
    to { transform: scale(1); }
}

.rev-user-selection-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    background: linear-gradient(135deg, #fbfcfe 0%, #f7f9fb 100%);
}

.rev-user-selection-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.rev-user-selection-modal-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 0;
    background: #ef4444;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 140ms ease, box-shadow 140ms ease;
    box-shadow: 0 2px 6px rgba(239,68,68,0.16);
}

.rev-user-selection-modal-close:hover {
    background: #dc2626;
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 6px 12px rgba(239,68,68,0.22);
}

.rev-user-selection-modal-body {
    padding: 12px 16px;
    max-height: 50vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.18) transparent;
}

/* Centered loading state inside modal */
.rev-user-selection-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 12px;
    min-height: 160px;
    color: #1f2937;
}

.rev-user-loading-spinner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 4px solid rgba(2,132,199,0.12);
    border-top-color: #0284c7;
    animation: rev-spin 900ms linear infinite;
    box-shadow: 0 8px 20px rgba(2,132,199,0.08);
    margin-bottom: 12px;
}

.rev-user-loading-text {
    font-size: 14px;
    color: #475569;
    font-weight: 600;
    opacity: 0.95;
}

@keyframes rev-spin {
    to { transform: rotate(360deg); }
}

.rev-user-selection-modal-body::-webkit-scrollbar {
    width: 6px;
}

.rev-user-selection-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.rev-user-selection-modal-body::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 3px;
}

.rev-user-selection-level-info {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px 10px;
    background: #fbfdff;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.04);
}

.rev-user-selection-level-label {
    color: #64748b;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rev-user-selection-level-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

.rev-user-selection-warning-banner {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    color: #92400e;
    padding: 12px 16px;
    border-radius: 10px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(245,158,11,0.1);
}

.rev-user-selection-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rev-user-selection-list-header {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

/* Enhanced search box */
.rev-user-selection-search {
    position: relative;
    margin-bottom: 10px;
}

.rev-user-selection-search-input {
    width: 100%;
    padding: 8px 36px 8px 38px; /* room for icons */
    border: 1px solid #e6eef6;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: inset 0 1px 2px rgba(16,24,40,0.03);
    font-size: 13px;
    color: #0f1724;
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 120ms ease;
    box-sizing: border-box;
}

.rev-user-selection-search-input::placeholder {
    color: #94a3b8;
}

.rev-user-selection-search-input:focus {
    outline: none;
    border-color: #0284c7;
    box-shadow: 0 8px 20px rgba(2,132,199,0.10);
}

/* search icon inside the input */
.rev-user-selection-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 14px;
    color: #94a3b8;
}

/* small clear button (JS can hook to hide/show) */
.rev-user-selection-search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 0;
    background: transparent;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 120ms ease, transform 120ms ease;
}

.rev-user-selection-search-clear:hover { background: rgba(15,23,36,0.04); transform: scale(1.02) }

.rev-user-selection-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.06);
    cursor: pointer;
    transition: background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
    background: #ffffff;
}

.rev-user-selection-item:hover {
    background: #f6fbff;
    border-color: rgba(2,136,209,0.14);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(2,132,199,0.06);
}

.rev-user-selection-item.selected {
    background: linear-gradient(180deg, #e6f6ff 0%, #cfeefb 100%);
    border-color: #0284c7;
    box-shadow: 0 6px 18px rgba(2,132,199,0.12);
}

.rev-user-selection-item.not-eligible {
    opacity: 0.6;
    cursor: not-allowed;
}

.rev-user-selection-radio input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #0284c7;
    cursor: pointer;
}

.rev-user-selection-user-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.rev-user-selection-user-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
    line-height: 1.2;
}

.rev-user-selection-user-email {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.rev-user-selection-status {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 6px;
    text-align: center;
    min-width: 68px;
}

.rev-user-status-eligible {
    color: #166534;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
}

.rev-user-status-not-eligible {
    color: #9a3412;
    background: #fef3c7;
    border: 1px solid #fde68a;
}

.rev-user-status-auto {
    color: #0c4a6e;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
}

.rev-user-selection-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    color: #64748b;
    font-weight: 600;
    font-size: 12px;
    position: relative;
}

.rev-user-selection-divider::before,
.rev-user-selection-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(0,0,0,0.1);
}

.rev-user-selection-divider::before {
    margin-right: 12px;
}

.rev-user-selection-divider::after {
    margin-left: 12px;
}

.rev-user-selection-modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 10px 14px;
    border-top: 1px solid rgba(0,0,0,0.06);
    background: #fafcff;
}

.rev-user-selection-btn-cancel {
    background: #ffffff;
    border: 1px solid #d1d5db;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    color: #374151;
    transition: background 120ms ease, transform 120ms ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.rev-user-selection-btn-cancel:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #9ca3af;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.rev-user-selection-btn-confirm {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 8px;
    border: 0;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    transition: transform 120ms ease, box-shadow 120ms ease;
    box-shadow: 0 6px 14px rgba(2,132,199,0.18);
}

.rev-user-selection-btn-confirm:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(2,132,199,0.3);
}

.rev-user-selection-btn-confirm:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@media (max-width: 720px) {
    .rev-user-selection-modal {
        width: 100%;
        max-width: 520px;
        border-radius: 10px;
        margin: 10px;
    }

    .rev-user-selection-modal-header,
    .rev-user-selection-modal-body,
    .rev-user-selection-modal-footer {
        padding-left: 14px;
        padding-right: 14px;
    }

    .rev-user-selection-modal-body {
        max-height: 72vh;
    }
}
/* ArticleExpandedPanel styles - expanded row layout for View Articles role */
:root {
    --muted: #6B7280;
    --border: #E5E7EB;
    --panel-bg: #fff;
    --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    --accent: #0288D1;
    --success-bg: #E8F5E9;
    --success-fg: #2E7D32;
    --prep-bg: #E3F2FD;
}

.rev-lit-expanded-panel-container {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    min-height: 280px;
    background: #CDE4FF;
    /* outer highlight */
}

.rev-lit-panel {
    background: var(--panel-bg);
    border-radius: 6px;
    border: 1.26px solid var(--border);
    box-shadow: var(--card-shadow);
    position: relative;
    padding: 14px;
    min-height: 280px;
}

.rev-lit-panel-requested {
    opacity: 0.95
}

.rev-lit-panel-close {
    position: absolute;
    right: 12px;
    top: 12px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0; /* use SVG inside */
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, opacity 160ms ease;
    /* hidden by default, show on hover/focus */
    opacity: 0;
    transform: translateY(-6px) scale(0.96);
    pointer-events: none;
}

.rev-lit-panel-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    background: #f8fafc;
}

/* Reveal the collapse control when user hovers the panel or focuses inside it */
.rev-lit-panel:hover .rev-lit-panel-close,
.rev-lit-panel:focus-within .rev-lit-panel-close,
.rev-lit-panel-close:focus {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Touch devices: always show the control so users can tap it */
@media (hover: none) {
    .rev-lit-panel-close {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }
}

.rev-lit-panel-close:focus {
    outline: 3px solid rgba(2,136,209,0.12);
    outline-offset: 2px;
}

.rev-lit-panel-content {
    display: block
}

.rev-lit-panel-top-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px
}

.rev-lit-panel-history-stage {
    display: flex;
    align-items: center;
    gap: 12px
}

/* Validation history pills and arrows (match shared mock) */
.rev-lit-panel-history-levels {
    display: inline-flex;
    align-items: center;
}

.rev-lit-panel-history-levels > div {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 1px 0 rgba(0,0,0,0.03);
    font-weight: 700;
    font-size: 12px;
    /* color: #374151; */
    min-height: 28px;
    line-height: 1;
}

.rev-litsearch-workflow-current {
    font-weight: 700;
}

/* Current pill variants: normal (dark blue) and archived (amber) */
.rev-litsearch-workflow-current-normal {
    background: #053A6B; /* dark blue */
    color: #ffffff;
    border-color: transparent;
    box-shadow: none;
}

.rev-litsearch-workflow-current-archived {
    background: #FFB020; /* amber */
    color: #1F2933; /* dark text for contrast */
    border-color: transparent;
    box-shadow: none;
}

/* Make the current-state variants more specific so they override the generic > div rule */
.rev-lit-panel-history-levels > div.rev-litsearch-workflow-current-normal {
    background: #053A6B;
    color: #ffffff;
    border-color: transparent;
    box-shadow: none;
}

.rev-lit-panel-history-levels > div.rev-litsearch-workflow-current-archived {
    background: #FFB020;
    color: #1F2933;
    border-color: transparent;
    box-shadow: none;
}

.rev-litsearch-workflow-arrow,
.rev-litsearch-workflow-arrow-archive {
    margin: 0 6px;
    color: #9CA3AF;
    font-weight: 700;
}

.rev-lit-panel-history-title {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700
}

.rev-litsearch-workflow-no-defined {
    color: var(--muted);
    font-style: italic
}

.rev-litsearch-workflow-current {
    font-weight: 700;
}

.rev-litsearch-workflow-arrow,
.rev-litsearch-workflow-arrow-archive {
    margin: 0 8px;
    color: #9CA3AF
}

.rev-litsearch-workflow-archived {
    color: #6B7280;
}

.rev-litsearch-role-tooltip {
    pointer-events: none
}

.rev-lit-panel-meta-row {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-right: 30px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(2,136,209,0.03);
}

.rev-lit-panel-meta-item {
    background: var(--panel-bg);
    padding: 12px 14px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(2,136,209,0.04), var(--card-shadow);
    border: 1px solid rgba(224,229,233,0.9);
    min-width: 140px;
    min-height: 60px;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    position: relative;
}

.rev-lit-panel-meta-label {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.rev-lit-panel-meta-value {
    color: #0F1724;
    font-size: 12px;
    font-weight: 500;
}

/* place the edit button inside the meta card */
.rev-lit-panel-meta-item .rev-lit-edit-country-btn {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: background 120ms ease, transform 120ms ease;
}

.rev-lit-panel-meta-item .rev-lit-edit-country-btn:hover {
    background: rgba(2,136,209,0.06);
    transform: translateY(-2px);
}

.rev-lit-edit-country-btn {
    background: transparent;
    border: 0;
    padding: 4px;
    margin-left: 8px;
    cursor: pointer
}

.rev-litsearch-panel-history-box {
    flex: 1
}

/* Uniform fixed-size analysis cards with inner scroll */
.rev-litsearch-panel-analysis-box {
    width: 320px;
    height: 200px;
    flex: 0 0 320px;
    background: var(--panel-bg);
    border-radius: 6px;
    padding: 0; /* move inner padding to body */
    border: 1.26px solid var(--border);
    box-shadow: var(--card-shadow);
    box-sizing: border-box;
    overflow: hidden; /* prevent content escaping; body will scroll */
}

/* Layout modes - horizontal for view-only, grid for reviewers (2x2) */
.rev-litsearch-panel-analysis-row-horizontal {
    display: flex;
    gap: 24px;
    flex-wrap: nowrap;
    align-items: flex-start;
    overflow-x: auto;
    padding-bottom: 6px;
}

.rev-litsearch-panel-analysis-grid {
    display: grid;
    /* narrower fixed column width for reviewer grid to keep cards compact */
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    align-items: start;
    width: 100%;
    justify-content: start; /* align grid items to left so fixed-width columns don't stretch */
}

.rev-litsearch-panel-analysis-grid .rev-litsearch-panel-analysis-box {
    width: 100%;
    height: 220px;
    flex: none;
    /* overflow: auto; */
    max-width: 410px;
}
/* thin scrollbar styling for boxes and row */
.rev-litsearch-panel-analysis-box::-webkit-scrollbar,
.rev-litsearch-panel-analysis-row::-webkit-scrollbar {
    height: 8px;
    width: 8px
}

.rev-litsearch-panel-analysis-box::-webkit-scrollbar-thumb,
.rev-litsearch-panel-analysis-row::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 6px
}

.rev-litsearch-panel-analysis-box::-webkit-scrollbar-track {
    background: transparent
}

/* Skipped level styling */
.rev-litsearch-panel-analysis-skipped {
    background: #f3f4f6;
    border-left: 4px solid #d97706;
    opacity: 0.85;
}

.rev-litsearch-skip-badge {
    display: inline-block;
    background: #d97706;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 8px;
    letter-spacing: 0.5px;
    line-height: 14px;
    height: fit-content;
}

.rev-litsearch-panel-analysis-label {
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 6px;
    font-size: 13px;
    display: flex;
    align-items: center;
    background: #E8EAF6;
    padding: 6px 10px;
    box-sizing: border-box;
    border-bottom: 1px solid var(--border);
}

.rev-litsearch-panel-analysis-body {
    padding: 8px 10px 12px 10px; /* internal padding for content */
    overflow: auto;
    max-height: calc(100% - 56px); /* leave room for the header */
}
.rev-litsearch-role-token {
    color: var(--accent);
    font-weight: 700;
    background: transparent;
    padding: 0 4px
}

.rev-litsearch-role-name {
    color: #1F2933;
    font-weight: 700;
    font-size: 13px
}

.rev-litsearch-panel-analysis-subtitle {
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 8px
}

.rev-litsearch-panel-history-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    margin: 8px 0 0 0;
    font-size: 11px
}

.rev-litsearch-panel-history-status-valid {
    background: var(--success-bg);
    color: var(--success-fg);
    font-weight: 600
}

.rev-litsearch-panel-history-status-invalid {
    background: #FFEBEE;
    color: #B00020;
    font-weight: 600
}

.rev-litsearch-panel-analysis-prep {
    margin: 12px 0 0 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.rev-litsearch-panel-analysis-prep b {
    color: var(--accent);
    /* padding: 4px 8px; */
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.rev-litsearch-prep-pill {
    display: inline-block;
    background: var(--prep-bg);
    color: var(--accent);
    padding: 4px 8px;
    border-radius: 6px;
    margin-right: 6px;
    font-size: 11px;
    border: 1px solid rgba(2,136,209,0.12);
    box-shadow: 0 1px 0 rgba(0,0,0,0.03);
    transition: transform 120ms ease, box-shadow 120ms ease;
}

.rev-litsearch-prep-pill:hover{
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(2,136,209,0.08);
}

.rev-litsearch-panel-analysis-comments {
    margin-top: 8px;
    color: #6B7280;
    font-size: 12px;
    font-family: Arial, sans-serif;
    font-weight: 400;
    line-height: 16.50px;
    /* overflow-wrap: break-word; */
    word-wrap: break-word;
}

.rev-litsearch-panel-analysis-adverse {
    margin-top: 8px;
    color: #6B7280;
    font-size: 12px;
    font-family: Arial, sans-serif;
    font-weight: 400;
    line-height: 16.50px;
    word-wrap: break-word;
}

.rev-litsearch-panel-analysis-seriousness {
    margin-top: 8px;
    color: #6B7280;
    font-size: 12px;
    font-family: Arial, sans-serif;
    font-weight: 400;
    line-height: 16.50px;
    word-wrap: break-word;
}

/* Assessment box */
.rev-litsearch-panel-assessment-box {
    width: calc(100% - 60%);
    max-width: 100%;
    background: var(--panel-bg);
    border-radius: 6px;
    padding: 12px;
    border: 1.26px solid var(--border);
    box-shadow: var(--card-shadow);
    box-sizing: border-box
}

.rev-litsearch-panel-assessment-readonly {
    opacity: 0.6
}

.rev-litsearch-panel-assessment-title {
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 8px
}

.rev-litsearch-panel-fulltext-notice {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px
}

.rev-litsearch-panel-fulltext-icon {
    font-size: 18px
}

.rev-litsearch-assessment-checkbox-row {
    display: flex;
    gap: 12px;
    margin-top: 10px
}

.rev-litsearch-assessment-checkbox-section {
    flex: 1
}

/* Make each questionnaire section look like a card with a pink header */
.rev-litsearch-assessment-checkbox-section {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

/* Assessment comments styled as a card with pink heading */
.rev-litsearch-assessment-comment-heading {
    background: #F7C8CC; /* pink header */
    padding: 10px 14px;
    margin: 12px 0 0 0;
    color: #1f2933;
    font-size: 13px;
    border-radius: 6px 6px 0 0;
    font-weight: 700;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.04);
}

/* Align action buttons to the right and style to match mock */
.rev-litsearch-panel-assessment-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}

.rev-litsearch-panel-assessment-clear {
    background: #6B7280;
    color: #fff;
    border: 0;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
}

.rev-litsearch-panel-assessment-save {
    background: #374151;
    color: #fff;
    border: 0;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
}

.rev-litsearch-assessment-checkbox-heading {
    background: #F7C8CC; /* match comment heading */
    padding: 10px 14px;
    margin: 0; /* attach to card */
    color: #1f2933;
    font-size: 13px;
    border-radius: 6px 6px 0 0;
    font-weight: 700;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.04);
}

/* Ensure checkbox group content sits flush beneath the heading */
.rev-litsearch-assessment-checkbox-section .rev-litsearch-assessment-checkbox-group {
    padding-top: 12px;
    padding-bottom: 12px;
}

.rev-litsearch-assessment-checkbox-group {
    display: grid;
    gap: 8px;
    padding: 6px;
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2x2 layout for checkbox options */
    align-items: center;
}

@media (max-width: 600px) {
    .rev-litsearch-assessment-checkbox-group {
        grid-template-columns: 1fr; /* collapse to single column on small screens */
    }
}

.rev-litsearch-assessment-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #1F2933;
    padding: 2px 6px;
    border-radius: 6px;
    margin: 0;
    line-height: 1;
    min-height: 20px;
}

/* Smaller, modern checkboxes */
.rev-litsearch-assessment-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0 8px 0 0;
    flex: 0 0 auto;
    accent-color: var(--accent);
    vertical-align: middle;
}

/* Slight hover/focus affordance for labels */
.rev-litsearch-assessment-checkbox-label:hover {
    background: rgba(2,136,209,0.03);
}

.rev-litsearch-assessment-checkbox-label input[type="checkbox"]:focus {
    outline: 2px solid rgba(2,136,209,0.14);
    outline-offset: 2px;
}

.rev-litsearch-assessment-label-disabled {
    opacity: 0.6
}

.rev-litsearch-required-asterisk {
    color: #d32f2f;
    margin-left: 4px
}

.rev-litsearch-panel-assessment-textarea {
    width: 100%;
    min-height: 110px; /* larger area to match mock */
    padding: 12px;
    border-radius: 0 0 6px 6px; /* pair with comment-heading rounded top */
    border: 1px solid var(--border);
    border-top: 0; /* visually connect with heading */
    resize: vertical;
    margin-top: 0;
    background: #fff;
    box-shadow: 0 6px 20px rgba(2,136,209,0.04);
    font-size: 14px;
    line-height: 1.45;
    color: #0F1724;
    transition: box-shadow 150ms ease, border-color 150ms ease;
}

.rev-litsearch-panel-assessment-textarea:focus {
    outline: none;
    border-color: #0288D1;
    box-shadow: 0 10px 40px rgba(2,136,209,0.08);
}

/* Adverse event textarea (inside Initial Assessment) */
.rev-litsearch-panel-adverse-textarea {
    width: 100%;
    min-height: 84px;
    padding: 8px;
    padding: 12px;
    border-radius: 0 0 6px 6px;
    border: 1px solid var(--border);
    border-top: 0;
    resize: vertical;
    margin-top: 0;
    background: #fff;
    line-height: 1.45;
    color: #0F1724;
    transition: box-shadow 150ms ease, border-color 150ms ease;
}

.rev-litsearch-seriousness-select {
    width: 100%;
    box-sizing: border-box;
    /* modern select: remove native arrow and add custom SVG arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 10px 40px 10px 12px; /* room for our custom arrow */
    border-radius: 8px;
    border: 1px solid rgba(15,23,36,0.08);
    background-color: #ffffff;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%2210%22%20height%3D%226%22%20viewBox%3D%220%200%2010%206%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M1%201l4%204%204-4%22%20stroke%3D%22%230F1724%22%20stroke-width%3D%221.2%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 8px;
    box-shadow: 0 6px 18px rgba(2,136,209,0.04);
    font-size: 14px;
    color: #0F1724;
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

/* Hide the native dropdown arrow in IE/Edge */
.rev-litsearch-seriousness-select::-ms-expand {
    display: none;
}

.rev-litsearch-seriousness-select:focus {
    outline: none;
    border-color: #0288D1;
    box-shadow: 0 12px 36px rgba(2,136,209,0.08);
    transform: translateY(-1px);
}

.rev-litsearch-seriousness-select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

@media (max-width:1100px) {
    .rev-litsearch-adverse-row {
        flex-direction: column;
    }
    .rev-litsearch-adverse-row > div {
        width: 100% !important;
    }
}

/* Layout for adverse row when not using inline styles */
.rev-litsearch-adverse-row {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    align-items: flex-start;
}

.rev-litsearch-adverse-left {
    flex: 1;
}

.rev-litsearch-adverse-right {
    width: 220px;
}

/* Small helper for history pill wrapper previously inline-styled */
.rev-lit-panel-history-pill {
    position: relative;
    display: inline-block;
}

.rev-litsearch-assessment-textarea-disabled {
    background: #fafafa
}

.rev-litsearch-panel-assessment-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px
}

.rev-litsearch-panel-assessment-save {
    background: var(--accent);
    color: #fff;
    border: 0;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer
}

.rev-litsearch-panel-assessment-save-disabled {
    opacity: 0.6;
    cursor: not-allowed
}

/* Edit country modal */
.rev-lit-edit-country-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1200
}

.rev-lit-edit-country-modal {
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    width: 520px;
    max-width: 96%;
    position: relative;
    border: 1px solid rgba(209,213,219,0.9);
    /* main shadow + subtle blue outer ring to match mock */
    box-shadow: 0px 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 6px rgba(2,136,209,0.07);
}

.rev-lit-edit-country-modal-close {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ef4444; /* red */
    color: #fff;
    border: 0;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(235, 77, 75, 0.18);
    line-height: 1;
}

.rev-lit-edit-country-modal-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(235,77,75,0.22);
}

.rev-lit-edit-country-modal-title {
    font-weight: 700;
    margin-bottom: 12px;
    color: #1F2933;
    font-size: 18px;
    font-family: Arial, sans-serif;
    line-height: 27px;
}

/* Section labels and read-only values */
.rev-lit-edit-country-modal-section b {
    display: block;
    color: var(--muted);
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 6px;
}

.rev-lit-edit-country-modal-section {
    flex: 1
}

.rev-lit-edit-country-modal-articleid,
.rev-lit-edit-country-modal-current {
    color:#1f2933;
    font-size: 13px;
    font-weight: 400;
    line-height: 19.50px;
    word-wrap: break-word;
}

.rev-lit-edit-country-current-label{
    color:#6b7280;
    font-size: 13px;
    margin-top: 16px;
    font-weight: 400;
    line-height: 19.50px;
    word-wrap: break-word;
}

.rev-lit-edit-country-articleid-label {
    color:#6b7280;
    font-size: 13px;
    font-weight: 400;
    line-height: 19.50px;
    word-wrap: break-word;
}

.rev-lit-edit-country-new-value {
    color:#1f2933;
    font-size: 13px;
    margin-top: 16px;
    font-weight: 400;
    line-height: 19.50px;
    word-wrap: break-word;
}

.rev-lit-edit-country-reason {
    color:#1f2933;
    font-size: 13px;
    margin-top: 18px;
    font-weight: 400;
    line-height: 19.50px;
    word-wrap: break-word;
}

.rev-lit-edit-country-modal-textarea {
    padding: 12px;
}

.rev-lit-edit-country-modal-textarea::placeholder {
    color: #9CA3AF;
}

.rev-lit-edit-country-modal-input {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid var(--border)
}

.rev-lit-edit-country-modal-textarea {
    width: 100%;
    min-height: 80px;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid var(--border);
    resize: vertical
}

/* Actions row and buttons for Edit Country modal */
.rev-lit-edit-country-modal-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
    gap: 10px;
}

/* Save button: pill shape, light-blue base; stronger blue + glow when enabled */
.rev-lit-edit-country-modal-save {
    background: #9ED8F4;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 10px;
    border: 0;
    cursor: pointer;
    font-weight: 700;
    transition: background 140ms ease, box-shadow 140ms ease, transform 140ms ease, opacity 140ms ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rev-lit-edit-country-modal-save:not(:disabled) {
    background: #0288d1;
    box-shadow: 0 14px 32px rgba(2,136,209,0.14);
    transform: translateY(-1px);
}

.rev-lit-edit-country-modal-save:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Cancel button: darker grey pill with stronger drop shadow */
.rev-lit-edit-country-modal-cancel {
    background: #6B7280;
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    border: 0;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 12px 28px rgba(15,23,36,0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rev-lit-edit-country-modal-cancel:hover {
    filter: brightness(0.95);
}

.rev-lit-edit-country-modal-save:hover:enabled {
    box-shadow: 0 14px 32px rgba(2,136,209,0.14);
}

@media (max-width:1100px) {

    .rev-litsearch-panel-analysis-box,
    .rev-litsearch-panel-assessment-box {
        width: 100%
    }

    .rev-lit-panel-top-row {
        flex-direction: column;
        align-items: flex-start
    }
}

/* Layout tweak to mirror screenshot: compact history + metadata on top and horizontal cards below */
.rev-lit-panel-bottom-row {
    display: flex;
    gap: 12px;
    align-items: flex-start
}

.rev-lit-panel-history-stage .rev-lit-panel-history-title {
    margin-right: 8px
}
/* Container - Clean white background with proper padding */
.article-allocation-container {
  /* width: 100%; */
  margin: 20px;
  /* padding: 31.99px 0 0 31.99px; */
  background: white;
  font-family: Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* Title - Blue color matching design */
.article-allocation-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 28.57px 0;
  color: #0288D1;
  line-height: 28.6px;
  flex-shrink: 0;
}

/* Tabs - Matching design specification */
.article-allocation-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1.26px solid #E5E7EB;
  margin: 0 0 24.25px 0;
  width: 100%;
  flex-shrink: 0;
}

.article-allocation-tab {
  padding: 9.99px 21.99px;
  font-size: 14px;
  font-weight: 400;
  color: #6B7280;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  position: relative;
  border-bottom: 2px solid transparent;
  line-height: 21px;
  text-align: center;
}

.article-allocation-tab.active {
  color: #0288D1;
  border-bottom: 2px solid #0288D1;
}

.article-allocation-tab:not(.active):hover {
  color: #374151;
}

/* Card - Filter section with proper styling */
.article-allocation-card {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  background: white;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

/* Filter section container */
.article-allocation-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 24px;
  align-items: flex-end;
}

/* Filter box styling */
.article-allocation-filter-box {
  width: 100%;
  padding: 21.26px;
  background: white;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.02);
  border-radius: 14px;
  border: 1.26px solid rgba(227, 230, 225, 0.50);
  box-sizing: border-box;
  margin-bottom: 24px;
}

.article-allocation-filter-row {
  display: flex;
  gap: 15.98px;
  align-items: flex-end;
}

.article-allocation-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5.99px;
}

.article-allocation-col-articles {
  flex: 1 1 100%;
  min-width: 0;
}

/* Labels */
.article-allocation-label {
  font-weight: 400;
  color: #374151;
  font-size: 13px;
  line-height: 18.20px;
  margin: 0;
}

/* Inputs / Selects */
.article-allocation-select {
  padding: 8px 11.99px;
  border-radius: 10px;
  border: 1.26px solid #D1D5DB;
  background: #F3F3F5;
  font-size: 13px;
  line-height: 19.50px;
  color: #717182;
  height: 35.98px;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.article-allocation-select:focus {
  border-color: #0288D1;
  outline: none;
  background: white;
}

/* Dropdown icon styling */
.article-allocation-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%23717182' stroke-width='1.33' stroke-linecap='round' stroke-linejoin='round' opacity='0.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11.99px center;
  padding-right: 35px;
}

/* Articles header section */
.article-allocation-articles-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 0 15.98px;
  height: 32px;
}

.article-allocation-articles-title {
  font-size: 13px;
  font-weight: 400;
  color: #6B7280;
  line-height: 19.50px;
}

.article-allocation-articles-title-highlight {
  color: #0288D1;
  font-weight: 400;
}

/* Filter button */
.article-allocation-filter-btn {
  background: white;
  color: #0288D1;
  border: 1.26px solid #0288D1;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 19.50px;
  height: 31.99px;
  box-sizing: border-box;
}

.article-allocation-filter-btn:hover,
.article-allocation-filter-btn:focus {
  background: #0288D1;
  color: white;
  outline: none;
}

/* Table wrapper */
.article-allocation-table-wrapper {
  border-radius: 12px;
  border: 1.26px solid #E5E7EB;
  overflow-y: auto;
  overflow-x: auto;
  background: white;
  margin: 0 0.01px;
  max-height: 600px;
}

/* Table */
.article-allocation-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  background: white;
}

.article-allocation-table th,
.article-allocation-table td {
  padding: 18.24px 15.98px;
  border-bottom: 1.26px solid #E5E7EB;
  border-right: 1.26px solid rgba(255, 255, 255, 0.15);
  background: white;
  text-align: left;
  vertical-align: middle;
  line-height: 19.50px;
  color: #1F2933;
  font-weight: 400;
}

.article-allocation-table th {
  background: #0288D1;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.50px;
  font-size: 13px;
  line-height: 19.50px;
  position: sticky;
  top: 0;
  z-index: 10;
  border-right: 1.26px solid rgba(255, 255, 255, 0.15);
}

.article-allocation-table th:first-child,
.article-allocation-table td:first-child {
  width: 69.65px;
  min-width: 69.65px;
  text-align: center;
  padding-left: 15.98px;
  padding-right: 15.98px;
}

.article-allocation-table tbody tr:nth-child(even) {
  background: #FAFBFC;
}

.article-allocation-table tbody tr:nth-child(odd) {
  background: white;
}

.article-allocation-table tbody tr:hover {
  background: #F3F4F6;
}

.selected-row {
  background: #E0E7FF !important;
}

/* Group header row */
.allocation-group-row td,
.allocation-group-header-cell {
  background: #E8EAF6 !important;
  padding: 14.25px 15.98px !important;
  border-bottom: 1.26px solid #E5E7EB !important;
}

.allocation-group-header-content {
  display: flex;
  align-items: center;
  gap: 7.98px;
}

.allocation-group-label {
  font-size: 13px;
  color: #1F2933;
  font-weight: 400;
  line-height: 19.50px;
}

.allocation-group-selectall-label {
  display: flex;
  align-items: center;
  gap: 7.98px;
  font-size: 13px;
  color: #5F6368;
  font-weight: 400;
  cursor: pointer;
  user-select: none;
  margin-left: auto;
}

.allocation-group-selectall-label input[type="checkbox"] {
  width: 15.98px;
  height: 15.98px;
  border-radius: 4px;
  border: 1.26px solid rgba(0, 0, 0, 0.10);
  background: #F3F3F5;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
}

/* Checkbox styling */
input[type="checkbox"] {
  width: 15.98px;
  height: 15.98px;
  border-radius: 4px;
  border: 1.26px solid rgba(0, 0, 0, 0.10);
  background: #F3F3F5;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

/* Pagination footer */
.article-allocation-pagination-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15.98px;
  height: 61.23px;
  background: white;
  border-top: 1.26px solid #E5E7EB;
}

.article-allocation-pagination-info {
  font-size: 13px;
  color: #6B7280;
  line-height: 19.50px;
  font-weight: 400;
}

.article-allocation-pagination-controls {
  display: flex;
  align-items: center;
  gap: 7.98px;
}

.article-allocation-pagination-btn {
  width: 31.99px;
  height: 31.99px;
  border-radius: 8px;
  border: 1.26px solid #D1D5DB;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.article-allocation-pagination-btn:hover:not(:disabled) {
  background: #F3F4F6;
}

.article-allocation-pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.article-allocation-pagination-btn.active {
  background: #0288D1;
  color: white;
  border-color: #0288D1;
}

.article-allocation-pagination-select {
  padding: 8px 11.99px;
  border-radius: 8px;
  border: 1.26px solid #D1D5DB;
  background: #F3F3F5;
  font-size: 13px;
  line-height: 19.50px;
  color: #0A0A0A;
  height: 35.98px;
  min-width: 100px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%23717182' stroke-width='1.33' stroke-linecap='round' stroke-linejoin='round' opacity='0.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11.99px center;
  padding-right: 35px;
}

/* Loading / Error */
.article-allocation-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  color: #0288D1;
  font-size: 1rem;
}

.loader {
  border: 4px solid #e5e7eb;
  border-top: 4px solid #0288D1;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  animation: spin 1s linear infinite;
  margin-bottom: 0.75rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.article-allocation-error {
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 1rem;
  border-radius: 8px;
  margin: 2rem auto;
  max-width: 400px;
  text-align: center;
  font-size: 0.9rem;
}

/* Modal overlay / content */
.allocation-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.allocation-modal-content {
  background: white;
  padding: 39.99px;
  border-radius: 20px;
  width: 400px;
  max-width: 95vw;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.20);
  display: flex;
  flex-direction: column;
  gap: 15.98px;
  box-sizing: border-box;
}

.allocation-modal-content h3 {
  margin: 0;
  color: #1F2933;
  font-size: 24px;
  font-weight: 700;
  line-height: 33px;
  text-align: center;
}

.allocation-modal-content p {
  font-size: 16px;
  color: #52606D;
  margin: 0;
  line-height: 24px;
  text-align: center;
  font-weight: 400;
}

.allocation-modal-actions {
  display: flex;
  gap: 15.98px;
  justify-content: center;
  margin: 0;
}

.allocation-modal-actions button {
  padding: 11.99px 31.99px;
  border-radius: 12px;
  border: none;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 24px;
  height: 47.99px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.allocation-modal-actions button:first-child {
  background: #E4E7EB;
  color: #52606D;
  min-width: 116px;
}

.allocation-modal-actions button:last-child {
  background: #0288D1;
  color: white;
  min-width: 125px;
  box-shadow: 0px 2px 4px -2px rgba(0, 0, 0, 0.10), 0px 4px 6px -1px rgba(0, 0, 0, 0.10);
}

.allocation-modal-actions button:hover {
  transform: translateY(-2px);
  box-shadow: 0px 4px 8px -2px rgba(0, 0, 0, 0.15), 0px 8px 12px -1px rgba(0, 0, 0, 0.15);
}

/* Unassigned articles section */
.article-allocation-unassigned-container {
  width: 100%;
  /* max-width: 1232px; */
  margin: 0 auto;
  padding: 23.23px 30px;
  background: white;
  box-shadow: 0px 4px 6px -4px rgba(0, 0, 0, 0.10), 0px 10px 15px -3px rgba(0, 0, 0, 0.10);
  border-radius: 16px;
  border: 1.26px solid #E5E7EB;
  box-sizing: border-box;
}

.article-allocation-section-title {
  margin: 0 0 28px 0;
  font-size: 24px;
  font-weight: 700;
  color: #101828;
  text-align: center;
  line-height: 32px;
}

/* Search input */
.article-allocation-search-container {
  position: relative;
  width: 100%;
  max-width: 557px;
  margin-bottom: 28px;
}

.article-allocation-search-icon {
  position: absolute;
  left: 15.98px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.article-allocation-search-icon svg {
  width: 100%;
  height: 100%;
}

.article-allocation-search-input {
  width: 100%;
  height: 46px;
  padding: 12px 16px 12px 48px;
  border-radius: 14px;
  border: 1.26px solid #E5E7EB;
  background: white;
  font-size: 14px;
  font-family: Arial, sans-serif;
  color: #0A0A0A;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.article-allocation-search-input::placeholder {
  color: rgba(10, 10, 10, 0.50);
}

.article-allocation-search-input:focus {
  border-color: #0288D1;
  outline: none;
}

.article-allocation-no-articles {
  color: #6b7280;
  font-style: italic;
  margin: 2rem 0;
  text-align: center;
  font-size: 14px;
}

.article-allocation-product-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15.98px;
  margin-top: 0;
  /* limit visible cards to two rows (6 cards) and enable scrolling for more */
  max-height: 360px;
  overflow-y: auto;
  padding-right: 8px; /* spacing so scrollbar doesn't overlap content */
}

.article-allocation-product-card {
  background: white;
  border-radius: 14px;
  box-shadow: 0px 2px 4px -2px rgba(0, 0, 0, 0.10), 0px 4px 6px -1px rgba(0, 0, 0, 0.10);
  padding: 21.26px;
  border: 1.26px solid #E5E7EB;
  display: flex;
  flex-direction: column;
  gap: 15.98px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.article-allocation-product-card:hover {
  box-shadow: 0px 4px 8px -2px rgba(0, 0, 0, 0.15), 0px 8px 12px -1px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.article-allocation-product-header {
  display: flex;
  flex-direction: column;
  gap: 7.98px;
}

.article-allocation-product-title {
  font-size: 18px;
  font-weight: 700;
  color: #1E2939;
  line-height: 28px;
  margin: 0;
}

.article-allocation-product-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}

.article-allocation-product-info {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.article-allocation-product-label {
  color: #364153;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  margin: 0;
}

.article-allocation-product-count {
  font-size: 24px;
  font-weight: 700;
  color: #1E2939;
  line-height: 32px;
  margin: 0;
}

.article-allocation-product-actions {
  margin-top: 0;
  display: flex;
  justify-content: stretch;
}

.article-allocation-product-actions .article-allocation-btn {
  width: 100%;
  height: 39.99px;
  padding: 8px 24px;
  background: #0288D1;
  box-shadow: 0px 2px 4px -2px rgba(0, 0, 0, 0.10), 0px 4px 6px -1px rgba(0, 0, 0, 0.10);
  border-radius: 10px;
  border: none;
  color: white;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-allocation-product-actions .article-allocation-btn:hover:not(:disabled) {
  background: #0277BD;
  transform: translateY(-1px);
  box-shadow: 0px 4px 8px -2px rgba(0, 0, 0, 0.15), 0px 8px 12px -1px rgba(0, 0, 0, 0.15);
}

.article-allocation-product-actions .article-allocation-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Notification bar */
.allocation-notification-bar {
  position: fixed;
  right: 1.5rem;
  bottom: 1rem;
  min-width: 200px;
  max-width: 400px;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  color: #ffffff;
  font-size: 0.9rem;
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: fadeIn 0.3s;
}

.allocation-notification-bar.success {
  background: #10b981;
}

.allocation-notification-bar.error {
  background: #ef4444;
}

.allocation-notification-bar.warning {
  background: #f59e0b;
}

.allocation-notification-bar.info {
  background: #3b82f6;
}

.notification-close-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.1em;
  cursor: pointer;
  padding: 0 0.5rem;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.notification-close-btn:hover {
  opacity: 1;
}

/* Filter panel */
.article-filter-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: #ffffff;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1200;
  overflow-y: auto;
}

.article-filter-overlay.open {
  transform: translateX(0);
}

.article-filter-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}

.article-filter-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
}

.article-filter-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6b7280;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.article-filter-close-btn:hover {
  background: #e5e7eb;
  color: #374151;
}

.article-filter-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.article-filter-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.article-filter-row label {
  font-weight: 600;
  color: #374151;
  font-size: 0.9rem;
}

.article-filter-input {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 2px solid #d1d5db;
  font-size: 0.9rem;
  background: #f9fafb;
  transition: all 0.3s ease;
}

.article-filter-input:focus {
  border-color: #0288D1;
  box-shadow: 0 0 0 3px rgba(2, 136, 209, 0.1);
  outline: none;
  background: #ffffff;
}

.article-filter-footer {
  display: flex;
  gap: 0.75rem;
  padding: 1.25rem;
  justify-content: flex-end;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  margin-top: auto;
}

.article-filter-apply-btn,
.article-filter-clear-btn {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.article-filter-apply-btn {
  background: #0288D1;
  color: #ffffff;
}

.article-filter-apply-btn:hover {
  background: #0277BD;
  transform: translateY(-2px);
}

.article-filter-clear-btn {
  background: #e5e7eb;
  color: #374151;
}

.article-filter-clear-btn:hover {
  background: #d1d5db;
  transform: translateY(-2px);
}

/* Action row - Reason textarea + Reassign button */
.article-allocation-action-row {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
  margin-top: 24px;
}

.article-allocation-reason-section {
  width: 799.99px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5.99px;
}

.article-allocation-reason-label {
  font-weight: 700;
  color: #374151;
  font-size: 13px;
  line-height: 18.20px;
  margin: 0;
}

.article-allocation-reason-label .required {
  color: #FB2C36;
  font-size: 13px;
  line-height: 18.20px;
  margin-left: 5.65px;
}

.article-allocation-textarea {
  width: 100%;
  min-height: 79.98px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1.26px solid #D1D5DB;
  background: white;
  color: rgba(31, 41, 51, 0.50);
  font-size: 13px;
  line-height: 19.50px;
  font-family: Arial, sans-serif;
  resize: vertical;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.article-allocation-textarea:focus {
  border-color: #0288D1;
  outline: none;
  color: #1F2933;
}

.article-allocation-textarea::placeholder {
  color: rgba(31, 41, 51, 0.50);
}

/* Reassign button */
.article-allocation-btn {
  padding: 8px 24px;
  border-radius: 10px;
  border: none;
  background: #0288D1;
  color: white;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 38px;
  align-self: flex-start;
}

.article-allocation-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.article-allocation-btn:not(:disabled):hover {
  background: #0277BD;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 136, 209, 0.3);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .article-allocation-container {
    padding: 16px;
  }

  .article-allocation-filter-row {
    flex-direction: column;
  }

  .article-allocation-col {
    width: 100%;
  }
}

/* Search period inputs inside filter panel */
.search-period-inputs {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.search-period-inputs .search-period-input {
  /* match other filter inputs */
  flex: 1 1 0;
  min-width: 0;
  padding: 0.6rem 0.9rem;
  height: 40px;
  background: #f9fafb;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.9rem;
  box-sizing: border-box;
  transition: all 0.15s ease;
}

.search-period-inputs .search-period-input:focus {
  border-color: #0288D1;
  box-shadow: 0 0 0 3px rgba(2, 136, 209, 0.08);
  outline: none;
  background: #ffffff;
}

/* ensure date input icon spacing is consistent with other fields */
.search-period-inputs .search-period-input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.9;
  padding: 4px;
}

/* responsive adjustments */
@media (max-width: 480px) {
  .search-period-inputs {
    flex-direction: column;
  }
}

/* ===================== Skip Workflow Level Tab ===================== */

.skip-action-section {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skip-assign-mode {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skip-assign-options {
  display: flex;
  gap: 24px;
  align-items: center;
}

.skip-radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  font-weight: 400;
  line-height: 19.5px;
}

.skip-radio-label input[type="radio"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #0288D1;
}

.skip-user-select {
  max-width: 350px;
  margin-top: 4px;
}

.skip-btn {
  background: #0288D1;
}

.skip-btn:not(:disabled):hover {
  background: #0288D1;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.skip-warning {
  color: #d97706;
  font-weight: 500;
  font-size: 14px;
}

.skip-confirm-btn {
  background: #d97706 !important;
}

.skip-confirm-btn:hover {
  background: #b45309 !important;
}

.skip-final-level {
  color: #9CA3AF;
  font-style: italic;
}

/* Modal Assignment Section */
.skip-modal-assign-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  margin: 8px 0;
}

.skip-modal-assign-section .article-allocation-label {
  font-size: 14px;
  font-weight: 600;
  color: #1f2933;
  margin: 0;
}

.skip-modal-assign-section .skip-assign-options {
  flex-direction: column;
  gap: 10px;
}

.skip-modal-assign-section .skip-radio-label {
  font-size: 14px;
  margin: 0;
}

.skip-modal-assign-section .skip-user-select {
  max-width: 100%;
  margin-top: 8px;
  margin-left: 24px;
}

/* ====== Enhanced Skip Confirmation Modal Styles ====== */

.skip-confirm-modal {
  width: 620px;
  max-width: 95vw;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  transform: scale(0.8);
  transform-origin:  center;
}

.skip-confirm-modal .skip-modal-header {
  flex-shrink: 0;
}

.skip-confirm-modal .skip-modal-actions {
  flex-shrink: 0;
  margin-top: auto;
}

.skip-confirm-modal > .skip-modal-summary,
.skip-confirm-modal > .skip-modal-warning,
.skip-confirm-modal > .skip-modal-section {
  flex-shrink: 0;
}

.skip-modal-header {
  background: white;
  color: #1f2933;
  padding: 20px 24px;
  border-radius: 12px 12px 0 0;
  flex-shrink: 0;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skip-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 26px;
  color: #1f2933;
}

.skip-modal-close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.skip-modal-close-btn:hover {
  color: #1f2933;
  transform: scale(1.1);
}

.skip-modal-section {
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.skip-modal-section:last-of-type {
  border-bottom: 1px solid #e5e7eb;
}

.skip-modal-section-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1f2933;
  margin-bottom: 14px;
  text-transform: capitalize;
  letter-spacing: 0;
}

/* Summary Section */
.skip-modal-summary {
  background: white;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
}

.skip-modal-info-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: #F0F9FF;
  border-radius: 8px;
  border: 1.265px solid #BAE6FD;
}

.skip-modal-info-row:not(:last-child) {
  margin-bottom: 0;
}

.skip-modal-label {
  color: #0C4A6E;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.skip-modal-value {
  color: #0C4A6E;
  font-weight: 600;
  font-size: 18px;
}

/* Warning Section */
.skip-modal-warning {
  background: #fffbea;
  border-left: 4px solid #f59e0b;
  padding: 16px;
  margin: 0 24px;
  border-radius: 6px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  flex-shrink: 0;
  border-bottom: 1px solid #e5e7eb;
  box-sizing: border-box;
}

.warning-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.skip-modal-warning span:last-child {
  font-size: 13px;
  color: #92400e;
  line-height: 18px;
  margin: 0;
  font-weight: 500;
}

/* Eligibility Warning (manual assignment) */
.skip-modal-eligibility-warning {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 10px 14px;
  margin-top: 10px;
  border-radius: 6px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.skip-modal-eligibility-warning span:last-child {
  font-size: 12.5px;
  color: #92400e;
  line-height: 17px;
  font-weight: 500;
}

/* Assignment Options */
.skip-modal-assign-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skip-modal-radio-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
}

.skip-modal-radio-option:hover {
  border-color: #0288D1;
  background: #f0f8ff;
}

.skip-modal-radio-option input[type="radio"] {
  margin-top: 3px;
  cursor: pointer;
  accent-color: #0288D1;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.skip-modal-radio-option input[type="radio"]:checked {
  accent-color: #0288D1;
}

.skip-modal-radio-option input[type="radio"]:checked ~ .radio-label-content {
  color: #1f2933;
  font-weight: 600;
}

/* Highlight selected radio option */
.skip-modal-radio-option:has(input[type="radio"]:checked) {
  background: #e3f2fd;
  border-color: #0288D1;
}

.radio-label-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.radio-title {
  font-size: 13px;
  font-weight: 600;
  color: #1f2933;
  margin: 0;
}

.radio-desc {
  font-size: 12px;
  color: #6b7280;
  line-height: 16px;
  margin: 0;
}

.skip-modal-user-select {
  width: calc(100% - 22px);
  margin-top: 12px;
  margin-left: 12px;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  color: #374151;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.skip-modal-user-select:hover {
  border-color: #0288D1;
}

.skip-modal-user-select:focus {
  outline: none;
  border-color: #0288D1;
  box-shadow: 0 0 0 3px rgba(2, 136, 209, 0.1);
}

/* Reason Section */
.skip-modal-reason-box {
  padding: 12px 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 13px;
  color: #374151;
  line-height: 20px;
  word-break: break-word;
  white-space: pre-wrap;
  max-height: 100px;
  overflow-y: auto;
  min-height: 60px;
}

/* Modal Actions */
.skip-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
  background: white;
  border-radius: 0 0 12px 12px;
  flex-shrink: 0;
  margin-top: auto;
}

.skip-modal-btn {
  padding: 10px 24px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
}

.skip-modal-cancel {
  background: white;
  color: #6b7280;
  border: 1px solid #d1d5db;
}

.skip-modal-cancel:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.skip-modal-confirm {
  background: #0288D1;
  color: white;
  border: none;
}

.skip-modal-confirm:hover:not(:disabled) {
  background: #0277BC;
  box-shadow: 0 4px 12px rgba(2, 136, 209, 0.3);
}

.skip-modal-confirm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}/* Main Container */
.close-container {
  padding: 40px;
  background: #ffffff;
  min-height: 100vh;
}

/* Header Section */
.close-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  position: relative;
}

.close-title {
  font-size: 32px;
  font-weight: 400;
  color: #0288D1;
  margin: 0;
  line-height: 38.4px;
}

/* Filter Button Wrapper */
.filter-button-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

/* Filter Buttons */
.close-filter-btn-modern {
  padding: 8px 16px;
  background: white;
  border: 1px solid #0288D1;
  border-radius: 6px;
  color: #0288D1;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  height: 36px;
  white-space: nowrap;
}

.close-filter-btn-modern:hover {
  background: #F0F8FF;
  box-shadow: 0 2px 4px rgba(2, 136, 209, 0.1);
}

.close-export-btn {
  padding: 8px 16px;
  background: #0288D1;
  border: none;
  border-radius: 6px;
  color: white;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  height: 36px;
  white-space: nowrap;
}

.close-export-btn:hover:not(:disabled) {
  background: #0276c9;
  box-shadow: 0 2px 4px rgba(2, 136, 209, 0.2);
}

.close-export-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.close-export-menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  min-width: 150px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  margin-top: 4px;
}

.close-export-menu-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  text-align: left;
  border: none;
  background: none;
  color: #333;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: inherit;
}

.close-export-menu-item:first-child {
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.close-export-menu-item:last-child {
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}

.close-export-menu-item:hover:not(:disabled) {
  background: #f5f5f5;
}

.close-export-menu-item:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.close-export-error-message {
  padding: 10px 14px;
  background: #ffebee;
  color: #c62828;
  border-radius: 4px;
  font-size: 13px;
  margin-top: 8px;
  width: 100%;
}

/* Filter Dot Indicator */
.close-filter-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #EF5350;
  border-radius: 50%;
  top: -8px;
  right: 55px;
}

/* Section Header */
.close-section-header {
  color: #6B7280;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 19.5px;
  letter-spacing: 1.3px;
  margin: 20px 0 15px 0;
}

/* Stats Section */
.stats-container {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: 40px;
}

.stat-card {
  padding: 24px 28px;
  border-radius: 20px;
  box-shadow: 0px 4px 12px rgba(17, 24, 39, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  min-height: 120px;
}

.stat-content {
  display: flex;
  flex-direction: column-reverse;
  gap: 16px;
}

.stat-value {
  font-size: 42px;
  font-weight: 400;
  color: #111827;
  line-height: 42px;
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: #6B7280;
  letter-spacing: 1px;
  line-height: 18px;
}

/* Gradient backgrounds for stat cards */
.stat-card.total {
  background: linear-gradient(151deg, #A8B8CE 11%, #9BACC4 90%);
}

.stat-card.valid {
  background: linear-gradient(153deg, #9BCDB7 10%, #8BC3AD 89%);
}

.stat-card.invalid {
  background: linear-gradient(154deg, #FCDBD8 12%, #FAD0CC 89%);
}

.stat-card.invalid-safety {
  background: linear-gradient(154deg, #FCDBD8 12%, #FAD0CC 89%);
}

/* Workspace Section */
.workspace-container {
  padding: 16px 20px;
  background: white;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
  margin-bottom: 40px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-wrapper {
  flex: 1;
  max-width: 500px;
  display: flex;
  align-items: center;
  position: relative;
}

.search-input {
  width: 100%;
  height: 36px;
  padding: 0 16px 0 36px;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  background: white;
  font-size: 13px;
  font-weight: 400;
  color: #6B7280;
}

.search-input::placeholder {
  color: #9CA3AF;
}

.search-input:focus {
  outline: none;
  border-color: #0288D1;
  box-shadow: 0 0 0 3px rgba(2, 136, 209, 0.1);
  background: white;
}

.search-icon {
  position: absolute;
  left: 10px;
  width: 16px;
  height: 16px;
  color: #9CA3AF;
  opacity: 0.7;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Table Section */
.table-container {
  border: 1.26px solid #F1F3F0;
  border-radius: 18px;
  overflow: hidden;
  background: white;
  margin-bottom: 30px;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.02);
}

.close-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.close-table thead {
  background: #0288D1;
}

.close-table thead th {
  padding: 20px;
  text-align: left;
  color: white;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.96px;
  white-space: nowrap;
  border-bottom: none;
  user-select: none;
  position: relative;
  transition: all 0.2s ease;
}

.close-table thead th[draggable="true"] {
  cursor: grab;
  transition: all 0.2s ease;
  padding-left: 28px;
}

.close-table thead th[draggable="true"]::before {
  content: "⋮⋮";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: bold;
  display: inline-block;
}

.close-table thead th[draggable="true"]:hover {
  background-color: #0276c9 !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

.close-table thead th[draggable="true"]:hover::before {
  color: white;
  opacity: 1;
}

.close-table thead th[draggable="true"]:active {
  cursor: grabbing;
}

.close-table tbody tr {
  border-bottom: 1.26px solid rgba(228, 231, 226, 0.5);
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.close-table tbody tr:hover {
  background-color: #F9FAFB;
}

.close-table tbody tr.expanded {
  background-color: white;
}

.close-table tbody td {
  padding: 20px;
  color: #1F2933;
  font-size: 13px;
  font-weight: 400;
  text-align: left;
  vertical-align: middle;
}

.table-cell {
  text-align: left;
  vertical-align: middle;
}

.table-cell-title {
  /* allow multi-line wrapping for title column */
  max-width: 480px;
  white-space: normal;
  /* allow wrapping */
  word-break: break-word;
  /* break long words */
  overflow-wrap: anywhere;
  /* better breaking for long tokens/URLs */
  line-height: 1.3;
  padding-right: 12px;
}

.table-cell-abstract {
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
  color: #4B5563;
  cursor: pointer;
}

.abstract-more {
  color: #0288D1;
  font-weight: 400;
  margin-left: 4px;
}

.empty-state {
  text-align: center;
  padding: 40px !important;
  color: #9CA3AF;
  font-size: 14px;
}

/* Validation Status */
.validation-status {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  align-items: center;
  justify-content: center;
  height: 24px;
}

.validation-status-valid {
  background: #E8F5EE;
  color: #2D7A50;
}

.validation-status-invalid {
  background: #FEF3F2;
  color: #B4533C;
}

.validation-status-default {
  background: #F3F3F5;
  color: #6B7280;
}

.skip-badge {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px;
  background: #f3f4f6;
  border-left: 4px solid #d97706;
  border-radius: 6px;
  margin-bottom: 12px;
}

.skip-badge-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #78350F;
  font-weight: 500;
}

.skip-badge-icon {
  background: #F59E0B;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.skip-badge-message {
  font-size: 12px;
  color: #858280;
  font-style: italic;
  margin-left: 0;
}

/* Toggle Details Button */
.toggle-details-button {
  width: 28px;
  height: 28px;
  padding: 6px;
  background: white;
  border: 1px solid #D1D5DB;
  border-radius: 4px;
  color: #6B7280;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.toggle-details-button:hover {
  background: #F3F3F5;
  border-color: #0288D1;
  color: #0288D1;
}

.toggle-details-button.open {
  background: #0288D1;
  border-color: #0288D1;
  color: white;
  transform: rotate(180deg);
}

/* Error and Success Messages */
.error-message {
  color: #D32F2F;
  font-size: 12px;
  margin-top: 8px;
  padding: 8px;
  background: #FFEBEE;
  border-radius: 4px;
  border-left: 3px solid #D32F2F;
}

.success-message {
  color: #388E3C;
  font-size: 12px;
  margin-top: 8px;
  padding: 8px;
  background: #E8F5E9;
  border-radius: 4px;
  border-left: 3px solid #388E3C;
}

/* Panel Content */
.panel-row {
  background: #CDE4FF;
  padding: 0 !important;
}

.panel-content {
  padding: 12px 16px;
  position: relative;
  background: white;
  border-radius: 6px;
  border: 1.26px solid #E5E7EB;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
  margin: 12px 16px;
  min-height: 220px;
}

.panel-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 50%;
  font-size: 16px;
  color: #6B7280;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.panel-close:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  background: #f8fafc;
}

/* Validation History */
.validation-history {
  margin-top: 12px;
}

.validation-history-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 12px;
  margin-top: 0;
}

.history-cards-container {
  display: flex;
  gap: 24px;
  flex-wrap: nowrap;
  align-items: flex-start;
  overflow-x: auto;
  padding-bottom: 6px;
}

.validation-level {
  width: 320px;
  height: 200px;
  flex: 0 0 320px;
  background: white;
  border-radius: 6px;
  border: 1.26px solid #E5E7EB;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  overflow: hidden;
}

.validation-level.system {
  background: white;
}

.validation-level.user {
  background: white;
}

.level-header {
  padding: 6px 10px;
  background: #E8EAF6;
  font-size: 13px;
  font-weight: 700;
  color: #0288D1;
  letter-spacing: 0.2px;
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  align-items: center;
}

.level-content {
  padding: 8px 10px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: auto;
  max-height: calc(100% - 40px);
}

.level-status {
  display: flex;
  align-items: center;
}

.level-reason,
.level-prep,
.level-comments {
  font-size: 11px;
  color: #6B7280;
  line-height: 16.5px;
  display: flex;
  flex-direction: column;
  gap: 5.99px;
}

.level-reason strong,
.level-prep strong,
.level-comments strong {
  font-weight: 400;
  color: #6B7280;
  font-size: 11px;
  line-height: 16.5px;
  display: block;
  margin-bottom: 5.99px;
}

/* PREP Capsules */
.prep-capsule-container {
  display: flex;
  flex-wrap: wrap;
  gap: 5.99px;
}

.prep-capsule {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  background: #E3F2FD;
  color: #0288D1;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid #0288D1;
}

/* Modal Styles */
.close-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.18);
  z-index: 999;
}

.close-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 16px;
  box-shadow: 0px 20px 60px rgba(0, 0, 0, 0.3);
  max-height: 90vh;
  width: 90%;
  max-width: 1200px;
  display: flex;
  z-index: 1000;
  overflow: hidden;
}

.close-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  background: white;
  border: 1px solid #E3E6E1;
  border-radius: 8px;
  font-size: 24px;
  color: #6B7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s ease;
}

.close-modal-close:hover {
  background: #F3F3F5;
  color: #111827;
  border-color: #0288D1;
}

.close-abstract-content {
  flex: 1;
  padding: 40px;
  overflow-y: auto;
  border-right: 1px solid #E3E6E1;
  font-size: 14px;
  color: #1F2933;
  line-height: 1.8;
  background: white;
}

.close-abstract-content p {
  margin-bottom: 16px;
}

.close-abstract-heading {
  font-weight: 600;
  color: #111827;
  display: block;
  margin-bottom: 8px;
}

.close-tagged-terms {
  width: 350px;
  padding: 40px 20px;
  overflow-y: auto;
  background: #F9FAFB;
  display: flex;
  flex-direction: column;
}

.close-tagged-terms-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 20px;
}

.close-tag-category {
  margin-bottom: 24px;
}

.close-tag-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #1F2933;
  margin-bottom: 10px;
}

.close-tag-label.product {
  color: #0288D1;
}

.close-tag-label.adverse {
  color: #D32F2F;
}

.close-tag-label.patient {
  color: #F57C00;
}

.close-tag-label.patient-problem {
  color: #7B1FA2;
}

.close-tag-label.medical {
  color: #388E3C;
}

.close-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.close-tag {
  display: inline-block;
  padding: 4px 12px;
  background: white;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid #E3E6E1;
}

.close-tag.product {
  background: #E3F2FD;
  border-color: #0288D1;
  color: #0288D1;
}

.close-tag.adverse {
  background: #FFEBEE;
  border-color: #D32F2F;
  color: #D32F2F;
}

.close-tag.patient {
  background: #FFF3E0;
  border-color: #F57C00;
  color: #F57C00;
}

.close-tag.patient-problem {
  background: #F3E5F5;
  border-color: #7B1FA2;
  color: #7B1FA2;
}

.close-tag.medical {
  background: #E8F5E9;
  border-color: #388E3C;
  color: #388E3C;
}

/* Filter Panel */
.close-filter-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  z-index: 1000;
}

.close-filter-panel {
  width: 400px;
  height: 100vh;
  background: white;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0px 20px rgba(0, 0, 0, 0.15);
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

.close-filter-header {
  padding: 12px 16px;
  border-bottom: 1.26px solid #E5E7EB;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 18px;
}

.close-filter-close-btn {
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  font-size: 20px;
  color: #9CA3AF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  border-radius: 4px;
}

.close-filter-close-btn:hover {
  color: #111827;
}

.close-filter-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.close-filter-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.close-filter-section-label {
  color: #6B7280;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 16px;
  letter-spacing: 0.96px;
}

.close-filter-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.close-filter-row label {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  line-height: 16px;
}

.close-filter-input {
  padding: 8px 12px;
  border: 1.26px solid #D1D5DB;
  border-radius: 8px;
  font-size: 13px;
  color: #1F2933;
  background: #F3F3F5;
  font-family: inherit;
  height: 36px;
  transition: all 0.2s ease;
}

.close-filter-input:focus {
  outline: none;
  border-color: #0288D1;
  background: white;
}

.close-filter-input::placeholder {
  color: #717182;
}

.close-filter-footer {
  padding: 12px 16px;
  border-top: 1.26px solid #E5E7EB;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}

.close-filter-clear-link {
  color: #6B7280;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  transition: color 0.2s ease;
}

.close-filter-clear-link:hover {
  color: #111827;
}

.close-filter-apply-btn {
  padding: 8px 16px;
  background: #0288D1;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 16px;
}

.close-filter-apply-btn:hover {
  background: #0276c9;
}

/* Pagination */
.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
}

.pagination-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rows-per-page-label {
  color: #6B7280;
  font-size: 13px;
  font-weight: 400;
  line-height: 19.5px;
}

.rows-per-page-select {
  width: 69.98px;
  height: 35.98px;
  padding: 11.99px;
  background: #F3F3F5;
  border: 1.26px solid #E3E6E1;
  border-radius: 8px;
  outline: none;
  color: #0A0A0A;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  cursor: pointer;
}

.pagination-info {
  color: #9AA0A6;
  font-size: 13px;
  font-weight: 400;
  line-height: 19.5px;
}

.pagination-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination-btn {
  min-width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: #E8EAED;
  color: #9CA3AF;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
  background: #D1D5DB;
  color: #6B7280;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #E8EAED;
}

.pagination-btn.active {
  background: #0288D1;
  color: white;
  font-weight: 600;
}

.pagination-nav-btn {
  width: auto;
  padding: 0 12px;
  height: 27.48px;
  font-size: 13px;
  outline: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .close-modal {
    flex-direction: column;
    max-width: 95%;
  }

  .close-abstract-content {
    border-bottom: 1px solid #e0e0e0;
    border-right: none;
  }

  .close-tagged-terms {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .close-container {
    padding: 20px;
  }

  .close-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .close-title {
    font-size: 24px;
  }

  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .close-table {
    font-size: 12px;
  }

  .close-table thead th,
  .close-table tbody td {
    padding: 12px;
  }

  .close-filter-panel {
    width: 100%;
  }

  .workspace-container {
    flex-direction: column;
  }

  .search-wrapper {
    width: 100%;
  }
}/* Container and Title */
.fulltext-approvals-container {
  padding: 24px;
  background: #f8fafc;
  min-height: 100vh;
}

.fulltext-approvals-title {
  font-size: 2rem;
  margin-left: 10px;
  font-weight: 700;
  color: #1565c0;;
  margin-bottom: 32px;
}

/* Stats Cards */
.fulltext-stats-grid {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  justify-content: space-between;
  align-items: stretch;
}

.fulltext-stat-card {
  flex: 1;
  height: 110px;
  padding: 24px;
  border-radius: 14px;
  background: linear-gradient(151deg, #A8B8CE 11%, #9BACC4 90%);
  box-shadow: 0px 8px 24px rgba(17, 24, 39, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover effect for cards */
.fta-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0px 12px 32px rgba(17, 24, 39, 0.12);
}

/* Gradient backgrounds for each card type */
.fta-stat-total {
  background: linear-gradient(151deg, #A8B8CE 11%, #9BACC4 90%);
}

.fta-stat-requested {
  background: linear-gradient(167deg, #9BCDEB 16%, #8BC3E1 83%);
}

.fta-stat-approved {
  background: linear-gradient(153deg, #9BCDB7 10%, #8BC3AD 89%);
}

.fta-stat-rejected {
  background: linear-gradient(154deg, #FCDBD8 12%, #FAD0CC 89%);
}

/* Stat Content */
.fta-stat-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Stat Label */
.fta-stat-label {
  color: #6B7280;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  line-height: 16.5px;
  margin: 0;
}

/* Stat Value */
.fta-stat-value {
  color: #111827;
  font-size: 34px;
  font-weight: 400;
  margin-top: 6px;
  line-height: 34px;
}

/* Stats Cards Container */
.fta-stats-container {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 24px;
  margin: 16px 0 32px;
}

/* Individual Stat Card */
.fta-stat-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(21, 101, 192, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 1.5rem 1.25rem;
  min-height: 120px;
  cursor: pointer;
  transition: box-shadow 0.2s;
  border: 1px solid #e3f2fd;
}

.fta-stat-card:hover {
  box-shadow: 0 8px 32px rgba(21, 101, 192, 0.12);
}

/* Stat Content */
.fta-stat-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.fta-stat-label {
  font-size: 1.05rem;
  font-weight: 600;
  color: #637381;
  margin-bottom: 0.25rem;
}

.fta-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: #1565c0;
  line-height: 1.1;
}

/* Table Styles */
/* Table Container */
.fulltext-table-wrapper {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  margin-top: 24px;
}

.fulltext-table {
  width: 100%;
  border-collapse: collapse;
}

/* Column Headers and Filters */
.fulltext-table th {
  white-space: nowrap;
  padding: 12px 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  background: #e3f2fd;
  color: #1565c0;           /* Dark blue, not white */
  font-weight: 700;
  font-size: 15px;
  text-align: center;       /* Always center, even if no filter */
  border-bottom: 2px solid #bbdefb;
  border-right: 1px solid #bbdefb;
  vertical-align: middle;   /* Vertically center content */
}

.fulltext-table th:last-child {
  border-right: none;
}

.fulltext-table-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px; /* Ensures all headers are same height */
}

.fulltext-table-header-placeholder {
  height: 32px; /* Same as input/select height */
  width: 100%;
}

.fulltext-table-header span {
  color: #1565c0;           /* Dark blue for header text */
  font-weight: 700;
  font-size: 17px;
  text-align: center;
}

.fulltext-column-filter {
  min-width: 110px;
  height: 32px;
  font-size: 14px;
  border-radius: 4px;
  border: 1px solid #cfd8dc;
  padding: 0 8px;
  box-sizing: border-box;
  color: #64748b;
  background: white;
  transition: all 0.2s ease;
}

.fulltext-column-filter:focus {
  outline: none;
  border-color: #94a3b8;
  box-shadow: 0 0 0 1px #94a3b8;
}

.fulltext-column-filter::placeholder {
  color: #94a3b8;
}

/* Table Rows */
.fulltext-table-row {
  border-bottom: 1px solid #e2e8f0;
  transition: background-color 0.2s ease;
}

.fulltext-table-row:hover {
  background-color: #f8fafc;
}

.fulltext-table-row.expanded {
  background-color: #f1f5f9;
}

/* Table Cells */
.fulltext-table-cell {
  padding: 12px 16px;
  color: #334155;
  font-size: 14px;
  line-height: 1.5;
}

.fulltext-table-cell-title {
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Actions Column */
.fulltext-actions-cell {
  padding: 12px 16px;
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Toggle Details Button */
.fulltext-toggle-details {
  padding: 4px 8px;
  border: 1px solid #e2e8f0;
  background: white;
  border-radius: 4px;
  color: #64748b;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s ease;
}

.fulltext-toggle-details:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.fulltext-toggle-details.open {
  transform: rotate(180deg);
}

/* Status Badges */
.req-status-badge {
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-requested {
  background: #eef2ff;
  color: #4f46e5;
  border: 1px solid #e0e7ff;
}

.status-approved {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #dcfce7;
}

.status-rejected {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fee2e2;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 8px;
}

.btn {
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary {
  background: #1565c0;
  color: white;
}

.btn-secondary {
  background: #e3f2fd;
  color: #1565c0;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Empty State */
.fulltext-empty-state {
  padding: 24px;
  text-align: center;
  color: #64748b;
  font-style: italic;
  background: #f8fafc;
}

/* Messages */
.fulltext-error-message {
  color: #dc2626;
  font-size: 13px;
  margin-top: 4px;
}

.fulltext-success-message {
  color: #16a34a;
  font-size: 13px;
  margin-top: 4px;
}

/* Expanded Panel */
.fulltext-panel-row {
  background: #f8fafc;
}

.fulltext-panel-content {
  padding: 16px;
  margin: 8px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

/* Success Message Popup */
.success-popup {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideIn 0.3s ease;
  z-index: 1000;
}

.success-popup.approved {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #dcfce7;
}

.success-popup.rejected {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fee2e2;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Table column borders (vertical lines between columns) */
.fulltext-table th,
.fulltext-table td {
  border-right: 1px solid #bbdefb;
  border-bottom: 1px solid #bbdefb;
}

.fulltext-table th:last-child,
.fulltext-table td:last-child {
  border-right: none;
}

/* Center align status column data */
.fulltext-table td:nth-child(5) {
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .fulltext-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .fulltext-table-cell-title {
    max-width: 200px;
  }
  
  .fulltext-table-wrapper {
    margin: 16px -16px;
    border-radius: 0;
  }
}

@media (max-width: 768px) {
  .fulltext-table-cell-title {
    max-width: 150px;
  }
}

@media (max-width: 640px) {
  .fulltext-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .fulltext-stat-card {
    padding: 16px;
  }
  
  .fulltext-stat-value {
    font-size: 28px;
  }
}

/* Title Popup Styles */
.fulltext-title-popup-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(30, 41, 59, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.fulltext-title-popup {
  background: #fff;
  border-radius: 8px;
  max-width: 480px;
  min-width: 320px;
  padding: 24px 20px 20px 20px;
  box-shadow: 0 8px 32px rgba(21, 101, 192, 0.18);
  position: relative;
  animation: fadeIn 0.2s;
}

.fulltext-title-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 12px;
  color: #1565c0;
}

.fulltext-title-popup-close {
  background: none;
  border: none;
  font-size: 22px;
  color: #64748b;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.fulltext-title-popup-content {
  font-size: 15px;
  color: #334155;
  word-break: break-word;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98);}
  to { opacity: 1; transform: scale(1);}
}
.modal-container {
  background: #fff;
  border-radius: 10px;
  max-width: 400px;
  width: 100%;
  padding: 32px 28px 28px 28px; /* top right bottom left */
  box-shadow: 0 8px 32px rgba(21, 101, 192, 0.18);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Pagination Controls */
.fulltext-pagination-controls {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 24px 0 8px 0;
  font-size: 15px;
  flex-wrap: wrap;
}
.fulltext-pagination-controls label {
  font-weight: 500;
}
.pagination-buttons {
  display: flex;
  align-items: center;
  gap: 4px;
}
.pagination-btn {
  background: #e3f2fd;
  color: #1976d2;
  border: 1px solid #bbdefb;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
}
.pagination-btn.active,
.pagination-btn.page-number.active {
  background: #1976d2;
  color: #fff;
  font-weight: 700;
  border: 2px solid #1976d2;
}
.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.pagination-pages {
  display: flex;
  gap: 2px;
}
/* Tooltip styling */
.fta-tooltip {
  box-shadow: 0 2px 8px rgba(21,101,192,0.10);
  pointer-events: none;
  opacity: 0.97;
}

/* Main Container */
.fta-container {
  padding: 20px 80px;
  background: #f8fafc;
  min-height: 100vh;
}

/* Main Title */
.fta-title {
  font-size: 32px;
  font-weight: 400;
  color: #0288D1;
  margin: 10px 0 20px 0;
  line-height: 38.4px;
}

/* Section */
.fta-section {
  margin-bottom: 40px;
}

.fta-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  /* margin-bottom: 20px;
  line-height: 19.5px; */
}

/* Stats Grid */
.fta-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 305px);
  gap: 25px;
  margin-bottom: 40px;
}

/* Individual Stat Cards */
.fta-stat-card {
  height: 110.45px;
  border-radius: 14px;
  box-shadow: 0px 8px 24px rgba(17, 24, 39, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 24px 0 0 28px;
  gap: 12px;
}

.fta-stat-total {
  background: linear-gradient(166deg, #A8B8CE 17%, #9BACC4 84%);
}

.fta-stat-requested {
  background: linear-gradient(167deg, #9BCDEB 16%, #8BC3E1 83%);
}

.fta-stat-approved {
  background: linear-gradient(167deg, #9BCDB7 16%, #8BC3AD 83%);
}

.fta-stat-rejected {
  background: linear-gradient(167deg, #FCDBD8 18%, #FAD0CC 82%);
}

.fta-stat-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fta-stat-label {
  font-size: 11px;
  font-weight: 700;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.88px;
  line-height: 16.5px;
}

.fta-stat-value {
  font-size: 34px;
  font-weight: 400;
  color: #111827;
  line-height: 34px;
}

/* Search and Filter Bar */
.fta-search-filter-bar {
  background: white;
  border-radius: 14px;
  height: 68px;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.02);
  border: 1.26px solid rgba(227, 230, 225, 0.50);
  display: flex;
  align-items: center;
  padding: 13.15px;
  gap: 21px;
  margin-bottom: 10px;
}

/* Global Search */
.fta-global-search {
  position: relative;
  width: 400px;
  height: 42px;
}

.fta-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #6B7280;
  z-index: 2;
}

.fta-search-input {
  width: 100%;
  height: 100%;
  padding: 0 16px 0 40px;
  border: 1.26px solid #D1D5DB;
  border-radius: 10px;
  background: transparent;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.05);
  font-size: 14px;
  color: #374151;
}

.fta-search-input::placeholder {
  color: #9CA3AF;
}

.fta-search-input:focus {
  outline: none;
  border-color: #0288D1;
}

/* Filters */
.fta-filters {
  display: flex;
  gap: 12px;
  flex: 1;
}

.fta-filter-input {
  width: 180px;
  height: 42px;
  padding: 0 16px;
  border: 1.26px solid #D1D5DB;
  border-radius: 10px;
  background: transparent;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.05);
  font-size: 14px;
  color: #374151;
}

.fta-filter-input::placeholder {
  color: #9CA3AF;
}

.fta-filter-input:focus {
  outline: none;
  border-color: #0288D1;
}

.fta-filter-select {
  width: 200px;
  height: 36px;
  padding: 0 16px;
  border: 1.26px solid #0288D1;
  border-radius: 10px;
  background: white;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.05);
  font-size: 14px;
  color: #0288D1;
  cursor: pointer;
}

.fta-filter-select:focus {
  outline: none;
}

/* Table Container */
.fta-table-container {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.08);
}

/* Table Header */
.fta-table-header {
  background: #0288D1;
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.fta-header-cell {
  display: flex;
  align-items: center;
  gap: 22px;
  color: white;
}

.fta-header-icon {
  width: 14px;
  height: 14px;
  color: white;
}

.fta-header-cell span {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.96px;
  line-height: 16px;
}

/* Column widths */
.fta-col-id { width: 100px; }
.fta-col-title { width: 280px; }
.fta-col-source { width: 140px; }
.fta-col-user { width: 160px; }
.fta-col-reason { width: 200px; }
.fta-col-status { width: 140px; }
/* .fta-col-actions { flex: 1; } */
/* hide drag handle dots specifically for actions column */
.fta-col-actions .drag-handle {
  display: none !important;
}

/* Table Body */
.fta-table-body {
  background: white;
}

.fta-table-row {
  display: flex;
  align-items: center;
  padding: 0 20px;
  min-height: 93px;
  border-bottom: 1.26px solid rgba(228, 231, 226, 0.50);
}

.fta-table-row:last-child {
  border-bottom: none;
}

.fta-row-cell {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #1F2933;
  line-height: 19.5px;
}

/* Right-align action buttons inside the actions column */
/* .fta-row-cell.fta-col-actions {
  justify-content: flex-end;
  gap: 12px;
  padding-right: 24px;
} */

/* Cell Content */
.fta-id-badge {
  font-weight: 700;
  color: #1F2933;
}

.fta-title-text {
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 19.5px;
  max-height: 39px;
}

.fta-title-text:hover {
  color: #0288D1;
}

.fta-source-text,
.fta-user-text,
.fta-reason-text {
  font-weight: 400;
  color: #1F2933;
}

/* Status Badge */
.fta-status-badge {
  background: #E3F2FD;
  color: #0288D1;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 8px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 61px;
}

.fta-status-badge.status-approved {
  background: #E8F5E8;
  color: #2E7D32;
}

.fta-status-badge.status-rejected {
  background: #FFEBEE;
  color: #C62828;
}

/* Take Action Button */
.fta-action-dropdown {
  position: relative;
  display: inline-block;
}

.fta-take-action-btn {
  background: white;
  border: 1.26px solid #0288D1;
  border-radius: 8px;
  padding: 8px 16px;
  color: #0288D1;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  min-width: 130px;
  justify-content: center;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.05);
}

.fta-dropdown-icon {
  width: 16px;
  height: 16px;
}

.fta-take-action-btn:hover {
  background: #f0f8ff;
}

/* Action Menu */
.fta-action-menu {
  /* Show actions inline instead of a hover dropdown */
  position: static;
  display: flex;
  gap: 12px;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  align-items: center;
}

/* hide original trigger button so actions appear as standalone buttons */
.fta-take-action-btn {
  display: none;
}

.fta-action-menu-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  min-width: 100px;
  height: 36px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.fta-action-menu-item:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(2, 6, 23, 0.08);
}

.fta-action-menu-item.fta-approve {
  background: #10B981;
  color: #ffffff;
}

.fta-action-menu-item.fta-reject {
  background: #EF4444;
  color: #ffffff;
}

.fta-no-action {
  color: #9CA3AF;
  font-size: 14px;
}

/* Empty State */
.fta-empty-state {
  padding: 40px;
  text-align: center;
  color: #64748b;
  font-style: italic;
  background: #f8fafc;
}

/* Keep all existing modal, pagination, and popup styles unchanged */
.success-popup {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideIn 0.3s ease;
  z-index: 1000;
}

.success-popup.approved {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #dcfce7;
}

.success-popup.rejected {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fee2e2;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Keep existing modal, pagination styles... */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-container {
  background: #fff;
  border-radius: 10px;
  max-width: 400px;
  width: 100%;
  padding: 32px 28px 28px 28px;
  box-shadow: 0 8px 32px rgba(21, 101, 192, 0.18);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.fulltext-approval-modal {
  max-width: 1000px !important;
  min-width: 420px !important;
  width: 100%;
  padding: 40px 36px 32px 36px !important;
}

.btn {
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary {
  background: #1565c0;
  color: white;
}

.btn-secondary {
  background: #e3f2fd;
  color: #1565c0;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Title Popup */
.fulltext-title-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 41, 59, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.fulltext-title-popup {
  background: #fff;
  border-radius: 8px;
  max-width: 480px;
  min-width: 320px;
  padding: 24px 20px 20px 20px;
  box-shadow: 0 8px 32px rgba(21, 101, 192, 0.18);
  position: relative;
  animation: fadeIn 0.2s;
}

.fulltext-title-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 12px;
  color: #1565c0;
}

.fulltext-title-popup-close {
  background: none;
  border: none;
  font-size: 22px;
  color: #64748b;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.fulltext-title-popup-content {
  font-size: 15px;
  color: #334155;
  word-break: break-word;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

/* Pagination Controls */
.fulltext-pagination-controls {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 24px 0 8px 0;
  font-size: 15px;
  flex-wrap: wrap;
}

.fulltext-pagination-controls label {
  font-weight: 500;
}

.pagination-buttons {
  display: flex;
  gap: 4px;
  align-items: center;
}

.pagination-btn {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: white;
  color: #1976d2;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 13px;
  min-width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pagination-btn:hover:not(:disabled) {
  background: #0288D1;
  color: white;
  border-color: #0288D1;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(2, 136, 209, 0.3);
}
.pagination-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.pagination-btn.active {
  background: #0288D1;
  color: white;
  border-color: #0288D1;
  box-shadow: 0 2px 8px rgba(2, 136, 209, 0.25);
}
.pagination-pages {
  display: flex;
  gap: 3px;
}

/* Responsive Design */
@media (max-width: 1400px) {
  .fta-container {
    padding: 20px 40px;
  }
  
  .fta-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1024px) {
  .fta-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .fta-search-filter-bar {
    flex-direction: column;
    height: auto;
    padding: 20px;
    gap: 16px;
  }
  
  .fta-global-search {
    width: 100%;
  }
  
  .fta-filters {
    width: 100%;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .fta-container {
    padding: 20px;
  }
  
  .fta-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Table Footer Styles */
.fta-table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  flex-wrap: nowrap;
  gap: 16px;
}

.footer-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex: 0 0 auto;
}

.footer-center {
  display: none; /* center pagination removed, we place it on the right */
}

.footer-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 0 0 auto;
}

.fta-table-footer label {
  font-weight: 500;
  color: #64748b;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fta-table-footer select {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #1e293b;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 13px;
}

.fta-table-footer select:focus {
  outline: none;
  border-color: #0288D1;
  box-shadow: 0 0 0 3px rgba(2, 136, 209, 0.1);
  background: white;
}

/* Enhanced Pagination Styles */
.pagination-buttons {
  display: flex;
  gap: 4px;
  align-items: center;
}

.pagination-btn {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: white;
  color: #64748b;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 13px;
  min-width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
  background: #0288D1;
  color: white;
  border-color: #0288D1;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(2, 136, 209, 0.3);
}

.pagination-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pagination-btn.active {
  background: #0288D1;
  color: white;
  border-color: #0288D1;
  box-shadow: 0 2px 8px rgba(2, 136, 209, 0.25);
}

.pagination-pages {
  display: flex;
  gap: 3px;
}

.page-info {
  font-weight: 500;
  color: #64748b;
  font-size: 13px;
}

/* Enhanced Header Hover and Drag Effects */
.fta-header-cell {
  cursor: default;
  user-select: none;
  transition: all 0.2s ease;
  position: relative;
}

.drag-handle {
  display: inline-flex;
  align-items: center;
  cursor: grab;
  user-select: none;
  opacity: 0.6;
  transition: opacity 0.2s ease;
  padding: 2px;
  border-radius: 4px;
}

.drag-handle:hover {
  opacity: 1;
}

.drag-handle:active {
  cursor: grabbing;
}

.fta-header-cell.drag-over {
  outline: 2px dashed rgba(255, 255, 255, 0.9);
  outline-offset: -6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
}

.fta-header-cell.dragging {
  opacity: 0.6;
}

.fta-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
 
.fta-approval-modal {
  background: white;
  border-radius: 12px;
  box-shadow: 0px 4px 6px -4px rgba(0, 0, 0, 0.10), 0px 10px 15px -3px rgba(0, 0, 0, 0.10);
  border: 1.26px solid rgba(0, 0, 0, 0.10);
  width: 100%;
  max-width: 750px;
  max-height: 100vh;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
}
 
/* Modal Header */
.fta-modal-header {
  padding: 24px 32px 0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  position: relative;
}
 
.fta-modal-title-section {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 8px;
  flex: 1;
  width: 100%;
}
 
.fta-modal-title {
  color: #1F2933;
  font-size: 20px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  line-height: 33px;
  margin: 0;
  word-wrap: break-word;
}
 
.fta-modal-subtitle {
  color: #6B7280;
  font-size: 14px;
  font-family: Arial, sans-serif;
  font-weight: 400;
  line-height: 21px;
  margin: 0;
  word-wrap: break-word;
}

.fta-modal-close {
  background: none;
  border: 1px solid #D1D5DB;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.fta-modal-close:hover {
  border-color: #9CA3AF;
  background-color: #F3F4F6;
}
 
/* Article Info */
.fta-modal-article-info {
  margin: 10px 32px 0;
  padding: 13px 17px;
  background: #F9FAFB;
  border-radius: 8px;
  border: 1.26px solid #E5E7EB;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 8px;
}
 
.fta-article-info-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
 
.fta-info-label {
  color: #6B7280;
  font-size: 10px;
  font-family: Arial, sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 16px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}
 
.fta-info-value {
  color: #1F2933;
  font-size: 12px;
  font-family: Arial, sans-serif;
  font-weight: 600;
  line-height: 19.5px;
  word-wrap: break-word;
  flex: 1;
  min-width: 0;
}
 
/* Modal Content */
.fta-modal-content {
  padding: 14px 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
 
/* Upload Section */
.fta-upload-section {
  align-self: stretch;
  height: 156.47px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 7.98px;
}
 
.fta-section-header {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 7.98px;
}
 
.fta-upload-label {
  color: #1F2933;
  font-size: 14px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  line-height: 21px;
  display: flex;
  align-items: center;
  gap: 4px;
}
 
.fta-required {
  width: 6.24px;
  height: 16px;
  color: #DC3545;
  font-size: 16px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  line-height: 16px;
}
 
.fta-upload-description {
  color: #6B7280;
  font-size: 13px;
  font-family: Arial, sans-serif;
  font-weight: 400;
  line-height: 19.5px;
  margin: 0;
}
 
.fta-upload-area {
  align-self: stretch;
  height: 100px;
  position: relative;
}
 
.fta-file-input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
 
.fta-upload-button {
  align-self: stretch;
  height: 100px;
  border-radius: 8px;
  border: 1.26px solid #D1D5DB;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7.98px;
  cursor: pointer;
  background: white;
  transition: border-color 0.2s, background-color 0.2s;
}
 
.fta-upload-button:hover {
  border-color: #0288D1;
  background-color: #F8FAFC;
}
 
.fta-upload-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  text-align: center;
}
 
.fta-upload-main {
  color: #1F2933;
  font-size: 14px;
  font-family: Arial, sans-serif;
  font-weight: 500;
  line-height: 21px;
  white-space: nowrap;
}
 
.fta-upload-sub {
  color: #9CA3AF;
  font-size: 13px;
  font-family: Arial, sans-serif;
  font-weight: 400;
  line-height: 18px;
  white-space: nowrap;
}
 
.fta-upload-error {
  color: #DC3545;
  font-size: 12px;
  font-family: Arial, sans-serif;
  font-weight: 400;
  margin-top: 4px;
}
 
/* Comments Section */
.fta-comments-section {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 7.98px;
}
 
.fta-comments-label {
  align-self: stretch;
  height: 21px;
  color: #1F2933;
  font-size: 14px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  line-height: 21px;
  display: flex;
  align-items: center;
  gap: 4px;
}
 
.fta-comments-description {
  color: #6B7280;
  font-size: 13px;
  font-family: Arial, sans-serif;
  font-weight: 400;
  line-height: 19.5px;
  margin: 0;
}
 
.fta-comments-textarea {
  align-self: stretch;
  height: 100px;
  padding: 8px 12px;
  background: #F3F3F5;
  border-radius: 8px;
  border: 1.26px solid #D1D5DB;
  color: #1F2933;
  font-size: 14px;
  font-family: Arial, sans-serif;
  font-weight: 400;
  line-height: 20px;
  resize: vertical;
  min-height: 100px;
}
 
.fta-comments-textarea::placeholder {
  color: #9CA3AF;
}
 
.fta-comments-textarea:focus {
  outline: none;
  border-color: #0288D1;
  box-shadow: 0 0 0 3px rgba(2, 136, 209, 0.1);
}
 
/* Modal Footer */
.fta-modal-footer {
  padding: 12px 20px 12px;
  background: #F9FAFB;
  border-top: 1px solid #E5E7EB;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
 
.fta-btn-secondary {
  padding: 10px 24px;
  background: white;
  border-radius: 8px;
  border: 1px solid #D1D5DB;
  text-align: center;
  color: #6B7280;
  font-size: 14px;
  font-family: Arial, sans-serif;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  min-width: 100px;
}
 
.fta-btn-secondary:hover {
  background: #F3F4F6;
  border-color: #9CA3AF;
  color: #374151;
}
 
.fta-btn-primary {
  padding: 10px 32px;
  border-radius: 8px;
  border: none;
  text-align: center;
  color: white;
  font-size: 14px;
  font-family: Arial, sans-serif;
  font-weight: 600;
  line-height: 20px;
  cursor: pointer;
  transition: background-color 0.2s;
  white-space: nowrap;
  min-width: 140px;
}
 
.fta-btn-primary.approve {
  background: #0288D1;
  box-shadow: 0px 1px 3px rgba(2, 136, 209, 0.2);
}
 
.fta-btn-primary.approve:hover:not(:disabled) {
  background: #0277BD;
}
 
.fta-btn-primary.reject {
  background: #DC3545;
  box-shadow: 0px 1px 3px rgba(220, 53, 69, 0.2);
}
 
.fta-btn-primary.reject:hover:not(:disabled) {
  background: #C82333;
}
 
.fta-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
 

@media (max-width: 768px) {
  .fta-table-footer {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    flex-wrap: nowrap;
  }
  
  .footer-left {
    justify-content: flex-start;
    width: auto;
  }
  
  .footer-right {
    justify-content: flex-end;
    width: auto;
  }
  
  .footer-center { display: none; }
}/* Container */
.full-text-requests-container {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    margin: 0;
    padding: 31.99px;
    background: white;
    font-family: Arial, sans-serif;
    color: #1F2933;
}

/* Title */
.full-text-requests-title {
    margin: 0 0 31.99px 0;
    font-size: 22px;
    line-height: 28.6px;
    font-weight: 700;
    color: #0288D1;
    letter-spacing: 0;
    padding: 0;
}

/* Filter Section */
.full-text-filters {
    background: white;
    padding: 21.26px;
    border-radius: 14px;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.02);
    outline: 1.26px rgba(227, 230, 225, 0.50) solid;
    outline-offset: -1.26px;
    margin-bottom: 31.99px;
    display: flex;
    gap: -40px; 
    align-items: center; 
    justify-content: flex-start;
    flex-wrap: nowrap; 
}

.filter-field {
    display: flex;
    margin-right: 20px;
    flex-direction: column;
    gap: 5.99px;
}

.filter-label {
    display: block;
    font-size: 13px;
    color: #374151;
    margin-bottom: 6px;
    font-weight: 400;
}

.filter-input {
    width: 100%;
    height: 38px;
    padding: 4px 12px;
    background: #F3F3F5;
    border-radius: 10px;
    border: 1.26px solid #D1D5DB;
    box-sizing: border-box;
    font-size: 14px;
    color: #111827;
    outline: none;
}

.filter-input::placeholder {
    color: #717182;
}

.filter-input:focus {
    outline: 1.26px #0288D1 solid;
    background: white;
}

/* Table wrapper */
.full-text-requests-table-wrapper {
    overflow: hidden;
    border-radius: 12px;
    outline: 1.26px #E5E7EB solid;
    outline-offset: -1.26px;
    background: white;
    position: relative;
}

/* Table base */
.full-text-requests-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
    table-layout: auto;
    font-size: 13px;
}

/* Header */
.full-text-requests-table thead th {
    background: #0288D1;
    color: white;
    font-weight: 700;
    text-align: left;
    padding: 19.78px 15.98px;
    border-right: 1.26px rgba(255, 255, 255, 0.15) solid;
    vertical-align: middle;
    letter-spacing: 0.5px;
    font-size: 13px;
    text-transform: uppercase;
    line-height: 19.5px;
    user-select: none;
    transition: opacity 0.2s ease, background 0.2s ease;
    cursor: default;
}

.full-text-requests-table thead th:last-child {
    border-right: none;
}

/* Drag and drop styles */
.th-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.drag-handle-icon {
    width: 14px;
    height: 14px;
    opacity: 0.6;
    cursor: grab;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.drag-handle-icon:hover {
    opacity: 0.9;
}

.drag-handle-icon:active {
    cursor: grabbing;
}

.full-text-requests-table thead th.dragging {
    opacity: 0.5;
    background: #0277BD;
}

.full-text-requests-table thead th:hover {
    background: #0277BD;
}

/* Column widths based on design */
.full-text-requests-table thead th:nth-child(1) {
    width: 137.36px;
}

.full-text-requests-table thead th:nth-child(2) {
    width: 686.91px;
}

.full-text-requests-table thead th:nth-child(3) {
    width: 343.44px;
}

.full-text-requests-table thead th:nth-child(4) {
    width: 206.10px;
}

/* Cells */
.full-text-requests-table tbody td {
    padding: 18px 15.98px;
    border-bottom: 1.26px #E5E7EB solid;
    vertical-align: middle;
    color: #1F2933;
    font-weight: 400;
    font-size: 13px;
    line-height: 19.5px;
}

.full-text-requests-table tbody td:last-child {
    border-right: none;
}

/* Empty state row */
.full-text-requests-table-empty {
    text-align: center;
    padding: 48px 20px;
    color: #6b7280;
    font-style: italic;
    font-size: 13px;
    font-weight: 400;
    border: none;
}

/* Title cell */
.full-text-requests-title-cell {
    color: #1F2933;
    font-weight: 400;
}

/* Row zebra */
.full-text-requests-table tbody tr:nth-child(even) {
    background: #FAFBFC;
}

.full-text-requests-table tbody tr:nth-child(odd) {
    background: white;
}

.full-text-requests-table tbody tr:hover {
    background: #f8fafc;
}

/* Status badge base */
.full-text-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3.25px 11.99px;
    border-radius: 42431300px;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    text-align: center;
    min-width: 60px;
}

/* Status colors based on design */
.status-requested {
    background: #E3F2FD;
    color: #1976D2;
}

.status-approved {
    background: #E8F5E9;
    color: #388E3C;
}

.status-pending {
    background: #FFF3E0;
    color: #F57C00;
}

.status-fulfilled {
    background: #F3E5F5;
    color: #7B1FA2;
}

/* ID column - blue and clickable looking */
.full-text-requests-table tbody td:first-child {
    color: #0288D1;
    font-weight: 400;
    font-size: 13px;
    line-height: 19.5px;
}

/* Pagination layout */
.full-text-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    gap: 12px;
    margin-top: 0;
    padding: 15.98px;
    background: white;
    border-top: 1.26px #E5E7EB solid;
}

.pagination-info-left {
    white-space: nowrap;
    color: #333;
    font-size: 14px;
    font-weight: 400;
    line-height: 19.5px;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-nav-btn {
    width: 31.99px;
    height: 31.99px;
    background: white;
    border: none;
    outline: 1.26px #D1D5DB solid;
    outline-offset: -1.26px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #374151;
}

.pagination-nav-btn:hover:not([disabled]) {
    background: #f3f4f6;
}

.pagination-nav-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-page-btn {
    width: 31.99px;
    height: 31.99px;
    background: white;
    border: none;
    outline: 1.26px #D1D5DB solid;
    outline-offset: -1.26px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 400;
    line-height: 19.5px;
    color: #0A0A0A;
    transition: all 0.2s ease;
}

.pagination-page-btn.active {
    background: #0288D1;
    color: white;
    outline: none;
}

.pagination-page-btn:hover:not(.active) {
    background: #f3f4f6;
}

.page-size-selector {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px; /* spacing from page buttons */
    padding: 0 11.99px;
    height: 35.98px;
    background: #F3F3F5;
    border-radius: 8px;
    outline: 1.26px #D1D5DB solid;
    outline-offset: -1.26px;
}

.page-size-text {
    color: #0A0A0A;
    font-size: 13px;
    font-weight: 400;
    line-height: 19.5px;
}

.page-size-select {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.dropdown-icon {
    color: #717182;
    opacity: 0.5;
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .full-text-requests-container {
        padding: 24px;
    }

    .full-text-filters {
        gap: 12px; /* reduced gap for medium screens */
        flex-wrap: wrap; /* allow wrapping on narrower viewports */
    }

    .filter-field {
        min-width: 180px;
        flex: 1 1 45%;
    }
}

@media (max-width: 768px) {
    .full-text-requests-container {
        padding: 20px 16px;
    }

    .full-text-requests-title {
        font-size: 20px;
    }

    .full-text-filters {
        flex-direction: column;
        gap: 8px;
    }

    .filter-field {
        min-width: 100%;
    }

    .full-text-requests-table-wrapper {
        overflow-x: auto;
    }

    .pagination-info-left {
        font-size: 12px;
    }

    .pagination-controls {
        gap: 6px;
    }
}

@media (max-width: 640px) {
    .full-text-requests-container {
        padding: 16px 12px;
    }

    .full-text-requests-title {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .full-text-filters {
        padding: 16px;
    }

    .full-text-requests-table {
        font-size: 12px;
    }

    .full-text-requests-table thead {
        display: none;
    }

    .full-text-requests-table tbody tr {
        display: block;
        margin-bottom: 16px;
        border-radius: 10px;
        background: white;
        box-shadow: 0 2px 12px rgba(15, 23, 36, 0.08);
        padding: 0;
        border: 1px solid rgba(15, 23, 36, 0.08);
        overflow: hidden;
    }

    .full-text-requests-table tbody td {
        display: flex;
        justify-content: space-between;
        padding: 12px 14px;
        border-bottom: 1px solid rgba(15, 23, 36, 0.08);
        align-items: center;
    }

    .full-text-requests-table tbody td:last-child {
        border-bottom: none;
    }

    .full-text-requests-table tbody td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #0288D1;
        margin-right: 12px;
        min-width: 70px;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    .full-text-pagination {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .pagination-info-left {
        order: 2;
        text-align: center;
    }

    .pagination-controls {
        order: 1;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .full-text-requests-container {
        padding: 12px 8px;
    }

    .full-text-requests-title {
        font-size: 16px;
    }

    .pagination-nav-btn,
    .pagination-page-btn {
        width: 28px;
        height: 28px;
    }

    .page-size-selector {
        height: 32px;
        padding: 0 10px;
    }
}.ls-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(1px);
  animation: fadeIn 0.2s ease;
}

.ls-modal-container {
  background: #ffffff;
  border-radius: 16px;
  width: 96vw;
  max-width: 720px; /* reduced to cut right-side gutter */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 95vh;
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.12);
}

.ls-modal-header {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  align-self: stretch;
  height: 57.22px;
  padding-left: 23.99px;
  padding-right: 23.99px;
  background: #F9FAFB;
  border-bottom: 1.26px solid #E5E7EB;
}

/* Edit modal: taller header with top padding and title aligned to top */
.edit-ls-modal-header {
  height: 61.21px; /* matches design */
  padding-top: 15.98px;
  padding-bottom: 1.26px;
  padding-left: 23.99px;
  padding-right: 23.99px;
  align-items: flex-start; /* place title near top */
  background: #F9FAFB;
  border-bottom: 1.26px solid #E5E7EB;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.ls-modal-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: Arial, sans-serif;
  color: #1F2937;
  font-size: 18px;
  font-weight: 700;
  line-height: 27px;
}

/* Edit modal title should be highlighted in blue */
.edit-ls-modal-title {
  color: #0288D1;
  display: inline-block;
  margin-top: 0; /* let header padding control vertical spacing */
}

.ls-modal-icon {
  width: 20px;
  height: 20px;
}

.ls-modal-close-btn {
  width: 27.98px;
  height: 27.98px;
  padding-top: 3.99px;
  padding-left: 3.99px;
  padding-right: 3.99px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
}
.ls-modal-close-btn:hover {
  background: #f3f4f6;
}

/* (Removed edit-mode square close control — use same SVG close icon for both modals) */

.ls-modal-body {
  /* make body flexible so footer can sit at bottom of modal */
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-top: 15.98px;
  padding-left: 20px; /* slightly reduced padding */
  padding-right: 20px; /* slightly reduced padding */
  padding-bottom: 12px;
}

.ls-modal-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* flexible two-column layout */
  column-gap: 12px;
  row-gap: 12px;
  margin-bottom: 16px;
}

.ls-modal-form-row {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 0;
}

.ls-modal-label {
  color: #374151;
  font-size: 13px;
  font-family: Arial, sans-serif;
  font-weight: 400;
  line-height: 19.50px;
}

.ls-section-label {
  color: #6B7280;
  font-size: 11px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 16.50px;
  letter-spacing: 0.28px;
}

.ls-info-box {
  align-self: stretch;
  padding-top: 17.25px;
  padding-bottom: 1.26px;
  padding-left: 17.25px;
  padding-right: 17.25px;
  background: #E1F3FB;
  border-radius: 14px;
  outline: 1.26px solid #B3E0F2;
  outline-offset: -1.26px;
  display: flex;
  flex-direction: column;
  gap: 11.99px;
}

.ls-info-box .ls-modal-input {
  background: #ffffff;
  border: 1.26px solid #B3E0F2;
  padding-left: 18px;
  padding-right: 18px;
}

.ls-info-box .ls-modal-textarea {
  background: #ffffff;
  border: 1.26px solid #B3E0F2;
  padding-left: 18px;
  padding-right: 18px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.ls-info-box .ls-section-label {
  color: #0288D1;
}

.ls-modal-input,
.ls-modal-textarea {
  height: 48px;
  padding-left: 18px;
  padding-right: 18px;
  background: #ffffff;
  overflow: hidden;
  border-radius: 14px;
  border: 1.26px solid #E5E7EB;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  color: rgba(31.01, 40.99, 54.99, 0.95);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.ls-modal-input {
  width: 100%;
}

.ls-input-with-icon {
  position: relative;
  width: 100%;
}

.ls-input-with-icon .ls-modal-input {
  padding-right: 46px; /* make room for calendar icon */
}

.ls-calendar-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  pointer-events: none;
  opacity: 0.95;
}
.ls-modal-input::placeholder,
.ls-modal-textarea::placeholder {
  color: rgba(31.01, 40.99, 54.99, 0.50);
}
.ls-modal-input:focus,
.ls-modal-textarea:focus {
  border-color: #9ecce9;
  box-shadow: none;
  outline: none;
}

.ls-modal-textarea {
  resize: vertical;
  min-height: 96px;
  padding-top: 12px;
  padding-bottom: 12px;
  font-family: inherit;
  line-height: 21px;
  overflow-y: auto;
  align-items: flex-start;
}

.ls-modal-textarea.error {
  border-color: #dc2626;
  background: #fef2f2;
}

.ls-modal-error {
  color: #dc2626;
  font-size: 13px;
  margin-top: 4px;
}

.ls-modal-footer {
  align-self: stretch;
  padding: 12px 23.99px; /* top/bottom and left/right padding for above spacing */
  border-top: 1.26px solid #E5E7EB;
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  gap: 11.99px;
  background: #ffffff;
}

.ls-modal-save-btn {
  min-width: 70px;
  height: 39.99px;
  border-radius: 14px;
  font-size: 14px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  line-height: 21px;
  border: none;
  cursor: pointer;
}

.ls-cancel-btn {
  width: 84.37px;
  height: 39.99px;
  background: #ffffff;
  border-radius: 14px;
  outline: 1.26px solid #D1D5DB;
  outline-offset: -1.26px;
  color: #364153;
  font-weight: 400;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 21px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px; /* added padding for vertical & horizontal spacing */
  cursor: pointer;
}
.ls-cancel-btn:focus {
  outline: none;
  box-shadow: none;
}

.ls-primary-btn {
  width: 102.43px;
  height: 39.99px;
  background: #0288D1;
  box-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.10), 0px 1px 3px rgba(0, 0, 0, 0.10);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 400;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 21px;
  border: none;
  cursor: pointer;
  padding: 8px 18px; /* added padding for vertical & horizontal spacing */
}
.ls-primary-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(2, 136, 209, 0.15);
}
.ls-primary-btn:hover {
  background: #0277BD;
}

/* Disabled primary button appearance */
.ls-primary-btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.ls-search-query-row {
  margin-bottom: 4px;
}

.ls-search-query-row,
.ls-modal-form-row.full-width {
  grid-column: 1 / span 2; /* Make these rows span both columns */
}

@media (max-width: 600px) {
  .ls-modal-container {
    max-width: 99vw;
    min-width: 120px;
    padding: 0;
  }
  .ls-modal-title {
    font-size: 0.95rem;
  }
  .ls-modal-label {
    font-size: 0.9rem;
  }
  .ls-modal-input,
  .ls-modal-textarea {
    font-size: 0.9rem;
    padding: 4px 5px;
  }
  .ls-modal-footer {
    gap: 4px;
    padding: 4px 4px;
  }
}

/* Custom scrollbar for modals */
.ls-modal-body::-webkit-scrollbar,
.ls-modal-textarea::-webkit-scrollbar {
  width: 5px;
}
.ls-modal-body::-webkit-scrollbar-track,
.ls-modal-textarea::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}
.ls-modal-body::-webkit-scrollbar-thumb,
.ls-modal-textarea::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}
.ls-modal-body::-webkit-scrollbar-thumb:hover,
.ls-modal-textarea::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}/* --- Product Config Main Page --- */
.product-config-page {
  background: #f7f9fc;
  min-height: 100vh;
  padding: 12px;
  font-family: 'Segoe UI', Arial, sans-serif;
}

.product-config-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 18px 10px 18px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.product-config-title {
  color: #0288D1;
  font-size: 32px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  line-height: 48px;
  word-wrap: break-word;
  margin: 16px 0 0 16px;
}

.products-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-config-btn_primary,
.workspace-controls-below {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 18px;
  gap: 12px;
  background: #F3F4F6;
  border-radius: 10px;
  padding: 8px;
}

.workspace-tabs-below {
  display: flex;
  gap: 12px;
  align-items: center;
}

.workspace-tab-btn-below {
  background: transparent;
  border: none;
  font-size: 14px;
  font-family: Arial, sans-serif;
  font-weight: 400;
  color: #4A5565;
  /* inactive text color */
  padding: 6px 16px;
  height: 36px;
  line-height: 20px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 0.12s, color 0.12s, box-shadow 0.12s;
}

.workspace-tab-btn-below.active {
  background: #ffffff;
  /* white card for active */
  color: #0288D1;
  /* active text color */
  box-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.10), 0px 1px 3px rgba(0, 0, 0, 0.10);
}

.workspace-tab-btn-below .tab-count {
  display: inline-block;
  background: rgba(2, 136, 209, 0.08);
  color: #0288D1;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 10px;
  font-size: 12px;
}

.workspace-filter-btn-below {
  background: #ffffff;
  color: #2563eb;
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.10), 0px 1px 3px rgba(0, 0, 0, 0.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  width: auto;
}

.workspace-filter-btn-below:hover {
  background: #ffffff;
}

.workspace-filter-btn-below .filter-icon {
  font-size: 16px;
}

.filter-icon-box {
  width: 16px;
  height: 16px;
  display: inline-block;
  position: relative;
  margin-right: 10px;
  vertical-align: middle;
}

.filter-label {
  color: #364153;
  font-size: 14px;
  font-family: Arial, sans-serif;
  font-weight: 400;
}

/* --- Table --- */
.products-table-container {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 12px;
  overflow-x: auto;
  margin-top: 15px;
}

.products-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 1rem;
  background: #fff;
}

/* Remove full grid lines; use subtle separators between rows to match design */
.products-table th,
.products-table td {
  padding: 10px 8px;
  border: none;
  vertical-align: middle;
  background: #fff;
  text-align: center;
  /* center header and column text */
}

/* Header styling matching design, draggable look */
.products-table th {
  background: #0288D1;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.8px;
  padding: 6px 12px;
  height: 27.5px;
  box-sizing: border-box;
  position: relative;
  cursor: default;
}

.products-table th .drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  vertical-align: middle;
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  cursor: grab;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.products-table th .drag-handle:hover {
  opacity: 0.9;
}

.products-table th .drag-handle:active {
  cursor: grabbing;
}

.products-table th .header-label {
  color: white;
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  line-height: 12.5px;
  letter-spacing: 0.8px;
  word-wrap: break-word;
  white-space: normal;
  display: block;
  width: 100%;
  text-align: center;
  padding: 0 8px;
}

/* Remove border-bottom override for last row */
/* Removed empty ruleset for .products-table tr:last-child td */

.empty-table-message {
  text-align: center;
  color: #6b7280;
  font-size: 1.08rem;
  padding: 24px 0;
}

/* Row separator similar to provided design */
.products-table tbody tr {
  border-bottom: 0.67px solid rgba(228, 231, 226, 0.50);
}

/* Cell typography for table rows */
.products-table tbody td {
  color: #4B5563;
  font-size: 11px;
  font-family: Arial, sans-serif;
  font-weight: 400;
  line-height: 16.5px;
  word-wrap: break-word;
  padding: 12px 8px;
}

/* First column (Generic Name) uses darker text color */
.products-table tbody td:first-child {
  color: #1F2933;
}

/* Small numeric or short cells can remain left aligned; adjust per column if needed */

/* --- Action Buttons --- */
.action-buttons {
  display: flex;
  gap: 8px;
}

.organization-icon-btn {
  background: transparent;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  padding: 3px 6px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.organization-icon-btn img {
  width: 16px;
  height: 16px;
  display: block;
}

.organization-icon-btn.edit:hover,
.organization-icon-btn.view:hover,
.organization-icon-btn.remove:hover {
  background: transparent;
}

.organization-icon-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --- Tooltip for truncated cells --- */
.tooltip-container {
  position: relative;
  display: inline-block;
  max-width: 180px;
  vertical-align: top;
}

.search-modal-icon img {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: middle;
  display: inline-block;
}

.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  max-width: 170px;
  vertical-align: top;
}

.tooltip-content {
  display: none;
  position: absolute;
  left: 0;
  top: 120%;
  background: #fff;
  color: #2563eb;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 0.98rem;
  z-index: 10;
  min-width: 180px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tooltip-container:hover .tooltip-content {
  display: block;
}

/* --- Pagination --- */
.lit-prod-pagination-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 18px 0 18px;
  background: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.lit-prod-pagination-info {
  font-size: 1rem;
  color: #374151;
}

.lit-prod-pagination-controls {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lit-prod-page-size-select {
  font-size: 1rem;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
  color: #2563eb;
}

.lit-prod-pagination-buttons {
  display: flex;
  gap: 2px;
}

.lit-prod-pagination-btn {
  background: #f3f4f6;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  padding: 5px 10px;
  cursor: pointer;
  transition: background 0.2s;
  margin: 0 1px;
}

.lit-prod-pagination-btn.active,
.lit-prod-pagination-btn.page-number.active {
  background: #2563eb;
  color: #fff;
  font-weight: 600;
}

.lit-prod-pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* New pagination layout styles matching provided design */
.lit-prod-pagination__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lit-prod-pagination__rows-label {
  color: #4A5565;
  font-size: 14px;
  font-family: Arial, sans-serif;
  font-weight: 400;
}

.lit-prod-pagination__rows-select {
  width: 65px;
  height: 29.5px;
  border-radius: 4px;
  border: 0.67px solid #D1D5DC;
  background: transparent;
  padding: 4px 8px;
  font-size: 14px;
  color: #374151;
}

.lit-prod-pagination__info {
  color: #4A5565;
  font-size: 14px;
  font-family: Arial, sans-serif;
}

.lit-prod-pagination__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lit-prod-pagination__prev,
.lit-prod-pagination__next {
  background: transparent;
  border: none;
  color: #99A1AF;
  font-size: 14px;
  font-family: Arial, sans-serif;
  cursor: pointer;
  padding: 6px 10px;
}

.lit-prod-pagination__prev:disabled,
.lit-prod-pagination__next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.lit-prod-pagination__page {
  display: inline-flex;
  align-items: center;
}

.lit-prod-pagination__page-button {
  min-width: 28px;
  height: 28px;
  padding: 4px 10px;
  border-radius: 4px;
  background: #0288D1;
  color: #fff;
  border: none;
  font-size: 14px;
  font-family: Arial, sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* --- Modal Overlay & Container --- */
.product-config-modal-overlay,
.modal-overlay,
.search-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.product-config-modal-container,
.modal-container,
.search-modal-container {
  background: #fff;
  border-radius: 8px;
  max-width: 700px;
  width: 98vw;
  min-width: 340px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  max-height: 95vh;
  overflow: hidden;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Modal Header --- */
.product-config-modal-header,
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}


.search-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: #f9fafb;
}

.product-config-modal-title,
.modal-title,
.search-modal-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #0288D1;
}

.product-config-modal-close-btn,
.modal-close-btn,
.search-modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
}

.product-config-modal-close-btn:hover,
.modal-close-btn:hover,
.search-modal-close-btn:hover {
  background: #f3f4f6;
  color: #dc2626;
}

/* --- Modal Body --- */
.product-config-modal-body,
.modal-body,
.search-modal-body {
  overflow-y: auto;
  max-height: calc(95vh - 48px);
  padding: 18px 22px;
}

/* Updated Upload Modal Specific Styles */
.product-config-modal-container {
  background: white;
  width: 468.5px;
  max-width: 468.5px;
  border-radius: 12px;
  box-shadow: 0px 0px 0px 0.75px rgba(0, 0, 0, 0.05), 0px 15px 45px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.product-config-modal-header--large {
  height: 83.75px;
  padding: 21px 18px;
  border-bottom: 0.5px solid #E4E7EB;
  background: transparent;
}

.product-config-modal-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-config-modal-title {
  color: #1A1D29;
  font-size: 15px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  line-height: 19.5px;
}

.product-config-modal-subtitle {
  color: #6B7280;
  font-size: 10.5px;
  font-family: Arial, sans-serif;
  font-weight: 400;
  line-height: 15.75px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.product-config-modal-body--compact {
  padding: 30px;
  height: 450.67px;
  /* allow internal scrolling if needed */
  box-sizing: border-box;
}

.product-config-upload-card {
  background: #F9FAFB;
  box-shadow: 0px 3px 9px rgba(0, 0, 0, 0.04);
  border-radius: 12px;
  outline: 1.5px #D1D5DB solid;
  outline-offset: -1.5px;
  height: 301.05px;
  position: relative;
  padding: 24px 30px;
}

.product-config-upload-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
}

.product-config-upload-overlay.dragging {
  background: rgba(2, 136, 209, 0.03);
}

.upload-icon-abs {
  position: absolute;
  width: 72px;
  height: 72px;
  left: 168.25px;
  top: 43.52px;
  background: #E3F2FD;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.upload-icon-img {
  width: 36px;
  height: 36px;
  display: block;
}

.upload-heading-abs {
  position: absolute;
  left: 37.5px;
  top: 136.52px;
  width: 333.5px;
  height: 17.55px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.upload-or-browse-abs {
  position: absolute;
  left: 37.5px;
  top: 163.08px;
  width: 333.5px;
  height: 16.88px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}

.upload-or-browse-abs .upload-or-text {
  color: #6B7280;
  font-size: 11.25px;
  font-family: Arial, sans-serif;
  font-weight: 400;
  line-height: 16.88px;
}

.upload-or-browse-abs .product-config-upload-browse {
  background: none;
  border: none;
  color: #0288D1;
  font-size: 11.25px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  line-height: 16.88px;
  cursor: pointer;
}

.upload-support-abs {
  position: absolute;
  left: 37.5px;
  top: 185.95px;
  width: 333.5px;
  height: 14.62px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.upload-support-abs .support-part1 {
  color: #9AA5B1;
  font-size: 9.75px;
  font-family: Arial, sans-serif;
  font-weight: 400;
  line-height: 14.62px;
}

.upload-support-abs .support-part2 {
  color: #9AA5B1;
  font-size: 12px;
  font-family: Arial, sans-serif;
  font-weight: 400;
  line-height: 14.62px;
}

.download-btn-abs {
  position: absolute;
  left: 123.73px;
  top: 224.58px;
  width: 161.03px;
  height: 33px;
  background: #0288D1;
  box-shadow: 0px 1.5px 6px rgba(2, 136, 209, 0.24);
  border-radius: 7.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  cursor: pointer;
}

.download-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.download-icon-wrap {
  width: 15px;
  height: 15px;
  margin-left: 8px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-icon-img {
  width: 15px;
  height: 15px;
  display: block;
}

.download-text {
  color: white;
  font-size: 10px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  line-height: 15.75px;
}

.upload-action-center {
  position: absolute;
  left: 52%;
  transform: translateX(-50%);
  bottom: 14px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.upload-file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.upload-file-name {
  color: #374151;
  font-size: 14px;
  font-family: Arial, sans-serif;
  font-weight: 500;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-config-clear-btn {
  background: transparent;
  border: 1px solid #D1D5DC;
  color: #364153;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.product-config-clear-btn:hover {
  background: #f3f4f6;
}

.download-btn-abs.disabled {
  opacity: 0.5;
  pointer-events: none;
  box-shadow: none;
  cursor: default;
}

.product-config-upload-zone {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 18px;
}

.product-config-upload-icon-layer {
  width: 72px;
  height: 72px;
  background: #E3F2FD;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-config-upload-icon {
  font-size: 36px;
}

.product-config-upload-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.product-config-upload-heading {
  color: #1A1D29;
  font-size: 13.5px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  line-height: 17.55px;
}

.product-config-upload-or {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-config-upload-or-text {
  color: #6B7280;
  font-size: 11.25px;
  font-weight: 400;
}

.product-config-upload-browse {
  background: none;
  border: none;
  color: #0288D1;
  font-size: 11.25px;
  font-weight: 700;
  cursor: pointer;
  line-height: 16.88px;
}

.product-config-upload-or-text {
  line-height: 16.88px;
}

.product-config-upload-support {
  margin-top: 8px;
  color: #9AA5B1;
}

.product-config-upload-support .support-part1 {
  font-size: 9.75px;
  font-family: Arial, sans-serif;
  font-weight: 400;
  line-height: 14.62px;
}

.product-config-upload-support .support-part2 {
  font-size: 12px;
  font-family: Arial, sans-serif;
  font-weight: 400;
  line-height: 14.62px;
}

.product-config-upload-actions--bottom {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.product-config-btn-download {
  background: #0288D1;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 7.5px;
  box-shadow: 0px 1.5px 6px rgba(2, 136, 209, 0.24);
  display: inline-flex;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 15.75px;
}

.product-config-btn-primary {
  background: #0288D1;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 7.5px;
  box-shadow: 0px 1.5px 6px rgba(2, 136, 209, 0.12);
  cursor: pointer;
}

.product-config-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
}

.product-config-divider-line {
  flex: 1;
  height: 0.75px;
  background: #E4E7EB;
}

.product-config-divider-text {
  color: #9AA5B1;
  font-size: 9.75px;
}

.product-config-add-single {
  background: white;
  box-shadow: 0px 0.75px 2.25px rgba(0, 0, 0, 0.04);
  border-radius: 10.5px;
  outline: 1.5px #DFE3E8 solid;
  outline-offset: -1.5px;
  position: relative;
  width: 100%;
  height: 39px;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.product-config-add-single .add-single-icon-img {
  width: 15px;
  height: 15px;
  display: block;
}

.product-config-add-single .add-single-text {
  color: #5B6B7F;
  font-size: 10.5px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  line-height: 15.75px;
  position: relative;
}

.product-config-add-single .add-single-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-config-add-single .add-single-icon-img {
  width: 15px;
  height: 15px;
  display: block;
}


/* --- Modal Footer --- */
.product-config-modal-footer,
.modal-footer,
.search-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
}

/* --- Upload Modal --- */
.product-config-upload-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.product-config-upload-zone {
  border: 2px dashed #2563eb;
  border-radius: 8px;
  background: #f3f4f6;
  padding: 28px 0;
  text-align: center;
  cursor: pointer;
  margin-bottom: 18px;
  transition: background 0.2s, border-color 0.2s;
}

.product-config-upload-zone.dragging {
  background: #e0e7ff;
  border-color: #1976d2;
}

.product-config-upload-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
  color: #2563eb;
}

/* --- Product Statistics Cards --- */
.product-stats {
  position: relative;
  padding: 18px 18px 0 18px;
}

.product-stats-header {
  color: #6B7280;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 12px;
  font-family: Arial, sans-serif;
}

.product-stats-row {
  display: flex;
  gap: 24px;
  align-items: stretch;
  width: 100%;
}

.product-stats .stat-card {
  flex: 1 1 0%;
  min-width: 0;
  max-width: none;
  height: 110px;
  border-radius: 14px;
  box-shadow: 0px 8px 24px rgba(17, 24, 39, 0.08);
  padding-left: 28px;
  position: relative;
  overflow: hidden;
}

.product-stats .stat-card .stat-label {
  position: absolute;
  left: 28px;
  top: 24px;
  color: #6B7280;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.88px;
  font-family: Arial, sans-serif;
}

.product-stats .stat-card .stat-value {
  position: absolute;
  left: 28px;
  top: 52px;
  color: #111827;
  font-size: 34px;
  font-weight: 400;
  font-family: Arial, sans-serif;
}

.product-stats .stat-total {
  background: linear-gradient(151deg, #A8B8CE 11%, #9BACC4 90%) !important;
}

.product-stats .stat-active {
  background: linear-gradient(153deg, #9BCDB7 10%, #8BC3AD 89%) !important;
}

.product-stats .stat-inactive {
  background: linear-gradient(154deg, #FCDBD8 12%, #FAD0CC 89%) !important;
}

/* Adjust tabs and table spacing to sit below stats */
.products-tabs {
  margin-top: 18px;
  /* minimal by default; inline override may increase spacing */
}

.products-section {
  margin-top: 18px;
  /* will be overridden inline if needed */
}

.product-config-upload-text {
  font-size: 1.08rem;
  color: #374151;
  margin-bottom: 4px;
}

.product-config-upload-hint {
  font-size: 0.95rem;
  color: #6b7280;
}

.product-config-upload-error {
  color: #dc2626;
  font-size: 0.98rem;
  margin-top: 8px;
}

.product-config-upload-status {
  color: #2563eb;
  font-size: 1.02rem;
  margin-top: 8px;
}

.product-config-upload-status.error {
  color: #dc2626;
}

/* Move upload and general status messages to bottom-right toasts */
.product-config-upload-status,
.product-config-status-message {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 3500;
  background: #e3f2fd;
  color: #2563eb;
  border-radius: 6px;
  padding: 12px 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  max-width: 420px;
}

.product-config-upload-status.error,
.product-config-status-message.error {
  background: #fee2e2;
  color: #dc2626;
}

/* --- Search Modal --- */
.search-modal-tabs-modern {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 20px 0;
  background: #F9FAFB;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  border-bottom: 1.26px solid #E5E7EB;
}

.search-modal-tab-btn-modern {
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 400;
  color: #4A5565;
  /* muted gray for inactive */
  padding: 3px 20px;
  cursor: pointer;
  border-radius: 999px;
  /* pill shape */
  height: 30px;
  line-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  transition: background 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

.search-modal-tab-btn-modern:first-child {
  min-width: 94px;
}

.search-modal-tab-btn-modern:nth-child(2) {
  min-width: 88.7px;
  height: 37px;
}

.search-modal-tab-btn-modern.active {
  background: #0288D1;
  /* primary blue */
  color: #ffffff;
  box-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.10), 0px 1px 3px rgba(0, 0, 0, 0.10);
  font-weight: 700;
}

.approval-date-highlight {
  display: flex;
  align-items: center;
  gap: 23.99px;
  background: #F3F4F6;
  border-radius: 14px;
  padding: 10px 16px;
  margin-bottom: 18px;
  font-size: 13px;
}

.approval-date-highlight-label {
  font-weight: 400;
  color: #4A5565;
  font-size: 13px;
  line-height: 19.5px;
}

.approval-date-highlight-value {
  color: #101828;
  font-weight: 700;
  font-size: 13px;
  line-height: 19.5px;
}

.search-modal-fields-modern {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.search-modal-form-row-modern {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
}

.search-modal-date-row {
  gap: 18px;
}

.search-modal-date-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.search-modal-label {
  font-weight: 700;
  font-size: 11px;
  color: #6A7282;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.28px;
  line-height: 16.5px;
}

.search-modal-input-modern {
  font-size: 16px;
  padding: 10px 14px;
  border: none;
  border-radius: 14px;
  background: #F9FAFB;
  outline: 1.26px solid #E5E7EB;
  outline-offset: -1.26px;
  transition: outline-color 0.12s ease, box-shadow 0.12s ease;
}

.search-modal-input-modern:focus {
  outline-color: #cfe9ff;
  box-shadow: 0 0 0 3px rgba(2, 136, 209, 0.06);
  outline-offset: -1.26px;
}

.search-modal-textarea {
  font-size: 16px;
  padding: 10px 14px;
  border: none;
  border-radius: 14px;
  background: #F9FAFB;
  outline: 1.26px solid #E5E7EB;
  outline-offset: -1.26px;
  transition: outline-color 0.12s ease, box-shadow 0.12s ease;
  min-height: 142px;
  max-height: 220px;
  resize: vertical;
  width: 100%;
  margin-bottom: 12px;
  line-height: 24px;
}

.search-modal-textarea::placeholder {
  color: #99A1AF;
  font-size: 16px;
}

.search-modal-textarea:focus {
  outline-color: #cfe9ff;
  box-shadow: 0 0 0 3px rgba(2, 136, 209, 0.06);
  outline-offset: -1.26px;
}

.search-modal-run-btn {
  background: #0288D1;
  color: #ffffff;
  border: none;
  border-radius: 14px;
  height: 40px;
  min-width: 200px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 400;
  box-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.10), 0px 1px 3px rgba(0, 0, 0, 0.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.12s ease, box-shadow 0.12s ease;
}

.search-modal-run-btn:hover {
  background: #0277BD;
}

/* spacing for run icon inside the button */
.search-modal-run-btn .run-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}

.search-modal-upload-btn {
  padding: 7px 16px;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  background: linear-gradient(90deg, #fbbf24, #f87171);
  color: #fff;
  transition: background 0.2s;
  min-width: 120px;
  margin-bottom: 8px;
}

.search-modal-upload-btn:hover {
  background: linear-gradient(90deg, #f59e42, #dc2626);
}

.search-modal-file-info {
  margin-top: 6px;
  font-size: 0.98rem;
}

.search-modal-file-error {
  color: #dc2626;
  font-size: 0.98rem;
  margin-top: 6px;
}

.search-modal-last-count {
  margin-top: 14px;
  color: #0288D1;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-modal-last-count .count {
  color: #0288D1;
  font-weight: 700;
  font-size: 13px;
}

.search-modal-last-count-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  border-radius: 4px;
  box-sizing: border-box;
  border: 1.33px solid #0288D1;
}

.search-modal-status {
  margin-top: 12px;
  padding: 8px 14px;
  border-radius: 5px;
  font-size: 1.02rem;
  background: #e3f2fd;
  color: #2563eb;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- Embase Tab Specific Styles --- */
.search-modal-body .embase-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 8px 0 0 0;
}

.embase-upload-zone {
  background: rgba(255, 251, 235, 0.30);
  border-radius: 14px;
  padding: 49px 49px;
  outline: 1.26px solid #FFD230;
  outline-offset: -1.26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  cursor: pointer;
}

.embase-upload-zone.dragging {
  background: rgba(255, 251, 235, 0.45);
  outline-color: #FFBF00;
}

.embase-upload-icon {
  font-size: 40px;
  line-height: 40px;
  color: #99A1AF;
}

.embase-upload-text {
  color: #101828;
  font-size: 15px;
  font-weight: 400;
}

.embase-upload-hint {
  color: #6A7282;
  font-size: 13px;
}

/* Make Embase Run button visually disabled until enabled (JS manages disabled attr) */
.embase-section .search-modal-run-btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Embase Run button visual to match provided design */
.embase-section .search-modal-run-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 195px;
  background: #0288D1;
  color: #ffffff;
  opacity: 0.50;
  border-radius: 14px;
  box-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.10), 0px 1px 3px rgba(0, 0, 0, 0.10);
  border: none;
  padding-left: 36px;
  padding-right: 16px;
  cursor: pointer;
  transition: opacity 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.embase-section .search-modal-run-btn:hover {
  opacity: 0.9;
}

.embase-section .search-modal-run-btn .run-icon {
  position: absolute;
  left: 23.99px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.embase-section .search-modal-run-btn .run-icon svg {
  color: #fff;
}

/* Slight spacing tweak so footer elements align with upload area */
.search-modal-footer {
  padding-left: 24px;
  padding-right: 24px;
}

/* Right-align Run button specifically for Embase tab */
.embase-section .search-modal-footer {
  justify-content: flex-end;
  align-items: center;
  /* extend footer to modal edges by negating body padding (18px left/right) */
  width: calc(100% + 44px);
  margin-left: -22px;
  padding-right: 22px;
  /* keep small inner gutter */
}

.search-modal-status.success {
  background: #bbf7d0;
  color: #059669;
}

.search-modal-status.error {
  background: #fee2e2;
  color: #dc2626;
}

.search-modal-status-icon {
  font-size: 1.2rem;
}

.search-modal-progress-overlay {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-modal-progress-container {
  background: #fff;
  border-radius: 8px;
  padding: 28px 38px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.search-modal-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.search-loading-spinner {
  width: 32px;
  height: 32px;
  border: 4px solid #e5e7eb;
  border-top: 4px solid #2563eb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.search-loading-text {
  font-size: 1.08rem;
  color: #2563eb;
  font-weight: 500;
}

/* --- Toast Message --- */
.toast-message {
  position: fixed;
  bottom: 32px;
  right: 32px;
  /* Changed from left: 50%/transform to right alignment */
  /* left: 50%; */
  /* transform: translateX(-50%); */
  background: #bbf7d0;
  color: #059669;
  border-radius: 6px;
  padding: 12px 24px;
  font-size: 1.08rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  min-width: 280px;
  max-width: 400px;
  justify-content: flex-start;
}

.toast-message.error {
  background: #fee2e2;
  color: #dc2626;
}

.toast-icon {
  font-size: 1.2rem;
}

.toast-close-btn {
  margin-left: 18px;
  font-size: 1.2rem;
  cursor: pointer;
  color: #dc2626;
}

/* --- Search Started Toast --- */
.search-started-toast {
  position: fixed;
  bottom: 80px;
  right: 32px;
  /* Changed from left: 50%/transform to right alignment */
  /* left: 50%; */
  /* transform: translateX(-50%); */
  background: #e3f2fd;
  color: #2563eb;
  border-radius: 6px;
  padding: 12px 24px;
  font-size: 1.08rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  min-width: 280px;
  max-width: 400px;
  justify-content: flex-start;
}

.search-started-toast-icon {
  font-size: 1.2rem;
}

.search-started-toast-close-btn {
  margin-left: 18px;
  font-size: 1.2rem;
  cursor: pointer;
  color: #2563eb;
}

/* --- Popup Error Message --- */
.popup-error-message {
  position: fixed;
  top: 18px;
  right: 32px;
  /* Changed from left: 50%/transform to right alignment */
  /* left: 50%; */
  /* transform: translateX(-50%); */
  background: #fee2e2;
  color: #dc2626;
  border-radius: 6px;
  padding: 12px 24px;
  font-size: 1.08rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  min-width: 280px;
  max-width: 400px;
  justify-content: flex-start;
}

.popup-error-icon {
  font-size: 1.2rem;
}

.popup-close-btn {
  margin-left: 18px;
  font-size: 1.2rem;
  cursor: pointer;
  color: #dc2626;
}

/* --- Filter Panel (Side Menu) --- */
.products-filter-overlay {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(0, 0, 0, 0.18);
  display: block;
}

.products-filter-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 300px;
  /* reduced width per request */
  max-width: 95vw;
  background: #fff;
  border-radius: 0 0 0 10px;
  box-shadow: 0px 8px 10px -6px rgba(0, 0, 0, 0.10), 0px 20px 25px -5px rgba(0, 0, 0, 0.10);
  display: flex;
  flex-direction: column;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.products-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
  font-size: 1.15rem;
  font-weight: 600;
}

.products-filter-close-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s;
}

.products-filter-close-btn:hover {
  background: #f3f4f6;
  color: #dc2626;
}

.products-filter-body {
  padding: 18px;
  /* slightly reduced horizontal padding to give more input width */
  display: flex;
  flex-direction: column;
  gap: 15.98px;
}

.products-filter-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.products-filter-title-row {
  margin-bottom: 8px;
}

.products-filter-title {
  color: #101828;
  font-size: 14px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  line-height: 20px;
}

.products-filter-section-label {
  color: #364153;
  font-size: 12px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 16px;
  letter-spacing: 0.6px;
}

.products-filter-row label {
  display: none;
  /* prefer section-label elements for visual parity */
}

.products-filter-input-wrapper {
  height: 44px;
  /* larger, consistent height */
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  outline: 1.26px solid #D1D5DC;
  outline-offset: -1.26px;
  background: #ffffff;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.products-filter-input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 14px;
  font-family: Arial, sans-serif;
  color: rgba(10, 10, 10, 0.9);
}

.products-filter-input {
  box-sizing: border-box;
}

.products-filter-input::placeholder {
  color: rgba(10, 10, 10, 0.5);
}

.products-filter-input:focus {
  outline: none;
}

.products-filter-footer {
  display: flex;
  gap: 12px;
  padding: 12px 22px;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
  justify-content: flex-end;
  /* align buttons to right corner */
}

.products-filter-apply-btn,
.products-filter-clear-btn {
  height: 38.49px;
  border-radius: 10px;
  font-size: 14px;
  /* font-weight: 700; */
  border: none;
  cursor: pointer;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.products-filter-clear-btn {
  background: #ffffff;
  color: #364153;
  outline: 1.26px solid #D1D5DC;
  outline-offset: -1.26px;
}

.products-filter-apply-btn {
  background: #0288D1;
  color: #ffffff;
}

.products-filter-apply-btn:hover {
  background: #0277BD;
}

/* Responsive for filter panel */
@media (max-width: 600px) {
  .products-filter-panel {
    width: 98vw;
    min-width: 0;
    border-radius: 0;
    padding: 0;
  }

  .products-filter-header,
  .products-filter-footer {
    padding: 12px 10px;
  }

  .products-filter-body {
    padding: 12px 10px;
    gap: 12px;
  }
}

/* --- Footer --- */
.product-config-footer {
  margin-top: 32px;
  padding: 18px 0 0 0;
  background: transparent;
}

/* --- Job Status Badges --- */
.job-status-badge.in-progress {
  background: #DBEAFE;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px 0 6px;
  height: 22px;
  font-family: Arial, sans-serif;
}

.job-status-spinner {
  width: 10.12px;
  height: 10.12px;
  position: relative;
  transform: rotate(-91deg);
  transform-origin: top left;
  display: inline-block;
  margin-right: 2px;
}

.job-status-spinner::before {
  content: "";
  position: absolute;
  left: 0.85px;
  top: 0.85px;
  width: 8.53px;
  height: 8.53px;
  opacity: 0.25;
  outline: 1.69px #1E40AF solid;
  outline-offset: -0.84px;
  border-radius: 2px;
  background: transparent;
}

.job-status-spinner::after {
  content: "";
  position: absolute;
  left: 0.06px;
  top: 5.08px;
  width: 8.47px;
  height: 5.16px;
  opacity: 0.75;
  background: #1E40AF;
  border-radius: 1px;
  background-clip: padding-box;
}

/* Spinner animation */
.job-status-spinner {
  animation: job-status-spin 1s linear infinite;
}

@keyframes job-status-spin {
  100% {
    transform: rotate(269deg);
  }
}

.job-status-inprogress-text {
  color: #1E40AF;
  font-size: 11px;
  font-family: Arial, sans-serif;
  font-weight: 400;
  line-height: 16.5px;
  word-break: break-word;
}

/* --- Animations --- */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .products-table-container {
    padding: 8px;
  }

  .products-section {
    padding: 0 4px;
  }

  .product-config-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 8px 8px 8px;
  }

  .pagination-container {
    flex-direction: column;
    gap: 8px;
    padding: 8px 8px;
  }
}

@media (max-width: 600px) {

  .product-config-modal-container,
  .modal-container,
  .search-modal-container,
  .products-filter-panel {
    max-width: 98vw;
    min-width: 0;
    padding: 0;
  }

  .products-table th,
  .products-table td {
    padding: 7px 4px;
    font-size: 0.95rem;
  }

  .products-tab-btn {
    padding: 10px 10px 8px 10px;
    font-size: 0.98rem;
  }

  .search-modal-tab-btn-modern {
    padding: 10px 10px 8px 10px;
    font-size: 0.98rem;
  }

  .approval-date-highlight {
    flex-direction: column;
    gap: 4px;
    padding: 6px 8px;
    font-size: 0.98rem;
  }

  .search-modal-fields-modern {
    gap: 8px;
  }

  .search-modal-form-row-modern {
    gap: 8px;
  }

  .search-modal-date-field {
    gap: 2px;
  }

  .search-modal-label {
    font-size: 0.95rem;
  }

  .search-modal-input-modern,
  .search-modal-textarea {
    font-size: 0.95rem;
    padding: 5px 7px;
  }
}

/* --- Embase Upload Zone --- */
.embase-upload-zone {
  border: 2px dashed #fbbf24;
  border-radius: 8px;
  /* background: #f3f4f6; */
  padding: 28px 0;
  text-align: center;
  cursor: pointer;
  margin-bottom: 18px;
  transition: background 0.2s, border-color 0.2s;
}

.embase-upload-zone.dragging {
  background: #fee2e2;
  border-color: #f87171;
}

.embase-upload-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
  color: #fbbf24;
}

.embase-upload-text {
  font-size: 1.08rem;
  color: #374151;
  margin-bottom: 4px;
}

.embase-upload-hint {
  font-size: 0.95rem;
  color: #6b7280;
}

/* --- Workspace Section (search + upload) --- */
.workspace-card-container {
  width: 100%;
  height: auto;
  position: relative;
  background: rgba(255, 255, 255, 0);
  box-shadow: none;
  border-radius: 10px;
  border: 0.67px solid #E3E6E1;
  box-sizing: border-box;
  padding: 12px 18px;
  margin: 18px 18px 0 18px;
}

.products-workspace-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 12px 12px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
  width: 100%;
}

.workspace-left {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin-right: 12px;
}

.workspace-heading {
  color: #6B7280;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 12px;
  font-family: Arial, sans-serif;
}

.workspace-search {
  width: 100%;
  max-width: 720px;
  position: relative;
  display: block;
}

.workspace-search-input {
  width: 100%;
  height: 44px;
  padding: 10px 14px 10px 48px;
  border-radius: 10px;
  border: 0.67px solid #E3E6E1;
  background: #fff;
  font-size: 0.95rem;
  color: #374151;
  box-sizing: border-box;
  transition: box-shadow 0.12s ease, border-color 0.12s ease;
}

.workspace-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.workspace-actions {
  margin-left: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 160px;
}

.upload-products-btn {
  background: linear-gradient(90deg, #0ea5e9, #0284c7);
  color: #fff;
  border: none;
  padding: 10px 22px;
  height: 44px;
  min-width: 160px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.upload-products-btn:hover {
  background: linear-gradient(90deg, #0284c7, #0369a1);
}

@media (max-width: 820px) {
  .products-workspace-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
  }

  .workspace-actions {
    justify-content: flex-start;
  }

  .upload-products-btn {
    width: 100%;
    min-width: 0;
  }
}

.job-status-badge.completed {
  background: #E8F5EE;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0 10px 0 6px;
  height: 22px;
  font-family: Arial, sans-serif;
}

.job-status-check-icon {
  position: relative;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 2px;
}

.job-status-check-img {
  width: 10px;
  height: 10px;
  display: block;
  z-index: 2;
}

.job-status-completed-text {
  color: #2D7A50;
  font-size: 11px;
  font-family: Arial, sans-serif;
  font-weight: 400;
  line-height: 16.5px;
  word-break: break-word;
}

.job-status-badge.not-started {
  background: #F3F4F6;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px 0 6px;
  height: 22px;
  font-family: Arial, sans-serif;
}

.job-status-circle-icon {
  position: relative;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 2px;
}

.job-status-circle-rect {
  position: absolute;
  left: 1.25px;
  top: 1.25px;
  width: 7.5px;
  height: 7.5px;
  border-radius: 50%;
  outline: 0.83px solid #6B7280;
  outline-offset: -0.42px;
  background: transparent;
  z-index: 1;
}

.job-status-circle-img {
  width: 10px;
  height: 10px;
  display: block;
  z-index: 2;
}

.job-status-notstarted-text {
  color: #6B7280;
  font-size: 11px;
  font-family: Arial, sans-serif;
  font-weight: 400;
  line-height: 16.5px;
  word-break: break-word;
}

/* --- Disable Product Modal (new styles matching provided design) --- */
.disable-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 3200;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}

.disable-modal-container {
  width: 560px;
  max-width: calc(100vw - 40px);
  background: white;
  border-radius: 16px;
  box-shadow: 0px 24px 48px rgba(17, 24, 39, 0.16);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.disable-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  height: 83.22px;
  background: #F9FAFB;
  border-bottom: 1.26px solid #E5E7EB;
}

.disable-modal-header-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.disable-modal-title {
  color: #101828;
  font-size: 18px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  line-height: 27px;
}

.disable-modal-product-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.disable-modal-product-label {
  color: #4A5565;
  font-size: 14px;
}

.disable-modal-product-name {
  color: #101828;
  font-size: 14px;
}

.disable-modal-close {
  background: transparent;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: 1.26px solid transparent;
}

.disable-modal-close:focus {
  outline: 1.26px solid #E5E7EB;
}

.disable-modal-warning {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  margin: 16px 24px 0 24px;
  background: #FFFBEB;
  border-radius: 14px;
  outline: 1.26px solid rgba(253, 229, 133, 0.50);
  outline-offset: -1.26px;
}

.disable-modal-warning-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  flex: 0 0 20px;
}

.disable-modal-warning-text {
  color: #364153;
  font-size: 13px;
  line-height: 21.12px;
}

.disable-modal-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.disable-modal-body label {
  color: #364153;
  font-size: 13px;
}

.required {
  color: #FB2C36;
  margin-left: 6px;
}

.disable-modal-reason-textarea {
  min-height: 118px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #F9FAFB;
  outline: 1.26px solid #E5E7EB;
  outline-offset: -1.26px;
  resize: vertical;
  font-size: 16px;
  color: #101828;
}

.disable-modal-reason-textarea::placeholder {
  color: #99A1AF;
}

.disable-modal-reason-error {
  color: #dc2626;
  font-size: 12px;
  margin-top: 6px;
}

.disable-modal-date-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.disable-modal-date-label {
  color: #364153;
  font-size: 13px;
}

.disable-modal-date-wrapper {
  width: 100%;
  max-width: 512px;
  padding-left: 14px;
  padding-right: 40px;
  background: #F9FAFB;
  overflow: hidden;
  border-radius: 14px;
  outline: 1.26px solid #E5E7EB;
  outline-offset: -1.26px;
  justify-content: flex-start;
  align-items: center;
  display: inline-flex;
  position: relative;
  box-sizing: border-box;
}

.disable-modal-date-wrapper.error {
  outline-color: #dc2626;
}

.disable-modal-date-input {
  width: 100%;
  height: 39.99px;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  font-size: 16px;
  font-family: Arial, sans-serif;
  color: #101828;
  outline: none;
}

.disable-modal-date-fallback {
  color: #99A1AF;
  font-size: 16px;
  font-family: Arial, sans-serif;
  font-weight: 400;
  line-height: 24px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.disable-modal-date-error {
  color: #dc2626;
  font-size: 12px;
  margin-top: 6px;
}

.disable-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 17.25px 24px;
  background: #F9FAFB;
  border-top: 1.26px solid #E5E7EB;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

.disable-modal-cancel-btn {
  width: 84.37px;
  height: 39.99px;
  background: white;
  border-radius: 14px;
  border: 1.26px solid #D1D5DC;
  color: #364153;
  cursor: pointer;
}

.disable-modal-disable-btn {
  width: 148.25px;
  height: 39.99px;
  background: #E7000B;
  color: #ffffff;
  border-radius: 14px;
  box-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.10), 0px 1px 3px rgba(0, 0, 0, 0.10);
  border: none;
  cursor: pointer;
}

@media (max-width: 640px) {
  .disable-modal-container {
    width: calc(100% - 32px);
    margin: 0 16px;
  }
}

/* --- Resume Failed Search Modal --- */
.resume-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 3300;
  /* Higher than other modals */
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.resume-modal-container {
  background: #fff;
  border-radius: 12px;
  width: 500px;
  max-width: 95vw;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.resume-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.resume-modal-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.resume-modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: #6b7280;
  transition: all 0.2s;
}

.resume-modal-close-btn:hover {
  background: #f3f4f6;
  color: #dc2626;
}

.resume-modal-body {
  padding: 24px;
  max-height: 60vh;
  overflow-y: auto;
  font-size: 0.95rem;
  color: #374151;
}

.resume-modal-body ul {
  list-style-type: none;
  padding: 0;
  margin: 12px 0 0 0;
}

.resume-modal-body li {
  padding: 8px 12px;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  justify-content: space-between;
}

.resume-modal-body li:last-child {
  border-bottom: none;
}

.resume-modal-footer {
  display: flex;
  justify-content: flex-end;
  padding: 16px 24px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
}

.resume-modal-resume-btn {
  background: #0288D1;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.resume-modal-resume-btn:hover {
  background: #0277BD;
}

.resume-modal-resume-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}/* Modern Report Page Styling - Updated to match design specifications */
:root {
  --primary-blue: #0288D1;
  --bg-white: #FFFFFF;
  --bg-light-gray: #F3F3F5;
  --bg-alt-row: #FAFBFC;
  --border-light: #D1D5DB;
  --border-medium: #E5E7EB;
  --border-table: #F3F4F6;
  --text-dark: #0A0A0A;
  --text-primary: #1F2933;
  --text-secondary: #374151;
  --text-muted: #6B7280;
  --text-disabled: #9CA3AF;
  --shadow-sm: 0px 1px 3px rgba(0, 0, 0, 0.02);
  --shadow-md: 0px 1px 3px rgba(0, 0, 0, 0.05);
  --border-radius-sm: 8px;
  --border-radius-md: 10px;
  --border-radius-lg: 14px;
  --border-radius-xl: 18px;
}

/* Container */
.report-container {
  width: 100%;
  min-height: 100vh;
  background: var(--bg-white);
  padding: 31.99px 0 0 31.99px;
  box-sizing: border-box;
}

/* Report Title */
.report-title {
  font-size: 32px;
  font-family: Arial, sans-serif;
  font-weight: 400;
  line-height: 38.4px;
  color: var(--primary-blue);
  margin-bottom: 13.99px;
  margin-top: -10px;
  text-align: left;
}

/* Filters Form */
.filters-form {
  background: var(--bg-white);
  padding: 21.26px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1.26px solid rgba(227, 230, 225, 0.50);
  margin-bottom: 23.99px;
}

.filters-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: flex-start;
}

@media (max-width: 992px) {
  .filters-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .filters-row {
    grid-template-columns: 1fr;
  }
}

.filter-item {
  width: 100%;
  margin-bottom: 0;
}

/* make all filter controls full-width + consistent height */
.filter-item .filter-datepicker,
.filter-item .ant-select,
.filter-item .ant-select .ant-select-selector,
.filter-item .typeahead-input,
.filter-item .typeahead-input .ant-input,
.filter-item .filter-select {
  width: 100%;
  box-sizing: border-box;
  height: 40px;
  border-radius: 8px;
}

/* AntD select selector alignment */
.filter-item .ant-select .ant-select-selector {
  display: flex;
  align-items: center;
  padding: 0 11px;
  height: 40px;
}

/* date input visual */
.filter-datepicker {
  padding: 0 12px;
  border: 1px solid #d1d5db;
  background: #fff;
}

/* tweak typeahead input */
.typeahead-input .ant-input {
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
}

/* Input Fields */
.filter-datepicker,
.filter-select,
.typeahead-input {
  width: 100%;
  height: 41.99px;
  background: var(--bg-light-gray);
  border-radius: var(--border-radius-md);
  border: 1.26px solid var(--border-light);
  font-size: 14px;
  font-family: Arial, sans-serif;
}

.filter-datepicker:hover,
.filter-select:hover,
.typeahead-input:hover {
  border-color: var(--primary-blue);
}

.filter-datepicker:focus,
.filter-select:focus,
.typeahead-input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 2px rgba(2, 136, 209, 0.2);
}

/* Select Dropdown */
.filter-select .ant-select-selector {
  background: var(--bg-light-gray) !important;
  border: none !important;
  height: 35.98px !important;
  padding: 0 11.99px !important;
  border-radius: var(--border-radius-md);
}

.filter-select .ant-select-selection-placeholder,
.filter-select .ant-select-selection-item {
  font-size: 14px;
  font-family: Arial, sans-serif;
  line-height: 21px;
  color: var(--text-dark);
}

/* Date Picker */
.filter-datepicker .ant-picker-input>input {
  font-size: 14px;
  font-family: Arial, sans-serif;
  color: var(--text-dark);
}

/* Buttons Row */
.buttons-row {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  padding-top: 20.25px;
  /* border-top: 1.26px solid var(--border-medium); */
}

.buttons-row .ant-btn {
  height: 41.99px;
  padding: 8px 20px;
  border-radius: var(--border-radius-md);
  font-size: 14px;
  font-family: Arial, sans-serif;
  font-weight: 400;
  line-height: 20px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

/* Run Report Button */
.buttons-row .ant-btn-primary {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: white;
}

.buttons-row .ant-btn-primary:hover:not(.ant-btn-disabled) {
  background: #0277BD;
  border-color: #0277BD;
  box-shadow: 0 4px 8px rgba(2, 136, 209, 0.3);
  transform: translateY(-1px);
}

.buttons-row .ant-btn-primary:active:not(.ant-btn-disabled) {
  transform: translateY(0);
}

/* Export Button */
.buttons-row .ant-btn:not(.ant-btn-primary) {
  background: white;
  border: 1.26px solid var(--border-light);
  color: var(--text-secondary);
}

.buttons-row .ant-btn:not(.ant-btn-primary):hover:not(.ant-btn-disabled) {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  background: rgba(2, 136, 209, 0.05);
}

/* Reset Button */
.buttons-row .ant-btn:last-child {
  color: var(--text-muted);
}

.buttons-row .ant-btn:last-child:hover:not(.ant-btn-disabled) {
  color: var(--text-secondary);
}

/* Disabled Button States */
.buttons-row .ant-btn.ant-btn-disabled {
  background: #f5f5f5;
  border-color: var(--border-light);
  color: #bfbfbf;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Table Section */
.report-table-section {
  padding: 1.26px;
  border-radius: var(--border-radius-xl);
  border: 1.26px solid #F1F3F0;
  /* allow sticky header to position correctly */
  overflow: visible;
  /* changed from hidden */
  position: relative;
  /* added */
  margin-bottom: 20px;
}

.report-table-section .ant-table {
  border-radius: 0;
}

/* Table Header */
.report-table-section .ant-table-thead>tr>th {
  background: var(--primary-blue);
  color: white;
  font-size: 12px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 16px;
  letter-spacing: 0.96px;
  border-bottom: none;
  padding: 18px 15.98px;
  white-space: nowrap;
}

.report-table-section .ant-table-thead>tr>th::before {
  display: none;
}

/* Table Body */
.report-table-section .ant-table-tbody>tr>td {
  font-size: 13px;
  font-family: Arial, sans-serif;
  font-weight: 400;
  line-height: 19.5px;
  color: var(--text-primary);
  border-bottom: 1.26px solid var(--border-table);
  padding: 15.98px;
  vertical-align: top;
}

/* Alternating Row Colors */
.report-table-section .ant-table-tbody>tr:nth-child(even) {
  background: var(--bg-alt-row);
}

.report-table-section .ant-table-tbody>tr:nth-child(odd) {
  background: white;
}

.report-table-section .ant-table-tbody>tr:hover>td {
  background: #f5f5f5 !important;
}

/* Table Scrollbar */
.report-table-section .ant-table-body {
  scrollbar-width: thin;
  scrollbar-color: #888 var(--bg-light-gray);
}

.report-table-section .ant-table-body::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.report-table-section .ant-table-body::-webkit-scrollbar-track {
  background: var(--bg-light-gray);
  border-radius: 4px;
}

.report-table-section .ant-table-body::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.report-table-section .ant-table-body::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Pagination */
.reports-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15.98px;
  background: white;
  /* border-top: 1.26px solid var(--border-table); */
}

.reports-pagination .ant-pagination-total-text {
  font-size: 13px;
  font-family: Arial, sans-serif;
  font-weight: 400;
  line-height: 19.5px;
  color: var(--text-muted);
}

.reports-pagination .ant-pagination {
  display: flex;
  align-items: center;
  gap: 7.98px;
}

/* Pagination Items */
.reports-pagination .ant-pagination-item,
.reports-pagination .ant-pagination-prev,
.reports-pagination .ant-pagination-next {
  min-width: 31.99px;
  height: 31.99px;
  border-radius: var(--border-radius-sm);
  border: 1.26px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-family: Arial, sans-serif;
  font-weight: 400;
  line-height: 19.5px;
  transition: all 0.3s ease;
}

.reports-pagination .ant-pagination-item:hover,
.reports-pagination .ant-pagination-prev:hover,
.reports-pagination .ant-pagination-next:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.reports-pagination .ant-pagination-item-active {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: white;
}

.reports-pagination .ant-pagination-item-active a {
  color: white;
}

/* Pagination Disabled */
.reports-pagination .ant-pagination-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Page Size Selector */
.reports-pagination .ant-pagination-options {
  display: flex;
  align-items: center;
  gap: 7.98px;
}

.reports-pagination .ant-select {
  width: 100px;
  height: 35.98px;
}

.reports-pagination .ant-select-selector {
  background: var(--bg-light-gray) !important;
  border: 1.26px solid var(--border-light) !important;
  border-radius: var(--border-radius-sm);
  height: 35.98px !important;
  padding: 0 11.99px !important;
}

.reports-pagination .ant-select-selection-item {
  font-size: 13px;
  font-family: Arial, sans-serif;
  line-height: 19.5px;
  color: var(--text-dark);
}

/* Loading Container */
.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: var(--bg-white);
}

/* Empty State */
.ant-empty-description {
  font-size: 13px;
  font-family: Arial, sans-serif;
  color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .filters-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .report-container {
    padding: 16px;
  }

  .filters-row {
    grid-template-columns: 1fr;
  }

  .buttons-row {
    flex-direction: column;
    align-items: stretch;
  }

  .report-title {
    font-size: 24px;
  }

  .reports-pagination {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 600px) {

  .report-table-section .ant-table-thead>tr>th,
  .report-table-section .ant-table-tbody>tr>td {
    padding: 8px;
    font-size: 12px;
  }
}

/* Ensure header stays visible on scroll */
.report-table-section .ant-table-thead>tr>th {
  position: sticky;
  top: 0;
  z-index: 4;
}

/* Slightly increase header contrast for readability */
.report-table-section .ant-table-thead>tr>th {
  background: var(--primary-blue);
  color: white;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Keep table responsive with horizontal scrolling */
.report-table-section .ant-table {
  table-layout: fixed;
}

/* Use Ant Design's sticky header container and match offsetHeader */
.report-table-section .ant-table-sticky .ant-table-header {
  position: sticky;
  top: 72px;
  /* keep in sync with Table sticky.offsetHeader */
  z-index: 10;
  /* ensure header sits above the body and tooltips */
}

/* Table header */
.report-table .ant-table-thead > tr > th {
  background: #0288D1 !important;
  color: #ffffff !important;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 12px;
  padding: 16px 12px;
  border-bottom: none;
  vertical-align: middle;
}

/* Sticky header subtle shadow */
.ant-table-sticky .ant-table-header {
  box-shadow: 0 2px 6px rgba(2, 136, 209, 0.08);
}

/* Rows */
.report-table .ant-table-tbody > tr {
  height: 72px;
  border-bottom: 1px solid #F3F4F6;
}

/* Alternate rows (keeps background consistent, can change if needed) */
.report-table .even-row { background: #fff; }
.report-table .odd-row { background: #fff; }

/* Row hover */
.report-table .ant-table-tbody > tr:hover {
  background: #f5fbff;
}

/* Pagination / totals */
.reports-pagination { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.reports-pagination .ant-pagination { margin: 0; }

/* Small title adjustments to match style */
.report-title {
  font-weight: 700;
  margin-bottom: 12px;
}

/* Make all filter controls exactly the same width and height */
.filters-row .filter-item {
  width: 100%;
  min-width: 0;
  /* Remove extra margin if any */
  margin-bottom: 0;
  /* Ensure consistent box-sizing */
  box-sizing: border-box;
}

/* Standardize all input/select/date fields in filter row */
.filters-row .filter-item input,
.filters-row .filter-item .ant-input,
.filters-row .filter-item .ant-select,
.filters-row .filter-item .ant-select-selector,
.filters-row .filter-item .ant-picker,
.filters-row .filter-item .typeahead-input,
.filters-row .filter-item .filter-datepicker,
.filters-row .filter-item .filter-select {
  width: 100% !important;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  height: 42px !important;
  border-radius: 8px !important;
  font-size: 14px;
  font-family: Arial, sans-serif;
  background: var(--bg-light-gray);
  border: 1.26px solid var(--border-light);
  padding: 0 12px;
}

/* Remove double border on AntD select */
.filters-row .filter-item .ant-select .ant-select-selector {
  border: none !important;
  background: var(--bg-light-gray) !important;
  height: 42px !important;
  padding: 0 12px !important;
  display: flex;
  align-items: center;
}

/* Datepicker input alignment */
.filters-row .filter-item .ant-picker-input > input {
  height: 42px !important;
  line-height: 42px !important;
  padding: 0 12px !important;
}

/* Remove extra padding from typeahead */
.filters-row .filter-item .typeahead-input .ant-input {
  padding: 0 12px !important;
  height: 42px !important;
  border-radius: 8px !important;
}

/* Make all filter controls (including native date input) exactly the same width */
.filters-row .filter-item > input[type="date"],
.filters-row .filter-item .ant-input,
.filters-row .filter-item .ant-select,
.filters-row .filter-item .ant-select-selector,
.filters-row .filter-item .ant-picker,
.filters-row .filter-item .typeahead-input,
.filters-row .filter-item .filter-datepicker,
.filters-row .filter-item .filter-select {
  width: 100% !important;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Main Container */
.safety-container {
  padding: 40px;
  background: #ffffff;
  min-height: 100vh;
}

/* Header Section */
.safety-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  position: relative;
}

.safety-title {
  font-size: 32px;
  font-weight: 400;
  color: #0288D1;
  margin: 0;
  line-height: 38.4px;
}

/* Filter Button Wrapper */
.safety-filter-button-wrap {
  display: flex;
  gap: 12px;
  align-items: center;
  position: relative;
  flex-shrink: 0;
}

.safety-btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.safety-filter-btn-modern {
  padding: 10px 16px;
  background: white;
  border: 2px solid #0288D1;
  border-radius: 10px;
  color: #0288D1;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  min-width: auto;
  justify-content: center;
  white-space: nowrap;
}

.safety-filter-btn-modern:hover {
  background: #F0F8FF;
  box-shadow: 0 2px 8px rgba(2, 136, 209, 0.15);
}

.safety-export-btn-spacing {
  padding: 10px 16px;
  background: #0288D1;
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: auto;
  justify-content: center;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.safety-export-btn-spacing:hover:not(:disabled) {
  background: #0276c9;
  box-shadow: 0 2px 8px rgba(2, 136, 209, 0.3);
}

.safety-export-btn-spacing:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.safety-export-menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  min-width: 150px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  margin-top: 4px;
}

.safety-export-menu-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  text-align: left;
  border: none;
  background: none;
  color: #333;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: inherit;
}

.safety-export-menu-item:first-child {
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.safety-export-menu-item:last-child {
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}

.safety-export-menu-item:hover:not(:disabled) {
  background: #f5f5f5;
}

.safety-export-menu-item:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.safety-export-error-message {
  padding: 10px 14px;
  background: #ffebee;
  color: #c62828;
  border-radius: 4px;
  font-size: 13px;
  margin-top: 8px;
  width: 100%;
}

/* Filter Dot Indicator */
.safety-filter-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #EF5350;
  border-radius: 50%;
  top: -8px;
  right: 55px;
}

/* Clinical Signals Label */
.safety-clinical-signals-label {
  color: #6B7280;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  margin-bottom: 20px;
  margin-top: 30px;
  display: block;
}

/* Stats Container */
.safety-stats-container {
  margin-bottom: 40px;
}

.safety-stats-grid-5 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(184px, 1fr));
  gap: 20px;
  min-height: 110px;
}

.safety-stat-card {
  padding: 24px 28px;
  border-radius: 20px;
  box-shadow: 0px 4px 12px rgba(17, 24, 39, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 120px;
}

.safety-stat-content {
  display: flex;
  flex-direction: column-reverse;
  gap: 16px;
}

.safety-stat-value {
  font-size: 42px;
  font-weight: 400;
  color: #111827;
  line-height: 42px;
  letter-spacing: -0.5px;
}

.safety-stat-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: #6B7280;
  letter-spacing: 1px;
  line-height: 18px;
}

/* Gradient backgrounds for stat cards */
.safety-stat-card.safety-total {
  background: linear-gradient(151deg, #A8B8CE 11%, #9BACC4 90%);
}

.safety-stat-card.safety-valid {
  background: linear-gradient(153deg, #9BCDB7 10%, #8BC3AD 89%);
}

.safety-stat-card.safety-invalid {
  background: linear-gradient(154deg, #FCDBD8 12%, #FAD0CC 89%);
}

.safety-stat-card.safety-invalid-safety {
  background: linear-gradient(154deg, #FCDBD8 12%, #FAD0CC 89%);
}

/* Country Filter Section */
.safety-country-filter {
  margin-bottom: 30px;
  padding: 20px 0;
  border-bottom: 1px solid #E3E6E1;
}

.safety-country-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #1F2933;
}

.safety-country-select {
  padding: 8px 12px;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  font-size: 14px;
  background: white;
  cursor: pointer;
  min-width: 200px;
}

.safety-country-display {
  font-size: 14px;
  color: #1F2933;
  font-weight: 500;
}

/* Workspace Section Label */
.safety-workspace-label {
  color: #6B7280;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  margin-bottom: 15px;
  display: block;
  margin-top: 30px;
}

/* Search Bar Container */
.safety-search-container {
  position: relative;
  margin-bottom: 30px;
  width: 100%;
  display: flex;
  gap: 12px;
  align-items: center;
}

.safety-search-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid #D1D5DB;
  border-radius: 10px;
  padding: 10px 14px;
  gap: 10px;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.02);
}

.safety-search-icon {
  width: 16px;
  height: 16px;
  color: #6B7280;
  flex-shrink: 0;
}

.safety-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  background: transparent;
  color: #1F2933;
}

.safety-search-input::placeholder {
  color: #9CA3AF;
}

/* Table Container */
.safety-table-container {
  border: 1px solid #F1F3F0;
  border-radius: 18px;
  overflow: hidden;
  background: white;
  margin-bottom: 30px;
}

.safety-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.safety-table thead {
  background: #0288D1;
}

.safety-table thead th {
  padding: 12px 10px;
  text-align: left;
  color: white;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.96px;
  white-space: nowrap;
  border-bottom: 1px solid rgba(228, 231, 226, 0.5);
  cursor: default;
  user-select: none;
}

.safety-table tbody tr {
  border-bottom: 1px solid rgba(228, 231, 226, 0.5);
}

.safety-table tbody td {
  padding: 20px;
  color: #1F2933;
  font-size: 13px;
  font-weight: 400;
}

.safety-table-cell {
  text-align: left;
  vertical-align: middle;
}

/* Ensure title column wraps nicely instead of truncating on one line */
.safety-table-cell-title {
  white-space: normal;
  /* allow wrapping */
  word-break: break-word;
  /* break long words */
  overflow-wrap: anywhere;
  /* better breaking for long tokens/URLs */
  max-width: 480px;
  /* adjust as needed for layout */
  line-height: 1.3;
  padding-right: 12px;
}

/* also make sure abstract/title cells respect wrapping */
.safety-table td,
.safety-table th {
  vertical-align: top;
  white-space: normal;
}

.safety-table-cell-abstract {
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
  color: #4B5563;
  cursor: pointer;
}

.safety-abstract-more {
  color: #0288D1;
  font-weight: 500;
  margin-left: 4px;
}

.safety-table-cell .safety-actions-cell {
  position: relative;
}

/* Validation Status Badge */
.validation-status {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  align-items: center;
  justify-content: center;
  height: 24px;
}

.validation-status-valid {
  background: #E8F5EE;
  color: #2D7A50;
}

.validation-status-invalid {
  background: #FEF3F2;
  color: #B4533C;
}

.validation-status-default {
  background: #F3F3F5;
  color: #6B7280;
}

.safety-skip-badge {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px;
  background: #f3f4f6;
  border-left: 4px solid #d97706;
  border-radius: 6px;
  margin-bottom: 12px;
}

.skip-badge-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #78350F;
  font-weight: 500;
}

.skip-badge-icon {
  background: #F59E0B;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.skip-badge-message {
  font-size: 12px;
  color: #858280;
  font-style: italic;
  margin-left: 0;
}

/* Product Badge */
.safety-product-badge {
  display: inline-block;
  padding: 4px 10px;
  background: #E3F2FD;
  color: #0288D1;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
}

/* Toggle Details Button */
.safety-toggle-details-button {
  width: 28px;
  height: 28px;
  padding: 6px;
  background: white;
  border: 1px solid #D1D5DB;
  border-radius: 4px;
  color: #6B7280;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.safety-toggle-details-button:hover {
  background: #F3F3F5;
  border-color: #0288D1;
  color: #0288D1;
}

.safety-toggle-details-button.safety-open {
  background: #0288D1;
  border-color: #0288D1;
  color: white;
  transform: rotate(180deg);
}

/* Panel Content */
.safety-panel-row-cell {
  background: #CDE4FF;
  padding: 0 !important;
}

.safety-panel-content {
  padding: 12px 16px;
  position: relative;
  background: white;
  border-radius: 6px;
  border: 1.26px solid #E5E7EB;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
  margin: 12px 16px;
  min-height: 220px;
}

.safety-panel-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 50%;
  font-size: 16px;
  color: #6B7280;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.safety-panel-close:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  background: #f8fafc;
}

/* Validation History */
.safety-validation-history {
  margin-top: 12px;
}

.safety-validation-history-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 12px;
  margin-top: 0;
}

.safety-history-cards-container {
  display: flex;
  gap: 24px;
  flex-wrap: nowrap;
  align-items: flex-start;
  overflow-x: auto;
  padding-bottom: 6px;
}

.safety-cards-flex-wrap {
  flex-wrap: wrap;
}

.safety-min-width-280 {
  width: 320px;
  flex: 0 0 320px;
}

.safety-validation-level {
  width: 320px;
  height: 200px;
  flex: 0 0 320px;
  background: white;
  border-radius: 6px;
  border: 1.26px solid #E5E7EB;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  overflow: hidden;
}

.safety-system {
  background: white;
}

.safety-user-level {
  background: white;
}

.safety-level-header {
  padding: 6px 10px;
  background: #E8EAF6;
  font-size: 13px;
  font-weight: 700;
  color: #0288D1;
  letter-spacing: 0.2px;
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  align-items: center;
}

.safety-system .safety-level-header {
  background: #E8EAF6;
  color: #0288D1;
}

.safety-level-content {
  padding: 8px 10px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: auto;
  max-height: calc(100% - 40px);
}

.safety-level-status {
  display: flex;
  align-items: center;
}

.safety-level-reason,
.safety-level-prep,
.safety-level-comments {
  font-size: 11px;
  color: #6B7280;
  line-height: 16.5px;
  display: flex;
  flex-direction: column;
  gap: 5.99px;
}

.safety-level-reason strong,
.safety-level-prep strong,
.safety-level-comments strong {
  font-weight: 400;
  color: #6B7280;
  font-size: 11px;
  line-height: 16.5px;
  display: block;
}

.safety-level-reason,
.safety-level-prep,
.safety-level-comments {
  margin: 0;
}

.safety-level-reason::after,
.safety-level-prep::after,
.safety-level-comments::after {
  content: '';
  display: block;
}

/* PREP Capsules */
.safety-prep-capsule-container {
  display: flex;
  flex-wrap: wrap;
  gap: 5.99px;
}

.safety-prep-capsule {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  background: #E3F2FD;
  color: #0288D1;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid #0288D1;
}

/* No Data Message */
.no-data {
  text-align: center;
  padding: 40px !important;
  color: #9CA3AF;
  font-size: 14px;
}

/* Filter Panel Styles */
.safety-filter-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  z-index: 1000;
}

.safety-filter-panel {
  width: 400px;
  height: 100vh;
  background: white;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0px 20px rgba(0, 0, 0, 0.15);
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

.safety-filter-header {
  padding: 12px 16px;
  border-bottom: 1.26px solid #E5E7EB;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.safety-filter-title {
  font-size: 16px;
  font-weight: 700;
  color: #1F2937;
  margin: 0;
  line-height: 24px;
}

.safety-filter-close-btn {
  width: 27.98px;
  height: 27.98px;
  background: transparent;
  border: none;
  font-size: 20px;
  color: #9CA3AF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  padding: 3.99px;
  outline: 1.67px solid #9CA3AF;
  outline-offset: -0.83px;
  border-radius: 4px;
}

.safety-filter-close-btn:hover {
  color: #111827;
}

.safety-filter-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.safety-filter-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.safety-filter-section-label {
  color: #6B7280;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 16px;
}

.safety-filter-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.safety-filter-row label {
  font-size: 12px;
  font-weight: 400;
  color: #374151;
  line-height: 16px;
}

.safety-filter-input {
  padding: 6px 10px;
  border: 1.26px solid #D1D5DB;
  border-radius: 8px;
  font-size: 13px;
  color: #1F2933;
  background: #F3F3F5;
  font-family: inherit;
  height: 34px;
  display: flex;
  align-items: center;
}

.safety-filter-input:focus {
  outline: none;
  border-color: #0288D1;
  background: #F3F3F5;
}

.safety-filter-input::placeholder {
  color: #717182;
}

.safety-filter-footer {
  padding: 12px 16px;
  border-top: 1.26px solid #E5E7EB;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}

.safety-filter-clear-link {
  color: #6B7280;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  line-height: 18px;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.safety-filter-clear-link:hover {
  color: #1F2933;
}

.safety-filter-apply-btn {
  padding: 6px 16px;
  background: #0288D1;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.2s ease;
  height: 34px;
  display: flex;
  align-items: center;
  line-height: 18px;
  white-space: nowrap;
}

.safety-filter-apply-btn:hover {
  background: #0276c9;
}

.safety-filter-clear-btn {
  flex: 1;
  padding: 10px 16px;
  background: #F3F3F5;
  color: #6B7280;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.safety-filter-clear-btn:hover {
  background: #E8EAED;
  color: #1F2933;
}

/* Abstract Modal */
.safety-abstract-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
}

.safety-abstract-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 16px;
  box-shadow: 0px 20px 60px rgba(0, 0, 0, 0.3);
  max-height: 90vh;
  width: 90%;
  max-width: 1200px;
  display: flex;
  z-index: 1000;
  overflow: hidden;
}

.safety-abstract-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  background: white;
  border: 1px solid #E3E6E1;
  border-radius: 8px;
  font-size: 24px;
  color: #6B7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s ease;
}

.safety-abstract-modal-close:hover {
  background: #F3F3F5;
  color: #111827;
  border-color: #0288D1;
}

.safety-abstract-modal-left {
  flex: 1;
  padding: 40px;
  overflow-y: auto;
  border-right: 1px solid #E3E6E1;
}

.safety-abstract-section {
  margin-bottom: 16px;
  line-height: 1.8;
  color: #1F2933;
  font-size: 14px;
}

.safety-abstract-section-heading {
  font-weight: 600;
  color: #111827;
  display: block;
  margin-bottom: 8px;
}

.safety-abstract-modal-right {
  width: 350px;
  padding: 40px 20px;
  overflow-y: auto;
  background: #F9FAFB;
}

.safety-abstract-modal-right-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 20px;
}

.safety-tag-section {
  margin-bottom: 24px;
}

.safety-tag-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #1F2933;
  margin-bottom: 10px;
}

.safety-product-label {
  color: #0288D1;
}

.safety-adverse-label {
  color: #D32F2F;
}

.safety-patient-label {
  color: #F57C00;
}

.safety-patient-problem-label {
  color: #7B1FA2;
}

.safety-medical-history-label {
  color: #388E3C;
}

.safety-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.safety-tag-badge {
  display: inline-block;
  padding: 4px 12px;
  background: white;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid #E3E6E1;
}

.safety-product-tag {
  background: #E3F2FD;
  border-color: #0288D1;
  color: #0288D1;
}

.safety-adverse-tag {
  background: #FFEBEE;
  border-color: #D32F2F;
  color: #D32F2F;
}

.safety-patient-tag {
  background: #FFF3E0;
  border-color: #F57C00;
  color: #F57C00;
}

.safety-patient-problem-tag {
  background: #F3E5F5;
  border-color: #7B1FA2;
  color: #7B1FA2;
}

.safety-medical-history-tag {
  background: #E8F5E9;
  border-color: #388E3C;
  color: #388E3C;
}

/* Pagination */
.safety-pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: white;
  /* border-top: 1px solid #E3E6E1; */
}

.safety-pagination-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.safety-rows-per-page {
  display: flex;
  align-items: center;
  gap: 10px;
}

.safety-rows-per-page label {
  font-size: 13px;
  color: #6B7280;
  font-weight: 400;
}

.safety-rows-select {
  padding: 6px 12px;
  background: #F3F3F5;
  border: 1px solid #E3E6E1;
  border-radius: 8px;
  font-size: 14px;
  color: #0A0A0A;
  cursor: pointer;
  min-width: 70px;
}

.safety-pagination-text {
  font-size: 13px;
  color: #9AA0A6;
}

.safety-pagination-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.safety-pagination-btn {
  min-width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0 8px;
  background: #E8EAED;
  color: #9CA3AF;
}

.safety-pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #E8EAED;
}

.safety-pagination-btn.safety-prev,
.safety-pagination-btn.safety-next {
  color: #9CA3AF;
  background: #E8EAED;
}

.safety-pagination-btn.safety-prev:hover:not(:disabled),
.safety-pagination-btn.safety-next:hover:not(:disabled) {
  background: #D1D5DB;
  color: #6B7280;
}

.safety-pagination-btn.safety-active {
  background: #0288D1;
  color: white;
  font-weight: 600;
}

.safety-pagination-btn.safety-active:hover {
  background: #0276c9;
}

/* Edit Panel Styles */
.safety-edit-panel {
  padding: 20px;
  background: #F9FAFB;
  border-radius: 8px;
  margin-top: 20px;
}

.safety-edit-row {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.safety-edit-row label {
  font-size: 13px;
  font-weight: 600;
  color: #1F2933;
}

.safety-edit-input {
  padding: 10px 12px;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  font-size: 14px;
  color: #1F2933;
  background: white;
  font-family: inherit;
}

.safety-edit-input:focus {
  outline: none;
  border-color: #0288D1;
  box-shadow: 0 0 0 3px rgba(2, 136, 209, 0.1);
}

.safety-edit-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.safety-save-btn {
  flex: 1;
  padding: 10px 16px;
  background: #0288D1;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.safety-save-btn:hover {
  background: #0276c9;
}

.safety-cancel-btn {
  flex: 1;
  padding: 10px 16px;
  background: #F3F3F5;
  color: #6B7280;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.safety-cancel-btn:hover {
  background: #E8EAED;
  color: #111827;
}

/* Error and Success Messages */
.safety-error-message {
  color: #D32F2F;
  font-size: 12px;
  margin-top: 8px;
  padding: 8px;
  background: #FFEBEE;
  border-radius: 4px;
  border-left: 3px solid #D32F2F;
}

.safety-success-message {
  color: #388E3C;
  font-size: 12px;
  margin-top: 8px;
  padding: 8px;
  background: #E8F5E9;
  border-radius: 4px;
  border-left: 3px solid #388E3C;
}

/* Expandable Row Indicator */
.safety-expandable-row {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.safety-expandable-row.safety-expanded {
  background-color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .safety-stats-grid-5 {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .safety-abstract-modal {
    flex-direction: column;
  }

  .safety-abstract-modal-left {
    border-right: none;
    border-bottom: 1px solid #E3E6E1;
  }

  .safety-abstract-modal-right {
    width: 100%;
  }

  .safety-filter-panel {
    width: 100%;
  }

  .safety-table-cell-abstract {
    max-width: 150px;
  }
}

@media (max-width: 768px) {
  .safety-container {
    padding: 20px;
  }

  .safety-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .safety-title {
    font-size: 24px;
  }

  .safety-stats-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }

  .safety-table {
    font-size: 12px;
  }

  .safety-table thead th {
    padding: 12px;
  }

  .safety-table tbody td {
    padding: 12px;
  }

  .safety-pagination-container {
    flex-direction: column;
    gap: 20px;
    padding: 16px 20px;
  }

  .safety-pagination-info,
  .safety-pagination-controls {
    width: 100%;
    justify-content: space-between;
  }
}/* Scheduler Page Styles */

.litsearch-products-container {
  width: 100%;
  max-width: 1400px;
  height: 100%;
  box-sizing: border-box;
  padding: 32px;
  margin: 0 auto;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  display: flex;
  overflow-y: auto;
  max-height: none;
  padding-bottom: 0;
}

.litsearch-products-header-row {
  align-self: stretch;
  height: 38.39px;
  position: relative;
}

.litsearch-products-header-row h2 {
  left: 0;
  top: 1.27px;
  position: absolute;
  color: #0288D1;
  font-size: 32px;
  font-family: Arial;
  font-weight: 700;
  line-height: 38.40px;
  word-wrap: break-word;
  margin: 0;
}

/* Subheading directly under the main page title */
.litsearch-subheading {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 19.50px;
  color: #6B7280;
  font-size: 13px;
  font-family: Arial;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 19.50px;
  letter-spacing: 1.30px;
  word-wrap: break-word;
  margin-top: 0;
}

.litsearch-section {
  align-self: stretch;
  height: auto;
  min-height: 500px;
  position: relative;
  padding-bottom: 60px;
  /* Space for pagination */
}

.litsearch-products-actions {
  width: 100%;
  height: 39.48px;
  left: 0;
  top: 35.49px;
  position: absolute;
}

.litsearch-products-actions h3 {
  left: 0;
  top: 0.53px;
  position: absolute;
  color: #6B7280;
  font-size: 13px;
  font-family: Arial;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 19.50px;
  letter-spacing: 1.30px;
  word-wrap: break-word;
  margin: 0;
}

.litsearch-search-container {
  width: 447.99px;
  height: 39.48px;
  left: 0;
  top: 0;
  position: absolute;
  background: white;
  box-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.10), 0px 1px 3px rgba(0, 0, 0, 0.10);
  overflow: hidden;
  border-radius: 10px;
  outline: 1.26px #E3E6E1 solid;
  outline-offset: -1.26px;
  justify-content: flex-start;
  align-items: center;
  display: inline-flex;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 48px;
  padding-right: 16px;
}

.litsearch-search-container .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.litsearch-search-container input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  font-family: Arial;
  font-weight: 400;
  color: #1F2933;
}

.litsearch-search-container input::placeholder {
  color: #9AA0A6;
  font-size: 14px;
  font-family: Arial;
  font-weight: 400;
  word-wrap: break-word;
}


.download-template-btn {
  width: 123.71px;
  height: 35.47px;
  position: absolute;
  right: 0;
  top: 0;
  background: #0288D1;
  border-radius: 10px;
  border: none;
  color: white;
  font-size: 13px;
  font-family: Arial;
  font-weight: 700;
  line-height: 19.50px;
  word-wrap: break-word;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.show-inactive-btn {
  width: 289.42px;
  height: 43.45px;
  padding-top: 3.99px;
  padding-left: 3.99px;
  left: 0;
  top: 90.95px;
  position: absolute;
  background: #F3F4F6;
  border-radius: 10px;
  justify-content: flex-start;
  align-items: flex-start;
  display: inline-flex;
  cursor: pointer;
}

.show-inactive-btn .active-tab,
.show-inactive-btn .inactive-tab {
  height: 35.47px;
  position: relative;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.show-inactive-btn .active-tab.active {
  background: white;
  box-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.10), 0px 1px 3px rgba(0, 0, 0, 0.10);
}

.show-inactive-btn .inactive-tab.active {
  background: white;
  box-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.10), 0px 1px 3px rgba(0, 0, 0, 0.10);
}

.show-inactive-btn .active-tab div {
  text-align: center;
  color: #0288D1;
  font-size: 13px;
  font-family: Arial;
  font-weight: 400;
  line-height: 19.50px;
  word-wrap: break-word;
  position: absolute;
  left: 15.98px;
  top: 8.51px;
}

.show-inactive-btn .inactive-tab div {
  text-align: center;
  color: #6B7280;
  font-size: 13px;
  font-family: Arial;
  font-weight: 400;
  line-height: 19.50px;
  word-wrap: break-word;
  position: absolute;
  left: 15.98px;
  top: 8.51px;
}

.show-inactive-btn .active-tab {
  width: 136.02px;
}

.show-inactive-btn .inactive-tab {
  width: 145.42px;
}

.litsearch-products-list-container {
  width: 100%;
  height: auto;
  margin-top: 150px;
  /* Instead of absolute positioning top */
  position: static;
  overflow: visible;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  display: flex;
}

.scheduler-table-container {
  align-self: stretch;
  padding: 1.26px;
  background: rgba(255, 255, 255, 0);
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.02);
  overflow-x: auto;
  overflow-y: visible;
  /* Ensure table can grow */
  border-radius: 18px 18px 0 0;
  /* Remove bottom radius as pagination attaches */
  outline: 1.26px rgba(228, 231, 226, 0.50) solid;
  outline-offset: -1.26px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  display: flex;
  margin-bottom: 0;
}

.scheduler-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

/* Scrollable table wrapper */
.scheduler-table-wrapper {
  width: 100%;
  max-height: 320px;
  overflow-y: auto;
  border-radius: 0 0 18px 18px;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Sticky table header */
.scheduler-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
  background: white;
}


/* Pagination Container */
.litsch-pagination-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: white;
  border-top: 1px solid rgba(228, 231, 226, 0.60);
  box-sizing: border-box;

  /* Sticky positioning */
  position: sticky;
  bottom: 0;
  z-index: 20;
  box-shadow: 0px -4px 12px rgba(0, 0, 0, 0.05);
  /* Add shadow for separation */
  border-radius: 0 0 18px 18px;
  /* Match container radius */
  outline: 1.26px rgba(228, 231, 226, 0.50) solid;
  /* Match outline */
  outline-offset: -1.26px;
  margin-top: 0 !important;
  /* Override inline style if any */
}

.litsch-pagination-left {
  display: flex;
  align-items: center;
  gap: 20px;
  /* increased spacing so page-info appears separated like the screenshot */
  flex: 0 0 auto;
  min-width: 0;
}

/* Rows per page label (matches screenshot sizing/weight) */
.rows-label {
  color: #1F2933;
  font-size: 16px;
  font-family: Arial;
  font-weight: 400;
  white-space: nowrap;
}

/* Select styling to match rounded light background from screenshot */
.rows-per-page-select {
  height: 36px;
  min-width: 66px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid #E3E6E1;
  background: #F3F4F6;
  color: #1F2933;
  font-size: 14px;
  outline: none;
}

/* Page info placed to the right of the select with appropriate spacing */
.pagination-page-info {
  color: #6B7280;
  font-size: 13px;
  font-family: Arial;
  font-weight: 400;
  margin-left: 16px;
  white-space: nowrap;
}

/* Controls row */
.litsch-pagination-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Arrow buttons */
.pagination-arrow {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #E6E9EB;
  background: white;
  color: #0288D1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
}

.pagination-arrow:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Page number pills */
.page-number {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 999px;
  text-align: center;
  padding: 6px 8px;
  background: #fff;
  border: 1px solid #E6E9EB;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #374151;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}

.page-number:hover {
  border-color: #0288D1;
  color: #0288D1;
  background: rgba(2, 136, 209, 0.05);
}

.page-number.active {
  background: #0288D1;
  border-color: #0288D1;
  color: #fff;
  font-weight: 700;
}

/* Responsive tweaks */
@media (max-width: 700px) {
  .litsch-pagination-right {
    align-items: flex-end;
  }

  .rows-per-page-select {
    min-width: 60px;
  }
}

/* Column grid lines */
.scheduler-table th,
.scheduler-table td {
  border-right: 1px solid rgba(228, 231, 226, 0.60);
}

.scheduler-table th:last-child,
.scheduler-table td:last-child {
  border-right: none;
}

.scheduler-table thead tr {
  background: #0288D1;
  color: white;
}

.scheduler-table th {
  padding: 16px 20px;
  text-align: left;
  font-size: 12px;
  font-family: Arial;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 18px;
  letter-spacing: 0.96px;
  word-wrap: break-word;
  height: 50px;
}

/* Draggable header styles */
.scheduler-table th.draggable-header {
  cursor: move;
  user-select: none;
}

.scheduler-table th.draggable-header:hover {
  background: rgba(255, 255, 255, 0.1);
}

.scheduler-table th.draggable-header:active {
  opacity: 0.7;
}

.scheduler-table th div {
  display: flex;
  align-items: center;
  gap: 7.98px;
}

.scheduler-table th .header-icon {
  width: 13.99px;
  height: 13.99px;
  position: relative;
  overflow: hidden;
}

.scheduler-table th .header-icon div {
  width: 1.17px;
  height: 1.17px;
  outline: 1.17px rgba(255, 255, 255, 0.60) solid;
  outline-offset: -0.58px;
  position: absolute;
}

.scheduler-table th .header-icon .dot-1 {
  left: 4.66px;
  top: 6.41px;
}

.scheduler-table th .header-icon .dot-2 {
  left: 4.66px;
  top: 2.33px;
}

.scheduler-table th .header-icon .dot-3 {
  left: 4.66px;
  top: 10.49px;
}

.scheduler-table th .header-icon .dot-4 {
  left: 8.16px;
  top: 6.41px;
}

.scheduler-table th .header-icon .dot-5 {
  left: 8.16px;
  top: 2.33px;
}

.scheduler-table th .header-icon .dot-6 {
  left: 8.16px;
  top: 10.49px;
}

.scheduler-table tbody tr {
  height: auto;
  border-bottom: 1px solid rgba(228, 231, 226, 0.60);
  transition: background .12s ease;
}

.scheduler-table tbody tr:last-child {
  border-bottom: none;
}

.scheduler-table td {
  padding: 20px 20px;
  font-size: 13px;
  font-family: Arial;
  line-height: 19.50px;
  word-wrap: break-word;
  vertical-align: middle;
}

.scheduler-table td.product-name {
  color: #1F2933;
  font-weight: 700;
}

.scheduler-table td.search-source {
  color: #4B5563;
  font-weight: 400;
}

.scheduler-table td.trigger-badge {
  vertical-align: middle;
}

.scheduler-table td.trigger-badge div {
  background: #FEF3F2;
  border-radius: 42431300px;
  padding: 3.99px 11.99px;
  display: inline-block;
  color: #B4533C;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
}

.scheduler-table td.details {
  color: #4B5563;
  font-weight: 400;
}

.scheduler-table td.details .details-top {
  color: #1F2933;
  font-weight: 700;
  font-size: 13px;
  line-height: 19.5px;
}

.scheduler-table td.details .details-bottom {
  color: #6B7280;
  font-weight: 400;
  font-size: 12px;
  line-height: 18px;
}

.scheduler-table td.sch-status-badge {
  vertical-align: middle;
}

.scheduler-table td.sch-status-badge div {
  background: #E8F5EE;
  border-radius: 42431300px;
  padding: 3.99px 11.99px;
  display: inline-block;
  color: #2D7A50;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
}

.scheduler-table td.last-run-date {
  color: #4B5563;
  font-weight: 400;
}

.scheduler-table td.last-run-date .last-run-top {
  color: #1F2933;
  font-weight: 700;
  font-size: 13px;
  line-height: 19.5px;
}

.scheduler-table td.last-run-date .last-run-bottom {
  color: #6B7280;
  font-weight: 400;
  font-size: 12px;
  line-height: 18px;
}

.scheduler-table td.articles-found {
  color: #4B5563;
  font-weight: 400;
}

.scheduler-table td.actions {
  vertical-align: middle;
  text-align: right;
}

.scheduler-table td.actions>* {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.action-icon {
  width: 24px;
  height: 24px;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  cursor: pointer;
}

/* Activate button styling (matches provided design) */
.action-icon.activate-icon {
  min-width: 84px;
  height: 32px;
  padding: 0 12px;
  border-radius: 4px;
  background: #28A745;
  color: #ffffff;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-family: Arial, sans-serif;
  font-weight: 400;
  line-height: 18px;
  cursor: pointer;
}

.action-icon.activate-icon:hover {
  background: #218838;
  /* slightly darker on hover */
}

.scheduler-table tbody tr:hover {
  background: rgba(2, 136, 209, 0.03);
}

.action-icon div {
  align-self: stretch;
  height: 15.98px;
  position: relative;
  overflow: hidden;
}

.edit-icon div {
  width: 13.32px;
  height: 13.32px;
  left: 1.33px;
  top: 1.33px;
  outline: 1.33px #6B7280 solid;
  outline-offset: -0.67px;
}

.delete-icon div:nth-child(1) {
  width: 9.32px;
  height: 10.66px;
  left: 3.33px;
  top: 4px;
  outline: 1.33px #6B7280 solid;
  outline-offset: -0.67px;
}

.delete-icon div:nth-child(2) {
  width: 5.33px;
  height: 2.66px;
  left: 5.33px;
  top: 1.33px;
  outline: 1.33px #6B7280 solid;
  outline-offset: -0.67px;
}

/* Modal Styles */
.litsearch-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.litsearch-modal-container {
  background: white;
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  max-width: 90vw;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.scheduler-modal {
  width: 680px;
  height: auto;
  max-height: 90vh;
}

.litsearch-modal-header {
  width: 100%;
  height: 97.21px;
  padding: 20px;
  border-bottom: 1.26px solid #E1F0F7;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.litsearch-modal-header h3 {
  display: flex;
  align-items: center;
  gap: 7.98px;
  margin: 0;
}

.litsearch-modal-header h3::before {
  content: '+';
  width: 23.99px;
  height: 23.99px;
  background: linear-gradient(180deg, #0288D1 0%, #0277BD 100%);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 14px;
  font-family: Arial;
  font-weight: 700;
  line-height: 21px;
}

.action-icon {
  min-width: 24px;
  height: 24px;
  padding: 4px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.litsearch-modal-title {
  color: #0288D1;
  font-size: 20px;
  font-family: Arial;
  font-weight: 700;
  line-height: 30px;
  margin: 0;
}

.litsearch-modal-close-btn {
  width: 31.99px;
  height: 31.99px;
  background: none;
  border: none;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 20px;
  color: #9CA3AF;
}

.litsearch-modal-close-btn:hover {
  background: rgba(156, 163, 175, 0.1);
}


/* Timezone Banner - Simplified */
.scheduler-timezone-banner {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #FFFBEB;
  border-bottom: 1.5px solid #BBDEFB;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.05);
}

.scheduler-timezone-banner .info-icon {
  flex-shrink: 0;
  color: #0288D1;
}

.timezone-banner-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timezone-banner-content .timezone-label {
  color: #1F2933;
  font-size: 13px;
  font-family: Arial;
  font-weight: 500;
  line-height: 1.3;
  text-transform: none;
  letter-spacing: normal;
}

.timezone-banner-content .timezone-label strong {
  color: #0288D1;
  font-weight: 700;
}

.timezone-banner-content .timezone-note {
  color: #64748B;
  font-size: 11px;
  font-family: Arial;
  font-weight: 400;
  line-height: 1.4;
}

.litsearch-modal-body {
  width: 100%;
  padding: 23.99px 31.99px;
  overflow-y: auto;
  flex: 1;
  box-sizing: border-box;
}

.litsearch-modal-body>div:first-child {
  width: 100%;
  padding: 25.25px;
  background: #F8FBFE;
  border-radius: 10px;
  outline: 1.26px solid #E3F2FD;
  outline-offset: -1.26px;
  margin-bottom: 23.99px;
  box-sizing: border-box;
}

.litsearch-modal-body>div:first-child::before {
  content: 'BASIC CONFIGURATION';
  display: block;
  color: #0288D1;
  font-size: 13px;
  font-family: Arial;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 19.50px;
  letter-spacing: 0.50px;
  margin-bottom: 15.98px;
}

/* Basic Configuration Grid Layout */
.basic-config-container {
  width: 100%;
  padding: 25.25px;
  background: #F8FBFE;
  border-radius: 10px;
  outline: 1.26px solid #E3F2FD;
  outline-offset: -1.26px;
  margin-bottom: 23.99px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 15.98px;
}

.basic-config-container::before {
  content: 'BASIC CONFIGURATION';
  display: block;
  color: #0288D1;
  font-size: 13px;
  font-family: Arial;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 19.50px;
  letter-spacing: 0.50px;
  margin-bottom: 0;
}

.basic-config-row {
  display: flex;
  gap: 15.99px;
  width: 100%;
}

.basic-config-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.basic-config-field .litsearch-modal-input,
.basic-config-field .analyze-scheduler-react-select {
  width: 100%;
  margin-bottom: 0;
}

/* Footer Buttons Container */
.footer-buttons {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

/* Primary save button (modal) */
.litsearch-modal-save-btn {
  min-width: 140px;
  height: 40px;
  background: linear-gradient(180deg, #0288D1 0%, #0277BD 100%);
  box-shadow: 0px 6px 18px rgba(2, 120, 180, 0.12), 0px 1px 2px rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  border: none;
  color: white;
  font-size: 13px;
  font-family: Arial;
  cursor: pointer;
  padding: 10px 20px;
  transition: transform .08s ease, box-shadow .12s ease, background .12s ease;
}

.litsearch-modal-save-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0px 8px 24px rgba(2, 120, 180, 0.16);
}

.litsearch-modal-save-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Secondary cancel button (modal) */
.litsearch-modal-cancel-btn {
  min-width: 140px;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #D1D5DB;
  color: #374151;
  height: 40px;
  font-size: 13px;
  text-align: center;
  cursor: pointer;
  padding: 9px 20px;
  transition: background .12s ease, transform .08s ease;
}

.litsearch-modal-cancel-btn:hover {
  background: #F9FAFB;
  transform: translateY(-1px);
}

/* Modal actions: align buttons to the right and normalize sizing */
.lit-modal-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 14px 2px;
  box-sizing: border-box;
}

/* Confirm / Danger modal styles */
.confirm-modal {
  max-width: 420px;
}

.confirm-modal .litsearch-modal-header {
  padding: 18px 20px;
}

.confirm-modal .warning-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFF7ED;
  color: #B45309;
  border-radius: 999px;
  font-size: 18px;
}

.confirm-modal .litsearch-modal-body {
  padding: 18px 28px;
  text-align: center;
}

.confirm-modal .litsearch-modal-body p {
  margin: 0;
}

.confirm-modal .litsearch-modal-footer {
  justify-content: end;
  gap: 12px;
  padding: 16px 20px;
}

.litsearch-modal-danger-btn {
  background: #DC2626;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
}

/* New confirm modal layout matching design */
.confirm-modal {
  width: 480px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.confirm-header {
  height: 97px;
  padding: 32px 32px 1px 32px;
  border-bottom: 1.26px solid #E5E7EB;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.confirm-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.confirm-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(180deg, #FEF3C7 0%, #FDE68A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  outline: 1.26px rgba(251, 190, 36, 0.20) solid;
  outline-offset: -1.26px;
}

.confirm-icon-inner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.confirm-icon-inner .pause {
  width: 3px;
  height: 8px;
  background: #D97706;
  border-radius: 1px;
  display: inline-block;
  margin: 0 2px;
}

.confirm-title {
  font-size: 20px;
  font-weight: 700;
  color: #1F2933;
}

.confirm-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.confirm-body {
  padding: 16px 32px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.confirm-question {
  font-size: 15px;
  color: #1F2933;
  display: flex;
  gap: 6px;
  align-items: center;
}

.confirm-name {
  font-weight: 700;
}

.confirm-impact {
  background: #FFFBEB;
  border-radius: 10px;
  padding: 13px 17px;
  margin-bottom: 25px;
  margin-top: 10px;
  outline: 1.26px rgba(253, 223, 70, 0.50) solid;
  outline-offset: -1.26px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.impact-header {
  color: #713F12;
  font-weight: 700;
  font-size: 13px;
}

.impact-text {
  color: #713F12;
  font-size: 13px;
}

.confirm-footer {
  background: #FAFBFC;
  padding: 14px 32px;
  border-top: 1.26px solid #E5E7EB;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
}

.keep-active-btn {
  background: white;
  color: #4B5563;
  border-radius: 10px;
  padding: 10px 18px;
  border: 1.26px solid #D1D5DB;
}

.deactivate-btn {
  background: #F59E0B;
  color: #fff;
  border-radius: 10px;
  padding: 10px 16px;
  box-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.10), 0px 1px 3px rgba(0, 0, 0, 0.10);
}

/* Form Styles */
.litsearch-modal-label {
  display: block;
  color: #64748B;
  font-size: 11px;
  font-family: Arial;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 16.50px;
  letter-spacing: 0.50px;
  margin-bottom: 7.98px;
}

.litsearch-modal-label::after {
  content: '*';
  color: #DC2626;
  font-size: 11px;
  font-family: Arial;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 16.50px;
  letter-spacing: 0.50px;
  margin-left: 4px;
}

.litsearch-modal-input,
.litsearch-modal-input select {
  width: 100%;
  height: 43.53px;
  background: white;
  border-radius: 10px;
  outline: 1.26px solid #D1D5DB;
  outline-offset: -1.26px;
  border: none;
  padding: 10px 16px;
  color: #1F2933;
  font-size: 14px;
  font-family: Arial;
  font-weight: 400;
  line-height: 21px;
  box-sizing: border-box;
  margin-bottom: 15.98px;
}

.litsearch-modal-input::placeholder {
  color: #9CA3AF;
  font-size: 14px;
  font-family: Arial;
  font-weight: 400;
  line-height: 21px;
}

.litsearch-modal-input:focus {
  outline: 1.26px solid #0288D1;
  outline-offset: -1.26px;
}

.litsearch-modal-input:disabled {
  opacity: 0.5;
  background: white;
  cursor: not-allowed;
}

/* Status Messages */
.floating-status-message {
  position: fixed;
  right: 20px;
  bottom: 20px;
  top: auto;
  padding: 10px 20px;
  border-radius: 5px;
  color: white;
  z-index: 1001;
}

.floating-status-message.error {
  background: #dc2626;
}

.floating-status-message.success {
  background: #16a34a;
}

.global-status-message {
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 15px;
}

.global-status-message.error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.global-status-message.success {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

/* Empty Table Message */
.empty-table-message {
  text-align: center;
  padding: 40px;
  color: #6B7280;
  font-size: 16px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .litsearch-products-container {
    padding: 20px;
  }

  .litsearch-search-container {
    width: 100%;
    max-width: 360px;
    position: relative;
  }

  .litsearch-search-container .search-icon {
    left: 12px;
  }

  .download-template-btn {
    position: relative;
    margin-top: 12px;
    right: auto;
  }

  .show-inactive-btn {
    position: relative;
    top: 12px;
  }
}

/* Pagination styles (enhanced) */
.litsch-pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Remove or reduce top padding */
  padding-top: 15px;
  margin-top: 10px;
  background: #fff;
  border-radius: 0 0 18px 18px;
  min-height: 56px;
  /* Optional: add border-top for separation if needed */
  border-top: 1px solid #f1f1f1;
}

/* Left side should size to its content only */
.litsch-pagination-left {
  display: flex;
  align-items: center;
  gap: 10px;
  /* increased spacing so page-info appears separated like the screenshot */
  flex: 0 0 auto;
  /* don't stretch to fill space */
  min-width: 0;
}

/* Right side will stay on the right side of the table */
.litsch-pagination-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  /* don't stretch */
  margin-left: auto;
  /* push to the far right */
  justify-content: flex-end;
}

/* Keep the summary on one line where possible */
.litsch-pagination-summary {
  white-space: nowrap;
  color: #6b7280;
  font-size: 13px;
}

/* Group prev/next + page numbers compactly */
.litsch-prevnext {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Page numbers container */
.litsch-pagination {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: center;
  max-width: 360px;
  overflow-x: auto;
}

/* Make prev/next compact and consistent */
.litsch-pagination-btn {
  border: 1px solid #D6E8FB;
  background: #fff;
  color: #0288D1;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
}

/* Ensure page buttons don't overflow */
.page-number {
  min-width: 36px;
  text-align: center;
  padding: 6px 8px;
  background: #fff;
  border: 1px solid #E6E9EB;
  cursor: pointer;
  border-radius: 8px;
  font-size: 13px;
  color: #374151;
}

/* Responsive: stack summary under left block but keep prev/next on right */
@media (max-width: 700px) {
  .litsch-pagination-container {
    gap: 8px;
  }

  .litsch-pagination-left {
    flex: 0 1 auto;
    order: 2;
    width: 100%;
    justify-content: flex-start;
  }

  .litsch-pagination-summary {
    width: 100%;
    text-align: left;
    margin-top: 8px;
  }

  .litsch-pagination-right {
    order: 1;
    width: 100%;
    justify-content: flex-end;
  }

  .litsch-pagination {
    max-width: none;
    overflow-x: auto;
  }
}

/* Centered spinner overlay for loading scheduled jobs */
.scheduler-loading-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.7);
  z-index: 1100;
}

.spinner {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 6px solid #E6E9EB;
  border-top-color: #0288D1;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.scheduler-trigger-section::before {
  content: 'SCHEDULE CONFIGURATION';
  display: block;
  color: #0288D1;
  font-size: 13px;
  font-family: Arial;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 19.50px;
  letter-spacing: 0.50px;
  margin-bottom: 15.98px;
}

.scheduler-trigger-options {
  width: 276.46px;
  height: 45.98px;
  background: white;
  border-radius: 10px;
  outline: 1.26px solid #D1D5DB;
  outline-offset: -1.26px;
  display: flex;
  align-items: center;
  padding: 5.25px;
  gap: 5px;
  margin-bottom: 23.99px;
  box-sizing: border-box;
}

.scheduler-trigger-options label {
  flex: 1;
  height: 35.47px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  color: #6B7280;
  font-size: 13px;
  font-family: Arial;
  font-weight: 400;
  line-height: 19.50px;
  text-align: center;
  transition: all 0.2s ease;
}

.scheduler-trigger-options label input[type="radio"] {
  display: none;
}

.scheduler-trigger-options label input[type="radio"]:checked+span,
.scheduler-trigger-options label:has(input[type="radio"]:checked) {
  background: #0288D1;
  box-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.10), 0px 1px 3px rgba(0, 0, 0, 0.10);
  color: white;
}

.scheduler-trigger-options.has-error {
  border: 1.5px solid #DC2626 !important;
  outline: 1.5px solid #DC2626 !important;
  background-color: #FEF2F2;
}

.scheduler-field-row {
  display: flex;
  align-items: center;
  gap: 11.97px;
  margin-bottom: 15.98px;
}

.scheduler-field-row label {
  color: #64748B;
  font-size: 11px;
  font-family: Arial;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 16.50px;
  letter-spacing: 0.50px;
}

.scheduler-start-label::after {
  content: '*';
  color: #DC2626;
  margin-left: 4px;
}

.scheduler-date-input {
  flex: 0 0 auto;
  width: 180px;
  margin-bottom: 0 !important;
}

.scheduler-time-box {
  display: flex;
  align-items: center;
  gap: 4px;
}

.scheduler-hour-select,
.scheduler-minute-select {
  width: 69.98px !important;
  margin-bottom: 0 !important;
  text-align: center;
}

.scheduler-period-select {
  width: 79.98px !important;
  margin-bottom: 0 !important;
  text-align: center;
}

.scheduler-time-separator {
  color: #6B7280;
  font-size: 14px;
  font-family: Arial;
  font-weight: 400;
  line-height: 21px;
}

/* Start Date/Time Row Styling */
.start-date-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 23.99px;
}

.scheduler-start-label {
  color: #64748B;
  font-size: 11px;
  font-family: Arial;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 16.50px;
  letter-spacing: 0.50px;
  min-width: fit-content;
}

.scheduler-start-label::after {
  content: '*';
  color: #DC2626;
  margin-left: 4px;
}

.scheduler-date-input {
  flex: 0 0 auto;
  width: 180px;
  margin-bottom: 0 !important;
}

.scheduler-time-box {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Monthly Recurrence Section */
.scheduler-recurrence-section {
  width: 100%;
}

.scheduler-recurrence-header {
  margin-bottom: 15.98px;
}

.scheduler-recurrence-label {
  color: #64748B;
  font-size: 11px;
  font-family: Arial;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 16.50px;
  letter-spacing: 0.50px;
  display: block;
}

.scheduler-months-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 11.99px;
}

.scheduler-months-label {
  color: #64748B;
  font-size: 11px;
  font-family: Arial;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 16.50px;
  letter-spacing: 0.50px;
}

.scheduler-select-all-link {
  background: none;
  border: none;
  color: #0288D1;
  font-size: 13px;
  font-family: Arial;
  font-weight: 400;
  line-height: 19.50px;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}

.scheduler-select-all-link:hover {
  text-decoration: underline;
}

.scheduler-months-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11.99px;
  margin-bottom: 23.99px;
}

.scheduler-month-button {
  height: 39.50px;
  background: white;
  border-radius: 10px;
  outline: 1.26px solid #D1D5DB;
  outline-offset: -1.26px;
  border: none;
  color: #6B7280;
  font-size: 13px;
  font-family: Arial;
  font-weight: 400;
  line-height: 19.50px;
  text-align: center;
  cursor: pointer;
  padding: 8px 12px;
  transition: all 0.2s ease;
}

.scheduler-month-button:hover {
  background: #F9FAFB;
}

.scheduler-month-button.selected {
  background: #E3F2FD;
  outline: 1.26px solid #0288D1;
  color: #0288D1;
  font-weight: 500;
}

/* Server timezone notice */
.litsearch-modal-body>div:last-child>div:first-child {
  display: flex;
  flex-direction: column;
  gap: 3.99px;
}

.litsearch-modal-body>div:last-child span {
  color: #713F12;
  font-size: 12px;
  font-family: Arial;
  font-weight: 400;
  line-height: 19.50px;
}

.litsearch-modal-body>div:last-child strong {
  color: #713F12;
  font-size: 12px;
  font-family: Arial;
  font-weight: 700;
  line-height: 19.50px;
}

/* Weekly panel container */
.scheduler-weekly-panel {
  display: flex !important;
  flex-direction: column !important;
  gap: 15.98px;
}

/* Weekly weekday selector - horizontal layout */
.scheduler-weekday-selector {
  display: flex !important;
  flex-direction: row !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  margin-top: 8px;
  max-width: 650px;
}

.scheduler-weekday-selector label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer;
  color: #4B5563;
  font-size: 13px;
  font-family: Arial;
  font-weight: 400;
  line-height: 19.50px;
  white-space: nowrap;
}

.scheduler-weekday-selector input[type="radio"] {
  cursor: pointer;
  width: 16px;
  height: 16px;
  accent-color: #0288D1;
  margin: 0;
}

.sch-rows-per-page-select {
  width: 69.98px;
  height: 35.98px;
  padding: 9.99px;
  background: #F3F3F5;
  border: 1.26px solid #E3E6E1;
  border-radius: 8px;
  outline: none;
  color: #0A0A0A;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  cursor: pointer;
}

/* Monthly recurrence section */
.scheduler-monthly-panel {
  display: flex;
  flex-direction: column;
  gap: 15.98px;
}

.scheduler-monthly-day-options {
  display: flex;
  flex-direction: column;
  gap: 11.99px;
}

.scheduler-dropdown-button {
  min-width: 119.99px;
  height: 43.51px;
  background: white;
  border-radius: 10px;
  outline: 1.26px solid #D1D5DB;
  outline-offset: -1.26px;
  border: none;
  padding: 10px 16px;
  color: #1F2933;
  font-size: 14px;
  font-family: Arial;
  font-weight: 400;
  line-height: 21px;
  text-align: left;
  cursor: pointer;
  position: relative;
}

.scheduler-dropdown-button:hover {
  border-color: #0288D1;
}

.scheduler-dropdown-button:disabled {
  background: #F3F4F6;
  color: #9CA3AF;
  cursor: not-allowed;
  opacity: 0.6;
  border-color: #E3E6E1;
}

.scheduler-dropdown-button:disabled:hover {
  border-color: #E3E6E1;
}

/* Dropdown Container - needed for absolute positioning of dropdown menu */
.scheduler-dropdown-container {
  position: relative;
  display: inline-block;
}

.scheduler-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-radius: 10px;
  outline: 1.26px solid #D1D5DB;
  outline-offset: -1.26px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  max-height: 200px;
  overflow-y: auto;
  z-index: 10;
  margin-top: 4px;
}

.scheduler-dropdown-menu label {
  display: block;
  padding: 8px 16px;
  cursor: pointer;
  color: #1F2933;
  font-size: 13px;
  font-family: Arial;
  font-weight: 400;
  line-height: 19.50px;
}

.scheduler-dropdown-menu label:hover {
  background: #F8FBFE;
}

.scheduler-dropdown-menu label input {
  margin-right: 8px;
}

.scheduler-weekday-selector {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scheduler-weekday-selector label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #364153;
  font-size: 13px;
  font-family: Arial;
  font-weight: 400;
  line-height: 19.50px;
  cursor: pointer;
}

.scheduler-radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #364153;
  font-size: 13px;
  font-family: Arial;
  font-weight: 400;
  line-height: 19.50px;
}

.scheduler-radio-label input[type="radio"] {
  width: 15.98px;
  height: 15.98px;
}

/* Product Dropdown Option Styling */
.product-option-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 12px;
}

.product-option-name {
  color: #1F2933;
  font-size: 14px;
  font-family: Arial;
  font-weight: 400;
  line-height: 21px;
  flex: 1;
}

.product-option-workflow {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.workflow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.workflow-dot-defined {
  background: #0288D1;
}

.workflow-dot-not-defined {
  background: #DC2626;
}

.workflow-text {
  font-size: 13px;
  font-family: Arial;
  font-weight: 400;
  line-height: 19.50px;
}

.workflow-text-defined {
  color: #0288D1;
}

.workflow-text-not-defined {
  color: #DC2626;
}

/* Months Header Styling */
.scheduler-months-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.scheduler-months-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scheduler-months-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scheduler-months-label {
  color: #364153;
  font-size: 13px;
  font-family: Arial;
  font-weight: 600;
  line-height: 19.50px;
}

.scheduler-months-expand-btn {
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.scheduler-months-expand-btn:hover {
  background: rgba(2, 136, 209, 0.1);
}

.scheduler-select-all-link,
.scheduler-clear-link {
  background: transparent;
  border: none;
  color: #0288D1;
  font-size: 13px;
  font-family: Arial;
  font-weight: 400;
  line-height: 19.50px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.scheduler-select-all-link:hover,
.scheduler-clear-link:hover {
  background: rgba(2, 136, 209, 0.1);
}

.scheduler-select-all-link:disabled,
.scheduler-clear-link:disabled {
  color: #9CA3AF;
  cursor: not-allowed;
  opacity: 0.5;
}

.scheduler-select-all-link:disabled:hover,
.scheduler-clear-link:disabled:hover {
  background: transparent;
}

.scheduler-months-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.scheduler-dropdown-button {
  min-width: 160px;
  height: 39.48px;
  padding: 8px 16px;
  background: white;
  border: 1.26px solid #E3E6E1;
  border-radius: 10px;
  color: #364153;
  font-size: 13px;
  font-family: Arial;
  font-weight: 400;
  line-height: 19.50px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.2s ease;
}

.scheduler-dropdown-button:hover {
  border-color: #0288D1;
}

/* Day Number Input Styling */
.scheduler-day-number-input {
  min-width: 160px;
  height: 39.48px;
  padding: 8px 16px;
  background: white;
  border: 1.26px solid #E3E6E1;
  border-radius: 10px;
  color: #364153;
  font-size: 13px;
  font-family: Arial;
  font-weight: 400;
  line-height: 19.50px;
  transition: border-color 0.2s ease;
}

.scheduler-day-number-input:hover:not(:disabled) {
  border-color: #0288D1;
}

.scheduler-day-number-input:focus {
  outline: none;
  border-color: #0288D1;
  box-shadow: 0 0 0 3px rgba(2, 136, 209, 0.1);
}

.scheduler-day-number-input:disabled {
  background: #F3F4F6;
  color: #9CA3AF;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Remove default number input spinner styles for consistency across browsers */
.scheduler-day-number-input::-webkit-inner-spin-button,
.scheduler-day-number-input::-webkit-outer-spin-button {
  opacity: 1;
  height: 100%;
}

.scheduler-month-button {
  padding: 8px 12px;
  background: white;
  border: 1px solid #E3E6E1;
  border-radius: 8px;
  color: #4B5563;
  font-size: 13px;
  font-family: Arial;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
}

.scheduler-month-button:hover {
  border-color: #0288D1;
  background: rgba(2, 136, 209, 0.05);
}

.scheduler-month-button.selected {
  background: #0288D1;
  border-color: #0288D1;
  color: white;
  font-weight: 600;
}

/* Date Range Type Section Styles */
.scheduler-date-range-section {
  margin-top: 16px;
  padding: 14px 16px;
  background-color: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.scheduler-section-label {
  font-weight: 600;
  font-size: 13px;
  color: #374151;
  margin-bottom: 12px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.scheduler-date-range-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scheduler-radio-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.scheduler-radio-option:hover {
  border-color: #0288D1;
  background-color: #f0f9ff;
}

.scheduler-radio-option input[type="radio"] {
  margin-top: 4px;
  accent-color: #0288D1;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.scheduler-radio-option input[type="radio"]:checked+.radio-content .radio-label {
  color: #0288D1;
  font-weight: 600;
}

.radio-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.radio-label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  font-family: Arial, sans-serif;
}

.radio-description {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
  font-family: Arial, sans-serif;
}

.radio-description small {
  color: #9ca3af;
  font-style: italic;
}

/* Field validation error styles */
.field-error {
  border: 1.5px solid #DC2626 !important;
  background-color: #FEF2F2;
}

.field-error:focus {
  outline: none;
  border-color: #DC2626 !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1) !important;
}

.field-error-message {
  color: #DC2626;
  font-size: 12px;
  font-weight: 500;
  margin-top: 4px;
  display: block;
  font-family: Arial, sans-serif;
}

.has-error .scheduler-dropdown-button {
  border: 1.5px solid #DC2626 !important;
  background-color: #FEF2F2;
}

.has-error .scheduler-weekday-selector {
  border: 1.5px solid #DC2626;
  border-radius: 6px;
  padding: 12px;
  background-color: #FEF2F2;
}

.has-error.scheduler-dropdown-container .scheduler-dropdown-button {
  border-color: #DC2626 !important;
  background-color: #FEF2F2;
}

.has-error.scheduler-months-grid {
  border: 1.5px solid #DC2626;
  border-radius: 6px;
  padding: 12px;
  background-color: #FEF2F2;
}

.analyze-scheduler-react-select.has-error .analyze-scheduler-react-select__control {
  border-color: #DC2626 !important;
  box-shadow: 0 0 0 1px #DC2626 !important;
  background-color: #FEF2F2;
}/* Main Container */
.searchlog-container {
  width: 100%;
  padding: 32px;
  background-color: #F5F7FA;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Header Section */
.searchlog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 42px;
}

.searchlog-title {
  color: #0288D1;
  font-size: 32px;
  font-weight: 400;
  margin: 0;
  line-height: 38px;
}

.searchlog-export-btn {
  background-color: #0288D1;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.05);
  transition: background-color 0.2s ease;
}

.searchlog-export-btn:hover {
  background-color: #0277c4;
}

/* Filters Container */
.searchlog-filters-container {
  background-color: white;
  padding: 24px;
  border-radius: 14px;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(227, 230, 225, 0.5);
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.searchlog-filters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  flex: 1;
}

.searchlog-filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.searchlog-filter-label {
  color: #374151;
  font-size: 13px;
  font-weight: 400;
  line-height: 19px;
}

.searchlog-filter-input,
.searchlog-filter-select {
  background-color: #F3F3F5;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #0A0A0A;
  height: 42px;
  transition: border-color 0.2s ease;
  font-family: inherit;
}

.searchlog-filter-input:focus,
.searchlog-filter-select:focus {
  outline: none;
  border-color: #0288D1;
  box-shadow: 0 0 0 2px rgba(2, 136, 209, 0.1);
}

.searchlog-filter-input::placeholder {
  color: #9CA3AF;
}

.searchlog-filter-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23717182' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

/* Clear Filters Button */
.searchlog-clear-filters-btn {
  background-color: white;
  color: #DC2626;
  border: 1px solid #DC2626;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  white-space: nowrap;
  height: 42px;
  display: flex;
  align-items: center;
  margin-top: 26px;
}

.searchlog-clear-filters-btn:hover {
  background-color: #FEF2F2;
}

/* Table Container */
.searchlog-table-container {
  background-color: white;
  border-radius: 18px;
  border: 1px solid #F1F3F0;
  /* Allow dropdowns to escape table clipping */
  overflow: visible;
}

.searchlog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.searchlog-table-header th {
  background-color: #0288D1;
  color: white;
  padding: 16px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.96px;
  line-height: 16px;
  border: none;
  position: relative;
}

/* Draggable header styles */
.searchlog-table th.draggable-header {
  cursor: move;
  user-select: none;
}

.searchlog-table th.draggable-header:hover {
  background-color: #0277c4;
}

.searchlog-table th.draggable-header:active {
  background-color: #025a9c;
}

/* Non-draggable header styles */
.searchlog-table th.searchlog-table-header-cell {
  cursor: default;
  user-select: none;
}

/* Ensure drag handle hidden for non-draggable header cells (safety) */
.searchlog-table th.searchlog-table-header-cell .searchlog-drag-handle {
  display: none;
}

.searchlog-header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.searchlog-drag-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
}

.searchlog-drag-dots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 1px;
  width: 8px;
  height: 12px;
}

.searchlog-drag-dots .dot {
  width: 2px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
}

.searchlog-header-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.96px;
  line-height: 16px;
}

.searchlog-table-body tr {
  border-bottom: 1px solid #F3F4F6;
  transition: background-color 0.2s ease;
}

.searchlog-table-body tr:nth-child(even) {
  background-color: #F3F4F6;
}

.searchlog-table-body tr:hover {
  background-color: #EEFBFF;
}

.searchlog-table-cell {
  padding: 16px;
  text-align: center;
  color: #1F2933;
  line-height: 20px;
}

/* Actions Dropdown */
.searchlog-actions-dropdown {
  position: relative;
  display: inline-block;
}

.searchlog-actions-btn {
  background-color: #0288D1;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.searchlog-actions-btn:hover:not(:disabled) {
  background-color: #0277c4;
}

.searchlog-actions-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.searchlog-actions-btn::after {
  content: '';
  width: 8px;
  height: 4px;
  border: solid #FFF;
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
  margin-left: 4px;
}

.searchlog-actions-menu {
  position: absolute;
  top: calc(100% + 6px);
  background-color: #F5F7FA;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  min-width: 140px;
  overflow: hidden;
  z-index: 9999;
  right: 0;
}

.searchlog-actions-menu button {
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: none;
  text-align: left;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 400;
}

.searchlog-actions-menu button:hover:not(:disabled) {
  background-color: rgba(2, 136, 209, 0.08);
}

.searchlog-actions-menu button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.emoji {
  font-size: 16px;
}

.searchlog-excel-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.searchlog-pdf-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.7;
}

.searchlog-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid #E5E7EB;
  border-top-color: #0288D1;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Loading State */
.searchlog-loading {
  text-align: center;
  padding: 40px;
  color: #6B7280;
  font-size: 16px;
}

/* Pagination Wrapper */
.searchlog-pagination-wrapper {
  width: 100%;
  padding: 12px 20px;
  background: #FFFFFF;
  border-top: 1px solid #EEF2F6;
  justify-content: space-between;
  align-items: center;
  display: flex;
  gap: 12px;
  box-sizing: border-box;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.searchlog-perpage {
  min-width: 160px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.searchlog-perpage-label {
  color: #6B7280;
  font-size: 13px;
  font-family: Arial, sans-serif;
  font-weight: 400;
}

.searchlog-perpage-select {
  min-width: 72px;
  height: 36px;
  padding: 6px 34px 6px 12px;
  background: #FFFFFF;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
  color: #0A0A0A;
  font-size: 13px;
  font-family: Arial, sans-serif;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23717182' d='M1 1l5 5 5-5' opacity='0.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}

.searchlog-perpage-select:focus {
  outline: 2px solid rgba(2,136,209,0.15);
  outline-offset: 0;
}

/* Pagination Controls */
.searchlog-pagination {
  display: flex;
  align-items: center;
  gap: 18px;
}

.searchlog-pagination-info {
  display: flex;
  align-items: center;
}

.searchlog-pagination-info-text {
  color: #6B7280;
  font-size: 13px;
  font-family: Arial, sans-serif;
  font-weight: 400;
}

.searchlog-pagination-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.searchlog-pagination-btn {
  width: 36px;
  height: 36px;
  background: #FFFFFF;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: #374151;
  font-size: 14px;
  line-height: 1;
  transition: background-color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.searchlog-pagination-btn:hover:not(:disabled) {
  background-color: #F3F4F6;
  border-color: #D1E9FB;
}

.searchlog-pagination-btn.active {
  background: #0288D1;
  border-color: #0288D1;
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(2, 136, 209, 0.18);
}

.searchlog-pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .searchlog-filters-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .searchlog-container {
    padding: 16px;
    gap: 16px;
  }

  .searchlog-header {
    flex-direction: column;
    gap: 12px;
    height: auto;
  }

  .searchlog-filters-grid {
    grid-template-columns: 1fr;
  }

  .searchlog-clear-filters-btn {
    align-self: stretch;
  }

  .searchlog-table-cell {
    padding: 12px;
    font-size: 12px;
  }

  .searchlog-table-header th {
    padding: 12px;
    font-size: 11px;
  }

  .searchlog-pagination-wrapper {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .searchlog-pagination {
    width: 100%;
    justify-content: center;
  }
}

/* Table scrolling for overflow on small screens */
@media (max-width: 640px) {
  .searchlog-table-container {
    overflow-x: auto;
  }

  .searchlog-table {
    min-width: 800px;
  }
}
/* Workflow Management - Refined Table UI/UX */

.workflow-management {
  width: 100%;
  min-height: 100vh;
  background: #F9FAFB;
  margin-top: 20px;
  font-family: Arial, sans-serif;
  padding: 20px;
}

.workflow-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px 24px;
}

/* Header */
.workflow-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.workflow-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: #101828;
  margin: 0;
  line-height: 32px;
}

.workflow-create-btn {
  background: #0288D1;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  cursor: pointer;
  box-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.10), 0px 1px 3px rgba(0, 0, 0, 0.10);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.workflow-create-btn:hover {
  background: #0D4FD9;
  transform: translateY(-1px);
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.15);
}

.btn-icon {
  font-size: 16px;
  font-weight: 400;
}

/* Table Container */
.workflow-table-container {
  background: white;
  border-radius: 10px;
  box-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.10), 0px 1px 3px rgba(0, 0, 0, 0.10);
  outline: 1.26px solid #E5E7EB;
  outline-offset: -1.26px;
  overflow: hidden;
  margin-bottom: 24px;
}

.workflow-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.workflow-table thead {
  background: #0284C7;
}

.workflow-table th {
  color: white;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 18px;
  letter-spacing: 0.30px;
  padding: 20px;
  text-align: left;
  border: none;
}

.workflow-table th.center-aligned {
  text-align: center;
}

.workflow-table tbody tr {
  border-bottom: 1.26px solid #F3F4F6;
  transition: background-color 0.2s ease;
}

.workflow-table tbody tr:nth-child(even) {
  background: rgba(249, 250, 251, 0.30);
}

.workflow-table tbody tr:hover {
  background: #F9FAFB;
}

.workflow-table td {
  padding: 20px;
  color: #101828;
  border: none;
  vertical-align: middle;
}

.workflow-table td.center-aligned {
  text-align: center;
}

/* Workflow Name */
.workflow-name-cell {
  font-weight: 700;
  font-size: 13px;
  line-height: 19.5px;
  color: #101828;
}

/* Products */
.workflow-products {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 450px;
}

.workflow-product-chip {
  background: #DBEAFE;
  color: #1447E6;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  padding: 3px 10px;
  border-radius: 8px;
  white-space: nowrap;
}

.workflow-no-products {
  color: #94a3b8;
  font-style: italic;
  font-size: 12px;
}

/* Client Badge */
.workflow-table td:nth-child(3) {
  font-size: 12px;
}

.workflow-table td:nth-child(3)>* {
  background: #F3F4F6;
  color: #364153;
  padding: 3px 12px;
  border-radius: 8px;
  display: inline-block;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

.workflow-client-badge {
  background: #F3F4F6;
  color: #364153;
  padding: 3px 12px;
  border-radius: 8px;
  display: inline-block;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

/* Workflow Graph (Levels) */
.workflow-graph {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.workflow-graph-level {
  background: #DBEAFE;
  color: #1447E6;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.workflow-graph-level[data-role="QC"] {
  background: #EDE9FE;
  color: #7008E7;
}

.workflow-graph-level[data-role="MR"] {
  background: #E5E7EB;
  color: #364153;
}

.workflow-graph-count {
  font-size: 13px;
  font-weight: 700;
  line-height: 19.5px;
}

.workflow-arrow-right {
  color: #99A1AF;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Article Count Badges */
.workflow-count {
  background: #D0FAE5;
  color: #007A55;
  font-size: 13px;
  font-weight: 700;
  line-height: 19.5px;
  padding: 4px 12px;
  border-radius: 9999px;
  display: inline-block;
  min-width: 40px;
  text-align: center;
}

.workflow-table td:nth-child(5) .workflow-count {
  background: #D0FAE5;
  color: #007A55;
}

.workflow-table td:nth-child(6) .workflow-count {
  background: #FEF3C6;
  color: #BB4D00;
}

.workflow-table td:nth-child(7) .workflow-count {
  background: #F3E8FF;
  color: #8200DB;
}

/* Action Buttons */
.workflow-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.workflow-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  transition: all 0.2s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.workflow-action-btn:hover {
  background: #F3F4F6;
}

.action-icon {
  width: 16px;
  height: 16px;
  display: block;
}

/* No Data State */
.workflow-no-data {
  text-align: center;
  padding: 40px;
  color: #94a3b8;
  font-style: italic;
  font-size: 14px;
}

/* Loading State */
.workflow-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 16px;
}

.workflow-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #F3F4F6;
  border-top-color: #155DFC;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.workflow-loading span {
  font-size: 14px;
  color: #6A7282;
}

/* Error Message */
.workflow-error-message {
  background: #FEE2E2;
  border: 1px solid #FCA5A5;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #991B1B;
  font-size: 14px;
}

.error-icon {
  font-size: 20px;
}

/* Notification */
.notification-message {
  position: fixed;
  right: 24px;
  bottom: 24px;
  top: auto;
  left: auto;
  background: white;
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1000;
  min-width: 320px;
  max-width: 480px;
  animation: slideIn 0.3s ease-out;
}

/* keep slideIn keyframes as-is (it still works from the right) */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.notification-message.success {
  border-left: 4px solid #10B981;
}

.notification-message.error {
  border-left: 4px solid #EF4444;
}

.notification-icon {
  font-size: 20px;
}

.notification-message.success .notification-icon {
  color: #10B981;
}

.notification-message.error .notification-icon {
  color: #EF4444;
}

.notification-text {
  flex: 1;
  font-size: 14px;
  color: #101828;
  line-height: 20px;
}

.notification-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #6A7282;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.notification-close:hover {
  color: #101828;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.delete-confirmation-modal {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.14);
  animation: slideUp 0.3s ease-out;
  overflow: hidden;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  padding: 12px 14px;
  border-bottom: 1.26px solid #E5E7EB;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1F2937;
  margin: 0;
  line-height: 27px;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: #99A1AF;
  cursor: pointer;
  padding: 4px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: #F3F4F6;
  color: #6B7280;
}

.modal-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-body p {
  font-size: 10px;
  color: #4A5565;
  line-height: 20px;
  margin: 0;
}

.warning-message {
  background: #FFFBEB;
  border: 1.26px solid #FEE685;
  border-radius: 14px;
  padding: 10px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.warning-icon {
  font-size: 16px;
  color: #F59E0B;
  flex-shrink: 0;
}

.warning-content {
  flex: 1;
}

.warning-content strong {
  display: block;
  color: #92400E;
  font-size: 14px;
  font-weight: 700;
  line-height: 22.75px;
  margin-bottom: 2px;
}

.warning-content p {
  color: #92400E;
  font-size: 14px;
  font-weight: 400;
  line-height: 22.75px;
  margin: 0;
}

.workflow-info-box {
  background: #F9FAFB;
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.workflow-info-label {
  color: #6B7280;
  font-size: 13px;
  font-weight: 400;
  line-height: 19.5px;
}

.workflow-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.workflow-info-item label {
  color: #374151;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  margin: 0;
}

.workflow-info-item strong {
  color: #1F2937;
  font-size: 15px;
  font-weight: 700;
  line-height: 22.5px;
}

.articles-breakdown {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.level-articles {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background: white;
  border-radius: 6px;
  font-size: 13px;
}

.level-name {
  color: #4A5565;
  font-weight: 600;
}

.article-count {
  color: #101828;
  font-weight: 700;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  color: #374151;
  font-size: 13px;
  font-weight: 400;
  line-height: 19.5px;
  margin: 0;
}

.form-group label .required {
  color: #DC2626;
  margin-left: 2px;
}

.delete-reason-input {
  width: 100%;
  min-height: 70px;
  padding: 8px 12px;
  background: #F9FAFB;
  border: 1.26px solid #E5E7EB;
  border-radius: 14px;
  font-size: 13px;
  font-family: Arial, sans-serif;
  color: #1F2937;
  resize: vertical;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.delete-reason-input::placeholder {
  color: rgba(31, 41, 55, 0.5);
  font-size: 14px;
  line-height: 21px;
}

.delete-reason-input:focus {
  outline: none;
  border-color: #155DFC;
  background: white;
}

.form-help-text {
  color: #6B7280;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  margin: 0;
}

.modal-footer {
  padding: 10px 14px;
  border-top: 1.26px solid #E5E7EB;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.cancel-btn,
.delete-btn {
  padding: 9px 20px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  line-height: 21px;
  text-align: center;
}

.cancel-btn {
  background: white;
  color: #374151;
  border: 1.26px solid #D1D5DB;
}

.cancel-btn:hover {
  background: #F9FAFB;
  border-color: #9CA3AF;
}

.delete-btn {
  background: #EF4444;
  color: white;
  font-weight: 700;
  min-width: 162px;
}

.delete-btn:hover:not(:disabled) {
  background: #DC2626;
}

.delete-btn:disabled {
  opacity: 0.6;
  background: #E5E7EB;
  color: #9CA3AF;
  cursor: not-allowed;
}

/* Unable to Delete Modal Specific Styles */
.modal-header.blocked {
  background: #F9FAFB;
}

.modal-header h3 {
  color: #101828;
}

.modal-footer.blocked {
  background: #F9FAFB;
  justify-content: flex-end;
  padding: 16px 24px;
}

.got-it-btn {
  background: #0288D1;
  color: white;
  border: none;
  border-radius: 14px;
  padding: 8px 21px;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  cursor: pointer;
  box-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.10), 0px 1px 3px rgba(0, 0, 0, 0.10);
  transition: all 0.2s ease;
}

.got-it-btn:hover {
  background: #0277BD;
}

.warning-message.blocked {
  background: #FFFBEB;
  border: 1.26px solid #FEE685;
  padding: 16px;
  border-radius: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.warning-message.blocked .warning-icon {
  color: #E17100;
  font-size: 20px;
}

.warning-message.blocked p {
  color: #1E2939;
  font-size: 14px;
  line-height: 22.75px;
  margin: 0;
}

.workflow-activity-summary {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.workflow-activity-title {
  color: #6A7282;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 18px;
  letter-spacing: 0.6px;
}

.workflow-activity-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.workflow-activity-item {
  background: #F9FAFB;
  border: 1.26px solid #F3F4F6;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.workflow-activity-level {
  display: flex;
  align-items: center;
  gap: 12px;
}

.workflow-level-badge {
  background: #A5B4D4;
  color: #1E3A5F;
  font-size: 11px;
  font-weight: 700;
  line-height: 16.5px;
  padding: 6px 12px;
  border-radius: 9999px;
}

.workflow-level-badge.qc {
  background: #7FC4B4;
  color: #0F5C49;
}

.workflow-level-name {
  color: #364153;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
}

.workflow-activity-count {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.workflow-activity-number {
  color: #101828;
  font-size: 24px;
  font-weight: 700;
  line-height: 36px;
}

.workflow-activity-label {
  color: #6A7282;
  font-size: 13px;
  font-weight: 400;
  line-height: 19.5px;
}

.workflow-activity-divider {
  border-top: 1.26px solid #E5E7EB;
  margin-top: 17px;
}

/* Pagination */
.workflow-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 24px 0;
}

.pagination-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  background: white;
  border: 1px solid #D1D5DC;
  border-radius: 6px;
  font-size: 14px;
  color: #4A5565;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
  background: #F9FAFB;
  border-color: #155DFC;
  color: #155DFC;
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-btn.active {
  background: #155DFC;
  border-color: #155DFC;
  color: white;
}

.pagination-ellipsis {
  padding: 0 8px;
  color: #6A7282;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .workflow-table {
    font-size: 12px;
  }

  .workflow-table th,
  .workflow-table td {
    padding: 12px;
  }
}

@media (max-width: 768px) {
  .workflow-container {
    padding: 20px 16px;
  }

  .workflow-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .workflow-create-btn {
    width: 100%;
    justify-content: center;
  }

  .workflow-table-container {
    overflow-x: auto;
  }
}:root {
  --toastify-color-light: #fff;
  --toastify-color-dark: #121212;
  --toastify-color-info: #3498db;
  --toastify-color-success: #07bc0c;
  --toastify-color-warning: #f1c40f;
  --toastify-color-error: #e74c3c;
  --toastify-color-transparent: rgba(255, 255, 255, 0.7);
  --toastify-icon-color-info: var(--toastify-color-info);
  --toastify-icon-color-success: var(--toastify-color-success);
  --toastify-icon-color-warning: var(--toastify-color-warning);
  --toastify-icon-color-error: var(--toastify-color-error);
  --toastify-toast-width: 320px;
  --toastify-toast-background: #fff;
  --toastify-toast-min-height: 64px;
  --toastify-toast-max-height: 800px;
  --toastify-font-family: sans-serif;
  --toastify-z-index: 9999;
  --toastify-text-color-light: #757575;
  --toastify-text-color-dark: #fff;
  --toastify-text-color-info: #fff;
  --toastify-text-color-success: #fff;
  --toastify-text-color-warning: #fff;
  --toastify-text-color-error: #fff;
  --toastify-spinner-color: #616161;
  --toastify-spinner-color-empty-area: #e0e0e0;
  --toastify-color-progress-light: linear-gradient(
    to right,
    #4cd964,
    #5ac8fa,
    #007aff,
    #34aadc,
    #5856d6,
    #ff2d55
  );
  --toastify-color-progress-dark: #bb86fc;
  --toastify-color-progress-info: var(--toastify-color-info);
  --toastify-color-progress-success: var(--toastify-color-success);
  --toastify-color-progress-warning: var(--toastify-color-warning);
  --toastify-color-progress-error: var(--toastify-color-error);
}

.Toastify__toast-container {
  z-index: var(--toastify-z-index);
  -webkit-transform: translate3d(0, 0, var(--toastify-z-index));
  position: fixed;
  padding: 4px;
  width: var(--toastify-toast-width);
  box-sizing: border-box;
  color: #fff;
}
.Toastify__toast-container--top-left {
  top: 1em;
  left: 1em;
}
.Toastify__toast-container--top-center {
  top: 1em;
  left: 50%;
  transform: translateX(-50%);
}
.Toastify__toast-container--top-right {
  top: 1em;
  right: 1em;
}
.Toastify__toast-container--bottom-left {
  bottom: 1em;
  left: 1em;
}
.Toastify__toast-container--bottom-center {
  bottom: 1em;
  left: 50%;
  transform: translateX(-50%);
}
.Toastify__toast-container--bottom-right {
  bottom: 1em;
  right: 1em;
}

@media only screen and (max-width : 480px) {
  .Toastify__toast-container {
    width: 100vw;
    padding: 0;
    left: 0;
    margin: 0;
  }
  .Toastify__toast-container--top-left, .Toastify__toast-container--top-center, .Toastify__toast-container--top-right {
    top: 0;
    transform: translateX(0);
  }
  .Toastify__toast-container--bottom-left, .Toastify__toast-container--bottom-center, .Toastify__toast-container--bottom-right {
    bottom: 0;
    transform: translateX(0);
  }
  .Toastify__toast-container--rtl {
    right: 0;
    left: initial;
  }
}
.Toastify__toast {
  position: relative;
  min-height: var(--toastify-toast-min-height);
  box-sizing: border-box;
  margin-bottom: 1rem;
  padding: 8px;
  border-radius: 4px;
  box-shadow: 0 1px 10px 0 rgba(0, 0, 0, 0.1), 0 2px 15px 0 rgba(0, 0, 0, 0.05);
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: justify;
      justify-content: space-between;
  max-height: var(--toastify-toast-max-height);
  overflow: hidden;
  font-family: var(--toastify-font-family);
  cursor: default;
  direction: ltr;
  /* webkit only issue #791 */
  z-index: 0;
}
.Toastify__toast--rtl {
  direction: rtl;
}
.Toastify__toast--close-on-click {
  cursor: pointer;
}
.Toastify__toast-body {
  margin: auto 0;
  -ms-flex: 1 1 auto;
      flex: 1 1 auto;
  padding: 6px;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
      align-items: center;
}
.Toastify__toast-body > div:last-child {
  word-break: break-word;
  -ms-flex: 1;
      flex: 1;
}
.Toastify__toast-icon {
  -webkit-margin-end: 10px;
          margin-inline-end: 10px;
  width: 20px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  display: -ms-flexbox;
  display: flex;
}

.Toastify--animate {
  animation-fill-mode: both;
  animation-duration: 0.7s;
}

.Toastify--animate-icon {
  animation-fill-mode: both;
  animation-duration: 0.3s;
}

@media only screen and (max-width : 480px) {
  .Toastify__toast {
    margin-bottom: 0;
    border-radius: 0;
  }
}
.Toastify__toast-theme--dark {
  background: var(--toastify-color-dark);
  color: var(--toastify-text-color-dark);
}
.Toastify__toast-theme--light {
  background: var(--toastify-color-light);
  color: var(--toastify-text-color-light);
}
.Toastify__toast-theme--colored.Toastify__toast--default {
  background: var(--toastify-color-light);
  color: var(--toastify-text-color-light);
}
.Toastify__toast-theme--colored.Toastify__toast--info {
  color: var(--toastify-text-color-info);
  background: var(--toastify-color-info);
}
.Toastify__toast-theme--colored.Toastify__toast--success {
  color: var(--toastify-text-color-success);
  background: var(--toastify-color-success);
}
.Toastify__toast-theme--colored.Toastify__toast--warning {
  color: var(--toastify-text-color-warning);
  background: var(--toastify-color-warning);
}
.Toastify__toast-theme--colored.Toastify__toast--error {
  color: var(--toastify-text-color-error);
  background: var(--toastify-color-error);
}

.Toastify__progress-bar-theme--light {
  background: var(--toastify-color-progress-light);
}
.Toastify__progress-bar-theme--dark {
  background: var(--toastify-color-progress-dark);
}
.Toastify__progress-bar--info {
  background: var(--toastify-color-progress-info);
}
.Toastify__progress-bar--success {
  background: var(--toastify-color-progress-success);
}
.Toastify__progress-bar--warning {
  background: var(--toastify-color-progress-warning);
}
.Toastify__progress-bar--error {
  background: var(--toastify-color-progress-error);
}
.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info, .Toastify__progress-bar-theme--colored.Toastify__progress-bar--success, .Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning, .Toastify__progress-bar-theme--colored.Toastify__progress-bar--error {
  background: var(--toastify-color-transparent);
}

.Toastify__close-button {
  color: #fff;
  background: transparent;
  outline: none;
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 0.7;
  transition: 0.3s ease;
  -ms-flex-item-align: start;
      align-self: flex-start;
}
.Toastify__close-button--light {
  color: #000;
  opacity: 0.3;
}
.Toastify__close-button > svg {
  fill: currentColor;
  height: 16px;
  width: 14px;
}
.Toastify__close-button:hover, .Toastify__close-button:focus {
  opacity: 1;
}

@keyframes Toastify__trackProgress {
  0% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(0);
  }
}
.Toastify__progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  z-index: var(--toastify-z-index);
  opacity: 0.7;
  transform-origin: left;
}
.Toastify__progress-bar--animated {
  animation: Toastify__trackProgress linear 1 forwards;
}
.Toastify__progress-bar--controlled {
  transition: transform 0.2s;
}
.Toastify__progress-bar--rtl {
  right: 0;
  left: initial;
  transform-origin: right;
}

.Toastify__spinner {
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  border: 2px solid;
  border-radius: 100%;
  border-color: var(--toastify-spinner-color-empty-area);
  border-right-color: var(--toastify-spinner-color);
  animation: Toastify__spin 0.65s linear infinite;
}

@keyframes Toastify__bounceInRight {
  from, 60%, 75%, 90%, to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  from {
    opacity: 0;
    transform: translate3d(3000px, 0, 0);
  }
  60% {
    opacity: 1;
    transform: translate3d(-25px, 0, 0);
  }
  75% {
    transform: translate3d(10px, 0, 0);
  }
  90% {
    transform: translate3d(-5px, 0, 0);
  }
  to {
    transform: none;
  }
}
@keyframes Toastify__bounceOutRight {
  20% {
    opacity: 1;
    transform: translate3d(-20px, 0, 0);
  }
  to {
    opacity: 0;
    transform: translate3d(2000px, 0, 0);
  }
}
@keyframes Toastify__bounceInLeft {
  from, 60%, 75%, 90%, to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  0% {
    opacity: 0;
    transform: translate3d(-3000px, 0, 0);
  }
  60% {
    opacity: 1;
    transform: translate3d(25px, 0, 0);
  }
  75% {
    transform: translate3d(-10px, 0, 0);
  }
  90% {
    transform: translate3d(5px, 0, 0);
  }
  to {
    transform: none;
  }
}
@keyframes Toastify__bounceOutLeft {
  20% {
    opacity: 1;
    transform: translate3d(20px, 0, 0);
  }
  to {
    opacity: 0;
    transform: translate3d(-2000px, 0, 0);
  }
}
@keyframes Toastify__bounceInUp {
  from, 60%, 75%, 90%, to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  from {
    opacity: 0;
    transform: translate3d(0, 3000px, 0);
  }
  60% {
    opacity: 1;
    transform: translate3d(0, -20px, 0);
  }
  75% {
    transform: translate3d(0, 10px, 0);
  }
  90% {
    transform: translate3d(0, -5px, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}
@keyframes Toastify__bounceOutUp {
  20% {
    transform: translate3d(0, -10px, 0);
  }
  40%, 45% {
    opacity: 1;
    transform: translate3d(0, 20px, 0);
  }
  to {
    opacity: 0;
    transform: translate3d(0, -2000px, 0);
  }
}
@keyframes Toastify__bounceInDown {
  from, 60%, 75%, 90%, to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  0% {
    opacity: 0;
    transform: translate3d(0, -3000px, 0);
  }
  60% {
    opacity: 1;
    transform: translate3d(0, 25px, 0);
  }
  75% {
    transform: translate3d(0, -10px, 0);
  }
  90% {
    transform: translate3d(0, 5px, 0);
  }
  to {
    transform: none;
  }
}
@keyframes Toastify__bounceOutDown {
  20% {
    transform: translate3d(0, 10px, 0);
  }
  40%, 45% {
    opacity: 1;
    transform: translate3d(0, -20px, 0);
  }
  to {
    opacity: 0;
    transform: translate3d(0, 2000px, 0);
  }
}
.Toastify__bounce-enter--top-left, .Toastify__bounce-enter--bottom-left {
  animation-name: Toastify__bounceInLeft;
}
.Toastify__bounce-enter--top-right, .Toastify__bounce-enter--bottom-right {
  animation-name: Toastify__bounceInRight;
}
.Toastify__bounce-enter--top-center {
  animation-name: Toastify__bounceInDown;
}
.Toastify__bounce-enter--bottom-center {
  animation-name: Toastify__bounceInUp;
}

.Toastify__bounce-exit--top-left, .Toastify__bounce-exit--bottom-left {
  animation-name: Toastify__bounceOutLeft;
}
.Toastify__bounce-exit--top-right, .Toastify__bounce-exit--bottom-right {
  animation-name: Toastify__bounceOutRight;
}
.Toastify__bounce-exit--top-center {
  animation-name: Toastify__bounceOutUp;
}
.Toastify__bounce-exit--bottom-center {
  animation-name: Toastify__bounceOutDown;
}

@keyframes Toastify__zoomIn {
  from {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }
  50% {
    opacity: 1;
  }
}
@keyframes Toastify__zoomOut {
  from {
    opacity: 1;
  }
  50% {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }
  to {
    opacity: 0;
  }
}
.Toastify__zoom-enter {
  animation-name: Toastify__zoomIn;
}

.Toastify__zoom-exit {
  animation-name: Toastify__zoomOut;
}

@keyframes Toastify__flipIn {
  from {
    transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
    animation-timing-function: ease-in;
    opacity: 0;
  }
  40% {
    transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
    animation-timing-function: ease-in;
  }
  60% {
    transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
    opacity: 1;
  }
  80% {
    transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
  }
  to {
    transform: perspective(400px);
  }
}
@keyframes Toastify__flipOut {
  from {
    transform: perspective(400px);
  }
  30% {
    transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
    opacity: 1;
  }
  to {
    transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
    opacity: 0;
  }
}
.Toastify__flip-enter {
  animation-name: Toastify__flipIn;
}

.Toastify__flip-exit {
  animation-name: Toastify__flipOut;
}

@keyframes Toastify__slideInRight {
  from {
    transform: translate3d(110%, 0, 0);
    visibility: visible;
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}
@keyframes Toastify__slideInLeft {
  from {
    transform: translate3d(-110%, 0, 0);
    visibility: visible;
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}
@keyframes Toastify__slideInUp {
  from {
    transform: translate3d(0, 110%, 0);
    visibility: visible;
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}
@keyframes Toastify__slideInDown {
  from {
    transform: translate3d(0, -110%, 0);
    visibility: visible;
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}
@keyframes Toastify__slideOutRight {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    visibility: hidden;
    transform: translate3d(110%, 0, 0);
  }
}
@keyframes Toastify__slideOutLeft {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    visibility: hidden;
    transform: translate3d(-110%, 0, 0);
  }
}
@keyframes Toastify__slideOutDown {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    visibility: hidden;
    transform: translate3d(0, 500px, 0);
  }
}
@keyframes Toastify__slideOutUp {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    visibility: hidden;
    transform: translate3d(0, -500px, 0);
  }
}
.Toastify__slide-enter--top-left, .Toastify__slide-enter--bottom-left {
  animation-name: Toastify__slideInLeft;
}
.Toastify__slide-enter--top-right, .Toastify__slide-enter--bottom-right {
  animation-name: Toastify__slideInRight;
}
.Toastify__slide-enter--top-center {
  animation-name: Toastify__slideInDown;
}
.Toastify__slide-enter--bottom-center {
  animation-name: Toastify__slideInUp;
}

.Toastify__slide-exit--top-left, .Toastify__slide-exit--bottom-left {
  animation-name: Toastify__slideOutLeft;
}
.Toastify__slide-exit--top-right, .Toastify__slide-exit--bottom-right {
  animation-name: Toastify__slideOutRight;
}
.Toastify__slide-exit--top-center {
  animation-name: Toastify__slideOutUp;
}
.Toastify__slide-exit--bottom-center {
  animation-name: Toastify__slideOutDown;
}

@keyframes Toastify__spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/*# sourceMappingURL=ReactToastify.css.map *//* Workflow Create Page - New Design */
/* Desktop Frame: 1440×1024 */

.workflow-wizard {
  width: 100%;
  background: #F7F9FC;
  font-family: Arial, sans-serif;
  position: relative;
}

/* Container for 1440px width */
.workflow-wizard-container {
  max-width: 1440px;
  margin: 0 auto;
  min-height: 1024px;
}

/* Top Navigation Bar */
.wizard-top-nav {
  width: 100%;
  background: white;
  border-bottom: 1.26px solid #E5E7EB;
  padding: 21.62px 14.14px 1.26px;
}

.back-to-management-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6B7280;
  font-size: 13px;
  font-weight: 400;
  line-height: 19.5px;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.back-icon {
  width: 16px;
  height: 16px;
  color: #6B7280;
}

.back-to-management-link:hover {
  color: #374151;
}

/* Progress Header */
.wizard-progress-header {
  width: 100%;
  background: white;
  border-bottom: 1.26px solid #E5E7EB;
  padding: 0 120.15px 1.26px;
}

.progress-header-content {
  padding: 23.99px 23.99px 0;
}

.progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11.99px;
  margin-bottom: 40px;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 11.99px;
}

.progress-step-label {
  font-size: 14px;
  font-weight: 700;
  line-height: 21px;
  color: #6B7280;
}

.progress-step-label.active {
  color: #2F5BFF;
}

.progress-step-label.completed {
  color: #22C55E;
}

.progress-step-separator {
  color: #E5E7EB;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
}

.progress-bar-container {
  width: 600px;
  margin: 0 auto;
  text-align: center;
}

.progress-bar-track {
  width: 100%;
  height: 5.99px;
  background: #E5E7EB;
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 19px;
}

.progress-bar-fill {
  height: 100%;
  background: #2F5BFF;
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.progress-text {
  color: #6B7280;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  text-align: center;
}

/* Main Content Area */
.wizard-main-content {
  max-width: 1152px;
  width: 1152px;
  margin: 32px auto;
  padding: 0;
  display: flex;
  gap: 23.99px;
}

.wizard-content-card {
  width: 800px;
  background: white;
  border-radius: 12px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.06);
  padding: 31.99px;
  display: flex;
  flex-direction: column;
  gap: 23.99px;
}

.wizard-step-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 30px;
  color: #1F2937;
  margin: 0;
}

.wizard-step-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 23.99px;
}

/* Client Selection Card */
.client-section-label {
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  color: #6B7280;
  margin-bottom: 11.99px;
}

.client-selection-card {
  background: #EEF4FF;
  border: 1.26px solid #2F5BFF;
  border-radius: 14px;
  padding: 25.25px;
  display: flex;
  flex-direction: column;
  gap: 15.98px;
}

.client-card-content {
  display: flex;
  flex-direction: column;
  gap: 7.98px;
}

.client-name {
  font-size: 24px;
  font-weight: 700;
  line-height: 36px;
  color: #1F2937;
}

.client-description {
  font-size: 14px;
  font-weight: 400;
  line-height: 22.75px;
  color: #6B7280;
}

.client-warning {
  border-top: 1.26px solid #E5E7EB;
  padding-top: 15.98px;
  display: flex;
  align-items: center;
  gap: 7.98px;
}

.warning-icon-small {
  width: 14px;
  height: 14px;
  color: #2F5BFF;
}

.client-warning-text {
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  color: #2F5BFF;
}

/* Form Fields */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 7.98px;
}

.form-label {
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  color: #6B7280;
  text-transform: uppercase;
}

.form-input {
  width: 100%;
  padding: 10px 16px;
  background: white;
  border: 1.26px solid #DFE3EC;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 400;
  color: #1F2937;
  box-sizing: border-box;
}

.form-input::placeholder {
  color: rgba(31, 41, 55, 0.5);
}

.form-input:focus {
  outline: none;
  border-color: #2F5BFF;
}

.form-textarea {
  width: 100%;
  min-height: 89.47px;
  padding: 12px 16px;
  background: white;
  border: 1.26px solid #E5E7EB;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  color: #1F2937;
  resize: vertical;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

.form-textarea::placeholder {
  color: rgba(31, 41, 55, 0.5);
}

.form-textarea:focus {
  outline: none;
  border-color: #2F5BFF;
}

/* Products Section */
.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 11.99px;
}

.products-search-container {
  position: relative;
  flex: 1;
  max-width: 604px;
}

.products-search-input {
  width: 100%;
  padding: 10px 16px 10px 44px;
  background: white;
  border: 1.26px solid #E5E7EB;
  border-radius: 10px;
  font-size: 14px;
  box-sizing: border-box;
}

.products-search-input::placeholder {
  color: rgba(31, 41, 55, 0.5);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #6B7280;
}

.select-all-btn {
  background: none;
  border: none;
  color: #0288D1;
  font-size: 14px;
  font-weight: 700;
  line-height: 21px;
  cursor: pointer;
  padding: 9px 0;
}

.select-all-btn:hover {
  color: #0277BD;
}

.products-grid-container {
  background: white;
  border: 1.26px solid #E5E7EB;
  border-radius: 14px;
  padding: 17.25px;
  max-height: 340px;
  overflow-y: auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11.99px;
}

.product-card {
  background: white;
  border: 1.26px solid #E5E7EB;
  border-radius: 10px;
  padding: 13.26px;
  display: flex;
  flex-direction: column;
  gap: 7.98px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.product-card:hover:not(.disabled) {
  border-color: #2F5BFF;
  background: #F9FAFB;
}

.product-card.disabled {
  opacity: 0.6;
  background: #F9FAFB;
  cursor: not-allowed;
}

.product-card-header {
  display: flex;
  align-items: flex-start;
  gap: 7.98px;
}

.product-checkbox {
  width: 20px;
  height: 20px;
  border: 1.26px solid #E5E7EB;
  border-radius: 4px;
  flex-shrink: 0;
  cursor: pointer;
}

.product-checkbox.checked {
  background: #2F5BFF;
  border-color: #2F5BFF;
}

.product-checkbox.disabled {
  border-color: #D1D5DB;
  cursor: not-allowed;
}

.product-name {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  line-height: 21px;
  color: #1F2937;
}

.product-card.disabled .product-name {
  color: #9CA3AF;
}

.product-description {
  font-size: 12px;
  font-weight: 400;
  line-height: 19.5px;
  color: #6B7280;
  margin-left: 28px;
}

.product-card.disabled .product-description {
  color: #9CA3AF;
}

/* Flow Builder */
.flow-section {
  display: flex;
  flex-direction: column;
  gap: 11.99px;
}

.flow-section-label {
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  color: #6B7280;
  text-transform: uppercase;
}

.flow-instruction {
  font-size: 13px;
  font-weight: 400;
  line-height: 19.5px;
  color: #6B7280;
}

.available-roles {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.role-chip {
  padding: 11px 17px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  line-height: 19.5px;
  cursor: grab;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.role-chip.r1 {
  background: rgba(47, 91, 255, 0.08);
  border: 1.26px solid #2F5BFF;
  color: #2F5BFF;
}

.role-chip.r2 {
  background: rgba(2, 136, 209, 0.08);
  border: 1.26px solid #0288D1;
  color: #0288D1;
}

.role-chip.r3 {
  background: rgba(5, 150, 105, 0.08);
  border: 1.26px solid #059669;
  color: #059669;
}

.role-chip:active {
  cursor: grabbing;
}

/* Dragging state — original chip becomes a dashed ghost placeholder */
.role-chip.dragging {
  background: transparent !important;
  border: 2px dashed #C7D2FE !important;
  color: transparent !important;
  box-shadow: none !important;
  pointer-events: none;
  position: relative;
}

.role-chip-drag-placeholder {
  font-size: 11px;
  font-weight: 600;
  color: #93A3CF;
  letter-spacing: 0.3px;
}

.role-chip-icon {
  width: 14px;
  height: 14px;
}

/* Drop zone pulse animation when a drag is active */
@keyframes dropzonePulse {

  0%,
  100% {
    border-color: #93C5FD;
    background: #F0F7FF;
  }

  50% {
    border-color: #2F5BFF;
    background: #EEF4FF;
  }
}

.pipeline-dropzone.awaiting-drop {
  animation: dropzonePulse 1.5s ease-in-out infinite;
  border-style: dashed;
}

.pipeline-dropzone.awaiting-drop .dropzone-placeholder {
  color: #2F5BFF;
  font-weight: 600;
}

/* Highlight the entire level card when hovering */
.pipeline-level.level-highlight {
  box-shadow: 0 0 0 2px #2F5BFF, 0 4px 12px rgba(47, 91, 255, 0.15);
  transform: scale(1.02);
  transition: all 0.2s ease;
}



.level-selector-buttons {
  display: flex;
  gap: 11.99px;
}

.level-selector-btn {
  flex: 1;
  padding: 9px 20px;
  background: white;
  border: 1.26px solid #E5E7EB;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  line-height: 21px;
  color: #6B7280;
  cursor: pointer;
  transition: all 0.2s ease;
}

.level-selector-btn.active {
  background: #EEF4FF;
  border-color: #2F5BFF;
  color: #2F5BFF;
}

.level-selector-btn:hover:not(.active) {
  border-color: #D1D5DB;
}

.workflow-pipeline {
  background: #F7F9FC;
  border: 1.26px solid #E5E7EB;
  border-radius: 14px;
  padding: 25.25px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pipeline-title {
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  color: #6B7280;
  text-align: center;
  text-transform: uppercase;
}

.pipeline-levels {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15.98px;
}

.pipeline-level {
  flex: 1;
  max-width: 220px;
  background: white;
  border: 1.26px solid #D1D5DB;
  border-radius: 10px;
  padding: 21.26px;
  display: flex;
  flex-direction: column;
  gap: 11.99px;
  transition: all 0.2s ease;
}

.pipeline-level-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: #1F2937;
}

.pipeline-dropzone {
  background: #F9FAFB;
  border: 1.26px solid #D1D5DB;
  border-radius: 10px;
  padding: 17.25px 1.26px;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.pipeline-dropzone.over {
  background: #EEF4FF;
  border-color: #2F5BFF;
  border-style: solid;
  animation: none;
}

.dropzone-placeholder {
  font-size: 13px;
  font-weight: 400;
  line-height: 19.5px;
  color: #9CA3AF;
  text-align: center;
}

.pipeline-arrow {
  width: 24px;
  height: 24px;
  color: #6B7280;
  flex-shrink: 0;
}

/* Review Section */
.review-items {
  display: flex;
  flex-direction: column;
  gap: 11.99px;
}

.review-item-card {
  background: #F0FDF4;
  border: 1.26px solid #22C55E;
  border-radius: 10px;
  padding: 15.98px;
  display: flex;
  align-items: center;
  gap: 11.99px;
}

.review-check-icon {
  width: 24px;
  height: 24px;
  background: #22C55E;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-check-icon svg {
  width: 14px;
  height: 14px;
  color: white;
}

.review-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3.99px;
}

.review-item-label {
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  color: #6B7280;
  text-transform: uppercase;
}

.review-item-value {
  font-size: 14px;
  font-weight: 700;
  line-height: 21px;
  color: #1F2937;
}

.review-ready-message {
  background: #EEF4FF;
  border: 1.26px solid #2F5BFF;
  border-radius: 10px;
  padding: 17.25px;
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  color: #1F2937;
}

/* Footer Actions */
.wizard-footer {
  border-top: 1.26px solid #E5E7EB;
  padding-top: 25.25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wizard-btn {
  padding: 9px 23px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  line-height: 19.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.wizard-btn.previous {
  background: white;
  border: 1.26px solid #D1D5DB;
  color: #374151;
}

.wizard-btn.previous:hover {
  background: #F9FAFB;
}

.wizard-btn.previous:disabled {
  background: #F9FAFB;
  border-color: #E5E7EB;
  color: #9CA3AF;
  cursor: not-allowed;
}

.wizard-btn.next {
  background: #2F5BFF;
  color: white;
  min-width: 84px;
}

.wizard-btn.next:hover:not(:disabled) {
  background: #2347E8;
}

.wizard-btn.next:disabled {
  background: #E5E7EB;
  color: #9CA3AF;
  cursor: not-allowed;
}

.wizard-btn.create {
  background: #22C55E;
  color: white;
  min-width: 154px;
}

.wizard-btn.create:hover:not(:disabled) {
  background: #16A34A;
}

/* Workflow Summary Sidebar */
.workflow-summary-sidebar {
  width: 320px;
  background: white;
  border-radius: 12px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.06);
  padding: 23.99px;
  display: flex;
  flex-direction: column;
  gap: 15.98px;
  align-self: flex-start;
}

.summary-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: #1F2937;
}

.summary-items {
  display: flex;
  flex-direction: column;
  gap: 15.98px;
}

.summary-item {
  display: flex;
  align-items: flex-start;
  gap: 11.99px;
}

.summary-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.summary-icon.dot {
  width: 8px;
  height: 8px;
  background: #2F5BFF;
  border-radius: 9999px;
  margin-top: 6px;
}

.summary-icon.check {
  color: #22C55E;
}

.summary-icon.empty {
  width: 16px;
  height: 16px;
  background: #E5E7EB;
  border: 1.33px solid #E5E7EB;
  border-radius: 2px;
}

.summary-icon.lock {
  color: #6B7280;
}

.summary-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3.99px;
}

.summary-item-label {
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  color: #6B7280;
  text-transform: uppercase;
}

.summary-item-value {
  font-size: 14px;
  font-weight: 700;
  line-height: 21px;
  color: #1F2937;
}

.summary-item-value.pending {
  color: #6B7280;
}

.summary-flow-levels {
  display: flex;
  flex-direction: column;
  gap: 7.98px;
  margin-top: 3.99px;
}

.summary-flow-level {
  font-size: 13px;
  line-height: 19.5px;
}

.summary-flow-level strong {
  font-weight: 700;
  color: #1F2937;
}

.summary-flow-level span {
  font-weight: 400;
  color: #6B7280;
}

/* Success Overlay */
.success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.success-message {
  background: white;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  max-width: 400px;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: #22C55E;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
  color: white;
}

.success-message h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1F2937;
  margin: 0 0 8px;
}

.success-message p {
  font-size: 14px;
  color: #6B7280;
  margin: 0;
}

@media (max-width: 768px) {

  .wizard-top-nav,
  .wizard-progress-header {
    padding-left: 24px;
    padding-right: 24px;
  }

  .progress-steps {
    flex-wrap: wrap;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .pipeline-levels {
    flex-direction: column;
  }
}/* ===========================
   Workflow Edit Wizard Styles
   =========================== */

.edit-wizard-wrapper {
  width: 100%;
  min-height: 100vh;
  background: #F7F9FC;
  display: flex;
  flex-direction: column;
}

/* Top Navigation Bar */
.edit-wizard-topbar {
  background: white;
  border-bottom: 1px solid #E5E7EB;
  padding: 21px 144px;
  display: flex;
  align-items: center;
}

.back-link {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  color: #6B7280;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.back-link:hover {
  color: #374151;
}

.back-link svg {
  width: 16px;
  height: 16px;
}

/* Progress Header */
.edit-wizard-progress-header {
  background: white;
  border-bottom: 1px solid #E5E7EB;
  padding: 0 120px;
}

.progress-header-content {
  padding: 24px 24px 0;
}

.progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-step-label {
  font-size: 14px;
  font-weight: 700;
  line-height: 21px;
  color: #6B7280;
}

.progress-step-label.active {
  color: #2F5BFF;
}

.progress-step-label.completed {
  color: #22C55E;
}

.progress-step-separator {
  color: #E5E7EB;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
}

.progress-bar-container {
  width: 600px;
  margin: 0 auto;
  text-align: center;
}

.progress-bar-track {
  width: 100%;
  height: 6px;
  background: #E5E7EB;
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 19px;
}

.progress-bar-fill {
  height: 100%;
  background: #2F5BFF;
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.progress-text {
  color: #6B7280;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  text-align: center;
}


/* Main Content Area */
.edit-wizard-main {
  padding: 32px 144px;
  flex: 1;
}

.edit-wizard-content-area {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* Left Card - Main Content */
.edit-wizard-card {
  flex: 1;
  background: white;
  border-radius: 12px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.06);
  padding: 32px;
  display: flex;
  flex-direction: column;
  min-height: 430px;
}

.edit-wizard-step-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.step-main-title {
  font-size: 20px;
  font-weight: 700;
  color: #1F2937;
  margin: 0;
}

.step-subtitle {
  font-size: 14px;
  color: #6B7280;
  margin: 0;
}

.step-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-section-label {
  font-size: 12px;
  font-weight: 400;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.step-input-label {
  font-size: 12px;
  font-weight: 400;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.step-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #DFE3EC;
  border-radius: 10px;
  font-size: 14px;
  color: #1F2937;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.step-input::placeholder {
  color: rgba(31, 41, 55, 0.5);
}

.step-input:focus {
  outline: none;
  border-color: #2F5BFF;
  box-shadow: 0 0 0 3px rgba(47, 91, 255, 0.1);
}

.step-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  font-size: 14px;
  color: #1F2937;
  resize: vertical;
  font-family: inherit;
  line-height: 1.5;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.step-textarea::placeholder {
  color: rgba(31, 41, 55, 0.5);
}

.step-textarea:focus {
  outline: none;
  border-color: #2F5BFF;
  box-shadow: 0 0 0 3px rgba(47, 91, 255, 0.1);
}

/* Client Card */
.client-card-selected {
  background: #EEF4FF;
  border: 1px solid #2F5BFF;
  border-radius: 14px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.client-card-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.client-card-title {
  font-size: 24px;
  font-weight: 700;
  color: #1F2937;
  margin: 0;
}

.client-card-description {
  font-size: 14px;
  color: #6B7280;
  line-height: 1.6;
  margin: 0;
}

.client-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid #E5E7EB;
}

.info-icon {
  flex-shrink: 0;
}

.client-card-warning {
  font-size: 12px;
  font-weight: 700;
  color: #2F5BFF;
}

/* Products Section */
.products-search-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.product-search-box {
  position: relative;
  flex: 1;
  max-width: 604px;
}

.search-icon-left {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.product-search-input-new {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  font-size: 14px;
  color: #1F2937;
}

.product-search-input-new::placeholder {
  color: rgba(31, 41, 55, 0.5);
}

.product-search-input-new:focus {
  outline: none;
  border-color: #2F5BFF;
  box-shadow: 0 0 0 3px rgba(47, 91, 255, 0.1);
}

.select-all-link {
  background: none;
  border: none;
  color: #0288D1;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  margin-left: 16px;
  white-space: nowrap;
}

.select-all-link:hover {
  text-decoration: underline;
}

.products-grid-container {
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  padding: 17px;
  background: white;
  max-height: 450px;
  overflow-y: auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.product-card {
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 13px;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 95px;
}

.product-card:hover:not(.disabled) {
  border-color: #2F5BFF;
  box-shadow: 0 2px 8px rgba(47, 91, 255, 0.1);
}

.product-card.selected {
  border-color: #2F5BFF;
  background: #F8FAFF;
}

.product-card.disabled {
  opacity: 0.6;
  background: #F9FAFB;
  cursor: not-allowed;
}

.product-card-header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.product-card-checkbox {
  width: 20px;
  height: 20px;
  border: 1px solid #E5E7EB;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 1px;
}

.product-card-checkbox:disabled {
  cursor: not-allowed;
  border-color: #D1D5DB;
}

.product-card.disabled .product-card-checkbox {
  border-color: #D1D5DB;
}

.product-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #1F2937;
  line-height: 1.5;
  flex: 1;
}

.product-card.disabled .product-card-title {
  color: #9CA3AF;
}

.product-card-description {
  font-size: 12px;
  color: #6B7280;
  line-height: 1.6;
  margin-left: 28px;
}

.product-card.disabled .product-card-description {
  color: #9CA3AF;
}

.no-products {
  padding: 48px 24px;
  text-align: center;
  color: #6B7280;
  font-size: 14px;
}

/* Old product list styles - keeping for backward compatibility */
.products-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.product-search-wrapper {
  position: relative;
  width: 300px;
}

.product-search {
  width: 100%;
  padding: 8px 36px 8px 12px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 14px;
  color: #1F2937;
}

.product-search:focus {
  outline: none;
  border-color: #2F5BFF;
  box-shadow: 0 0 0 3px rgba(47, 91, 255, 0.1);
}

.search-icon-new {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 14px;
}

.products-count {
  font-size: 14px;
  color: #6B7280;
  margin-bottom: 12px;
}

.select-all-wrapper {
  margin-bottom: 12px;
}

.select-all-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
}

.select-all-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.products-list-wrapper {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 8px;
}

.product-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.product-item:hover {
  background: #F9FAFB;
}

.product-item.selected {
  background: #EEF4FF;
}

.product-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.product-item-name {
  font-size: 14px;
  color: #1F2937;
}

/* Levels Section */
/* New Levels Design */
.available-roles-section-new {
  margin-bottom: 24px;
}

.roles-instruction {
  font-size: 13px;
  color: #6B7280;
  line-height: 1.5;
  margin: 12px 0;
}

.roles-horizontal-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.role-badge-horizontal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 17px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: move;
  transition: all 0.2s;
  user-select: none;
}

.role-badge-horizontal:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.role-badge-horizontal:active {
  transform: translateY(0);
}

.no-roles-available {
  padding: 12px;
  color: #9CA3AF;
  font-size: 13px;
  font-style: italic;
}

.level-selector-section-new {
  margin-bottom: 24px;
}

.level-buttons-row-new {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.level-select-btn-new {
  flex: 1;
  padding: 10px 20px;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  background: white;
  color: #6B7280;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.level-select-btn-new:hover {
  border-color: #2F5BFF;
  background: #F8FAFF;
}

.level-select-btn-new.active {
  background: #EEF4FF;
  border-color: #2F5BFF;
  color: #2F5BFF;
}

.workflow-pipeline-container {
  background: #F7F9FC;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  padding: 25px;
}

.pipeline-label {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  margin-bottom: 20px;
}

.pipeline-levels-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.pipeline-level-card {
  flex: 1;
  max-width: 220px;
  background: white;
  border: 1px solid #D1D5DB;
  border-radius: 10px;
  padding: 21px;
}

.pipeline-level-header {
  font-size: 16px;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 12px;
}

.pipeline-drop-zone {
  background: #F9FAFB;
  border: 1px solid #D1D5DB;
  border-radius: 10px;
  padding: 17px 12px;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.pipeline-drop-zone:hover {
  border-color: #2F5BFF;
  background: #F8FAFF;
}

.drop-placeholder {
  color: #9CA3AF;
  font-size: 13px;
  text-align: center;
}

.assigned-role-display {
  position: relative;
  color: #1F2937;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  padding-right: 20px;
}

.remove-role-btn-new {
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  background: #DC2626;
  color: white;
  border: none;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.remove-role-btn-new:hover {
  background: #B91C1C;
  transform: translateY(-50%) scale(1.1);
}

.pipeline-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Old Levels Styles - keeping for backward compatibility */
.level-selector-section {
  margin-bottom: 24px;
}

.subsection-title {
  font-size: 16px;
  font-weight: 600;
  color: #1F2937;
  margin: 0 0 16px 0;
}

.level-buttons-row {
  display: flex;
  gap: 12px;
}

.level-select-btn {
  padding: 10px 20px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  background: white;
  color: #6B7280;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.level-select-btn:hover {
  border-color: #2F5BFF;
  color: #2F5BFF;
}

.level-select-btn.active {
  background: #2F5BFF;
  border-color: #2F5BFF;
  color: white;
}

.role-assignment-section {
  margin-top: 24px;
}

.dnd-layout {
  display: flex;
  gap: 24px;
  margin-top: 16px;
}

.available-roles-panel {
  flex: 1;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  overflow: hidden;
}

.panel-header {
  background: #F9FAFB;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  border-bottom: 1px solid #E5E7EB;
}

.roles-grid {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 200px;
}

.dnd-role {
  padding: 12px 16px;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  font-size: 14px;
  color: #1F2937;
  cursor: grab;
  transition: all 0.2s;
}

.dnd-role:hover {
  background: #EEF4FF;
  border-color: #2F5BFF;
}

.dnd-role.dragging {
  opacity: 0.5;
}

.dnd-role.assigned {
  background: #2F5BFF;
  color: white;
  border-color: #2F5BFF;
  cursor: default;
}

.dnd-overlay {
  padding: 12px 16px;
  background: #2F5BFF;
  color: white;
  border-radius: 6px;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(47, 91, 255, 0.3);
}

.no-roles-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  text-align: center;
}

.no-roles-icon-new {
  font-size: 32px;
  margin-bottom: 8px;
}

.no-roles-text-new {
  font-size: 14px;
  color: #6B7280;
}

.workflow-levels-panel {
  flex: 2;
}

.levels-flow {
  display: flex;
  align-items: center;
  gap: 16px;
}

.level-drop-container {
  position: relative;
  flex: 1;
}

.dnd-level-dropzone {
  padding: 16px;
  border: 2px dashed #E5E7EB;
  border-radius: 8px;
  background: #F9FAFB;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s;
}

.dnd-level-dropzone.over {
  border-color: #2F5BFF;
  background: #EEF4FF;
}

.dnd-level-dropzone.filled {
  border-style: solid;
  border-color: #2F5BFF;
  background: white;
}

.dnd-level-label {
  font-size: 12px;
  font-weight: 600;
  color: #6B7280;
  text-transform: uppercase;
}

.dnd-placeholder {
  padding: 12px;
  text-align: center;
  color: #9CA3AF;
  font-size: 13px;
  border: 1px dashed #E5E7EB;
  border-radius: 4px;
}

.remove-role-x {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #EF4444;
  color: white;
  border: none;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.remove-role-x:hover {
  background: #DC2626;
}

.flow-arrow {
  font-size: 24px;
  color: #9CA3AF;
  flex-shrink: 0;
}

/* Review Section */
.review-sections {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 16px;
  border-bottom: 1px solid #E5E7EB;
}

.review-item:last-child {
  border-bottom: none;
}

.review-label {
  font-size: 12px;
  font-weight: 400;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.review-value {
  font-size: 14px;
  font-weight: 600;
  color: #1F2937;
}

/* Footer Actions */
.edit-wizard-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #E5E7EB;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-btn {
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.footer-btn.secondary {
  background: white;
  color: #374151;
  border: 1px solid #D1D5DB;
}

.footer-btn.secondary:hover:not(:disabled) {
  background: #F9FAFB;
  border-color: #9CA3AF;
}

.footer-btn.secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #F9FAFB;
  color: #9CA3AF;
  border-color: #E5E7EB;
}

.footer-btn.primary {
  background: #2F5BFF;
  color: white;
}

.footer-btn.primary:hover:not(:disabled) {
  background: #2348E8;
}

.footer-btn.primary:disabled {
  background: #E5E7EB;
  color: #9CA3AF;
  cursor: not-allowed;
}

.footer-btn.success {
  background: #22C55E;
  color: white;
}

.footer-btn.success:hover:not(:disabled) {
  background: #16A34A;
}

.footer-btn.success:disabled {
  background: #E5E7EB;
  color: #9CA3AF;
  cursor: not-allowed;
}


/* Review Section */
.review-sections-new {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.review-card-new {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #F0FDF4;
  border: 1px solid #22C55E;
  border-radius: 10px;
}

.review-checkmark {
  width: 24px;
  height: 24px;
  background: #22C55E;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.review-card-label {
  font-size: 12px;
  font-weight: 400;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.review-card-value {
  font-size: 14px;
  font-weight: 700;
  color: #1F2937;
  line-height: 1.5;
}

.review-flow-display {
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-level-badge {
  font-size: 14px;
  font-weight: 700;
  color: #1F2937;
}

.review-arrow {
  flex-shrink: 0;
}

.review-success-banner {
  padding: 17px;
  background: #EEF4FF;
  border: 1px solid #2F5BFF;
  border-radius: 10px;
  text-align: center;
  font-size: 14px;
  color: #1F2937;
  line-height: 1.5;
}

/* Right Sidebar - Summary */
.edit-wizard-sidebar {
  width: 320px;
  background: white;
  border-radius: 12px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.06);
  padding: 24px;
  flex-shrink: 0;
}

.sidebar-title {
  font-size: 16px;
  font-weight: 700;
  color: #1F2937;
  margin: 0 0 16px 0;
}

.summary-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.summary-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

/* Summary Icons */
.summary-icon {
  flex-shrink: 0;
}

.summary-icon.check {
  width: 16px;
  height: 16px;
  color: #22C55E;
}

.summary-icon.lock {
  width: 12px;
  height: 12px;
  color: #6B7280;
}

.summary-icon.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2F5BFF;
  margin-top: 4px;
}

.summary-icon.empty {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  background: #E5E7EB;
  border: 1px solid #E5E7EB;
}

.summary-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.summary-item-label {
  font-size: 12px;
  font-weight: 400;
  color: #6B7280;
  text-transform: capitalize;
}

.summary-item-value {
  font-size: 14px;
  font-weight: 700;
  color: #1F2937;
}

.summary-item-value.pending {
  color: #6B7280;
}

/* Flow Levels Display */
.summary-flow-levels {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.summary-flow-level {
  font-size: 13px;
  color: #1F2937;
}

.summary-flow-level strong {
  font-weight: 700;
  color: #1F2937;
}

.summary-flow-level span {
  font-weight: 400;
  color: #6B7280;
}


/* Responsive Design */
/* @media (max-width: 1200px) {

  .edit-wizard-topbar,
  .edit-wizard-progress-header,
  .edit-wizard-main {
    padding-left: 32px;
    padding-right: 32px;
  }

  .edit-wizard-content-area {
    flex-direction: column;
  }

  .edit-wizard-sidebar {
    width: 100%;
  }

  .dnd-layout {
    flex-direction: column;
  }

  .levels-flow {
    flex-direction: column;
    align-items: stretch;
  }

  .flow-arrow {
    transform: rotate(90deg);
    align-self: center;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .products-search-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .select-all-link {
    margin-left: 0;
    text-align: right;
  }

  .pipeline-levels-row {
    flex-direction: column;
  }

  .pipeline-level-card {
    max-width: 100%;
  }

  .pipeline-arrow {
    transform: rotate(90deg);
  }
} */