@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600;700;800&display=swap');

.portal-scope {
  --portal-primary: #264AFF;
  --portal-primary-soft: rgba(38, 74, 255, 0.12);
  --portal-success: #16a34a;
  --portal-warning: #f59e0b;
  --portal-danger: #ef4444;
  --portal-muted: #707073;
  font-family: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #0f172a;
  background: transparent;
}

.portal-scope .portal-page {
  padding: 0;
  box-sizing: border-box;
}

body[data-brand-shell="dark"] .portal-scope:where(:not(.is-standard-item-request-layout)) .portal-page {
  margin-left: 16px;
}

body[data-brand-shell="dark"] .portal-scope .approvals-page .portal-tabs {
  padding-left: 16px;
}

body[data-brand-shell="dark"] .portal-scope .approvals-page .portal-layout {
  padding-left: 16px;
}

.portal-scope .portal-title {
  font-weight: 700;
  font-size: 22px;
  color: #0f172a;
}

.portal-scope .portal-subtitle {
  color: var(--portal-muted);
  font-size: 14px;
}

.portal-scope .link-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  color: var(--portal-muted);
  font-weight: 400;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 6px;
}

.portal-scope .link-btn:hover {
  color: var(--portal-primary);
}

.portal-scope .btn {
  border-radius: 4px;
  font-weight: 600;
}

.portal-scope .btn.btn-primary {
  background: var(--portal-primary);
  border-color: var(--portal-primary);
}

.portal-scope .btn.btn-outline-secondary {
  color: #475569;
  border-color: #e5e7eb;
  background: transparent;
}

.portal-scope .btn.btn-outline-danger {
  color: #f36b6b;
  border-color: #f36b6b;
}

.portal-scope .btn.btn-outline-secondary:hover,
.portal-scope .btn.btn-outline-secondary:focus {
  background: #f1f5f9;
  color: #475569;
  border-color: #cbd5e1;
}

.portal-scope .btn.btn-draft {
  color: #92400e;
  border-color: var(--portal-warning);
  background: #fffbeb;
}

.portal-scope .btn.btn-draft:hover,
.portal-scope .btn.btn-draft:focus {
  color: #78350f;
  border-color: #d97706;
  background: #fef3c7;
}

.portal-scope .btn.btn-outline-danger:hover,
.portal-scope .btn.btn-outline-danger:focus {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}

.portal-scope .btn.btn-primary:hover,
.portal-scope .btn.btn-primary:focus {
  background: var(--md-brand-primary-hover, #3357e6);
  border-color: var(--md-brand-primary-hover, #3357e6);
}

.portal-scope .group-actions .btn {
  min-height: 30px;
  padding: 4px 12px;
}

.portal-scope .card {
  position: relative;
  background: #ffffff;
  border-radius: 4px;
  border: none;
  padding: 20px 16px;
  box-sizing: border-box;
}

.portal-scope .card .card-body {
  padding: 0;
}

.portal-scope .card .card-header {
  background: transparent;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  padding: 0 0 16px;
  margin-bottom: 16px;
}

.portal-scope .portal-card {
  padding: 0;
}

.portal-scope .portal-card .card-body {
  padding: 16px;
}

.portal-scope .portal-card .card-header {
  padding: 12px 16px 0;
  margin-bottom: 0;
}

.portal-scope .portal-meta {
  display: flex;
  justify-content: flex-end;
  margin: 4px 0 12px;
}

.portal-scope .portal-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  /* padding: 0 4px 12px; */
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.portal-scope .portal-tabs-spacer {
  flex: 1;
}

.portal-scope .portal-tab {
  border: none;
  background: transparent;
  color: #707073;
  font-size: 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  height: 55px;
  padding: 0px 16px;
}

.portal-scope .portal-tab.active {
  color: var(--portal-primary);
  border-color: var(--portal-primary);
  font-weight: 600;
}

.portal-scope .portal-select,
.portal-scope .portal-search {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 8px 10px;
  font-size: 14px;
  background-color: #fff;
  color: #0f172a;
}

.portal-scope .portal-search {
  min-width: 220px;
}

.portal-scope select {
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding: 2px 32px 2px 8px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234E5969' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 12px;
  font-size: 14px;
}

.portal-scope select.portal-select {
  padding: 8px 32px 8px 10px;
}

.portal-scope select[multiple],
.portal-scope select[size]:not([size="1"]) {
  background-image: none;
  padding-right: 12px;
}

.portal-scope input[type="file"].form-control {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #475569;
}

.portal-scope input[type="file"].form-control::file-selector-button {
  margin-right: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--portal-primary);
  background: var(--portal-primary);
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
}

input[type="file"].form-control::-webkit-file-upload-button {
  margin-right: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--portal-primary);
  background: var(--portal-primary);
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
}

.portal-scope input[type="file"].form-control::file-selector-button:hover,
input[type="file"].form-control::-webkit-file-upload-button {
  background: var(--md-brand-primary-hover, #3357e6);
  border-color: var(--md-brand-primary-hover, #3357e6);
  border-radius: 2px
}

.portal-scope .portal-table {
  overflow-x: auto;
}

.portal-scope .portal-table table {
  width: 100%;
  border-collapse: collapse;
}

.portal-scope .portal-table th,
.portal-scope .portal-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 13px;
  color: #13121a;
}

.portal-scope .portal-table th {
  color: #707073;
  font-weight: 600;
  text-align: left;
}

.portal-scope .state-text {
  color: #7c879b;
  font-weight: 600;
  font-size: 14px;
}

.portal-scope .state-text.error {
  color: #c2410c;
}

.portal-scope .state-text.muted {
  color: #94a3b8;
  font-weight: 500;
}

.portal-scope .portal-empty {
  color: #7c879b;
  font-size: 13px;
  text-align: center;
  padding: 12px;
}

.portal-scope .main-grid .state-text:not(.error):not(.muted),
.portal-scope .notice-hero-slide.is-empty .notice-hero-title,
.portal-scope .notice-hero-slide.is-empty .notice-hero-subtitle {
  color: #C9CDD4;
  font-weight: 400;
}

/* Home */
.portal-scope .main-grid {
  display: flex;
  gap: 16px;
  align-items: stretch;
}

.portal-scope .main-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.portal-scope .main-col-left {
  flex: 2.2 1 0;
  min-height: 0;
  height: calc(100vh - 56px - 16px);
}

.portal-scope .main-col-right {
  flex: 1 1 0;
  min-height: 0;
}

.portal-scope .main-col-right .notice-hero {
  flex-shrink: 0;
}

.portal-scope .meal-order-card {
  padding: 20px 16px;
}

.portal-scope .meal-order-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portal-scope .meal-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portal-scope .meal-order-hint {
  font-size: 12px;
  color: #94a3b8;
}

.portal-scope .meal-order-status {
  font-weight: 700;
  color: #0f172a;
}

.portal-scope .welcome-card {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.portal-scope .welcome-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.portal-scope .welcome-avatar {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 30px;
  color: #1d2b78;
  background: #e0e7ff;
}

.portal-scope .welcome-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-scope .welcome-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.portal-scope .welcome-title {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
}

.portal-scope .welcome-status {
  display: none;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  padding: 4px 10px;
  border-radius: 8px;
  width: fit-content;
  max-width: 100%;
  line-height: 1.3;
  word-break: break-word;
}

.portal-scope .welcome-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--portal-primary);
  box-shadow: 0 0 0 2px var(--portal-primary-soft);
}

.portal-scope .welcome-card.has-status .welcome-inner {
  align-items: flex-start;
}

.portal-scope .welcome-card.has-status .welcome-avatar {
  margin-top: 2px;
}

.portal-scope .welcome-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.portal-scope .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #707073;
}

.portal-scope .meta-item .meta-icon {
  width: 16px;
  height: 16px;
  display: block;
}

.portal-scope .meta-item i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  line-height: 1;
}

.portal-scope .panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  /* display: none; */
}

.portal-scope .panel-title {
  font-weight: 700;
  font-size: 16px;
  color: #13121a;
}

.portal-scope .quick-card {
  background: transparent;
  padding: 0;
}

.portal-scope .quick-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.portal-scope .quick-items {
  display: contents;
}

.portal-scope .quick-search {
  flex: 0 0 360px;
  min-width: 360px;
  max-width: 360px;
  padding: 0;
}

.portal-scope .quick-search .employee-search-bar {
  border: none;
  border-radius: 8px;
  border: solid 1px #ffffff;
  background: rgba(255,255,255,.5);
  height: 48px;
}

.portal-scope .quick-search .portal-search-wrap {
  height: 100%;
}

.portal-scope .quick-search .portal-search {
  border: none;
  background: transparent;
  padding: 0 12px 0 4px;
  height: 100%;
  font-size: 14px;
  color: #13121A;
}

.portal-scope .quick-search .portal-search::placeholder {
  color: #C9CDD4;
}

.portal-scope .quick-search .portal-search-clear {
  top: 50%;
  transform: translateY(-50%);
}

.portal-scope .quick-search .btn.btn-primary {
  background: transparent;
  border: none;
  color: #2f53ff;
  font-weight: 400;
  padding: 0 8px 0 20px;
  border-radius: 8px;
  height: 100%;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.portal-scope .quick-search .employee-search-bar .btn.btn-primary {
  height: 100%;
}

.portal-scope .quick-search .btn.btn-primary:hover,
.portal-scope .quick-search .btn.btn-primary:focus {
  background: transparent;
  border: none;
}

.portal-scope .quick-search .employee-search-bar .btn.btn-primary::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 22px;
  background: #E5E6EB;
}

.portal-scope .quick-search .employee-search-bar .btn.btn-primary .mdi {
  font-size: 16px;
  line-height: 1;
}

.portal-scope .quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
      backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.03), inset 0 1.5px 1px rgba(255, 255, 255, 0.8), inset 0 -1px 1px rgba(255, 255, 255, 0.2);
  background: rgba(255,255,255,.5);
  flex: 0 0 auto;
  height: 48px;
  width: fit-content;
}

.portal-scope .quick-chip:hover {
  background: #ffffff;
}

/* .portal-scope .quick-chip--more {
  background: #eef4ff;
  border: 2px solid #ffffff;
  padding: 8px 20px;
  gap: 6px;
} */


.portal-scope .quick-chip--more .quick-label {
  font-weight: 500;
  font-size: 14px;
}

.portal-scope .quick-chip--more .mdi {
  font-size: 18px;
  color: #5b6b86;
}

.portal-scope .quick-grid .state-text {
  flex: 1 1 100%;
}

.portal-scope .quick-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: transparent;
}

.portal-scope .quick-icon-img-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.portal-scope .quick-icon-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.portal-scope .quick-icon-fallback {
  display: none;
}

.portal-scope .quick-icon.quick-icon--fallback .quick-icon-img,
.portal-scope .review-icon.quick-icon--fallback .quick-icon-img {
  display: none;
}

.portal-scope .quick-icon.quick-icon--fallback .quick-icon-fallback,
.portal-scope .review-icon.quick-icon--fallback .quick-icon-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.portal-scope .quick-icon .mdi {
  font-size: 18px;
  line-height: 1;
}

.portal-scope .quick-icon--plain {
  background: transparent;
  color: var(--portal-primary);
}

.portal-scope .quick-label {
  font-weight: 400;
  color: #13121A;
  white-space: nowrap;
}

.portal-scope .review-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  background: none;
}

.portal-scope .review-icon .mdi {
  font-size: 18px;
  line-height: 1;
}

.portal-scope .leaf-color .mdi {
  font-size: 22px;
  line-height: 1;
}

.portal-scope .review-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: #ffffff;
  margin: 0px 16px;
  border-radius: 4px;
  padding: 8px !important;
}

.portal-scope .review-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
}

.portal-scope .review-row:hover {
  background: #f7f7fa;
}

.portal-scope .review-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.portal-scope .schedule-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  padding-top: 16px;
}

.portal-scope .schedule-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: none;
  box-shadow: 0 0px 0px rgba(0, 0, 0, 0.03), inset 0 1.5px 1px rgba(255, 255, 255, 0.8), inset 0 -1px 1px rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, .5);
  border-radius: 8px;
}

.portal-scope .schedule-card .schedule-grid {
  flex: 1 1 auto;
  background-color: #ffffff;
  border-radius: 4px;
}

.portal-scope .schedule-card .calendar-grid {
  gap: 2px;
  justify-content: start;
}

.portal-scope .date-panel {
  border-right: 1px solid #e5e7eb;
  padding-right: 0px;
}

.portal-scope .calendar-control {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  margin: 0px 16px 0px 28px;
}

.portal-scope .calendar-nav {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #707073;
  display: grid;
  place-items: center;
  cursor: pointer;
  order: 1;
}

.portal-scope .calendar-nav .mdi {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  color: #707073;
}

.portal-scope .month-label {
  order: 0;
  margin-right: auto;
}

.portal-scope .calendar-nav:first-of-type {
  margin-left: auto;
}

.portal-scope .calendar-nav + .calendar-nav {
  margin-left: 10px;
}

.portal-scope .calendar-nav:hover {
  background: #f1f5f9;
  color: #707073;
}

.portal-scope .month-label {
  font-weight: 400;
  font-size: 14px;
  color: #13121A;
}

.portal-scope .calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 40px);
  gap: 2px;
  margin-top: 12px;
  margin-right: 24px;
  margin-left: 16px;
  justify-content: start;
}

.portal-scope .calendar-header {
  font-size: 12px;
  width: 36px;
  height: 36px;
  color: #707073;
  text-align: center;
  font-size: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.portal-scope .calendar-cell {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 4px;
  border: none;
  background: transparent;
  text-align: center;
  font-weight: 400;
  color: #13121A;
  cursor: pointer;
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  position: relative;
  overflow: hidden;
}

.portal-scope .calendar-cell--muted {
  color: #cbd5e1;
}

.portal-scope .calendar-cell--has-events {
  font-weight: 600;
}

.portal-scope .calendar-cell--active {
  background: #3b64ff;
  color: #fff;
}

.portal-scope .calendar-cell:hover {
  background: #f1f5f9;
}

.portal-scope .calendar-cell--active:hover {
  background: #3b64ff;
  color: #fff;
}

.portal-scope .calendar-cell__day {
  display: block;
  min-height: 14px;
}

.portal-scope .calendar-cell__events {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 30px;
  min-height: 8px;
}

.portal-scope .calendar-cell__event {
  display: block;
  width: 8px;
  height: 3px;
  border-radius: 999px;
  background: var(--calendar-event-color, #3b64ff);
  font-size: 0;
  line-height: 0;
}

.portal-scope .calendar-cell__more {
  min-width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(59, 100, 255, 0.12);
  color: #3b64ff;
  font-size: 7px;
  font-weight: 700;
  line-height: 10px;
  text-align: center;
}

.portal-scope .calendar-cell--active .calendar-cell__event {
  background: #ffffff;
}

.portal-scope .calendar-cell--active .calendar-cell__more {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.portal-scope .calendar-cell:focus-visible {
  outline: 2px solid rgba(59, 100, 255, 0.35);
  outline-offset: 2px;
}

.portal-scope .event-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-right: 16px;
}

.portal-scope .event-panel .state-text {
  margin: 12px auto;
  text-align: center;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.portal-scope .event-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 8px;
  align-items: center;
  padding: 8px 6px;
  border-radius: 12px;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  min-height: 0;
  box-shadow: none;
  transition: background 0.15s ease;
}

.portal-scope .event-row:hover {
  background: #f7f7fa;
  box-shadow: none;
}

.portal-scope .event-row:active {
  background: #f7f7fa;
  transform: none;
}

.portal-scope .event-row--active {
  background: #f7f7fa;
  box-shadow: none;
}

.portal-scope .event-row:focus-visible {
  outline: 2px solid rgba(59, 100, 255, 0.3);
  outline-offset: 2px;
}

.portal-scope .event-icon {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  display: grid;
  place-items: center;
}

.portal-scope .event-icon .mdi {
  font-size: 24px;
}

.portal-scope .event-info {
  width: 100%;
}

.portal-scope .event-info .event-title {
  font-weight: 700;
  font-size: 16px;
  color: #13121a;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portal-scope .event-info .event-time {
  font-size: 14px;
  color: #707073;
  margin-top: 6px;
}

.portal-scope .event-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.portal-scope .event-title-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.portal-scope .event-badges {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.portal-scope .event-panel--compact .event-title-row {
  display: block;
}

.portal-scope .event-panel--compact .event-title-main {
  width: 100%;
}

.portal-scope .event-panel--compact .event-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin-top: 6px;
}

.portal-scope .event-panel--compact .event-pill {
  width: fit-content;
}

.portal-scope .event-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--event-accent, #3b64ff);
  background: var(--event-accent-bg, rgba(59, 100, 255, 0.12));
  border: 1px solid rgba(15, 23, 42, 0.08);
}

/* Calendar & Tasks */
.portal-scope .calendar-tasks-page {
  padding: 0;
  display: flex;
  flex-direction: column;
  /* min-height: calc(100vh - 56px); */
}

.portal-scope .calendar-task-shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  border: none;
  border-radius: 8px;
  box-shadow: none;
  background: #ffffff;
  overflow: hidden;
  height: calc(100vh - 133px - 16px);
  max-height: calc(100vh - 133px - 16px);
  margin-bottom: 16px;
  flex: 1 1 auto;
}

.portal-scope .calendar-task-side {
  padding: 16px;
  border-right: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.portal-scope .calendar-task-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.portal-scope .calendar-task-month {
  font-size: 18px;
  font-weight: 600;
  color: #13121A;
}

.portal-scope .calendar-task-side-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.portal-scope .calendar-task-side-nav .calendar-nav {
  order: 0;
}

.portal-scope .calendar-task-side-nav .calendar-nav:first-of-type {
  margin-left: 0;
}

.portal-scope .calendar-task-mini {
  margin: 0;
  grid-template-columns: repeat(7, minmax(36px, 1fr));
  gap: 2px;
  justify-content: start;
}

.portal-scope .calendar-task-mini .calendar-header {
  font-size: 12px;
  color: #86909C;
  width: auto;
  height: 32px;
}

.portal-scope .calendar-task-mini .calendar-cell {
  width: 36px;
  height: 36px;
  line-height: 36px;
  border-radius: 4px;
  justify-self: center;
}

.portal-scope .calendar-task-mini .calendar-cell--today {
  background: #f1f5f9;
}

.portal-scope .calendar-task-mini .calendar-cell--today.calendar-cell--active {
  background: #3b64ff;
  color: #ffffff;
}

.portal-scope .calendar-task-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}

.portal-scope .calendar-task-legend-item {
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 10px;
  padding: 10px 14px;
  min-height: 44px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 400;
  color: #111827;
  box-shadow: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.portal-scope .calendar-task-legend-item:hover {
  background: #f3f4f6;
}

.portal-scope .calendar-task-legend-item.is-disabled {
  color: #111827;
  background: #ffffff;
  box-shadow: none;
}

.portal-scope .calendar-task-legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 2px solid var(--legend-color, #9ca3af);
  flex-shrink: 0;
  position: relative;
}

.portal-scope .calendar-task-legend-item.is-active .calendar-task-legend-swatch::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--legend-color, #9ca3af);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.portal-scope .calendar-task-legend-item.is-disabled .calendar-task-legend-swatch {
  background: #ffffff;
  border-color: var(--legend-color, #9ca3af);
}

.portal-scope .calendar-task-legend-text {
  font-weight: 400;
}

.portal-scope .calendar-task-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.portal-scope .calendar-task-link {
  border: none;
  background: transparent;
  text-align: left;
  font-size: 14px;
  color: #13121A;
  padding: 0;
  cursor: pointer;
}

.portal-scope .calendar-task-schedule {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.portal-scope .calendar-task-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  --calendar-task-view-height: 36px;
}

.portal-scope .calendar-task-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.portal-scope .calendar-task-notify {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.portal-scope .calendar-task-notify .form-check {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.portal-scope .calendar-task-notify .form-check-input {
  accent-color: var(--portal-primary);
}

.portal-scope .calendar-task-notify .form-check-input:checked {
  background-color: var(--portal-primary);
  border-color: var(--portal-primary);
}

.portal-scope .calendar-task-notify .form-check-input:focus {
  border-color: var(--portal-primary);
  box-shadow: none;
  outline: none;
}

.portal-scope .calendar-task-notify.is-enabled .form-check-label {
  color: var(--portal-primary);
  font-weight: 600;
}

.portal-scope .calendar-task-notify-hint {
  line-height: 1.2;
  font-weight: 400;
}

.portal-scope .calendar-task-view-group {
  display: inline-flex;
  align-items: stretch;
  gap: 8px;
}

.portal-scope .calendar-task-view-group .calendar-task-add {
  display: inline-flex;
  align-items: center;
  height: var(--calendar-task-view-height);
  min-height: var(--calendar-task-view-height);
  gap: 8px;
  padding: 0 16px;
  box-sizing: border-box;
}

.portal-scope .calendar-task-view-group .calendar-task-add .mdi {
  font-size: 16px;
  line-height: 1;
}

.portal-scope .calendar-task-views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 4px;
  height: var(--calendar-task-view-height);
  box-sizing: border-box;
}

.portal-scope .calendar-view-btn {
  border: none;
  background: transparent;
  color: #111827;
  font-size: 14px;
  padding: 6px 18px;
  border-radius: 3px;
  cursor: pointer;
  font-weight: 300;
}

.portal-scope .calendar-view-btn.is-active {
  background: #eef2ff;
  color: var(--portal-primary);
}

.portal-scope .calendar-task-schedule-grid {
  border-radius: 12px;
  overflow: auto;
  background: #fff;
  min-height: 840px;
  flex: 1 1 auto;
  min-height: 0;
}

.portal-scope .schedule-row {
  display: grid;
  grid-template-columns: 64px repeat(var(--schedule-cols, 8), minmax(110px, 1fr));
}

.portal-scope .schedule-row + .schedule-row {
  border-top: 1px solid #e5e7eb;
}

.portal-scope .schedule-cell {
  border-right: 1px solid #e5e7eb;
  min-height: 56px;
  padding: 8px 10px;
  box-sizing: border-box;
}

.portal-scope .schedule-cell:last-child {
  border-right: none;
}

.portal-scope .schedule-header .schedule-cell {
  min-height: 64px;
  background: #ffffff;
}

.portal-scope .calendar-task-schedule-grid.schedule-grid--time .schedule-header {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #ffffff;
  box-shadow: 0 1px 0 #e5e7eb;
}

.portal-scope .schedule-time-head {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #86909C;
  font-size: 12px;
  font-weight: 600;
}

.portal-scope .schedule-tz {
  margin-top: 8px;
}

.portal-scope .schedule-day {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.portal-scope .schedule-day-name {
  font-size: 12px;
  color: #6b7280;
}

.portal-scope .schedule-day-date {
  font-size: 16px;
  font-weight: 600;
  color: #13121A;
}

.portal-scope .schedule-cell.is-active {
  background: rgba(var(--tblr-primary-rgb), 0.06);
}

.portal-scope .schedule-cell.schedule-slot {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}

.portal-scope .schedule-event {
  border-radius: 8px;
  padding: 6px 8px;
  background: var(--event-bg, rgba(59, 100, 255, 0.08));
  border-left: none;
  color: var(--event-text, #111827);
  font-size: 12px;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
}

.portal-scope .schedule-event-title {
  font-weight: 600;
}

.portal-scope .schedule-event-time {
  color: #475569;
  font-size: 11px;
}

.portal-scope .schedule-time {
  font-size: 12px;
  color: #86909C;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-scope .schedule-grid--month {
  border-radius: 12px;
}

.portal-scope .schedule-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
}

.portal-scope .schedule-month-cell {
  min-height: 96px;
  border-right: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  padding: 10px;
  font-size: 13px;
  color: #13121A;
}

.portal-scope .schedule-month-cell:not(.schedule-month-head) {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.portal-scope .schedule-month-date {
  font-weight: 600;
}

.portal-scope .schedule-month-events {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

.portal-scope .schedule-month-event {
  border-radius: 6px;
  padding: 2px 6px;
  background: var(--event-bg, rgba(59, 100, 255, 0.08));
  border-left: none;
  color: var(--event-text, #111827);
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.schedule-detail-title {
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  color: #13121A;
  margin-bottom: 8px;
}

.schedule-detail-highlight {
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 10px 12px;
  margin-bottom: 12px;
  color: #13121A;
}

.schedule-detail-highlight .schedule-detail-link,
.schedule-detail-highlight .schedule-detail-time,
.schedule-detail-highlight .schedule-detail-attendees {
  font-weight: 600;
  margin-bottom: 6px;
}

.schedule-detail-highlight .schedule-detail-attendees {
  margin-bottom: 0;
}

.schedule-detail-highlight a {
  color: #2563eb;
  text-decoration: underline;
  word-break: break-word;
  overflow-wrap: anywhere;
  display: inline-block;
  max-width: 100%;
}

.schedule-detail-visitor {
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 12px;
  color: #13121A;
}

.schedule-detail-visitor-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.schedule-detail-visitor-label {
  min-width: 80px;
  font-weight: 600;
  color: #475569;
}

.schedule-detail-visitor-value {
  flex: 1;
  min-width: 0;
  color: #0f172a;
}

.schedule-detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

.schedule-detail-meta-item {
  border: 1px dashed #e2e8f0;
  border-radius: 10px;
  padding: 8px 10px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.schedule-detail-meta-label {
  font-size: 12px;
  color: #64748b;
  text-transform: none;
}

.schedule-detail-meta-value {
  font-weight: 600;
  color: #0f172a;
  word-break: break-word;
}

.schedule-detail-offer {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.schedule-detail-offer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #eff6ff;
  padding: 14px 16px;
}

.schedule-detail-offer-eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: #1d4ed8;
  text-transform: uppercase;
}

.schedule-detail-offer-name {
  margin-top: 4px;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  color: #0f172a;
}

.schedule-detail-offer-status {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  max-width: 220px;
  text-align: right;
}

.schedule-detail-offer-section {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  padding: 12px;
}

.schedule-detail-offer-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 10px;
}

.schedule-detail-offer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.schedule-detail-offer-field {
  min-width: 0;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  padding: 9px 10px;
}

.schedule-detail-offer-label {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 4px;
}

.schedule-detail-offer-value {
  font-weight: 600;
  color: #0f172a;
  word-break: break-word;
}

.schedule-detail-offer-field--status {
  background: #ffffff;
}

.schedule-detail-offer-status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  padding: 7px 12px;
  max-width: 100%;
}

.schedule-detail-offer-status-chip--pending {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #c2410c;
}

.schedule-detail-offer-status-chip--muted {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #475569;
}

.schedule-detail-offer-status-chip--success {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

.schedule-detail-offer-status-chip--danger {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.schedule-detail-offer-status-chip--neutral {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.schedule-detail-offer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  border-radius: 12px;
  padding: 18px 20px;
}

.schedule-detail-offer-action-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.schedule-detail-offer-action-title {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 800;
  color: #1e3a8a;
}

.schedule-detail-offer-action-desc {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.45;
  color: #475569;
}

.schedule-detail-offer-action-control {
  flex: 0 0 auto;
}

.schedule-detail-offer-primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  min-width: 320px;
  border: 0;
  border-radius: 12px;
  background: #1d4ed8;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 800;
  padding: 14px 22px;
  box-shadow: 0 14px 24px rgba(29, 78, 216, 0.28);
}

.schedule-detail-offer-primary-action:hover {
  background: #1e40af;
}

.schedule-detail-offer-primary-action:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 3px;
}

.schedule-detail-offer-primary-action .mdi {
  font-size: 20px;
}

@media (max-width: 576px) {
  .schedule-detail-visitor-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .schedule-detail-visitor-label {
    min-width: 0;
  }

  .schedule-detail-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .schedule-detail-offer-head {
    flex-direction: column;
  }

  .schedule-detail-offer-status {
    max-width: none;
    text-align: left;
  }

  .schedule-detail-offer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .schedule-detail-offer-actions {
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
  }

  .schedule-detail-offer-primary-action {
    width: 100%;
    min-width: 0;
  }
}

/*
 * Finance request layout. Keep every related override scoped by
 * .is-expense-report-layout; the mobile section at the end changes the same
 * renderer into normal document flow.
 */
.portal-scope .expense-total-summary {
  display: none;
}

.portal-scope .expense-action-buttons {
  display: contents;
}

/* Preserve the legacy DOM flow unless a specialized request layout is active. */
.portal-scope .workflow-application-side-card {
  display: contents;
}

.portal-scope.is-expense-report-layout {
  --workflow-left-column-width: 20%;
  --workflow-side-column-width: 18%;
  --workflow-middle-side-gap: 8px;
  min-height: 100%;
  padding: 0;
  background: transparent;
}

.portal-scope.is-expense-report-layout .workflow-application-page {
  max-width: none;
  min-height: 100%;
  overflow: visible;
}

.portal-scope.is-expense-report-layout .request-detail-card {
  height: auto;
  min-height: 100%;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
}

.portal-scope.is-expense-report-layout .request-detail-card .detail-body {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-height: 0;
  height: calc(var(--expense-content-height, calc(100dvh - 80px)) + 72px);
  padding-bottom: 72px;
  overflow: hidden;
}

.portal-scope.is-expense-report-layout .workflow-application-hero {
  display: none;
}

.portal-scope.is-expense-report-layout .workflow-application-icon,
.portal-scope.is-expense-report-layout .workflow-application-code {
  display: none;
}

.portal-scope.is-expense-report-layout .workflow-application-title-block h1 {
  color: #13121a;
  font-size: 28px;
  font-weight: 600;
  line-height: 36px;
}

.portal-scope.is-expense-report-layout .workflow-application-title-block p {
  margin-top: 4px;
  color: #86909c;
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
}

.portal-scope.is-expense-report-layout .workflow-application-body {
  display: grid;
  grid-template-columns:
    minmax(0, var(--workflow-left-column-width))
    minmax(0, 1fr)
    var(--workflow-middle-side-gap)
    minmax(0, var(--workflow-side-column-width));
  grid-template-areas:
    "basic breakdown . side";
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  column-gap: 0;
  row-gap: 18px;
  height: var(--expense-content-height, calc(100dvh - 80px));
  min-height: 0;
  overflow: hidden;
}

.portal-scope.is-expense-report-layout [data-role="form-section"],
.portal-scope.is-expense-report-layout [data-role="form-area"],
.portal-scope.is-expense-report-layout [data-role="form-area"] > .form-grid {
  display: contents !important;
}

.portal-scope.is-expense-report-layout .expense-basic-panel,
.portal-scope.is-expense-report-layout .expense-breakdown-panel,
.portal-scope.is-expense-report-layout .workflow-application-side-card {
  min-width: 0;
  background: #fff;
}

.portal-scope.is-expense-report-layout .expense-basic-panel {
  display: flex;
  flex-direction: column;
  grid-area: basic;
  align-self: stretch;
  min-height: 0;
  padding: 24px;
  border-right: 1px solid #f0f0f2;
  border-radius: 8px 0 0 8px;
  overflow: hidden;
}

.portal-scope.is-expense-report-layout .expense-breakdown-panel {
  display: flex;
  flex-direction: column;
  grid-area: breakdown;
  align-self: stretch;
  min-height: 0;
  max-height: 100%;
  padding: 24px;
  border-radius: 0 8px 8px 0;
  overflow: hidden;
}

.portal-scope.is-expense-report-layout .workflow-application-side-card {
  display: flex;
  flex-direction: column;
  grid-area: side;
  box-sizing: border-box;
  min-height: 0;
  padding: 24px;
  border-radius: 8px;
  overflow: hidden;
}

.portal-scope.is-expense-report-layout .expense-basic-fields,
.portal-scope.is-expense-report-layout .expense-detail-list,
.portal-scope.is-expense-report-layout .business-travel-detail-block,
.portal-scope.is-expense-report-layout .workflow-process-panel > [data-role="approver-list"] {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.portal-scope.is-expense-report-layout .expense-basic-fields::-webkit-scrollbar,
.portal-scope.is-expense-report-layout .expense-detail-list::-webkit-scrollbar,
.portal-scope.is-expense-report-layout .business-travel-detail-block::-webkit-scrollbar,
.portal-scope.is-expense-report-layout .workflow-process-panel > [data-role="approver-list"]::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.portal-scope.is-expense-report-layout .expense-basic-fields::-webkit-scrollbar-track,
.portal-scope.is-expense-report-layout .expense-detail-list::-webkit-scrollbar-track,
.portal-scope.is-expense-report-layout .business-travel-detail-block::-webkit-scrollbar-track,
.portal-scope.is-expense-report-layout .workflow-process-panel > [data-role="approver-list"]::-webkit-scrollbar-track {
  background: transparent;
}

.portal-scope.is-expense-report-layout .expense-basic-fields::-webkit-scrollbar-thumb,
.portal-scope.is-expense-report-layout .expense-detail-list::-webkit-scrollbar-thumb,
.portal-scope.is-expense-report-layout .business-travel-detail-block::-webkit-scrollbar-thumb,
.portal-scope.is-expense-report-layout .workflow-process-panel > [data-role="approver-list"]::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: transparent;
}

.portal-scope.is-expense-report-layout .expense-basic-fields.is-scrolling,
.portal-scope.is-expense-report-layout .expense-detail-list.is-scrolling,
.portal-scope.is-expense-report-layout .business-travel-detail-block.is-scrolling,
.portal-scope.is-expense-report-layout .workflow-process-panel > [data-role="approver-list"].is-scrolling {
  scrollbar-color: rgba(134, 144, 156, 0.58) transparent;
}

.portal-scope.is-expense-report-layout .expense-basic-fields.is-scrolling::-webkit-scrollbar-thumb,
.portal-scope.is-expense-report-layout .expense-detail-list.is-scrolling::-webkit-scrollbar-thumb,
.portal-scope.is-expense-report-layout .business-travel-detail-block.is-scrolling::-webkit-scrollbar-thumb,
.portal-scope.is-expense-report-layout .workflow-process-panel > [data-role="approver-list"].is-scrolling::-webkit-scrollbar-thumb {
  background: rgba(134, 144, 156, 0.58);
}

.portal-scope.is-expense-report-layout .expense-step-title,
.portal-scope.is-expense-report-layout .expense-section-heading {
  display: flex;
  align-items: center;
}

.portal-scope.is-expense-report-layout .expense-step-title {
  gap: 12px;
  min-width: 0;
}

.portal-scope.is-expense-report-layout .expense-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  color: #fff;
  background: #3158f5;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.portal-scope.is-expense-report-layout .expense-step-title h2 {
  margin: 0;
  color: #13121a;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

.portal-scope.is-expense-report-layout .expense-step-title .required {
  margin-left: -7px;
  font-size: 18px;
}

.portal-scope.is-expense-report-layout .expense-section-heading {
  justify-content: space-between;
  gap: 20px;
}

.portal-scope.is-expense-report-layout .expense-basic-panel > .expense-step-title,
.portal-scope.is-expense-report-layout .expense-breakdown-panel > .expense-section-heading,
.portal-scope.is-expense-report-layout .workflow-process-panel > .workflow-section-title {
  box-sizing: border-box;
  flex: 0 0 51px;
  height: 51px;
  min-height: 51px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f0f0f2;
}

.portal-scope.is-expense-report-layout .expense-basic-fields {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  padding-top: 16px;
  overflow-y: auto;
}

.portal-scope.is-expense-report-layout .expense-basic-fields .form-item,
.portal-scope.is-expense-report-layout .expense-detail-fields .form-item {
  gap: 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.portal-scope.is-expense-report-layout .expense-basic-fields .form-item {
  gap: 0;
}

.portal-scope.is-expense-report-layout .expense-basic-fields .expense-basic-remark-field {
  gap: 6px;
}

.portal-scope.is-expense-report-layout .field-label {
  color: #4e5969;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
}

.portal-scope.is-expense-report-layout .expense-basic-fields .field-display {
  min-height: 22px;
  padding: 0;
  border: 0 !important;
  color: #13121a;
  background: transparent !important;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
}

.portal-scope.is-expense-report-layout .expense-basic-fields .field-control,
.portal-scope.is-expense-report-layout .expense-basic-fields .portal-select__control,
.portal-scope.is-expense-report-layout .expense-detail-fields .field-control,
.portal-scope.is-expense-report-layout .expense-detail-fields .portal-select__control {
  min-height: 32px;
  border: 1px solid #dedfe3;
  border-radius: 4px;
  padding: 4px 12px;
  color: #13121a;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  box-shadow: none;
}

.portal-scope.is-expense-report-layout .expense-basic-fields .portal-select__input,
.portal-scope.is-expense-report-layout .expense-detail-fields .portal-select__input {
  padding-top: 0;
  padding-bottom: 0;
  color: #13121a;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
}

.portal-scope.is-expense-report-layout .expense-basic-fields .field-control::placeholder,
.portal-scope.is-expense-report-layout .expense-detail-fields .field-control::placeholder,
.portal-scope.is-expense-report-layout .expense-basic-fields .portal-select__input::placeholder,
.portal-scope.is-expense-report-layout .expense-detail-fields .portal-select__input::placeholder {
  font-family: inherit;
  font-weight: 400;
  font-style: normal;
  opacity: 1;
}

.portal-scope.is-expense-report-layout .expense-basic-fields [data-field-path="employeeId"] .portal-select__control {
  min-height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
}

.portal-scope.is-expense-report-layout .expense-basic-fields [data-field-path="employeeId"] .portal-select__input {
  padding: 0;
  font-size: 16px;
}

.portal-scope.is-expense-report-layout .expense-basic-fields [data-field-path="employeeId"] .portal-select__caret {
  display: none;
}

.portal-scope.is-expense-report-layout .reimbursement-detail-add {
  flex: 0 0 auto;
  box-sizing: border-box;
  height: 34px;
  min-height: 34px;
  padding: 5px 16px;
  border: 1px solid var(--portal-primary);
  border-radius: 4px;
  color: var(--portal-primary);
  background: #fff;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
}

.portal-scope.is-expense-report-layout .expense-detail-list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  margin-top: 18px;
  padding: 0;
  overflow-y: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.portal-scope.is-expense-report-layout .expense-detail-cards {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.portal-scope.is-expense-report-layout .expense-detail-card {
  min-width: 0;
  padding: 22px 28px 18px;
  border-radius: 6px;
  background: #f7f7f9;
  container-type: inline-size;
}

.portal-scope.is-expense-report-layout .expense-detail-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e6e7eb;
}

.portal-scope.is-expense-report-layout .expense-detail-card-head strong {
  color: #13121a;
  font-size: 16px;
  font-weight: 600;
}

.portal-scope.is-expense-report-layout .expense-item-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.portal-scope.is-expense-report-layout .expense-item-action {
  padding: 0;
  border: 0;
  color: #3158f5;
  background: transparent;
  font-size: 14px;
  line-height: 22px;
  cursor: pointer;
}

.portal-scope.is-expense-report-layout .expense-item-action:disabled {
  color: #c9cdd4;
  cursor: not-allowed;
}

.portal-scope.is-expense-report-layout .expense-item-action.is-danger {
  color: #f53f3f;
}

.portal-scope.is-expense-report-layout .expense-detail-fields {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px 20px;
  padding-top: 18px;
}

.portal-scope.is-expense-report-layout .expense-item-field {
  min-width: 0;
}

.portal-scope.is-expense-report-layout .expense-field-type,
.portal-scope.is-expense-report-layout .expense-field-amount,
.portal-scope.is-expense-report-layout .expense-field-date,
.portal-scope.is-expense-report-layout .expense-field-extra {
  grid-column: span 4;
}

.portal-scope.is-expense-report-layout .expense-original-payment {
  grid-column: span 5;
  min-width: 0;
}

.portal-scope.is-expense-report-layout .expense-field-description {
  grid-column: span 7;
}

.portal-scope.is-expense-report-layout:not(.is-corporate-payment-layout) .expense-detail-fields {
  grid-template-columns: repeat(24, minmax(0, 1fr));
}

.portal-scope.is-expense-report-layout:not(.is-corporate-payment-layout) .expense-field-description {
  grid-column: 1 / -1;
}

.portal-scope.is-expense-report-layout:not(.is-corporate-payment-layout) .expense-field-type {
  grid-column: span 5;
}

.portal-scope.is-expense-report-layout:not(.is-corporate-payment-layout) .expense-original-payment {
  grid-column: span 7;
}

.portal-scope.is-expense-report-layout:not(.is-corporate-payment-layout) .expense-field-amount,
.portal-scope.is-expense-report-layout:not(.is-corporate-payment-layout) .expense-field-date {
  grid-column: span 6;
}

.portal-scope.is-expense-report-layout .expense-original-payment > .field-label {
  white-space: nowrap;
}

.portal-scope.is-expense-report-layout .expense-field-attachment {
  grid-column: 1 / -1;
  padding-top: 16px;
  border-top: 1px solid #e6e7eb;
}

.portal-scope.is-expense-report-layout .expense-field-amount {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 66px;
  grid-template-rows: auto 40px auto;
  min-width: 0;
}

.portal-scope.is-expense-report-layout .expense-field-amount .form-item {
  display: contents;
}

.portal-scope.is-expense-report-layout .expense-field-amount .field-label {
  grid-column: 1 / -1;
  grid-row: 1;
}

.portal-scope.is-expense-report-layout .expense-field-amount .field-control {
  grid-column: 1;
  grid-row: 2;
  height: 40px;
  padding-right: 12px;
  border-radius: 4px 0 0 4px;
}

.portal-scope.is-expense-report-layout .expense-field-amount .field-control:focus {
  box-shadow: none;
}

.portal-scope.is-expense-report-layout .expense-field-amount:focus-within .expense-currency-suffix {
  border-color: rgba(59, 100, 255, 0.6);
}

.portal-scope.is-expense-report-layout .expense-field-amount .error-text {
  grid-column: 1 / -1;
  grid-row: 3;
}

.portal-scope.is-expense-report-layout .expense-currency-suffix {
  position: static;
  grid-column: 2;
  grid-row: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: auto;
  height: 40px;
  border: 1px solid #dedfe3;
  border-left: 0;
  border-radius: 0 4px 4px 0;
  color: #86909c;
  background: #fff;
  font-size: 14px;
  pointer-events: none;
}

.portal-scope.is-expense-report-layout .expense-field-date .date-field,
.portal-scope.is-expense-report-layout .expense-field-date .date-input {
  width: 100%;
  min-width: 0;
  height: 32px;
}

.portal-scope.is-expense-report-layout .expense-field-date .date-input {
  padding-right: 42px;
}

.portal-scope.is-expense-report-layout .expense-field-date .date-input.is-empty,
.portal-scope.is-expense-report-layout .expense-field-date .date-input.is-empty::-webkit-datetime-edit {
  color: #c9cdd4;
}

.portal-scope.is-expense-report-layout .expense-field-date .date-icon {
  right: 12px;
  color: #86909c;
  font-size: 18px;
}

.portal-scope.is-expense-report-layout .expense-original-payment-controls {
  display: grid;
  grid-template-columns: minmax(76px, 92px) 10px minmax(112px, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
}

.portal-scope.is-expense-report-layout .expense-original-payment-controls > .form-item,
.portal-scope.is-expense-report-layout .expense-original-payment-controls .field-control,
.portal-scope.is-expense-report-layout .expense-original-payment-controls .portal-select,
.portal-scope.is-expense-report-layout .expense-original-payment-controls .portal-select__control {
  min-width: 0;
  max-width: 100%;
}

.portal-scope.is-expense-report-layout .expense-original-payment-controls .field-label {
  display: none;
}

.portal-scope.is-expense-report-layout .expense-payment-divider {
  color: #86909c;
  text-align: center;
}

.portal-scope.is-expense-report-layout .expense-field-attachment .file-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.portal-scope.is-expense-report-layout .expense-field-attachment .file-picker {
  width: auto;
  min-height: 38px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.portal-scope.is-expense-report-layout .expense-field-attachment .file-picker:hover {
  background: transparent;
}

.portal-scope.is-expense-report-layout .expense-field-attachment .file-picker.is-disabled {
  cursor: not-allowed;
}

.portal-scope.is-expense-report-layout .expense-field-attachment .file-picker__button {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 14px;
  border: 1px solid #c9cdd4;
  border-radius: 4px;
  color: #13121a;
  background: #fff;
  font-size: 14px;
  font-weight: 400;
}

.portal-scope.is-expense-report-layout .expense-field-attachment .file-picker.is-disabled .file-picker__button {
  border-color: #dedfe3;
  color: #86909c;
  background: #f7f7fa;
  cursor: not-allowed;
}

.portal-scope.is-expense-report-layout .expense-field-attachment .file-picker__meta {
  color: #86909c;
  font-size: 13px;
}

.portal-scope.is-expense-report-layout .expense-field-attachment .file-picker__meta .field-help-inline {
  margin-left: 0;
  color: inherit;
  font-size: 12px;
  font-weight: 400;
}

/* The application-level attachment sits in the narrow Basic Information
 * column. Stack its help text below the button so it remains readable instead
 * of being squeezed into a few characters per line. */
.portal-scope.is-purchase-requirement-apply-layout
  .expense-basic-attachment .file-control,
.portal-scope.is-scm-purchase-requirement-layout
  .expense-basic-attachment .file-control {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.portal-scope.is-purchase-requirement-apply-layout
  .expense-basic-attachment .file-picker,
.portal-scope.is-scm-purchase-requirement-layout
  .expense-basic-attachment .file-picker {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}

.portal-scope.is-purchase-requirement-apply-layout
  .expense-basic-attachment .file-picker__meta,
.portal-scope.is-purchase-requirement-apply-layout
  .expense-basic-attachment .file-picker__meta .field-help-inline,
.portal-scope.is-scm-purchase-requirement-layout
  .expense-basic-attachment .file-picker__meta,
.portal-scope.is-scm-purchase-requirement-layout
  .expense-basic-attachment .file-picker__meta .field-help-inline {
  display: block;
  width: 100%;
  min-width: 0;
  margin-left: 0;
  line-height: 18px;
  white-space: normal;
  overflow-wrap: break-word;
}

.portal-scope.is-expense-report-layout .expense-field-attachment .file-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  min-width: 0;
  margin-top: 2px;
}

.portal-scope.is-expense-report-layout .expense-basic-attachment .file-list {
  grid-template-columns: minmax(0, 1fr);
}

.portal-scope.is-expense-report-layout .expense-field-attachment .error-text {
  grid-column: 1 / -1;
  margin: 0;
  color: #F5222D;
}

.portal-scope.is-expense-report-layout .expense-field-attachment .file-chip {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 36px;
  max-width: none;
  padding: 7px 10px;
  border: 1px solid #dedfe3;
  border-radius: 4px;
  background: #f7f7f9;
}

.portal-scope.is-expense-report-layout .expense-field-attachment .invoice-file-entry {
  align-self: start;
  min-width: 0;
}

.portal-scope.is-expense-report-layout .expense-field-attachment .invoice-file-entry.has-invoice-confirmation {
  grid-column: 1 / -1;
}

.portal-scope .invoice-recognition-list {
  box-sizing: border-box;
  margin-top: 6px;
}

.portal-scope .invoice-recognition-list[hidden] {
  display: none;
}

.portal-scope .invoice-recognition-list__summary {
  margin-bottom: 6px;
  color: #4e5969;
  font-size: 12px;
  line-height: 18px;
}

.portal-scope .invoice-recognition-list__items {
  display: grid;
  gap: 8px;
  max-height: min(380px, 45vh);
  padding-right: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.portal-scope .invoice-recognition-list__items > .invoice-number-confirmation {
  margin-top: 0;
}

/*
 * Short desktop viewports already scroll the whole expense-detail panel.
 * Keeping a second scroll container around recognized invoices makes the last
 * card look clipped behind the action bar, so use the panel as the only
 * vertical scroller and leave enough room below the final card.
 */
@media (min-width: 761px) and (max-height: 1200px) {
  .portal-scope.is-expense-report-layout .invoice-recognition-list__items {
    max-height: none;
    padding-right: 0;
    overflow-y: visible;
    overscroll-behavior: auto;
    scrollbar-gutter: auto;
  }

  .portal-scope.is-expense-report-layout
    .workflow-application-page.request-detail-page
    .group-block.reimbursement-detail-block.expense-detail-list {
    padding-bottom: 24px;
    scroll-padding-bottom: 24px;
  }
}

@media (max-width: 760px) {
  .portal-scope .invoice-recognition-list__items {
    max-height: none;
    padding-right: 0;
    overflow-y: visible;
    overscroll-behavior: auto;
    scrollbar-gutter: auto;
  }
}

.portal-scope .invoice-number-confirmation {
  box-sizing: border-box;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid #d8e3ff;
  border-radius: 6px;
  background: #f7f9ff;
}

.portal-scope .invoice-number-confirmation__header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.portal-scope .invoice-number-confirmation__header {
  min-height: 20px;
  margin-bottom: 8px;
}

.portal-scope .invoice-number-confirmation__label {
  min-width: 0;
  color: #1d2129;
  font-size: 13px;
  font-weight: 600;
}

.portal-scope .invoice-number-confirmation__fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 9px;
}

.portal-scope .invoice-number-confirmation__field {
  display: block;
  min-width: 0;
}

.portal-scope .invoice-number-confirmation__field--invoiceNumber {
  grid-column: 1 / -1;
}

.portal-scope .invoice-number-confirmation__field-label {
  display: block;
  min-width: 0;
  margin-bottom: 4px;
  color: #4e5969;
  font-size: 11px;
  line-height: 17px;
}

.portal-scope .invoice-number-confirmation__input {
  flex: 1 1 auto;
  box-sizing: border-box;
  min-width: 0;
  height: 34px;
  padding: 6px 9px;
  border: 1px solid #c9cdd4;
  border-radius: 4px;
  color: #1d2129;
  background: #fff;
  font-size: 13px;
  outline: none;
  width: 100%;
}

.portal-scope .invoice-number-confirmation__input:focus {
  border-color: #315efb;
  box-shadow: 0 0 0 2px rgba(49, 94, 251, 0.12);
}

.portal-scope.is-expense-report-layout .expense-field-attachment .invoice-number-confirmation__fields {
  grid-template-columns: minmax(260px, 1.5fr) minmax(150px, .7fr) minmax(180px, .8fr);
}

.portal-scope.is-expense-report-layout .expense-field-attachment .invoice-number-confirmation__field--invoiceNumber {
  grid-column: auto;
}

@container (max-width: 780px) {
  .portal-scope.is-expense-report-layout .expense-field-attachment .invoice-number-confirmation__fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-scope.is-expense-report-layout .expense-field-attachment .invoice-number-confirmation__field--invoiceNumber {
    grid-column: 1 / -1;
  }
}

@container (max-width: 520px) {
  .portal-scope.is-expense-report-layout .expense-field-attachment .invoice-number-confirmation__fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .portal-scope.is-expense-report-layout .expense-field-attachment .invoice-number-confirmation__field--invoiceNumber {
    grid-column: auto;
  }
}

/* Similar material review: one candidate at a time, with the comparison as the focus. */
#drawer-modal:has(.scm-similarity-review) .modal-dialog {
  width: min(1180px, calc(100vw - 40px));
  max-width: none;
  max-height: calc(100dvh - 48px);
}

#drawer-modal:has(.scm-similarity-review) .modal-content {
  max-height: calc(100dvh - 48px);
}

#drawer-modal:has(.scm-similarity-review) .modal-body {
  padding: 0;
}

.scm-similarity-review {
  color: #202a3d;
}

.scm-similarity-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 28px;
  border-bottom: 1px solid #e8edf5;
}

.scm-similarity-intro strong {
  display: block;
  font-size: 17px;
  line-height: 1.35;
}

.scm-similarity-intro p {
  margin: 4px 0 0;
  color: #657187;
  font-size: 13px;
}

.scm-similarity-intro > span {
  flex: none;
  padding: 6px 10px;
  border-radius: 6px;
  background: #f2f5fb;
  color: #56647b;
  font-size: 12px;
  font-weight: 600;
}

.scm-similarity-layout {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  min-height: 490px;
}

.scm-similarity-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 12px;
  border-right: 1px solid #e8edf5;
  background: #f8faff;
}

.scm-similarity-choice {
  display: block;
  width: 100%;
  padding: 12px 13px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #25334b;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.scm-similarity-choice:hover {
  background: #fff;
  border-color: #dde6f5;
}

.scm-similarity-choice:focus-visible,
.scm-similarity-file-link:focus-visible {
  outline: 2px solid #3159e8;
  outline-offset: 2px;
}

.scm-similarity-choice.is-active {
  background: #fff;
  border-color: #9fb4ff;
  box-shadow: 0 2px 10px rgba(37, 67, 142, .08), inset 3px 0 #365cff;
}

.scm-similarity-choice__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.scm-similarity-choice__top strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.scm-similarity-choice__top > span {
  color: #3159e8;
  font-weight: 700;
}

.scm-similarity-choice__name,
.scm-similarity-choice__meta {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scm-similarity-choice__name {
  margin-top: 7px;
  font-size: 14px;
  font-weight: 600;
}

.scm-similarity-choice__meta {
  margin-top: 3px;
  color: #78859a;
  font-size: 12px;
}

.scm-similarity-details {
  min-width: 0;
  padding: 24px 28px 30px;
}

.scm-similarity-panel[hidden] {
  display: none !important;
}

.scm-similarity-panel__heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.scm-similarity-panel__heading > div {
  flex: 1 1 auto;
  min-width: 0;
}

.scm-similarity-panel__heading h3 {
  margin: 5px 0 3px;
  font-size: 20px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.scm-similarity-truncate,
.scm-similarity-file-name {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scm-similarity-truncate:focus-visible {
  outline: 2px solid #3159e8;
  outline-offset: 2px;
}

.scm-similarity-name-basis {
  margin: 0 0 24px;
  font-size: 13px;
}

.scm-similarity-name-basis summary {
  color: #3159e8;
  cursor: pointer;
}

.scm-similarity-name-basis dl {
  margin: 12px 0 0;
}

.scm-similarity-name-basis dt {
  color: #56647b;
  font-size: 12px;
}

.scm-similarity-name-basis dd {
  margin: 4px 0 16px;
  overflow-wrap: anywhere;
}

.scm-similarity-context-note {
  margin: 0 0 12px;
  color: #56647b;
  font-size: 12px;
  line-height: 1.5;
}

.scm-similarity-panel__heading p {
  margin: 0;
  color: #748198;
  font-size: 13px;
}

.scm-similarity-score {
  flex: none;
  padding: 7px 10px;
  border-radius: 7px;
  background: #eef2ff;
  color: #3159e8;
  font-size: 12px;
  font-weight: 700;
}

.scm-similarity-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 25px;
  padding: 14px 17px;
  border: 1px solid #e8edf5;
  border-radius: 9px;
  background: #fbfcff;
}

.scm-similarity-fact {
  min-width: 0;
}

.scm-similarity-fact span,
.scm-similarity-fact strong {
  display: block;
  overflow-wrap: anywhere;
}

.scm-similarity-fact span {
  margin-bottom: 4px;
  color: #7a879b;
  font-size: 11px;
}

.scm-similarity-fact strong {
  font-size: 13px;
  font-weight: 600;
}

.scm-similarity-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.scm-similarity-section-heading h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.scm-similarity-section-heading span {
  color: #8190a5;
  font-size: 12px;
}

.scm-similarity-comparison-wrap {
  overflow-x: auto;
  border: 1px solid #e4eaf3;
  border-radius: 9px;
}

.scm-similarity-comparison {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
}

.scm-similarity-comparison th,
.scm-similarity-comparison td {
  padding: 11px 13px;
  border-bottom: 1px solid #edf1f6;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.scm-similarity-comparison tbody tr:last-child > * {
  border-bottom: 0;
}

.scm-similarity-comparison thead th {
  background: #f6f8fc;
  color: #69778d;
  font-size: 11px;
  font-weight: 700;
}

.scm-similarity-comparison tbody th {
  color: #344258;
  font-weight: 600;
}

.scm-similarity-comparison tbody th span,
.scm-similarity-comparison tbody th small {
  display: block;
}

.scm-similarity-comparison tbody th small {
  margin-top: 2px;
  color: #9aa5b5;
  font-size: 10px;
  font-weight: 400;
}

.scm-similarity-comparison tbody td {
  color: #48556a;
}

.scm-similarity-empty {
  margin: 0;
  padding: 17px;
  border: 1px dashed #dfe6f0;
  border-radius: 8px;
  color: #7b879b;
  font-size: 13px;
}

.scm-similarity-files {
  margin-top: 20px;
  border-top: 1px solid #e9eef5;
}

.scm-similarity-files summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 0;
  list-style: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.scm-similarity-files summary::-webkit-details-marker {
  display: none;
}

.scm-similarity-files summary small {
  margin-left: 6px;
  color: #8793a6;
  font-size: 12px;
  font-weight: 400;
}

.scm-similarity-files__toggle {
  color: #3159e8;
  font-size: 12px;
  font-weight: 600;
}

.scm-similarity-files[open] .scm-similarity-files__toggle {
  font-size: 0;
}

.scm-similarity-files[open] .scm-similarity-files__toggle::after {
  content: attr(data-open-label);
  font-size: 12px;
}

.scm-similarity-attributes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  padding: 2px 0 18px;
}

.scm-similarity-attribute span,
.scm-similarity-attribute strong {
  display: block;
  overflow-wrap: anywhere;
}

.scm-similarity-attribute > span,
.scm-similarity-attribute dt {
  margin-bottom: 3px;
  color: #56647b;
  font-size: 11px;
  font-weight: 400;
}

.scm-similarity-attribute strong,
.scm-similarity-attribute dd {
  margin: 0;
  color: #344258;
  font-size: 12px;
  font-weight: 600;
}

.scm-similarity-file-empty {
  margin: 0;
  color: #56647b;
  font-size: 12px;
}

.scm-similarity-file-meta {
  display: block;
  margin-top: 4px;
  color: #56647b;
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.scm-similarity-file-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  padding-bottom: 6px;
}

.scm-similarity-file-group h5 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 7px;
  color: #56647a;
  font-size: 12px;
  font-weight: 700;
}

.scm-similarity-file-group h5 span {
  padding: 1px 5px;
  border-radius: 8px;
  background: #eef2f8;
  font-size: 10px;
}

.scm-similarity-file-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.scm-similarity-file-row {
  min-width: 0;
  padding: 8px 0;
  border-top: 1px solid #edf1f6;
  color: #48556a;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.scm-similarity-file-link {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: #3159e8;
  text-align: left;
  font-size: 12px;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.scm-similarity-file-link img {
  flex: none;
  width: 48px;
  height: 48px;
  border: 1px solid #edf1f6;
  border-radius: 5px;
  object-fit: contain;
}

@media (max-width: 700px) {
  #drawer-modal:has(.scm-similarity-review) .modal-dialog {
    width: calc(100vw - 16px);
  }

  .scm-similarity-intro {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }

  .scm-similarity-layout {
    display: block;
  }

  .scm-similarity-list {
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid #e8edf5;
  }

  .scm-similarity-choice {
    flex: 0 0 205px;
  }

  .scm-similarity-details {
    padding: 20px 16px;
  }

  .scm-similarity-panel__heading {
    flex-direction: column;
    align-items: stretch;
  }

  .scm-similarity-score {
    align-self: flex-start;
  }

  .scm-similarity-attributes {
    grid-template-columns: minmax(0, 1fr);
  }

  .scm-similarity-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scm-similarity-comparison {
    min-width: 560px;
  }
}

.portal-scope .invoice-number-confirmation__message {
  margin-top: 6px;
  color: #86909c;
  font-size: 11px;
  line-height: 16px;
}

.portal-scope.is-expense-report-layout .expense-field-attachment .file-chip__type-icon,
.portal-scope.is-expense-report-layout .expense-field-attachment .file-chip__invoice-toggle,
.portal-scope.is-expense-report-layout .expense-field-attachment .file-chip__preview,
.portal-scope.is-expense-report-layout .expense-field-attachment .file-chip__remove {
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  border-radius: 2px;
}

.portal-scope.is-expense-report-layout .expense-field-attachment .file-chip__type-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  line-height: 16px;
}

.portal-scope.is-expense-report-layout .expense-field-attachment .file-chip__preview:hover,
.portal-scope.is-expense-report-layout .expense-field-attachment .file-chip__invoice-toggle:hover,
.portal-scope.is-expense-report-layout .expense-field-attachment .file-chip__remove:hover {
  background: #e5e6eb;
}

.portal-scope.is-expense-report-layout .expense-field-attachment .file-chip__name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: #13121a;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-scope.is-expense-report-layout .expense-field-attachment .file-chip__invoice-toggle,
.portal-scope.is-expense-report-layout .expense-field-attachment .file-chip__preview,
.portal-scope.is-expense-report-layout .expense-field-attachment .file-chip__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  color: #4e5969;
  background: transparent;
  font-size: 16px;
  line-height: 16px;
  text-decoration: none;
}

.portal-scope.is-expense-report-layout .expense-field-attachment .file-chip__invoice-toggle {
  gap: 2px;
  width: auto;
  min-width: 16px;
  padding: 0 3px;
  color: #315efb;
  font-size: 12px;
  cursor: pointer;
}

.portal-scope.is-expense-report-layout .expense-field-attachment .file-chip__invoice-toggle i {
  font-size: 16px;
}

.portal-scope.is-expense-report-layout .expense-field-attachment .file-chip__invoice-toggle:focus-visible {
  outline: 2px solid rgba(49, 94, 251, 0.22);
  outline-offset: 2px;
}

@container (max-width: 520px) {
  .portal-scope.is-expense-report-layout .expense-field-attachment .file-chip__invoice-toggle {
    width: 32px;
    height: 32px;
    padding: 0;
  }

  .portal-scope.is-expense-report-layout .expense-field-attachment .file-chip__invoice-toggle span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

.portal-scope.is-expense-report-layout .expense-field-attachment .file-chip__preview.is-disabled {
  color: #c9cdd4;
  pointer-events: none;
}

.portal-scope.is-expense-report-layout .expense-field-attachment .file-chip__remove {
  cursor: pointer;
}

.portal-scope .file-format-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.portal-scope .file-format-icon.file-format-icon--asset {
  background: transparent;
  color: inherit;
}

.portal-scope .file-format-icon.file-format-icon--asset img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.portal-scope .file-format-icon--image {
  background: #facc15;
}

.portal-scope .file-format-icon--pdf {
  background: #ef4444;
}

.portal-scope .file-format-icon--word {
  background: #2563eb;
}

.portal-scope .file-format-icon--excel {
  background: #16a34a;
}

.portal-scope .file-format-icon--ppt {
  background: #f97316;
}

.portal-scope .file-format-icon--archive {
  background: #a855f7;
}

.portal-scope .file-format-icon--text {
  background: #64748b;
}

.portal-scope .file-format-icon--file {
  background: #6b7280;
}

.portal-scope.is-expense-report-layout .expense-field-attachment .file-format-icon,
.portal-scope .request-detail-page .file-chip .file-format-icon {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  font-size: 6px;
}

.portal-scope.is-expense-report-layout .workflow-application-side-card .section {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.portal-scope.is-expense-report-layout .workflow-application-side-card .workflow-process-panel {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  padding-bottom: 12px;
}

.portal-scope.is-expense-report-layout .workflow-process-panel > [data-role="approver-list"] {
  min-height: 0;
  overflow-y: auto;
}

.portal-scope.is-expense-report-layout .workflow-application-side-card .workflow-cc-panel {
  flex: 0 0 auto;
  padding-top: 24px;
  border-top: 1px solid #f0f0f2;
}

.portal-scope.is-expense-report-layout .workflow-section-title {
  padding-bottom: 18px;
  border-bottom: 1px solid #f0f0f2;
  color: #13121a;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

.portal-scope.is-expense-report-layout .workflow-application-side-card .workflow-cc-panel > .workflow-section-title {
  padding-bottom: 0;
  border-bottom: 0;
}

.portal-scope.is-expense-report-layout .workflow-section-title::before {
  display: none;
}

.portal-scope.is-expense-report-layout .workflow-application-side-card .muted {
  display: none;
}

.portal-scope.is-expense-report-layout .approval-process {
  gap: 14px;
  margin-top: 18px;
}

.portal-scope.is-expense-report-layout .approval-step {
  gap: 8px;
}

.portal-scope.is-expense-report-layout .approval-rail {
  width: 12px;
}

.portal-scope.is-expense-report-layout .approval-dot {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border: 2px solid #c9cdd4;
}

.portal-scope.is-expense-report-layout .approval-line {
  top: 16px;
  bottom: -15px;
  width: 1px;
  background: #dedfe3;
}

.portal-scope.is-expense-report-layout .approval-content {
  gap: 6px;
}

.portal-scope.is-expense-report-layout .approval-title,
.portal-scope.is-expense-report-layout .approver-label {
  color: #27262e;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
}

.portal-scope.is-expense-report-layout .approval-chip-list,
.portal-scope.is-expense-report-layout .approval-assignees {
  gap: 8px;
}

.portal-scope.is-expense-report-layout .approval-chip {
  min-height: 36px;
  padding: 5px 8px;
}

.portal-scope.is-expense-report-layout .approver-row {
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 18px;
}

.portal-scope.is-expense-report-layout .workflow-application-actions {
  left: 50%;
  bottom: 0;
  z-index: 1100;
  justify-content: space-between;
  width: 100%;
  max-width: none;
  min-height: 72px;
  padding: 14px 26px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 -4px 10px 0 rgba(0, 11, 46, 0.05);
}

.portal-scope.is-expense-report-layout .expense-total-summary {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-right: auto;
  color: #13121a;
  font-size: 14px;
}

.portal-scope.is-expense-report-layout .expense-total-summary strong {
  color: #3158f5;
  font-size: 30px;
  font-weight: 600;
  line-height: 38px;
}

.portal-scope.is-expense-report-layout .expense-action-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.portal-scope.is-expense-report-layout .workflow-application-actions .btn {
  min-width: 106px;
  height: 32px;
  min-height: 32px;
  padding: 4px 20px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
}

.portal-scope.is-expense-report-layout .workflow-application-actions [data-action="cancel"] {
  border-color: #f53f3f;
  color: #f53f3f;
  background: #fff;
}

.portal-scope.is-expense-report-layout .workflow-application-actions [data-action="save-draft"] {
  border: 1px solid #3158f5;
  color: #3158f5;
  background: #fff;
}

.portal-scope.is-expense-report-layout .workflow-application-actions [data-action="submit"] {
  min-width: 202px;
  border-color: #3158f5;
  background: #3158f5;
}

.portal-scope.is-corporate-payment-layout .corporate-payment-detail-list {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.portal-scope.is-corporate-payment-layout .corporate-payment-detail-list .expense-detail-card {
  width: 100%;
  padding: 16px 24px;
  container-type: inline-size;
}

.portal-scope.is-corporate-payment-layout .expense-field-corporate-type,
.portal-scope.is-corporate-payment-layout .expense-field-corporate-date,
.portal-scope.is-corporate-payment-layout .expense-field-corporate-unit-price,
.portal-scope.is-corporate-payment-layout .expense-field-corporate-quantity {
  grid-column: span 3;
}

.portal-scope.is-corporate-payment-layout .expense-detail-fields.has-corporate-tax-inclusive {
  grid-template-columns: repeat(15, minmax(0, 1fr)) 100px repeat(5, minmax(0, 1fr));
}

.portal-scope.is-corporate-payment-layout .expense-detail-fields.has-corporate-tax-inclusive .expense-field-corporate-type,
.portal-scope.is-corporate-payment-layout .expense-detail-fields.has-corporate-tax-inclusive .expense-field-corporate-date,
.portal-scope.is-corporate-payment-layout .expense-detail-fields.has-corporate-tax-inclusive .expense-field-corporate-unit-price,
.portal-scope.is-corporate-payment-layout .expense-detail-fields.has-corporate-tax-inclusive .expense-field-corporate-tax-total {
  grid-column: span 5;
  justify-self: start;
  width: var(--corporate-tax-total-title-width, 16ch);
  max-width: var(--corporate-tax-total-title-width, 16ch);
}

.portal-scope.is-corporate-payment-layout .expense-detail-fields.has-corporate-tax-inclusive .expense-field-corporate-quantity {
  grid-column: span 1;
}

.portal-scope.is-corporate-payment-layout .expense-field-corporate-full {
  grid-column: 1 / -1;
}

.portal-scope.is-corporate-payment-layout .expense-field-corporate-money,
.portal-scope.is-corporate-payment-layout .expense-original-payment {
  grid-column: span 4;
}

.portal-scope.is-corporate-payment-layout .expense-detail-fields.has-corporate-tax-inclusive .expense-field-corporate-money,
.portal-scope.is-corporate-payment-layout .expense-detail-fields.has-corporate-tax-inclusive .expense-original-payment {
  grid-column: span 7;
}

.portal-scope.is-corporate-payment-layout .expense-field-corporate-display .field-display {
  display: flex;
  align-items: center;
  min-height: 32px;
  padding: 0;
  border: 0 !important;
  color: var(--portal-primary);
  background: transparent !important;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
}

.portal-scope.is-corporate-payment-layout .expense-field-corporate-tax-total .field-label,
.portal-scope.is-corporate-payment-layout .expense-field-corporate-tax-total .field-display {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
}

.portal-scope.is-corporate-payment-layout .expense-field-corporate-tax-total .field-label {
  white-space: nowrap;
}

.portal-scope.is-corporate-payment-layout .expense-field-corporate-tax-total .field-display {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.portal-scope.is-corporate-payment-layout .expense-field-corporate-description textarea.field-control {
  min-height: 40px;
  height: 40px;
  resize: vertical;
}

.portal-scope.is-business-travel-layout [data-role="travel-request-reminder"],
.portal-scope.is-product-development-code-layout .expense-total-summary {
  display: none;
}

/* SCM procurement forms reuse the calm, step-based travel request layout while
 * keeping their own dense item and payment fields. */
.portal-scope.is-scm-procurement-layout {
  --workflow-left-column-width: 26%;
  --workflow-side-column-width: 18%;
}

.portal-scope.is-scm-procurement-layout.is-scm-basic-information-layout {
  --workflow-left-column-width: 20%;
}

.portal-scope.is-scm-procurement-layout .expense-total-summary {
  display: none;
}

.portal-scope.is-scm-procurement-layout.is-scm-purchase-requirement-layout .expense-total-summary,
.portal-scope.is-scm-procurement-layout.is-scm-purchase-contract-layout .expense-total-summary,
.portal-scope.is-scm-procurement-layout.is-scm-supplier-payment-layout .expense-total-summary {
  display: flex;
}

/* Standard Item Request: keep the full form and every repeatable group visible
 * in a parallel workbench. Each column owns its scroll so large item counts do
 * not push the approval actions or the other work areas off screen. */
.portal-scope.is-scm-material-request-layout {
  --workflow-left-column-width: clamp(280px, 28%, 360px);
  --workflow-side-column-width: clamp(180px, 18%, 260px);
  --workflow-middle-side-gap: 8px;
}

.portal-scope.is-scm-material-request-layout .scm-material-workbench-heading {
  display: flex;
  align-items: center;
  flex: 0 0 51px;
  min-width: 0;
  min-height: 51px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f0f0f2;
}

.portal-scope.is-scm-material-request-layout .scm-material-workbench-heading h2 {
  margin: 0;
  color: #13121a;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

.portal-scope.is-scm-material-request-layout .scm-material-workbench-basic-panel .expense-basic-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 10px 24px;
  padding-right: 6px;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.portal-scope.is-scm-material-request-layout .scm-material-workbench-basic-panel .scm-basic-field {
  min-width: 0;
}

.portal-scope.is-scm-material-request-layout .scm-material-workbench-basic-panel textarea.field-control {
  min-height: 64px;
  resize: vertical;
}

.portal-scope.is-scm-material-request-layout .scm-material-workbench-items-panel {
  padding-right: 18px;
}

@media (min-width: 1280px) {
  .portal-scope.is-expense-report-layout.is-scm-material-request-layout .expense-basic-panel,
  .portal-scope.is-expense-report-layout.is-scm-material-request-layout .expense-breakdown-panel,
  .portal-scope.is-expense-report-layout.is-scm-material-request-layout .workflow-application-side-card {
    padding: 20px;
  }

  .portal-scope.is-expense-report-layout.is-scm-material-request-layout .scm-material-workbench-items-panel {
    padding-right: 20px;
  }
}

.portal-scope.is-scm-material-request-layout .scm-material-workbench-items-scroll {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 24px;
  min-height: 0;
  padding: 16px 6px 84px 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding-bottom: 84px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.portal-scope.is-scm-material-request-layout .scm-material-workbench-items-scroll::-webkit-scrollbar {
  width: 6px;
}

.portal-scope.is-scm-material-request-layout .scm-material-workbench-items-scroll::-webkit-scrollbar-track,
.portal-scope.is-scm-material-request-layout .scm-material-workbench-items-scroll::-webkit-scrollbar-thumb {
  background: transparent;
}

.portal-scope.is-scm-material-request-layout .scm-material-workbench-items-scroll.is-scrolling {
  scrollbar-color: rgba(134, 144, 156, .58) transparent;
}

.portal-scope.is-scm-material-request-layout .scm-material-workbench-items-scroll.is-scrolling::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(134, 144, 156, .58);
}

.portal-scope.is-scm-material-request-layout .scm-material-workbench-items-scroll .scm-procurement-detail-list {
  flex: 0 0 auto;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: visible;
}

/* Project contracts and supplier payments render several detail groups inside
 * one wrapper. Give that wrapper the scroll instead of clipping its children. */
.portal-scope.is-scm-procurement-layout .scm-project-procurement-items-scroll {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 24px;
  min-height: 0;
  padding: 16px 6px 84px 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding-bottom: 84px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.portal-scope.is-expense-report-layout .scm-project-procurement-items-scroll .scm-procurement-detail-list {
  flex: 0 0 auto;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.portal-scope.is-scm-material-request-layout
  .scm-material-workbench-items-scroll
  .scm-procurement-detail-list + .scm-procurement-detail-list {
  margin-top: 0;
  padding-top: 24px;
}

.portal-scope.is-scm-material-request-layout .scm-procurement-detail-list .reimbursement-detail-head {
  position: sticky;
  top: -16px;
  z-index: 3;
  min-height: 48px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f2;
  background: #fff;
}

.portal-scope.is-scm-material-request-layout .scm-procurement-detail-list .reimbursement-detail-title {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  min-width: 0;
  font-size: 16px;
  line-height: 24px;
}

.portal-scope.is-scm-material-request-layout .scm-procurement-detail-list .reimbursement-detail-title > span:first-child {
  min-width: 0;
}

.portal-scope.is-scm-material-request-layout .scm-procurement-detail-list .reimbursement-detail-count {
  color: #86909c;
  font-size: 12px;
}

@media (min-width: 1200px) {
  .portal-scope.is-scm-material-request-layout .workflow-section-title {
    font-size: 18px;
    white-space: nowrap;
  }
}

.portal-scope.is-scm-material-request-layout .scm-procurement-detail-cards {
  gap: 12px;
  padding-top: 12px;
}

.portal-scope.is-scm-material-request-layout .scm-procurement-item-card {
  padding: 14px 16px 16px;
  border: 1px solid #edf0f6;
  background: #f8f9fc;
}

.portal-scope.is-scm-procurement-layout.is-scm-material-request-layout .scm-procurement-item-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  padding-top: 14px;
}

.portal-scope.is-scm-procurement-layout.is-scm-material-request-layout .scm-procurement-item-field {
  grid-column: span 1;
}

.portal-scope.is-scm-procurement-layout.is-scm-material-request-layout .scm-procurement-item-field--wide {
  grid-column: 1 / -1;
}

.portal-scope.is-scm-procurement-layout.is-scm-material-request-layout .scm-procurement-item-fields textarea.field-control {
  min-height: 64px;
}

@container (max-width: 320px) {
  .portal-scope.is-scm-procurement-layout.is-scm-material-request-layout .scm-procurement-item-field {
    grid-column: 1 / -1;
  }
}

@media (min-width: 761px) and (max-width: 1279px) {
  .portal-scope.is-scm-material-request-layout {
    --workflow-left-column-width: 38%;
    --workflow-side-column-width: 20%;
    --workflow-middle-side-gap: 4px;
  }

  .portal-scope.is-scm-material-request-layout .expense-basic-panel,
  .portal-scope.is-scm-material-request-layout .expense-breakdown-panel,
  .portal-scope.is-scm-material-request-layout .workflow-application-side-card {
    padding: 16px;
  }

  .portal-scope.is-scm-material-request-layout .scm-material-workbench-basic-panel .expense-basic-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding-right: 4px;
  }

  .portal-scope.is-scm-material-request-layout .scm-material-workbench-items-panel {
    padding-right: 12px;
  }

  .portal-scope.is-scm-procurement-layout.is-scm-material-request-layout .scm-procurement-item-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .portal-scope.is-scm-procurement-layout.is-scm-material-request-layout .scm-procurement-item-field,
  .portal-scope.is-scm-procurement-layout.is-scm-material-request-layout .scm-procurement-item-field--wide {
    grid-column: 1 / -1;
  }

  .portal-scope.is-scm-material-request-layout .scm-procurement-item-card .expense-detail-card-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .portal-scope.is-scm-material-request-layout .scm-procurement-item-card .expense-item-actions {
    align-self: flex-end;
  }

  .portal-scope.is-scm-material-request-layout .scm-procurement-detail-list .reimbursement-detail-head {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .portal-scope.is-scm-material-request-layout .scm-procurement-detail-list .reimbursement-detail-add {
    align-self: flex-start;
  }

  .portal-scope.is-scm-material-request-layout .approval-step,
  .portal-scope.is-scm-material-request-layout .approval-content,
  .portal-scope.is-scm-material-request-layout .approval-assignees,
  .portal-scope.is-scm-material-request-layout .approval-chip-list,
  .portal-scope.is-scm-material-request-layout .approval-chip-copy {
    min-width: 0;
  }

  .portal-scope.is-scm-material-request-layout .workflow-application-side-card {
    padding-inline: 10px;
  }

  .portal-scope.is-scm-material-request-layout .approval-step {
    gap: 4px;
  }

  .portal-scope.is-scm-material-request-layout .approval-chip {
    box-sizing: border-box;
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    padding-inline: 2px;
    overflow: hidden;
    font-size: 12px;
  }

  .portal-scope.is-scm-material-request-layout .approval-chip-name {
    min-width: 0;
    font-size: 11px;
    letter-spacing: -.1px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .portal-scope.is-scm-material-request-layout .scm-material-workbench-heading h2,
  .portal-scope.is-scm-material-request-layout .workflow-section-title {
    font-size: 18px;
  }
}

@media (min-width: 761px) and (max-width: 1050px) {
  .portal-scope.is-scm-material-request-layout
    .workflow-application-page.request-detail-page
    .approval-chip-avatar {
    display: none;
  }
}

.portal-scope.is-standard-item-request-layout .standard-item-controlled-attributes-field,
.portal-scope.is-standard-item-request-layout .standard-item-controlled-attributes {
  min-width: 0;
  width: 100%;
}

.portal-scope.is-standard-item-request-layout .workflow-controlled-attribute-summary {
  margin-bottom: 12px;
  color: #64748b;
  line-height: 1.5;
}

.portal-scope.is-standard-item-request-layout .scm-controlled-attribute-panel {
  box-sizing: border-box;
  width: 100%;
  padding: 14px 18px 16px;
  border: 1px solid #d7e3fa;
  border-radius: 10px;
  background: #fff;
  container-type: inline-size;
}

.portal-scope.is-standard-item-request-layout .workflow-controlled-attribute-group {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
}

.portal-scope.is-standard-item-request-layout .workflow-controlled-attribute-group + .workflow-controlled-attribute-group {
  margin-top: 18px;
}

.portal-scope.is-standard-item-request-layout .workflow-controlled-attribute-group-title {
  margin: 0 0 5px;
  padding: 0;
  border: 0;
  color: #17235f;
  font-size: 14px;
  font-weight: 700;
}

.portal-scope.is-standard-item-request-layout .workflow-controlled-attribute-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
}

.portal-scope.is-standard-item-request-layout .workflow-controlled-attribute-group-heading
  .workflow-controlled-attribute-group-title {
  margin-bottom: 0;
}

.portal-scope.is-standard-item-request-layout .workflow-controlled-attribute-empty-row {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 0 4px;
  border-top: 1px solid #e8ecf2;
  color: #94a3b8;
  font-size: 14px;
}

.portal-scope.is-standard-item-request-layout .scm-controlled-attribute-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
}

.portal-scope.is-standard-item-request-layout .scm-controlled-attribute-row {
  grid-template-columns: minmax(120px, 36%) minmax(0, 1fr);
  min-height: 41px;
  padding: 5px 0;
  border-top: 1px solid #e8ecf2;
  min-width: 0;
}

.portal-scope.is-standard-item-request-layout .scm-controlled-attribute-row .workflow-field-label {
  margin: 0;
  color: #5d6b99;
  font-size: 14px;
  font-weight: 400;
}

.portal-scope.is-standard-item-request-layout .scm-controlled-attribute-input {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: none;
  min-height: 30px;
  height: 30px;
  padding: 3px 4px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: #1d2129;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  box-shadow: none;
}

.portal-scope.is-standard-item-request-layout .scm-controlled-attribute-input::placeholder {
  color: #a3adbd;
  font-weight: 400;
}

.portal-scope.is-standard-item-request-layout .scm-controlled-attribute-input:not([readonly]):hover {
  border-color: #d7e3fa;
  background: #f8faff;
}

.portal-scope.is-standard-item-request-layout .scm-controlled-attribute-input:not([readonly]):focus {
  border-color: #819bff;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(73, 102, 245, .12);
}

.portal-scope.is-standard-item-request-layout .scm-controlled-attribute-input[readonly] {
  cursor: default;
}

.portal-scope.is-standard-item-request-layout .workflow-controlled-attribute-value {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.portal-scope.is-standard-item-request-layout .workflow-application-page.request-detail-page .scm-standard-attribute-select {
  min-height: 30px;
  padding: 0 4px;
  border-color: transparent;
  border-radius: 3px;
  background: transparent;
}

.portal-scope.is-standard-item-request-layout .workflow-application-page.request-detail-page .scm-standard-attribute-select:is(:hover, :focus-within) {
  border-color: #d7e3fa;
  background: #f8faff;
}

.portal-scope.is-standard-item-request-layout .scm-standard-attribute-select .portal-select__input::placeholder {
  color: #a3adbd;
}

.portal-scope.is-standard-item-request-layout .scm-controlled-attribute-name {
  min-height: 30px;
  height: 30px;
  padding: 3px 6px;
  border-color: #d7e3fa;
  color: #5d6b99;
  font-size: 14px;
}

.portal-scope.is-standard-item-request-layout .scm-controlled-attribute-delete {
  display: inline-grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #dc3545;
}

.portal-scope.is-standard-item-request-layout .scm-controlled-attribute-delete:hover,
.portal-scope.is-standard-item-request-layout .scm-controlled-attribute-delete:focus-visible {
  border-color: #fecaca;
  background: #fff1f2;
}

.portal-scope.is-standard-item-request-layout .workflow-controlled-attribute-empty {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 12px 16px;
  border: 1px solid #f2d8ae;
  border-radius: 8px;
  background: #fffaf2;
  color: #7a4b0b;
  font-size: 14px;
  line-height: 1.5;
}

.portal-scope.is-standard-item-request-layout .workflow-controlled-attribute-empty strong {
  font-weight: 600;
}

@container (max-width: 760px) {
  .portal-scope.is-standard-item-request-layout .scm-controlled-attribute-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .portal-scope.is-standard-item-request-layout .scm-controlled-attribute-panel {
    padding: 12px 14px;
  }
}

.portal-scope.is-standard-item-request-layout .self-design-bom-panel {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--bs-border-color, #e2e8f0);
  border-radius: 12px;
  background: #fff;
}

.self-design-bom-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.self-design-pdm-panel,
.self-design-bom-panel {
  border: 1px solid #dbe3f0;
  border-radius: 16px;
  background: #fff;
  padding: 20px;
  margin-top: 22px;
}

.self-design-pdm-panel__header,
.self-design-bom-upload {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.self-design-pdm-panel__header h3,
.self-design-bom-upload strong {
  margin: 0;
  color: #17203a;
}

.self-design-pdm-panel__header p,
.self-design-bom-upload p {
  margin: 5px 0 0;
  color: #718096;
  font-size: 13px;
}

.self-design-pdm-panel__count {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4659e8;
  font-size: 12px;
  font-weight: 700;
}

.self-design-pdm-tree {
  max-height: 320px;
  overflow: auto;
  margin-top: 16px;
  padding: 10px;
  border: 1px solid #e8edf5;
  border-radius: 12px;
  background: #f8faff;
}

.self-design-pdm-tree__folder > summary,
.self-design-pdm-tree__file {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 6px 10px 6px calc(10px + var(--tree-depth, 0) * 18px);
  border-radius: 8px;
}

.self-design-pdm-tree__folder > summary { cursor: pointer; color: #34405c; }
.self-design-pdm-tree__folder > summary small { margin-left: auto; color: #929db2; font-weight: 400; }
.self-design-pdm-tree__file:hover { background: #eef3ff; }
.self-design-pdm-tree__file input { width: 17px; height: 17px; accent-color: #4f5ff5; }
.self-design-pdm-tree__file-icon { padding: 2px 5px; border-radius: 4px; background: #fee2e2; color: #b42318; font-size: 10px; font-weight: 800; }
.self-design-pdm-tree__file-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.self-design-pdm-tree__file-meta { margin-left: auto; color: #8390a7; font-size: 12px; }

.self-design-bom-upload {
  flex-wrap: wrap;
  margin: 16px 0;
  padding: 14px;
  border: 1px dashed #becaf8;
  border-radius: 12px;
  background: #f8faff;
}

.self-design-bom-upload__button { margin-left: auto; cursor: pointer; }
.self-design-bom-upload__file {
  flex: 1 0 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  background: #eef2ff;
  color: #293766;
}
.self-design-bom-upload__file button { border: 0; background: transparent; color: #c03b32; font-size: 22px; line-height: 1; }

.portal-scope .request-detail-page .self-design-bom-field { min-width: 0; }
.portal-scope :is(.request-detail-page, .self-change-request-stage) .self-design-computed-bom { min-width: 0; }
.portal-scope :is(.request-detail-page, .self-change-request-stage) .self-design-computed-bom__header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 8px 0 12px;
}
.portal-scope :is(.request-detail-page, .self-change-request-stage) .self-design-computed-bom__header div { display: grid; gap: 3px; }
.portal-scope :is(.request-detail-page, .self-change-request-stage) .self-design-computed-bom__header span,
.portal-scope :is(.request-detail-page, .self-change-request-stage) .self-design-computed-bom__note { color: #64748b; font-size: 13px; }
.portal-scope :is(.request-detail-page, .self-change-request-stage) .self-design-computed-bom__header button,
.portal-scope :is(.request-detail-page, .self-change-request-stage) .self-design-computed-bom__empty button {
  border: 1px solid #b9c7ee; border-radius: 6px; background: #fff; color: #3154bd; padding: 6px 10px;
}
.portal-scope :is(.request-detail-page, .self-change-request-stage) .self-design-computed-bom__empty { padding: 24px; border: 1px dashed #cbd5e1; border-radius: 8px; }
.portal-scope :is(.request-detail-page, .self-change-request-stage) .self-design-computed-bom__table { width: 100%; overflow-x: auto; border: 1px solid #e2e8f0; border-radius: 8px; }
.portal-scope :is(.request-detail-page, .self-change-request-stage) .self-design-computed-bom table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 13px; }
.portal-scope :is(.request-detail-page, .self-change-request-stage) .self-design-computed-bom th,
.portal-scope :is(.request-detail-page, .self-change-request-stage) .self-design-computed-bom td { padding: 9px 10px; border-bottom: 1px solid #e2e8f0; text-align: left; vertical-align: middle; }
.portal-scope :is(.request-detail-page, .self-change-request-stage) .self-design-computed-bom th { background: #f8fafc; color: #475569; }
.portal-scope :is(.request-detail-page, .self-change-request-stage) .self-design-computed-bom td:first-child { min-width: 260px; }
.portal-scope :is(.request-detail-page, .self-change-request-stage) .self-design-computed-bom__node { display: block; margin-left: calc(var(--bom-depth) * 18px); font-weight: 600; }
.portal-scope :is(.request-detail-page, .self-change-request-stage) .self-design-computed-bom__node button { border: 0; background: transparent; color: #3154bd; cursor: pointer; width: 20px; padding: 0; }
.portal-scope :is(.request-detail-page, .self-change-request-stage) .self-design-computed-bom__leaf { display: inline-block; width: 20px; color: #94a3b8; }
.portal-scope :is(.request-detail-page, .self-change-request-stage) .self-design-computed-bom td small { display: block; margin-left: calc(var(--bom-depth) * 18px); color: #64748b; }
.portal-scope :is(.request-detail-page, .self-change-request-stage) .self-design-computed-bom input[type="number"] { width: 90px; padding: 5px 7px; border: 1px solid #cbd5e1; border-radius: 5px; }
.portal-scope :is(.request-detail-page, .self-change-request-stage) .self-design-computed-bom tr.is-invalid { background: #fff1f2; color: #b42318; }
.portal-scope :is(.request-detail-page, .self-change-request-stage) .self-design-computed-bom__issue,
.portal-scope :is(.request-detail-page, .self-change-request-stage) .self-design-computed-bom__summary.is-invalid,
.portal-scope :is(.request-detail-page, .self-change-request-stage) .self-design-computed-bom__empty.is-invalid { color: #b42318; }
.portal-scope :is(.request-detail-page, .self-change-request-stage) .self-design-computed-bom__summary.is-valid { color: #16803c; }
.portal-scope .request-detail-page .self-design-bom-control__upload {
  min-width: 0;
  max-width: 720px;
}
.portal-scope .request-detail-page .self-design-bom-control__title {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #17203a;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}
.portal-scope .request-detail-page .self-design-bom-control__download {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: #3456cd;
  font-size: 18px;
  text-decoration: none;
}
.portal-scope .request-detail-page .self-design-bom-control__download:hover {
  background: #eef2ff;
}
.portal-scope .request-detail-page .self-design-bom-control__heading p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}
.portal-scope .request-detail-page .file-picker.self-design-bom-control__picker {
  min-height: 64px;
  margin-top: 10px;
  padding: 10px 14px;
  border: 1px dashed #aabcf5;
  border-radius: 10px;
  background: #f8faff;
  gap: 14px;
}
.portal-scope .request-detail-page .file-picker.self-design-bom-control__picker:hover {
  border-color: #4966f5;
  background: #f1f5ff;
}
.portal-scope .request-detail-page .self-design-bom-control__picker:focus-within,
.portal-scope .request-detail-page .self-design-bom-control__download:focus-visible,
.portal-scope .request-detail-page .self-design-bom-selected button:focus-visible {
  outline: 2px solid #4966f5;
  outline-offset: 2px;
}
.portal-scope .request-detail-page .self-design-bom-control__icon,
.portal-scope .request-detail-page .self-design-bom-selected__icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: #e8edff;
  color: #4057c9;
  font-size: 23px;
}
.portal-scope .request-detail-page .self-design-bom-control__picker-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 3px;
  color: #25324a;
}
.portal-scope .request-detail-page .self-design-bom-control__picker-text strong { font-size: 14px; }
.portal-scope .request-detail-page .self-design-bom-control__picker-text small { color: #64748b; font-size: 12px; }
.portal-scope .request-detail-page .self-design-bom-control__browse {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 8px 12px;
  border: 1px solid #c8d3fb;
  border-radius: 7px;
  background: #fff;
  color: #3456cd;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.portal-scope .request-detail-page .self-design-bom-control__picker.is-disabled { cursor: not-allowed; opacity: .65; }
.portal-scope .request-detail-page .self-design-bom-control__meta { display: none; }
.portal-scope .request-detail-page .file-list.self-design-bom-control__files { display: block; margin-top: 10px; }
.portal-scope .request-detail-page .self-design-bom-control__files:empty { display: none; }
.portal-scope .request-detail-page .self-design-bom-selected {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid #dce4f0;
  border-radius: 9px;
  background: #fff;
}
.portal-scope .request-detail-page .self-design-bom-selected__icon {
  flex-basis: 36px;
  width: 36px;
  height: 36px;
  font-size: 20px;
}
.portal-scope .request-detail-page .self-design-bom-selected__details {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}
.portal-scope .request-detail-page .self-design-bom-selected__details a,
.portal-scope .request-detail-page .self-design-bom-selected__details strong {
  overflow: hidden;
  color: #25324a;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.portal-scope .request-detail-page .self-design-bom-selected__details small { color: #64748b; font-size: 12px; }
.portal-scope .request-detail-page .self-design-bom-selected__actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
}
.portal-scope .request-detail-page .self-design-bom-selected__remove {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}
.portal-scope .request-detail-page .self-design-bom-selected__remove:hover { background: #fff1f2; color: #b42318; }
@media (max-width: 600px) {
  .portal-scope .request-detail-page .self-design-bom-control__picker { flex-wrap: wrap; }
  .portal-scope .request-detail-page .self-design-bom-control__browse { margin-left: 0; }
  .portal-scope .request-detail-page .self-design-bom-selected { flex-wrap: wrap; }
  .portal-scope .request-detail-page .self-design-bom-selected__actions { width: 100%; justify-content: flex-end; }
}

.self-design-bom-panel h3 {
  margin: 0;
  font-size: 16px;
}

.self-design-bom-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  margin: 0;
}

.self-design-bom-summary div { min-width: 0; }
.self-design-bom-summary dt { color: #64748b; font-size: 12px; font-weight: 600; }
.self-design-bom-summary dd { margin: 4px 0 0; color: #1e293b; overflow-wrap: anywhere; }
.self-design-bom-summary__hash { grid-column: 1 / -1; }

.self-design-bom-details {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.self-design-bom-details__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.self-design-bom-details__header h4 {
  margin: 0;
  color: #1e293b;
  font-size: 14px;
  font-weight: 700;
}

.self-design-bom-details__header span {
  color: #64748b;
  font-size: 12px;
}

.self-design-bom-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.self-design-bom-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: #334155;
  font-size: 12px;
}

.self-design-bom-table th,
.self-design-bom-table td {
  max-width: 300px;
  padding: 9px 12px;
  border-right: 1px solid #eef2f7;
  border-bottom: 1px solid #eef2f7;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.self-design-bom-table th:last-child,
.self-design-bom-table td:last-child {
  border-right: 0;
}

.self-design-bom-table tbody tr:last-child td {
  border-bottom: 0;
}

.self-design-bom-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
}

.self-design-bom-table tbody tr:hover td {
  background: #f8fbff;
}

.self-design-bom-table__file {
  min-width: 240px;
  font-weight: 600;
}

.self-design-bom-tree-node {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding-left: calc(var(--bom-depth, 0) * 18px);
}

.self-design-bom-tree-node__branch {
  color: #6376f6;
  font-weight: 700;
}

.self-design-bom-table__path,
.self-design-bom-table__data {
  white-space: normal !important;
  overflow-wrap: anywhere;
}

.self-design-pdm-field { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.self-design-pdm-selection { color: #475569; font-size: 13px; overflow-wrap: anywhere; }
.self-design-pdm-selection.has-selection { display: flex; flex-wrap: wrap; gap: 8px; max-width: 100%; }
.self-design-pdm-selection__file { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 9px;
  border: 1px solid #bfd0ff; border-radius: 6px; background: #eef3ff; color: #244bc5;
  font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.self-design-pdm-selection__label { min-width: 0; overflow-wrap: anywhere; }
.self-design-pdm-selection__remove { display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 22px; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 4px;
  background: transparent; color: inherit; font-size: 18px; line-height: 1; cursor: pointer; }
.self-design-pdm-selection__remove:hover { background: #dce6ff; }
.self-design-pdm-selection__remove:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }
.self-design-pdm-thumbnail__link { display: inline-flex; flex-direction: column; gap: 5px; color: #475569;
  font-size: 12px; text-decoration: none; }
.self-design-pdm-thumbnail__link img { display: block; width: 112px; height: 84px; object-fit: contain;
  border: 1px solid #dbe3ef; border-radius: 8px; background: #f8fafc; }
.self-design-pdm-thumbnail__link:hover img,
.self-design-pdm-thumbnail__link:focus-visible img { border-color: #3b5bff; }
.self-design-pdm-thumbnail__status { color: #64748b; font-size: 12px; }
.self-design-pdm-overlay { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center;
  justify-content: center; padding: 24px; background: rgba(15, 23, 42, .55); }
.self-design-pdm-dialog { width: min(760px, 100%); max-height: min(760px, 92vh); display: flex;
  flex-direction: column; gap: 12px; overflow: hidden; padding: 20px; background: #fff; border-radius: 12px; }
.self-design-pdm-dialog header, .self-design-pdm-dialog footer { display: flex; align-items: center;
  justify-content: space-between; gap: 12px; }
.self-design-pdm-dialog h3 { margin: 0; font-size: 18px; }
.self-design-pdm-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.self-design-pdm-breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; color: #64748b; }
.self-design-pdm-breadcrumb button { border: 0; padding: 0; background: transparent; color: #2563eb; }
.self-design-pdm-toolbar input { width: 190px; max-width: 45%; border: 1px solid #cbd5e1;
  border-radius: 7px; padding: 7px 10px; font-size: 13px; }
.self-design-pdm-toolbar input:focus { outline: 2px solid #93c5fd; outline-offset: 1px; }
.self-design-pdm-rows { min-height: 160px; overflow-y: auto; border: 1px solid #e2e8f0; border-radius: 8px; }
.self-design-pdm-rows > p { margin: 0; padding: 18px; color: #64748b; }
.self-design-pdm-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  color: #64748b; font-size: 13px; }
.self-design-pdm-pagination button, .self-design-pdm-rows [data-pdm-retry] { border: 1px solid #cbd5e1;
  border-radius: 6px; padding: 5px 10px; background: #fff; color: #2563eb; }
.self-design-pdm-pagination button:disabled { color: #94a3b8; cursor: not-allowed; }
.self-design-pdm-row { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 10px 12px; border: 0; border-bottom: 1px solid #f1f5f9; background: #fff; }
.self-design-pdm-row:hover:not(:disabled), .self-design-pdm-row.is-selected { background: #eff6ff; }
.self-design-pdm-row:disabled { color: #94a3b8; }
.self-design-pdm-type-icon { width: 20px; height: 20px; flex: none; }
.self-design-pdm-row span:first-of-type { flex: 1; overflow-wrap: anywhere; }
.self-design-pdm-row small, .self-design-pdm-detail { color: #64748b; }
.self-design-pdm-row.is-search-result { display: grid; grid-template-columns: 20px minmax(0, 1fr) 18px;
  row-gap: 4px; }
.self-design-pdm-row.is-search-result small { grid-column: 2; grid-row: 2; overflow-wrap: anywhere; }
.self-design-pdm-row.is-search-result [data-pdm-check] { grid-column: 3; grid-row: 1 / 3; }
.self-design-pdm-detail { margin: 0; overflow-wrap: anywhere; }

.self-design-bom-check { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center;
  justify-content: center; padding: 24px; background: rgba(15, 23, 42, .6); }
.self-design-bom-check__dialog { width: min(1500px, 100%); max-height: 92vh; display: flex;
  flex-direction: column; gap: 12px; padding: 20px; border-radius: 12px; background: #fff; }
.self-design-bom-check__dialog header, .self-design-bom-check__dialog footer,
.self-design-bom-check__dialog footer div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.self-design-bom-check__dialog h3 { margin: 0; font-size: 18px; }
.self-design-bom-check__dialog header p, .self-design-bom-check__note { margin: 6px 0 0; color: #64748b; font-size: 13px; }
.self-design-bom-check__dialog strong.is-valid { color: #15803d; }
.self-design-bom-check__dialog strong.is-invalid, .self-design-bom-check__error { color: #b42318; }
.self-design-bom-check__dialog button, .self-design-bom-check__reopen { border: 1px solid #cbd5e1;
  border-radius: 6px; padding: 6px 10px; background: #fff; color: #2563eb; cursor: pointer; }
.self-design-bom-check__dialog button:disabled { color: #94a3b8; cursor: not-allowed; }
.self-design-bom-check__dialog header button { font-size: 22px; line-height: 1; }
.self-design-bom-check__global { max-height: 120px; overflow: auto; padding: 10px 12px;
  border: 1px solid #fecaca; border-radius: 8px; background: #fef2f2; font-size: 13px; }
.self-design-bom-check__global ul { margin: 4px 0 0; padding-left: 20px; }
.self-design-bom-check__table-wrap { flex: 1; min-height: 120px; overflow: auto; border: 1px solid #e2e8f0; border-radius: 8px; }
.self-design-bom-check__table-wrap table { min-width: 100%; border-collapse: collapse; font-size: 12px; }
.self-design-bom-check__table-wrap th, .self-design-bom-check__table-wrap td { padding: 9px 11px;
  min-width: 110px; max-width: 300px; border-bottom: 1px solid #e2e8f0; text-align: left;
  vertical-align: top; white-space: normal; overflow-wrap: anywhere; }
.self-design-bom-check__table-wrap thead th { position: sticky; top: 0; z-index: 1; background: #f8fafc; }
.self-design-bom-check__table-wrap tbody tr.is-invalid { background: #fff4f2; }
.self-design-bom-check__table-wrap tbody th { position: sticky; left: 0; background: #fff; }
.self-design-bom-check__table-wrap tbody tr.is-invalid th { background: #fff4f2; }
.self-design-bom-check__dialog footer { color: #64748b; font-size: 13px; }
@media (max-width: 760px) {
  .self-design-bom-check { padding: 8px; }
  .self-design-bom-check__dialog { max-height: 98vh; padding: 12px; }
  .self-design-bom-check__dialog footer { align-items: flex-start; flex-direction: column; }
}

.self-design-bom-empty {
  margin-top: 16px;
  padding: 14px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #64748b;
  text-align: center;
}

@media (max-width: 760px) {
  .self-design-bom-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .self-design-bom-summary__hash {
    grid-column: auto;
  }

  .self-design-bom-details__header {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* SCM forms without child rows keep the Material Request visual language, but
 * use the full work area for a two-column basic-information form instead of
 * rendering an empty Details panel. */
.portal-scope.is-expense-report-layout.is-scm-single-panel-layout .workflow-application-body {
  grid-template-areas:
    "basic basic . side";
}

.portal-scope.is-scm-single-panel-layout .scm-procurement-basic-panel--wide {
  border-right: 0;
  border-radius: 8px;
}

.portal-scope.is-scm-single-panel-layout .scm-procurement-basic-panel--wide .expense-basic-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 16px 24px;
}

.portal-scope.is-scm-single-panel-layout .scm-procurement-basic-panel--wide .scm-basic-field {
  min-width: 0;
}

.portal-scope.is-scm-single-panel-layout .scm-procurement-basic-panel--wide .scm-basic-field--wide {
  grid-column: 1 / -1;
}

.portal-scope.is-scm-procurement-layout .scm-procurement-detail-list {
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.portal-scope.is-scm-procurement-layout
  .scm-procurement-detail-list + .scm-procurement-detail-list {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f2;
}

.portal-scope.is-scm-procurement-layout .scm-procurement-tabs-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  gap: 20px;
  min-height: 54px;
  padding: 10px 0 8px;
  border-bottom: 1px solid #f0f0f2;
}

.portal-scope.is-scm-procurement-layout .scm-procurement-tabs {
  display: flex;
  align-items: stretch;
  gap: 4px;
  min-width: 0;
}

.portal-scope.is-scm-procurement-layout .scm-procurement-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 14px;
  border: 0;
  border-radius: 4px;
  color: #646a73;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}

.portal-scope.is-scm-procurement-layout .scm-procurement-tab:hover {
  color: var(--portal-primary);
  background: #f5f7ff;
}

.portal-scope.is-scm-procurement-layout .scm-procurement-tab.is-active {
  color: var(--portal-primary);
  background: #eef2ff;
}

.portal-scope.is-scm-procurement-layout .scm-procurement-tab.is-active::after {
  position: absolute;
  right: 14px;
  bottom: -9px;
  left: 14px;
  height: 2px;
  border-radius: 999px;
  background: var(--portal-primary);
  content: '';
}

.portal-scope.is-scm-procurement-layout .scm-procurement-tab:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--portal-primary) 35%, transparent);
  outline-offset: 2px;
}

.portal-scope.is-scm-procurement-layout .scm-procurement-tab-count,
.portal-scope.is-scm-procurement-layout .scm-procurement-tab-errors {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  color: #646a73;
  background: #f2f3f5;
  font-size: 12px;
  font-weight: 600;
  line-height: 22px;
}

.portal-scope.is-scm-procurement-layout .scm-procurement-tab.is-active .scm-procurement-tab-count {
  color: var(--portal-primary);
  background: #fff;
}

.portal-scope.is-scm-procurement-layout .scm-procurement-tab-errors {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  color: #fff;
  background: #f53f3f;
  line-height: 20px;
}

.portal-scope.is-scm-procurement-layout .scm-procurement-tab-actions {
  flex: 0 0 auto;
}

.portal-scope.is-scm-procurement-layout .scm-procurement-tab-action[hidden],
.portal-scope.is-scm-procurement-layout .scm-procurement-tab-panel[hidden] {
  display: none !important;
}

.portal-scope.is-scm-procurement-layout .scm-procurement-tab-panels {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.portal-scope.is-scm-procurement-layout .scm-procurement-tab-panel {
  flex: 1 1 auto;
  height: 100%;
  max-height: none;
  margin-top: 14px;
  padding: 0 4px 88px 0;
  scroll-padding-bottom: 88px;
}

.portal-scope.is-expense-report-layout.is-scm-procurement-layout
  .workflow-application-page.request-detail-page
  .scm-procurement-tab-panel {
  padding: 0 4px 88px 0;
  scroll-padding-bottom: 88px;
}

.portal-scope.is-scm-procurement-layout
  .scm-procurement-tab-panel + .scm-procurement-tab-panel {
  margin-top: 14px;
  padding-top: 0;
  border-top: 0;
}

.portal-scope.is-scm-procurement-layout .scm-procurement-item-card {
  width: 100%;
  padding: 16px 24px 20px;
  container-type: inline-size;
}

.portal-scope.is-scm-procurement-layout .scm-procurement-item-fields {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px 20px;
}

.portal-scope.is-scm-procurement-layout .scm-procurement-item-field {
  grid-column: span 4;
  width: auto;
  min-width: 0;
  max-width: none;
}

.portal-scope.is-scm-procurement-layout .scm-procurement-item-field--wide {
  grid-column: 1 / -1;
}

.portal-scope.is-scm-procurement-layout
  .scm-procurement-item-field textarea.field-control {
  min-height: 76px;
  resize: vertical;
}

.portal-scope.is-scm-procurement-layout
  .expense-basic-fields .field-control[readonly],
.portal-scope.is-scm-procurement-layout
  .scm-procurement-item-fields .field-control[readonly] {
  color: #4e5969;
  background: #f7f7f9;
}

.portal-scope.is-scm-procurement-layout
  .scm-procurement-item-fields .form-item {
  min-width: 0;
}

@container (max-width: 760px) {
  .portal-scope.is-scm-procurement-layout .scm-procurement-item-field {
    grid-column: span 6;
  }

  .portal-scope.is-scm-procurement-layout .scm-procurement-item-field--wide {
    grid-column: 1 / -1;
  }
}

@container (max-width: 480px) {
  .portal-scope.is-scm-procurement-layout .scm-procurement-item-field {
    grid-column: 1 / -1;
  }
}

.portal-scope.is-business-travel-layout .business-travel-detail-list .expense-detail-card {
  width: 100%;
  padding: 16px 24px;
  container-type: inline-size;
}

.portal-scope.is-business-travel-layout .business-travel-detail-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.portal-scope.is-business-travel-layout .business-travel-detail-fields .expense-item-field {
  grid-column: auto;
  justify-self: stretch;
  width: 100%;
  min-width: 0;
  max-width: none;
}

.portal-scope.is-business-travel-layout .business-travel-detail-fields .expense-field-description,
.portal-scope.is-business-travel-layout .business-travel-detail-fields .expense-field-attachment,
.portal-scope.is-business-travel-layout .business-travel-detail-fields .business-travel-field-full {
  grid-column: 1 / -1;
}

@media (max-width: 1500px) {
  .portal-scope.is-expense-report-layout .workflow-application-body {
    grid-template-columns:
      minmax(0, var(--workflow-left-column-width))
      minmax(0, 1fr)
      var(--workflow-middle-side-gap)
      minmax(0, var(--workflow-side-column-width));
  }

  .portal-scope.is-expense-report-layout .expense-basic-panel,
  .portal-scope.is-expense-report-layout .expense-breakdown-panel,
  .portal-scope.is-expense-report-layout .workflow-application-side-card {
    padding: 24px;
  }

  .portal-scope.is-expense-report-layout .expense-detail-card {
    padding: 20px;
  }
}

/* Reimbursement Apply only: keep the configured field order while adapting the item grid. */
@media (min-width: 1000px) and (max-width: 1499px) {
  .portal-scope.is-expense-report-layout .expense-detail-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-scope.is-expense-report-layout .expense-field-type,
  .portal-scope.is-expense-report-layout .expense-field-amount,
  .portal-scope.is-expense-report-layout .expense-field-date,
  .portal-scope.is-expense-report-layout .expense-field-extra {
    grid-column: span 1;
  }

  .portal-scope.is-expense-report-layout .expense-original-payment {
    grid-column: span 1;
  }

  .portal-scope.is-expense-report-layout .expense-field-description {
    grid-column: 1 / -1;
  }

  .portal-scope.is-corporate-payment-layout .expense-detail-fields.has-corporate-tax-inclusive {
    grid-template-columns: repeat(15, minmax(0, 1fr)) 100px repeat(5, minmax(0, 1fr));
  }

  .portal-scope.is-corporate-payment-layout .expense-detail-fields.has-corporate-tax-inclusive .expense-field-corporate-type,
  .portal-scope.is-corporate-payment-layout .expense-detail-fields.has-corporate-tax-inclusive .expense-field-corporate-date,
  .portal-scope.is-corporate-payment-layout .expense-detail-fields.has-corporate-tax-inclusive .expense-field-corporate-unit-price,
  .portal-scope.is-corporate-payment-layout .expense-detail-fields.has-corporate-tax-inclusive .expense-field-corporate-tax-total {
    grid-column: span 5;
  }

  .portal-scope.is-corporate-payment-layout .expense-detail-fields.has-corporate-tax-inclusive .expense-field-corporate-quantity {
    grid-column: span 1;
  }

  .portal-scope.is-corporate-payment-layout .expense-detail-fields.has-corporate-tax-inclusive .expense-field-corporate-money,
  .portal-scope.is-corporate-payment-layout .expense-detail-fields.has-corporate-tax-inclusive .expense-original-payment {
    grid-column: span 7;
  }

  .portal-scope.is-corporate-payment-layout .expense-detail-fields.has-corporate-tax-inclusive .expense-field-corporate-full,
  .portal-scope.is-corporate-payment-layout .expense-detail-fields.has-corporate-tax-inclusive .expense-field-attachment {
    grid-column: 1 / -1;
  }

  .portal-scope.is-business-travel-layout .business-travel-detail-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/*
 * Reimbursement Apply tablet layout (761-1199px): keep all three desktop
 * work areas visible without changing the legacy mobile rendering.
 */
@media (min-width: 761px) and (max-width: 1199px) {
  .portal-scope.is-expense-report-layout .workflow-application-body {
    grid-template-columns:
      minmax(0, var(--workflow-left-column-width))
      minmax(0, 1fr)
      var(--workflow-middle-side-gap)
      minmax(0, var(--workflow-side-column-width));
  }

  .portal-scope.is-expense-report-layout .expense-basic-panel,
  .portal-scope.is-expense-report-layout .expense-breakdown-panel,
  .portal-scope.is-expense-report-layout .workflow-application-side-card {
    padding: 24px;
  }

  .portal-scope.is-expense-report-layout .expense-detail-card {
    padding: 18px 16px 16px;
  }

  .portal-scope.is-expense-report-layout .expense-step-title {
    gap: 10px;
  }

  .portal-scope.is-expense-report-layout .expense-step-title h2 {
    min-width: 0;
    overflow-wrap: normal;
    word-break: normal;
  }

  .portal-scope.is-expense-report-layout .workflow-section-title {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .portal-scope.is-expense-report-layout .expense-detail-fields .form-item,
  .portal-scope.is-expense-report-layout .expense-detail-fields .field-control,
  .portal-scope.is-expense-report-layout .expense-detail-fields .portal-select,
  .portal-scope.is-expense-report-layout .expense-detail-fields .portal-select__control,
  .portal-scope.is-expense-report-layout .expense-detail-fields .date-field {
    min-width: 0;
    max-width: 100%;
  }

  .portal-scope.is-expense-report-layout .expense-detail-fields .date-input {
    padding-right: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .portal-scope.is-expense-report-layout .expense-original-payment-controls {
    grid-template-columns: minmax(84px, 96px) 10px minmax(112px, 1fr);
  }

  .portal-scope.is-expense-report-layout .expense-field-attachment .file-control {
    grid-template-columns: minmax(0, 1fr);
  }

  .portal-scope.is-expense-report-layout .expense-field-attachment .file-list {
    grid-column: 1;
    grid-template-columns: minmax(0, 1fr);
  }

  .portal-scope.is-expense-report-layout .expense-field-attachment .invoice-file-entry.has-invoice-confirmation {
    grid-column: 1;
  }

  .portal-scope.is-expense-report-layout .expense-field-attachment .file-chip {
    max-width: 100%;
  }
}

@media (min-width: 761px) and (max-width: 999px) {
  .portal-scope.is-expense-report-layout .expense-detail-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .portal-scope.is-expense-report-layout .expense-field-type,
  .portal-scope.is-expense-report-layout .expense-field-amount,
  .portal-scope.is-expense-report-layout .expense-field-date,
  .portal-scope.is-expense-report-layout .expense-field-extra,
  .portal-scope.is-expense-report-layout .expense-original-payment,
  .portal-scope.is-expense-report-layout .expense-field-description {
    grid-column: 1;
  }

  .portal-scope.is-corporate-payment-layout .expense-detail-fields.has-corporate-tax-inclusive {
    grid-template-columns: minmax(0, 1fr);
  }

  .portal-scope.is-corporate-payment-layout .expense-detail-fields.has-corporate-tax-inclusive .expense-field-corporate-type,
  .portal-scope.is-corporate-payment-layout .expense-detail-fields.has-corporate-tax-inclusive .expense-field-corporate-date,
  .portal-scope.is-corporate-payment-layout .expense-detail-fields.has-corporate-tax-inclusive .expense-field-corporate-unit-price,
  .portal-scope.is-corporate-payment-layout .expense-detail-fields.has-corporate-tax-inclusive .expense-field-corporate-quantity,
  .portal-scope.is-corporate-payment-layout .expense-detail-fields.has-corporate-tax-inclusive .expense-field-corporate-tax-total,
  .portal-scope.is-corporate-payment-layout .expense-detail-fields.has-corporate-tax-inclusive .expense-field-corporate-money,
  .portal-scope.is-corporate-payment-layout .expense-detail-fields.has-corporate-tax-inclusive .expense-original-payment,
  .portal-scope.is-corporate-payment-layout .expense-detail-fields.has-corporate-tax-inclusive .expense-field-corporate-full,
  .portal-scope.is-corporate-payment-layout .expense-detail-fields.has-corporate-tax-inclusive .expense-field-attachment {
    grid-column: 1;
  }

  .portal-scope.is-business-travel-layout .business-travel-detail-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  .portal-scope.is-expense-report-layout .expense-basic-panel,
  .portal-scope.is-expense-report-layout .expense-breakdown-panel,
  .portal-scope.is-expense-report-layout .workflow-application-side-card {
    padding: 24px;
  }

  .portal-scope.is-expense-report-layout .expense-step-title h2 {
    font-size: 20px;
    line-height: 28px;
  }

  .portal-scope.is-expense-report-layout .expense-section-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    flex-basis: auto;
    height: auto;
    min-height: 0;
  }

  .portal-scope.is-expense-report-layout .reimbursement-detail-add {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 760px) {
  .portal-scope.is-expense-report-layout .workflow-application-hero {
    padding: 20px 16px 16px;
  }

  .portal-scope.is-expense-report-layout .workflow-application-title-block h1 {
    font-size: 24px;
    line-height: 32px;
  }

  .portal-scope.is-expense-report-layout .workflow-application-body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "basic"
      "breakdown"
      "side";
  }

  .portal-scope.is-expense-report-layout .expense-basic-panel,
  .portal-scope.is-expense-report-layout .expense-breakdown-panel,
  .portal-scope.is-expense-report-layout .workflow-application-side-card .section {
    padding: 18px;
  }

  .portal-scope.is-expense-report-layout .expense-step-title h2,
  .portal-scope.is-expense-report-layout .workflow-section-title {
    font-size: 20px;
    line-height: 28px;
  }

  .portal-scope.is-expense-report-layout .expense-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-scope.is-expense-report-layout .reimbursement-detail-add {
    justify-content: center;
    width: 100%;
  }

  .portal-scope.is-expense-report-layout .expense-detail-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .portal-scope.is-expense-report-layout .expense-field-type,
  .portal-scope.is-expense-report-layout .expense-field-amount,
  .portal-scope.is-expense-report-layout .expense-field-date,
  .portal-scope.is-expense-report-layout .expense-field-extra,
  .portal-scope.is-expense-report-layout .expense-original-payment,
  .portal-scope.is-expense-report-layout .expense-field-description {
    grid-column: 1;
  }

  .portal-scope.is-expense-report-layout .workflow-application-actions {
    position: static;
    flex-direction: column;
    align-items: stretch;
    transform: none;
    padding: 16px;
  }

  .portal-scope.is-expense-report-layout .expense-total-summary {
    justify-content: center;
    flex-wrap: wrap;
  }

  .portal-scope.is-expense-report-layout .expense-action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .portal-scope.is-expense-report-layout .workflow-application-actions [data-action="submit"] {
    grid-column: 1 / -1;
  }
}

.portal-scope .schedule-create-tabs {
  margin-bottom: 12px;
  gap: 18px;
  padding: 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}


.portal-scope .schedule-create-tabs .portal-tab {
  height: auto;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: #6b7280;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.portal-scope .schedule-create-tabs .portal-tab:hover,
.portal-scope .schedule-create-tabs .portal-tab:focus {
  color: var(--portal-primary);
}

.portal-scope .schedule-create-tabs .portal-tab.active {
  color: var(--portal-primary);
  border-bottom-color: var(--portal-primary);
}

.schedule-create-modal .schedule-create-tabs {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

.schedule-create-modal .schedule-create-tabs .portal-tab {
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.schedule-create-modal .schedule-create-tabs .portal-tab:hover,
.schedule-create-modal .schedule-create-tabs .portal-tab:focus {
  color: var(--portal-primary, #264AFF);
}

.schedule-create-modal .schedule-create-tabs .portal-tab.active {
  color: var(--portal-primary, #264AFF);
  border-bottom-color: var(--portal-primary, #264AFF);
}

.schedule-create-modal .schedule-create-section-title {
  font-size: 15px;
  font-weight: 600;
  color: #13121A;
  margin-bottom: 12px;
}

.schedule-create-modal .schedule-create-divider {
  border-top: 1px solid #e5e7eb;
  margin: 16px 0;
}

.schedule-type-picker {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.schedule-type-section {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  background: #f8fafc;
}

.schedule-type-section-title {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule-type-section .schedule-type-options {
  margin-top: 10px;
}

.schedule-type-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.schedule-type-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.schedule-type-option input {
  margin-top: 3px;
}

.schedule-type-option:hover {
  border-color: #cbd5f5;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.schedule-type-card {
  flex: 1;
}

.schedule-type-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.schedule-type-desc {
  margin-top: 4px;
  font-size: 13px;
  color: #6b7280;
}

.schedule-type-option input:checked + .schedule-type-card .schedule-type-title {
  color: var(--portal-primary, #264AFF);
}

input[type="radio"] {
  accent-color: var(--portal-primary, #264AFF);
}

.portal-scope .workflow-radio-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.portal-scope .workflow-radio-group .btn-check {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.portal-scope .workflow-radio-option {
  display: inline-flex;
  min-width: 96px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 22px;
  border: 1px solid #c7d2fe;
  border-radius: 6px;
  background: #ffffff;
  color: var(--portal-primary, #264AFF);
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.portal-scope .workflow-radio-option:hover {
  border-color: var(--md-brand-primary-light);
  background: var(--md-brand-hover-fill);
}

.portal-scope .workflow-radio-group .btn-check:focus-visible + .workflow-radio-option {
  box-shadow: 0 0 0 3px var(--md-brand-focus-ring);
}

.portal-scope .workflow-radio-group .btn-check:checked + .workflow-radio-option,
.portal-scope .workflow-radio-option.is-selected {
  border-color: var(--md-brand-outline);
  background: var(--portal-primary-soft);
  color: var(--portal-primary, #264AFF);
}

.portal-scope .workflow-radio-group .btn-check:disabled + .workflow-radio-option {
  cursor: not-allowed;
  opacity: .72;
}

.portal-scope .workflow-cascader-field {
  grid-column: 1 / -1 !important;
  width: 100%;
}

.portal-scope .workflow-cascader-control {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.portal-scope .workflow-cascader-control .portal-cascader-level {
  position: relative;
  flex: 1 1 220px;
  min-width: 180px;
}

.portal-scope .workflow-cascader-control .form-select {
  flex: 1 1 220px;
  min-width: 180px;
  height: 44px;
}

.portal-scope .workflow-cascader-control .portal-cascader-native {
  display: none !important;
}

.portal-scope .workflow-cascader-control .portal-cascader-select {
  box-sizing: border-box;
  width: 100%;
  height: 40px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #dedfe3;
  border-radius: 4px;
  background: #fff;
  gap: 8px;
  cursor: pointer;
}

.portal-scope .workflow-cascader-control .portal-cascader-select.is-open {
  z-index: 1300;
}

.portal-scope .workflow-cascader-control .portal-cascader-select .portal-select__input {
  height: 22px;
  padding: 0;
  color: #13121a;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  cursor: text;
}

.portal-scope .workflow-cascader-control .portal-cascader-select .portal-select__input::placeholder {
  color: #c9cdd4;
  font-size: 14px;
  font-weight: 400;
  opacity: 1;
}

.portal-scope .workflow-cascader-control .portal-cascader-select .portal-select__input:disabled {
  color: #c9cdd4;
  opacity: 1;
  -webkit-text-fill-color: #c9cdd4;
}

.portal-scope .workflow-cascader-control .portal-cascader-select .portal-select__caret {
  margin-left: auto;
}

.portal-scope .workflow-cascader-control .portal-cascader-select .portal-select__menu {
  top: calc(100% + 4px);
  border-radius: 4px;
}

.portal-scope .workflow-cascader-control .portal-cascader-select.portal-select--disabled {
  background: #fff;
  cursor: not-allowed;
}

.portal-scope .workflow-application-page.request-detail-page .workflow-cascader-control .form-select {
  height: 38px;
}

.portal-scope .request-detail-page .form-grid.nested > .workflow-cascader-field {
  grid-column: 1 / -1 !important;
}

.portal-scope .workflow-cascader-separator {
  flex: 0 0 auto;
  color: var(--workflow-muted);
}

#teams-link-modal .modal-content {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

#teams-link-modal .modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
}

#teams-link-modal .modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #13121A;
}

#teams-link-modal .modal-body {
  padding: 16px 20px 8px;
}

#teams-link-modal .modal-body p {
  margin-bottom: 10px;
  color: #475569;
}

#teams-link-modal [data-role="teams-link"] {
  display: inline-block;
  max-width: 100%;
  color: #2563eb;
  font-weight: 600;
  text-decoration: underline;
  word-break: break-all;
}

#teams-link-modal .modal-footer {
  padding: 12px 20px 16px;
  border-top: 1px solid #e5e7eb;
}

#teams-link-modal .btn-outline-secondary {
  border-color: #d1d5db;
}

#teams-link-modal .btn-primary {
  background: var(--portal-primary, #264AFF);
  border-color: var(--portal-primary, #264AFF);
}

.portal-scope .schedule-create-panel {
  padding-top: 4px;
}

.portal-scope .schedule-month-cell:nth-child(7n) {
  border-right: none;
}

.portal-scope .schedule-month-head {
  min-height: 48px;
  font-size: 12px;
  color: #86909C;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.portal-scope .schedule-month-cell.is-muted {
  color: #cbd5e1;
}

.portal-scope .schedule-month-cell.is-active {
  background: rgba(var(--tblr-primary-rgb), 0.06);
}

@media (max-width: 1200px) {
  .portal-scope .calendar-task-shell {
    grid-template-columns: 1fr;
  }
  .portal-scope .calendar-task-side {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }
}

@media (max-width: 1100px) {
  .portal-scope .calendar-task-schedule-grid {
    overflow: auto;
    min-height: 0;
  }

  .portal-scope .calendar-task-schedule-grid.schedule-grid--time {
    display: block;
  }

  .portal-scope .calendar-task-schedule-grid.schedule-grid--time .schedule-header {
    min-height: 44px;
  }

  .portal-scope .calendar-task-schedule-grid.schedule-grid--time .schedule-row {
    flex: initial;
  }

  .portal-scope .calendar-task-schedule-grid.schedule-grid--time .schedule-cell {
    min-height: 0;
    padding: 6px 6px;
  }

  .portal-scope .schedule-row {
    grid-template-columns: 48px repeat(var(--schedule-cols, 7), minmax(64px, 1fr));
  }

  .portal-scope .schedule-month-grid {
    grid-template-columns: repeat(7, minmax(64px, 1fr));
  }

  .portal-scope .schedule-month-cell {
    min-height: 56px;
    padding: 6px;
  }
}

@media (max-width: 900px) {
  .portal-scope .calendar-task-schedule-grid {
    overflow: auto;
    max-height: calc(100vh - 260px);
  }

  .portal-scope .calendar-task-schedule-grid.schedule-grid--time {
    display: block;
  }
}

.portal-scope .event-pill--time {
  color: #0f172a;
  background: #f8fafc;
  border-color: #e2e8f0;
}

.portal-scope .event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
}

.portal-scope .event-meta--organizer {
  margin-top: 4px;
}

.portal-scope .event-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.portal-scope .event-meta-item .mdi {
  font-size: 14px;
}

.portal-scope .review-label {
  font-weight: 400;
  color: #1f2937;
}

.portal-scope .review-value {
  font-weight: 700;
  font-size: 14px;
  color: #13121a;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.portal-scope .notice-hero {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  /* min-height: calc(170px + 182px + 12px); */
  display: flex;
  flex-direction: column;
  padding: 0;
  /* background: url('../img/portal/notice_bg.png') center/cover no-repeat; */
}

.portal-scope .notice-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  box-sizing: border-box;
  justify-content: flex-start;
  min-height: 0;
  background: url('../img/portal/notice_bg.png') center/cover no-repeat;
  aspect-ratio: 16 / 6;
  overflow: hidden;
  touch-action: pan-y;
}

.portal-scope .notice-hero-track {
  display: flex;
  height: 100%;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  align-items: stretch;
}

.portal-scope .notice-hero-slide {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: none;
  background: transparent;
  text-align: left;
  padding: 18px 20px;
  cursor: pointer;
}

.portal-scope .notice-hero-slide.is-empty {
  cursor: default;
}

.portal-scope .notice-hero-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.portal-scope .notice-hero-subtitle {
  color: #BCBCBF;
  font-size: 14px;
  margin-top: 16px;
}

.portal-scope .notice-hero-indicator {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.portal-scope .notice-hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.portal-scope .notice-hero-dot.is-active {
  background: rgba(255, 255, 255, 0.9);
}

.portal-scope .notice-hero-cta {
  position: absolute;
  right: 16px;
  bottom: 16px;
  border: none;
  background: #fff3;
  color: #fffc;
  border-radius: 4px;
  padding: 6px 16px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  letter-spacing: 0.4px;
  font-size: 12px;
  text-transform: uppercase;
}

.portal-scope .notice-hero-cta .mdi {
  font-size: 18px;
}

.portal-scope .notice-hero-cta:disabled {
  cursor: default;
  opacity: 0.6;
}

.portal-scope .notice-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 182px;
  max-height: 182px;
  overflow: hidden;
}

.portal-scope .notice-items--hero {
  margin: 12px 0px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 4px;
  padding: 8px 10px;
  min-height: 182px;
  max-height: 182px;
}

.portal-scope .notice-items .state-text {
  margin: auto;
  text-align: center;
  width: 100%;
}

.portal-scope .notice-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  height: 30px;
}

.portal-scope .notice-row:hover {
  background: #f7f7fa;
}

.portal-scope .notice-row-title {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 70%;
  font-weight: 400;
  font-size: 14px;
  color: #13121a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-scope .notice-row-date {
  font-weight: 400;
  font-size: 12px;
  color: #bcbcbf;
  flex-shrink: 0;
}

.portal-scope .notice-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.portal-scope .notice-detail-page {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: calc(100vh - 56px - 16px);
}

.portal-scope .notice-detail-card {
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1 1 auto;
  min-height: 0;
}

.portal-scope .notice-detail-page .notice-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.portal-scope .notice-detail-page .notice-header-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

.portal-scope .notice-detail-page .notice-title {
  font-size: 24px;
  font-weight: 700;
  color: #13121a;
  margin: 0;
  text-align: left;
  word-break: break-word;
}

.portal-scope .notice-detail-page .notice-subtitle {
  color: #8a8f9c;
  font-size: 14px;
  line-height: 1.5;
}

.portal-scope .notice-detail-page .notice-meta {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 8px;
  color: #8a8f9c;
  font-size: 13px;
  white-space: nowrap;
}

.portal-scope .notice-detail-page .notice-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.portal-scope .notice-detail-page .notice-content {
  flex: 1 1 auto;
  min-height: 0;
  padding: 16px;
  border: 1px solid #eceef4;
  border-radius: 4px;
  background: #f9fafc;
  color: #1f2937;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-y: auto;
}

.portal-scope .notice-detail-page .notice-attachments {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.portal-scope .notice-detail-page .attachment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e6e8ee;
  background: #ffffff;
}

.portal-scope .notice-detail-page .attachment-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.portal-scope .notice-detail-page .attachment-info .mdi {
  font-size: 18px;
  color: #94a3b8;
}

.portal-scope .notice-detail-page .attachment-name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-scope .notice-detail-page .attachment-item a {
  color: var(--portal-primary);
  font-weight: 600;
  text-decoration: none;
  flex: 1 1 auto;
  min-width: 0;
}

.portal-scope .notice-detail-page .attachment-item a:hover {
  text-decoration: underline;
}

.portal-scope .notice-detail-page .detail-file-preview {
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.2;
}

/* Requests */
.portal-scope .request-page {
  padding: 0;
}

.portal-scope .request-page .header h1 {
  margin: 4px 0 12px;
  color: #0f172a;
  font-size: 22px;
}

.portal-scope .portal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.portal-scope .portal-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.portal-scope .portal-header h1 {
  margin: 0 0 4px;
  color: #0f172a;
  font-size: 22px;
}

.portal-scope .portal-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.portal-scope .category-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.portal-scope .category-card {
  background: #fff;
  border-radius: 4px;
  padding: 20px 16px;
  box-sizing: border-box;
}

.portal-scope .category-title {
  font-weight: 700;
  color: #13121a;
  margin-bottom: 16px;
  font-size: 16px;
}

.portal-scope .subgroup-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.portal-scope .subgroup-title {
  font-weight: 400;
  color: #13121a;
  margin-bottom: 16px;
  font-size: 14px;
}

.portal-scope .leaf-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.portal-scope .leaf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.12s ease, background 0.12s ease;
  flex: 0 0 calc(25% - 12px);
  min-width: 180px;
}

.portal-scope .leaf:hover {
  /* transform: translateY(-1px); */
  background: #f8fafc;
}

.portal-scope .leaf-color {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #0f172a;
}

.portal-scope .leaf-title {
  color: #13121a;
  font-weight: 400;
}

.portal-scope .leaf[href] {
  color: inherit;
  text-decoration: none;
}

/* Approvals list */
.portal-scope .portal-layout {
  padding: 12px 4px 16px;
}

.portal-scope .list-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portal-scope .filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.portal-scope .filter-label {
  font-size: 12px;
  color: #707073;
  margin-bottom: 6px;
  display: block;
}

.portal-scope .list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.portal-scope .item {
  border: 1px solid #e5e6eb;
  border-radius: 4px;
  padding: 8px;
  background: #fff;
  transition: border 0.12s ease, box-shadow 0.12s ease;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  flex: 0 0 auto;
  box-sizing: border-box;
}

.portal-scope .item:hover {
  border-color: rgba(59, 100, 255, 0.4);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.portal-scope .item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.portal-scope .item-head-main {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
}

.portal-scope .item-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.portal-scope .approval-item-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.portal-scope .approval-item-check input,
.portal-scope .approval-batch-check input {
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.portal-scope .item-title {
  font-weight: 700;
  color: #13121a;
  font-size: 14px;
  min-width: 0;
  line-height: 20px;
  overflow-wrap: anywhere;
  white-space: normal;
}

.portal-scope .approval-task-node {
  color: #6b7280;
  font-size: 12px;
  line-height: 18px;
  margin-top: 2px;
}

.portal-scope .item-body {
  display: grid;
  gap: 4px;
}

.portal-scope .item-row {
  display: flex;
  gap: 6px;
  font-size: 14px;
  line-height: 20px;
  color: #111827;
}

.portal-scope .label {
  color: #707073;
  font-weight: 400;
  font-size: 14px;
}

.portal-scope .value {
  color: #13121a;
  font-weight: 400;
  font-size: 14px;
}

.portal-scope .item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.portal-scope .avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e0e7ff;
  display: grid;
  place-items: center;
  font-weight: 400;
  font-size: 10px;
  color: #4338ca;
  overflow: hidden;
}

.portal-scope .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-scope .submitted {
  color: #6b7280;
  font-size: 12px;
}

.portal-scope .footer-info {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #111827;
  font-weight: 600;
}

.portal-scope .applicant-name {
  font-size: 12px;
  color: #707073;
}

.portal-scope .pill {
  padding: 0 4px;
  line-height: 20px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 400;
  color: #0f172a;
}

.portal-scope .pill-pending { background: #fef9c3; color: #92400e; }
.portal-scope .pill-approved { background: #dcfce7; color: #166534; }
.portal-scope .pill-rejected { background: #fee2e2; color: #991b1b; }
.portal-scope .pill-withdrawn { background: #e2e8f0; color: #475569; }
.portal-scope .pill-review { background: #e0e7ff; color: #4338ca; }

.portal-scope .ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Approvals tabs */
.portal-scope .approvals-page {
  padding: 0;
  background-color: #ffffff;
  container-type: inline-size;
}

.portal-scope .approval-mobile-toolbar,
.portal-scope .approval-mobile-detail-nav {
  display: none;
}

.portal-scope .approvals-page .item-row {
  min-width: 0;
}

.portal-scope .approvals-page .item-row .label {
  flex: 0 1 auto;
  max-width: 50%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-scope .approvals-page .item-row .value {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Only the change title and category summary need multiple lines. */
.portal-scope .approvals-page .item-row--change-summary .label {
  flex: 0 0 auto;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
}

.portal-scope .approvals-page .item-row--change-summary .value {
  flex: 1 1 0;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
}

.portal-scope .approvals-page .portal-tabs {
  background: transparent;
  border: none;
  border-bottom: 1px solid #e6e8ee;
  border-radius: 0;
  /* padding: 10px 16px; */
  gap: 0px;
  margin: 0;
  height: 56px;
  line-height: 56px;
}

.portal-scope .approvals-page .portal-tab {
  --approval-tab-inset: 16px;
  position: relative;
  border-bottom-color: transparent;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  color: #13121a;
}

.portal-scope .approvals-page .portal-tab.active {
  font-weight: 400;
  color: #13121a;
}

.portal-scope .approvals-page .portal-tabs .portal-tab:first-child {
  padding-left: 0;
}

.portal-scope .approvals-page .portal-tab:first-child.active::after {
  left: 0;
}

.portal-scope .approvals-page .portal-tab.active::after {
  content: "";
  position: absolute;
  left: var(--approval-tab-inset);
  right: var(--approval-tab-inset);
  bottom: -2px;
  height: 2px;
  background: var(--portal-primary);
}


/* Approvals layout */
.portal-scope .approvals-layout {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0;
  padding: 0;
  height: calc(100vh - 56px - 149px);
  box-sizing: border-box;
  border: none;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
  min-height: 0;
}

.portal-scope .approvals-layout .list-panel {
  min-height: 0;
  border-right: 1px solid #eef0f4;
  background: #fff;
  gap: 0;
  width: 380px;
  max-width: 380px;
  overflow: hidden;
}

.portal-scope .approvals-layout .approval-filter-bar {
  grid-column: 1 / -1;
  min-width: 0;
  position: relative;
  z-index: 5;
  border-bottom: 1px solid #eef0f4;
}

.portal-scope .approvals-layout .filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0;
  padding: 8px 16px 8px 0;
  border-bottom: none;
  background: #fff;
  gap: 24px;
  overflow: visible;
}

.portal-scope .approvals-layout .filter {
  min-width: 0;
}

/* Keep all filter controls padding-free and their arrows next to the text. */
.portal-scope .approvals-layout .filters .approval-search-select .portal-select__control {
  padding: 0;
}

.portal-scope .approvals-layout .filters .approval-search-select {
  width: max-content;
  max-width: 100%;
}

.portal-scope .approvals-layout .filters .portal-select__control {
  gap: 8px;
}

.portal-scope .approvals-layout .filters .approval-search-select .portal-select__input {
  field-sizing: content;
  flex: 0 1 auto;
  width: auto;
  min-width: 0;
  max-width: 280px;
}

.portal-scope .approvals-layout .filters .portal-select__caret {
  margin-left: 0;
}

.portal-scope .approvals-layout .filters .portal-select__menu {
  min-width: 240px;
  max-width: calc(100vw - 48px);
}

.portal-scope .approvals-layout .filter:nth-child(3) {
  min-width: 0;
}

.portal-scope .approvals-layout .approval-batch-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 8px 0;
  background: #fff;
  border-bottom: 0;
}

.portal-scope .approvals-layout .approval-batch-check {
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #374151;
}

.portal-scope .approvals-layout .approval-batch-check input {
  margin: 0;
  padding: 0;
}

.portal-scope .approvals-layout .approval-batch-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.portal-scope .approvals-layout .approval-batch-actions .btn {
  border-radius: 2px;
  font-weight: 400;
}

.portal-scope .approvals-layout .approval-batch-actions .btn:disabled {
  background: #f2f3f5;
  border-color: transparent;
  color: #a9aeb8;
  opacity: 1;
  box-shadow: none;
  cursor: not-allowed;
}

.portal-scope .approvals-layout .approval-batch-count {
  font-size: 12px;
  color: #6b7280;
}

.portal-scope .approvals-layout .filter-label {
  display: none;
}

.portal-scope .approvals-layout .portal-select {
  height: 32px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 4px 32px 4px 10px;
  border-radius: 6px;
  border: none;
  font-size: 13px;
  color: #13121a;
}

.portal-scope .approvals-layout .portal-select:focus,
.portal-scope .approvals-layout .portal-select:focus-visible {
  outline: none;
  box-shadow: none;
}

.portal-scope .approvals-layout .approval-search-select {
  position: relative;
  height: auto;
  padding: 0;
  overflow: visible;
}

.portal-scope .approvals-layout .approval-search-select.is-open {
  z-index: 1300;
}

.portal-scope .approvals-layout .approval-search-select .portal-select__control {
  min-height: 32px;
  height: 32px;
  padding: 4px 8px 4px 10px;
  border-radius: 6px;
  background: #fff;
}

.portal-scope .approvals-layout .approval-search-select .portal-select__input {
  height: 24px;
  padding: 0;
  font-size: 13px;
  color: #13121a;
}

.portal-scope .approvals-layout .approval-search-select .portal-select__menu {
  top: calc(100% + 2px);
  max-height: 240px;
  border-radius: 6px;
}

.portal-scope .approvals-layout .approval-search-select .portal-select__option {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
}

.portal-scope .approvals-layout .list {
  flex: 1;
  overflow: auto;
  padding: 8px 8px 8px 0;
}

/* The batch bar already provides the 8px gap above the first card. */
.portal-scope .approvals-layout .approval-batch-bar:not(.d-none) + .list {
  padding-top: 0;
}

.portal-scope .approvals-layout .list .state-text {
  margin: auto;
  text-align: center;
  width: 100%;
}

.portal-scope .approvals-layout .list-footer {
  padding: 12px 4px 0;
  text-align: center;
}

.portal-scope .approvals-layout .portal-select__control {
  border: none;
}

.portal-scope .approvals-layout .portal-select__caret {
  margin-left: 4px;
}

.portal-scope .item.active {
  border-color: var(--portal-primary);
}

.portal-scope .detail-panel {
  background: transparent;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.portal-scope .approval-detail-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.portal-scope .approval-detail-content > .approval-detail-loading {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 16px;
  font-weight: 400;
  text-align: center;
}

.portal-scope .approvals-layout .detail-panel .detail-card {
  overflow: hidden;
  border: 0;
  border-radius: 0;
  height: 100%;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(45, 86, 160, .12);
}

.portal-scope .approvals-layout .detail-panel .card-top {
  min-height: 0;
  height: auto;
  padding: 8px 30px 8px 20px;
  border-bottom: 1px solid #eef0f4;
  color: #5d6b99;
  font-size: 12px;
  background: #ffffff;
}

.portal-scope .approvals-layout .detail-panel .card-body {
  padding: 18px 20px 22px;
}

.portal-scope .approvals-layout .detail-panel .opinion-footer {
  padding: 12px 20px;
  border-top: 1px solid #eef0f4;
}

.portal-scope .approvals-layout .detail-panel .footer-actions {
  padding: 12px 20px 16px;
  border-top: 1px solid #eef0f4;
}

.portal-scope .approvals-layout .detail-file-preview {
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.2;
}

.portal-scope .approval-detail-page .detail-file-preview {
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.2;
}

.portal-scope .approvals-layout .detail-panel .approval-assignees,
.portal-scope .approval-detail-page .approval-assignees {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.portal-scope .approvals-layout .detail-panel .approval-chip-list,
.portal-scope .approval-detail-page .approval-chip-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.portal-scope .approvals-layout .detail-panel .approval-optional-hint,
.portal-scope .approval-detail-page .approval-optional-hint {
  color: #8a94a6;
  font-size: 12px;
  line-height: 1;
}

.portal-scope .approvals-layout .detail-panel .approval-chip,
.portal-scope .approval-detail-page .approval-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 4px;
  background: #F2F2F5;
  color: #13121A;
  font-size: 14px;
  line-height: 1;
  flex: 0 0 auto;
}

.portal-scope .approvals-layout .detail-panel .approval-chip-avatar,
.portal-scope .approval-detail-page .approval-chip-avatar {
  width: 24px;
  height: 24px;
  border-radius: 2px;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 12px;
  color: #1f2937;
  overflow: hidden;
}

.portal-scope .approvals-layout .detail-panel .approval-chip-avatar img,
.portal-scope .approval-detail-page .approval-chip-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-scope .approvals-layout .detail-panel .approval-chip-name,
.portal-scope .approval-detail-page .approval-chip-name {
  white-space: nowrap;
}

.portal-scope .approvals-layout .detail-panel .approval-chip-remove,
.portal-scope .approval-detail-page .approval-chip-remove {
  border: none;
  background: transparent;
  color: #4E5969;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.portal-scope .approvals-layout .detail-panel .approval-chip-remove .mdi,
.portal-scope .approval-detail-page .approval-chip-remove .mdi {
  font-size: 16px;
}

.portal-scope .approvals-layout .detail-panel .approval-add,
.portal-scope .approval-detail-page .approval-add {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 2px solid #3b64ff;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #3b64ff;
  cursor: pointer;
}

.portal-scope .approvals-layout .detail-panel .approval-add .mdi,
.portal-scope .approval-detail-page .approval-add .mdi {
  font-size: 22px;
}

.portal-scope .approvals-layout .detail-panel .approval-add:hover,
.portal-scope .approval-detail-page .approval-add:hover {
  background: #e5edff;
}

.portal-scope .list-empty,
.portal-scope .detail-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #94a3b8;
}

.portal-scope .empty-img {
  max-width: 240px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.portal-scope .empty-text {
  font-weight: 600;
  color: #94a3b8;
}

/* Payslips */
.portal-scope.salary-shell {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 56px);
  min-height: 0;
  overflow: hidden;
  color: #13121A;
}

.portal-scope.salary-shell .admin-page-head {
  flex: 0 0 auto;
  align-items: flex-end;
}

.portal-scope.salary-shell .salary-page {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.portal-scope.salary-shell {
  color: #13121A;
}

.portal-scope .salary-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
  overflow: hidden;
  padding-bottom: 16px;
}

.portal-scope .salary-topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-left: auto;
}

.portal-scope .salary-visibility-btn {
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  color: var(--portal-primary);
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.portal-scope .salary-visibility-btn .mdi {
  font-size: 18px;
  line-height: 1;
  color: inherit;
}

.portal-scope .salary-visibility-btn:hover {
  background: #e0e7ff;
  border-color: #a5b4fc;
}

.portal-scope .salary-visibility-btn:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.35);
  outline-offset: 2px;
}

.portal-scope .salary-calendar {
  padding: 14px 0;
}

.portal-scope .salary-calendar-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.portal-scope .salary-pay-period-selector {
  max-width: 360px;
}

.portal-scope .salary-pay-period-selector .form-label {
  margin-bottom: 6px;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
}

.portal-scope .salary-year {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.portal-scope .salary-year-value {
  background: transparent;
  padding: 4px 8px;
  border-radius: 2px;
  font-weight: 400;
  color: #13121A;
  letter-spacing: 0.4px;
}

.portal-scope .salary-year:hover .salary-year-value,
.portal-scope .salary-year-value:hover {
  background: #F2F2F5;
}

.portal-scope .salary-year-nav {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 2px;
  background: transparent;
  color: #64748b;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.portal-scope .salary-year-nav:hover {
  background: #F2F2F5;
  color: #13121A;
}

.portal-scope .salary-year-divider {
  width: 1px;
  height: 40px;
  background: #e5e7eb;
}

.portal-scope .salary-months {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: 1;
}

.portal-scope .salary-month {
  border: none;
  background: transparent;
  border-radius: 2px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #13121A;
  width: 56px;
  height: 56px;
  text-align: center;
  cursor: pointer;
}

.portal-scope .salary-month .month-number {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: #13121A;
}

.portal-scope .salary-month .month-label {
  font-size: 12px;
  color: #86909C;
  line-height: 1;
  margin-right: inherit;
}

.portal-scope .salary-month.is-active {
  background: var(--portal-primary);
  color: #fff;
  box-shadow: none;
}

.portal-scope .salary-month.is-active .month-label {
  color: #fff;
}

.portal-scope .salary-month.is-active .month-number {
  color: #fff;
}

.portal-scope .salary-month.has-data {
  box-shadow: none;
}

.portal-scope .salary-month.is-active.has-data {
  box-shadow: none;
}

.portal-scope .salary-month:hover {
  background: #F2F2F5;
}

.portal-scope .salary-month.is-active:hover {
  background: var(--portal-primary);
}

.portal-scope .salary-divider {
  height: 1px;
  width: 100%;
  background: #e5e7eb;
}

.portal-scope .salary-sheet-panel {
  background: #ffffff;
  border-radius: 8px;
  padding: 16px 0;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  flex: 1 1 auto;
  height: auto;
}

.portal-scope .salary-sheet-panel > :not(.salary-empty-state) {
  flex-shrink: 0;
}

.portal-scope .salary-inner-divider {
  height: 1px;
  width: 100%;
  background: #e5e7eb;
  margin: 16px 0;
}

.portal-scope .salary-empty-state {
  flex: 1 1 auto;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.portal-scope .salary-sheet {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.portal-scope .salary-sheet.salary-sheet-state {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-scope .salary-sheet-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.portal-scope .salary-sheet-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #13121A;
}

.portal-scope .salary-sheet-company {
  display: inline-flex;
  align-items: center;
  border-radius: 0;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 400;
  color: #86909C;
  border: solid 1px #E5E6EB;
  border-radius: 15px;
  background: transparent;
}

.portal-scope .salary-sheet-meta {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  margin-top: 12px;
  color: #475569;
  font-size: 14px;
  width: 100%;
  justify-content: space-between;
  align-items: center;
}

.portal-scope .salary-sheet-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.portal-scope .salary-sheet-row--privacy {
  flex: 1 1 auto;
  flex-wrap: wrap;
  row-gap: 10px;
}

.portal-scope .salary-sheet-row--privacy .salary-visibility-btn {
  margin-left: auto;
}

.portal-scope .salary-sheet-row .label {
  color: #6b7280;
  white-space: nowrap;
}

.portal-scope .salary-sheet-row .value {
  color: #13121A;
}

.portal-scope .salary-table {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  overflow: visible;
  margin-top: 24px;
}

.portal-scope .salary-sheet-panel > .salary-calendar,
.portal-scope .salary-sheet-panel > .salary-empty-state,
.portal-scope .salary-sheet-panel > .salary-sheet,
.portal-scope .salary-sheet-panel > .salary-table {
  padding: 0 16px;
}

.portal-scope .salary-toolbar {
  padding: 0;
  border: none;
  border-radius: 8px;
}

.portal-scope .salary-toolbar .card-body {
  padding: 16px;
}

.portal-scope .salary-toolbar .admin-toolbar {
  margin: 0;
}

.portal-scope .salary-toolbar .admin-filters {
  align-items: center;
}

.portal-scope .salary-toolbar .admin-toolbar .form-control,
.portal-scope .salary-toolbar .admin-toolbar .form-select,
.portal-scope .salary-toolbar .admin-toolbar input[type="month"] {
  height: 40px;
  min-height: 40px;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid var(--md-border-default, #c9cdd4);
  background: var(--md-fill-surface, #ffffff);
  color: var(--md-text-primary, #13121A);
}

.portal-scope .salary-toolbar .admin-toolbar .btn {
  height: 40px;
  min-height: 40px;
  line-height: 38px;
  font-weight: 400;
}

.portal-scope .salary-toolbar .admin-toolbar .btn[type="reset"],
.portal-scope .salary-toolbar .admin-toolbar .btn[data-action*="reset"],
.portal-scope .salary-toolbar .admin-toolbar .btn[id*="reset"] {
  background: transparent;
  border-color: transparent;
}

.portal-scope .salary-toolbar .admin-toolbar .btn[type="reset"]:hover,
.portal-scope .salary-toolbar .admin-toolbar .btn[data-action*="reset"]:hover,
.portal-scope .salary-toolbar .admin-toolbar .btn[id*="reset"]:hover {
  background: transparent;
  border-color: transparent;
  color: var(--md-brand-primary, #264AFF);
}

.portal-scope .salary-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  align-content: start;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  grid-auto-rows: calc((100% - 32px) / 3);
  overflow: hidden;
}

.portal-scope .salary-list .state-text {
  grid-column: 1 / -1;
  justify-self: center;
  align-self: center;
  text-align: center;
}

.portal-scope .salary-page .list-empty {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

.portal-scope .salary-slip-card {
  border: 1px solid transparent;
  border-radius: 4px;
  background: #fff;
  padding: 18px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: flex-start;
  align-content: start;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
  transition: border 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
  text-align: left;
  cursor: pointer;
  height: 100%;
}

.portal-scope .salary-slip-card:hover {
  /* border-color: rgba(59, 100, 255, 0.4); */
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.portal-scope .salary-slip-icon {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 2px;
}

.portal-scope .salary-slip-icon .brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--portal-primary, #264AFF);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.portal-scope .salary-slip-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portal-scope .salary-slip-title {
  font-weight: 700;
  color: #13121a;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-scope .salary-slip-company {
  font-size: 13px;
  color: #6b7280;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-scope .salary-slip-meta {
  display: grid;
  gap: 10px;
  font-size: 13px;
  padding-top: 8px;
  border-top: 1px solid #eef0f4;
}

.portal-scope .salary-slip-row {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: 0;
  padding-top: 6px;
  line-height: 1.4;
}

/* .portal-scope .salary-slip-row + .salary-slip-row {
  border-top: 1px dashed #f1f5f9;
} */

@media (max-height: 900px) {
  .portal-scope .salary-slip-row:nth-child(3) {
    display: none;
  }
}

.portal-scope .salary-slip-row .label {
  flex: 0 0 auto;
  white-space: nowrap;
}

.portal-scope .salary-slip-row .value {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-scope .salary-slip-actions {
  align-self: center;
}

@media (max-width: 1200px) {
  .portal-scope .salary-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .portal-scope .salary-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .portal-scope .salary-list {
    grid-template-columns: 1fr;
  }
}

.portal-scope .salary-detail-page {
  padding: 12px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.portal-scope .salary-detail-card {
  padding: 0;
  border: 1px solid #eef0f4;
}

.portal-scope .salary-detail-card .card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.portal-scope .salary-summary {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 16px;
  align-items: start;
}

.portal-scope .salary-summary-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #eef2ff;
  color: #1d4ed8;
  display: grid;
  place-items: center;
  font-size: 22px;
}

.portal-scope .salary-summary-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}

.portal-scope .salary-summary-subtitle {
  font-size: 13px;
  color: #6b7280;
  margin-top: 2px;
}

.portal-scope .salary-summary-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 12px;
  margin-top: 10px;
  font-size: 13px;
  grid-column: 1 / -1;
}

.portal-scope .salary-summary-row {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  min-width: 0;
}

.portal-scope .salary-summary-row .label {
  flex: 0 0 auto;
  white-space: nowrap;
}

.portal-scope .salary-summary-row .value {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-scope .salary-summary-actions {
  display: flex;
  align-items: flex-start;
}

.portal-scope .salary-mask-btn {
  white-space: nowrap;
}

.portal-scope .salary-table-wrap {
  border: none;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  position: relative;
}

.portal-scope .salary-table-wrap::after {
  content: none;
}

.portal-scope .salary-watermark-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(var(--wm-cols, 3), minmax(0, 1fr));
  grid-template-rows: repeat(var(--wm-rows, 3), 1fr);
  grid-auto-rows: 1fr;
  align-items: center;
  justify-items: center;
  gap: 32px;
  align-content: stretch;
  pointer-events: none;
  z-index: 3;
}

.portal-scope .salary-watermark-grid span {
  font-size: 28px;
  color: #13121A;
  opacity: 0.06;
  transform: rotate(-15deg);
  white-space: nowrap;
}

.portal-scope .salary-detail-table-grid {
  position: relative;
  z-index: 1;
}

.portal-scope .salary-detail-table-grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 860px;
}

.portal-scope .salary-detail-table-grid th,
.portal-scope .salary-detail-table-grid td {
  border: 1px solid #e5e7eb;
  padding: 12px 14px;
  text-align: left;
  vertical-align: middle;
  line-height: 1.5;
}

.portal-scope .salary-detail-table-grid td {
  background: #ffffff;
}

.portal-scope .salary-table-info th,
.portal-scope .salary-table-meta th {
  background: #f8fafc;
  font-weight: 600;
}

.portal-scope .salary-table-meta th {
  font-weight: 500;
}

.portal-scope .salary-section {
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.2px;
  border-radius: 0;
}

.portal-scope .salary-section-earnings {
  background: #fdecc8;
}

.portal-scope .salary-section-deductions {
  background: #dbeafe;
}

.portal-scope .salary-section-net {
  background: #fef9c3;
}

.portal-scope .salary-region-tabs {
  gap: 6px;
}

.portal-scope .salary-region-tabs.btn-group > .btn {
  border-radius: 6px !important;
  font-weight: 700;
}

.portal-scope .salary-region-tabs.btn-group > .btn.active {
  border-color: #4f46e5;
  background: #4f46e5;
  color: #fff;
  box-shadow: 0 6px 14px rgba(79, 70, 229, 0.22);
}

.portal-scope .salary-group {
  font-weight: 600;
  background: #f8fafc;
  text-align: center;
  min-width: 110px;
}

.portal-scope .salary-label {
  color: #13121A;
}

.portal-scope .salary-value {
  color: #13121A;
  text-align: right;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.portal-scope .salary-value--left {
  text-align: left;
  white-space: pre-wrap;
}

.portal-scope .salary-sensitive {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.portal-scope .salary-empty {
  background: #fff;
}

.portal-scope .salary-table-total th {
  background: #f8fafc;
  font-weight: 700;
}

.portal-scope .salary-table-total td {
  background: #f8fafc;
  font-weight: 700;
}

.portal-scope .salary-detail-table-grid.salary-detail-table-grid--lite th,
.portal-scope .salary-detail-table-grid.salary-detail-table-grid--lite td {
  border: none;
  border-bottom: 1px solid #eef2f7;
  padding: 16px;
}

.portal-scope .salary-slip-table .salary-item-label {
  font-weight: 600;
  color: #13121A;
}

.portal-scope .salary-label-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  margin-left: 4px;
  border: 1px solid #9aa4b2;
  border-radius: 50%;
  background: #ffffff;
  color: #667085;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  vertical-align: super;
  cursor: help;
  padding: 0;
}

.portal-scope .salary-help-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  vertical-align: super;
}

.portal-scope .salary-help-tooltip {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 20;
  width: max-content;
  max-width: min(360px, calc(100vw - 48px));
  padding: 8px 10px;
  border: 1px solid #d9e2f3;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
  color: #344054;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.portal-scope .salary-help-tooltip::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 100%;
  width: 8px;
  height: 8px;
  border-right: 1px solid #d9e2f3;
  border-bottom: 1px solid #d9e2f3;
  background: #ffffff;
  transform: translateY(-4px) rotate(45deg);
}

.portal-scope .salary-help-wrap:hover .salary-help-tooltip,
.portal-scope .salary-help-wrap:focus-within .salary-help-tooltip,
.portal-scope .salary-help-wrap.is-open .salary-help-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.portal-scope .salary-slip-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.portal-scope .salary-slip-table .salary-section {
  text-align: center;
}

.portal-scope .salary-slip-table th,
.portal-scope .salary-slip-table td {
  border: 1px solid #eef2f7;
}

.portal-scope .salary-table-total .salary-total-label,
.portal-scope .salary-table-total .salary-total-value {
  background: #f3f5ff;
  font-weight: 700;
}

.portal-scope .salary-table-total .salary-total-value {
  text-align: right;
}

.portal-scope .salary-table-total .salary-total-label.is-warning,
.portal-scope .salary-table-total .salary-total-value.is-warning {
  background: #fff4df;
}

.portal-scope .salary-table-total .salary-total-value.is-warning {
  color: #f97316;
}

.portal-scope .salary-net-row th,
.portal-scope .salary-net-row td {
  background: #eef1ff;
  font-weight: 700;
}

.portal-scope .salary-net-row .salary-net-value {
  color: #2563eb;
  text-align: right;
}

.portal-scope .salary-note-row td {
  background: #ffffff;
  color: #13121A;
}

.portal-scope .salary-detail-table-grid.salary-detail-table-grid--lite tr:last-child th,
.portal-scope .salary-detail-table-grid.salary-detail-table-grid--lite tr:last-child td {
  border-bottom: none;
}

.portal-scope .salary-detail-table-grid.salary-detail-table-grid--lite .salary-section-earnings {
  background: #eef1ff;
}

.portal-scope .salary-detail-table-grid.salary-detail-table-grid--lite .salary-section-deductions {
  background: #fff4df;
}

.portal-scope .salary-detail-table-grid.salary-detail-table-grid--lite .salary-section-net {
  background: #fdf7d7;
}

.portal-scope .salary-detail-table-grid.salary-detail-table-grid--lite .salary-group {
  background: #fff;
}

.portal-scope .salary-detail-table-grid.salary-detail-table-grid--lite .salary-table-total th,
.portal-scope .salary-detail-table-grid.salary-detail-table-grid--lite .salary-table-total td {
  font-weight: 700;
}

.portal-scope .salary-detail-table-grid.salary-detail-table-grid--lite {
  min-width: 0;
  width: 100%;
}

@media (max-width: 960px) {
  .portal-scope .salary-slip-card {
    grid-template-columns: 1fr;
  }
  .portal-scope .salary-slip-actions {
    justify-self: flex-start;
  }
  .portal-scope .salary-summary {
    grid-template-columns: 1fr;
  }
  .portal-scope .salary-summary-actions {
    justify-self: flex-start;
  }
  .portal-scope .salary-detail-table-grid th,
  .portal-scope .salary-detail-table-grid td {
    padding: 10px 12px;
  }
}

@media (max-width: 1100px) {
  .portal-scope .salary-calendar-row {
    flex-direction: column;
    align-items: stretch;
  }
  .portal-scope .salary-year-divider {
    width: 100%;
    height: 1px;
  }
  .portal-scope .salary-months {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .portal-scope .salary-month {
    flex: 0 0 56px;
  }
}

@media (max-width: 640px) {
  .portal-scope .salary-topbar {
    justify-content: flex-start;
  }
  .portal-scope .salary-month {
    flex: 0 0 56px;
  }
}

/* Request form */
.portal-scope .request-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.portal-scope .workflow-application-page {
  --workflow-ink: #17235f;
  --workflow-muted: #5d6b99;
  --workflow-line: #d8e2fb;
  --workflow-primary: #2864f0;
  --workflow-soft: #eef5ff;
  --workflow-card: #fbfdff;
}

.portal-scope .workflow-application-card {
  overflow: hidden;
}

.portal-scope .workflow-application-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 146px;
  padding: 34px 44px;
  border-bottom: 1px solid var(--workflow-line);
  background:
    radial-gradient(circle at 92% 20%, rgba(56, 119, 255, .16), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f7fbff 58%, #eef5ff 100%);
}

.portal-scope .workflow-application-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border: 2px solid #d9e2ff;
  border-radius: 50%;
  color: #fff;
  background: #f8fbff;
}

.portal-scope .workflow-application-icon .mdi {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 4px;
  background: #343434;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .22);
  font-size: 28px;
}

.portal-scope .workflow-application-title-block h1 {
  margin: 0;
  color: var(--workflow-ink);
  font-size: 34px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
}

.portal-scope .workflow-application-title-block p {
  margin: 10px 0 0;
  color: #314071;
  font-size: 18px;
}

.portal-scope .workflow-application-code {
  color: var(--workflow-primary);
  font-size: 42px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

.portal-scope .workflow-application-body {
  padding: 28px 30px 32px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.portal-scope .workflow-section-title {
  color: var(--workflow-ink);
  font-size: 22px;
  font-weight: 800;
}

.portal-scope .workflow-section-title::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 18px;
  margin-right: 9px;
  border-radius: 5px;
  background: var(--workflow-primary);
  vertical-align: -2px;
}

.portal-scope .workflow-process-panel,
.portal-scope .workflow-cc-panel {
  margin-top: 18px;
  padding: 18px 20px 20px;
  border: 1px solid var(--workflow-line);
  border-radius: 16px;
  background: #fff;
}

.portal-scope .request-detail-card {
  margin-top: 0;
  border: 1px solid #d8e2fb;
  border-radius: 20px;
  height: 100%;
  overflow-y: auto;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(45, 86, 160, .12);
}

.portal-scope .request-detail-card .detail-body {
  width: min(96%, 1520px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  padding-bottom: 120px;
}

.portal-scope.is-reimbursement-apply .request-detail-card .detail-body {
  width: min(86%, 1600px);
  overflow-x: hidden;
}

.portal-scope.is-reimbursement-apply .request-detail-page {
  overflow-x: hidden;
}

.portal-scope.is-reimbursement-apply .request-detail-page .actions {
  width: min(86%, 1600px);
}

.portal-scope .request-detail-card .card-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  padding: 0;
  border-bottom: none;
}

.portal-scope .request-detail-page h2 {
  margin: 0;
  color: #0f172a;
}

.portal-scope .request-detail-page h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #0f172a;
}

.portal-scope .request-detail-page .meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: #475569;
  font-size: 14px;
}

.portal-scope .request-detail-page .section {
  margin-top: 0px;
  padding-top: 0px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.portal-scope .request-detail-page .muted {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.portal-scope .request-detail-page .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 0;
  align-items: stretch;
  min-width: 0;
}

.portal-scope .request-detail-page .form-grid.nested {
  grid-template-columns: repeat(4, minmax(170px, 1fr));
}

.portal-scope .request-detail-page .form-item {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  padding: 15px 17px;
  border: 1px solid var(--workflow-line);
  border-radius: 13px;
  background: var(--workflow-card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86);
}

.portal-scope .request-detail-page .form-item.full {
  grid-column: 1 / -1;
  min-width: 0;
}

.portal-scope .request-detail-page .field-label {
  font-weight: 500;
  color: var(--workflow-muted);
  font-size: 14px;
  line-height: 1.35;
}

.portal-scope .request-detail-page .field-help-inline {
  margin-left: 6px;
  color: #6b7280;
  font-weight: 500;
  font-size: 12px;
}

.portal-scope .request-detail-page .field-help {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
}

.portal-scope .request-detail-page .standard-item-file-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.portal-scope .request-detail-page .standard-item-file-help {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.portal-scope .request-detail-page .standard-item-file-help__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 1px solid #94a3b8;
  border-radius: 50%;
  background: #fff;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: help;
}

.portal-scope .request-detail-page .standard-item-file-help__icon:focus-visible {
  outline: 2px solid #3157f4;
  outline-offset: 2px;
}

.portal-scope .request-detail-page .standard-item-file-help__tooltip {
  position: absolute;
  z-index: 30;
  left: 50%;
  bottom: calc(100% + 8px);
  width: max-content;
  max-width: min(320px, calc(100vw - 48px));
  padding: 8px 10px;
  border: 1px solid #d9e2f3;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .14);
  color: #344054;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -4px);
  transition: opacity .16s ease, transform .16s ease;
}

.portal-scope .request-detail-page .standard-item-file-help:hover .standard-item-file-help__tooltip,
.portal-scope .request-detail-page .standard-item-file-help:focus-within .standard-item-file-help__tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.portal-scope .request-detail-page .required {
  color: #ef4444;
  margin-left: 4px;
}

.portal-scope .request-detail-page .field-control {
  width: 100%;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #dce6fb;
  padding: 11px 13px;
  font-size: 16px;
  color: var(--workflow-ink);
  font-weight: 700;
}

.portal-scope .request-detail-page .date-field {
  position: relative;
}

.portal-scope .request-detail-page .date-field .date-input {
  padding-right: 40px;
  cursor: pointer;
}

.portal-scope .request-detail-page .leave-half-day-field .date-input {
  padding-right: 112px;
}

.portal-scope .request-detail-page .leave-half-day-select {
  position: absolute;
  right: 40px;
  top: 50%;
  z-index: 4;
  height: 32px;
  min-width: 64px;
  transform: translateY(-50%);
  border: 1px solid #dce6fb;
  border-radius: 8px;
  background: #f8fbff;
  color: var(--workflow-ink);
  font-size: 13px;
  font-weight: 700;
  padding: 0 8px;
}

.portal-scope .request-detail-page .date-field .date-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  z-index: 3;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: transparent;
  background: url("../icons/calendar.svg") center / 16px 16px no-repeat;
  font-size: 0;
  line-height: 0;
  pointer-events: none;
}

.portal-scope .request-detail-page .date-field .date-hour-picker {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: transparent;
  cursor: pointer;
  opacity: 0;
}

.portal-scope .request-detail-page .date-field .date-input[data-date-hour="true"] {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.portal-scope .request-detail-page .date-field input::-webkit-calendar-picker-indicator {
  opacity: 0;
  position: absolute;
  right: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.portal-scope .request-detail-page .field-display {
  border: none;
  background: transparent;
  padding: 10px 12px;
  color: var(--workflow-ink);
  font-weight: 750;
}

.portal-scope .request-detail-page .field-control::placeholder {
  color: #C9CDD4;
  font-family: inherit;
  font-weight: 400;
  font-style: normal;
  opacity: 1;
}

.portal-scope .request-detail-page textarea.form-control {
  resize: vertical;
  min-height: 96px;
  overflow: auto;
}

.portal-scope .request-detail-page .rich-text-editor {
  overflow: hidden;
  border: 1px solid #dce6fb;
  border-radius: 10px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.portal-scope .request-detail-page .rich-text-editor:focus-within {
  border-color: rgba(59, 100, 255, .6);
  box-shadow: 0 0 0 2px rgba(59, 100, 255, .15);
}

.portal-scope .request-detail-page .rich-text-editor.is-invalid {
  border-color: rgba(239, 68, 68, .6);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, .12);
}

.portal-scope .request-detail-page .rich-text-editor__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 7px 9px;
  border-bottom: 1px solid #e6ecf8;
  background: #f8faff;
}

.portal-scope .request-detail-page .rich-text-editor__toolbar button {
  min-width: 32px;
  height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #3f4d6b;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.portal-scope .request-detail-page .rich-text-editor__toolbar button:hover,
.portal-scope .request-detail-page .rich-text-editor__toolbar button:focus-visible {
  background: #e8eefc;
  color: #244fc7;
  outline: none;
}

.portal-scope .request-detail-page .rich-text-editor__separator {
  width: 1px;
  height: 20px;
  margin: 0 3px;
  background: #dbe3f2;
}

.portal-scope .request-detail-page .rich-text-editor__content.field-control {
  min-height: 150px;
  max-height: 360px;
  overflow-y: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-weight: 400;
  line-height: 1.6;
  white-space: normal;
}

.portal-scope .request-detail-page .rich-text-editor__content:empty::before {
  color: #c9cdd4;
  content: attr(data-placeholder);
  pointer-events: none;
}

.portal-scope .request-detail-page .rich-text-editor__content p,
.portal-scope .request-detail-page .rich-text-editor__content ul,
.portal-scope .request-detail-page .rich-text-editor__content ol,
.portal-scope .request-detail-page .rich-text-editor__content blockquote {
  margin: 0 0 .65em;
}

.portal-scope .request-detail-page .rich-text-editor__content blockquote {
  padding-left: 12px;
  border-left: 3px solid #cbd8f3;
  color: #5f6d87;
}

.portal-scope .request-detail-page .rich-text-editor.is-readonly {
  background: #f8fafc;
}

.portal-scope .request-detail-page .rich-text-editor.is-readonly .rich-text-editor__toolbar {
  display: none;
}

.portal-scope :is(.request-detail-page, .self-change-page) .portal-select__control {
  border-radius: 10px;
  border-color: #dce6fb;
  min-height: 46px;
  background: #ffffff;
}

.portal-scope :is(.request-detail-page, .self-change-page) .portal-select__input::placeholder {
  color: #C9CDD4;
  font-family: inherit;
  font-weight: 400;
  font-style: normal;
  opacity: 1;
}

.portal-scope .workflow-application-page .workflow-application-hero {
  gap: 14px;
  min-height: 112px;
  padding: 22px 34px;
}

.portal-scope .workflow-application-page .workflow-application-icon {
  width: 58px;
  height: 58px;
}

.portal-scope .workflow-application-page .workflow-application-icon .mdi {
  width: 40px;
  height: 40px;
  font-size: 24px;
}

.portal-scope .workflow-application-page .workflow-application-title-block h1 {
  font-size: 28px;
}

.portal-scope .workflow-application-page .workflow-application-title-block p {
  margin-top: 6px;
  font-size: 15px;
}

.portal-scope .workflow-application-page .workflow-application-code {
  font-size: 34px;
}

.portal-scope .workflow-application-page .workflow-application-body {
  padding: 18px 26px 22px;
}

.portal-scope .workflow-application-page .request-detail-card .detail-body {
  padding-bottom: 72px;
}

.portal-scope .workflow-application-page.request-detail-page .section {
  margin-bottom: 14px;
  gap: 8px;
}

.portal-scope .workflow-application-page.request-detail-page .form-grid {
  gap: 10px 12px;
}

.portal-scope .workflow-application-page.request-detail-page .form-item {
  gap: 5px;
  padding: 10px 13px;
  border-radius: 10px;
}

.portal-scope .workflow-application-page.request-detail-page .field-label {
  font-size: 13px;
  line-height: 1.25;
}

.portal-scope .workflow-application-page.request-detail-page .field-control {
  min-height: 38px;
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 14px;
}

.portal-scope .workflow-application-page.request-detail-page .field-display {
  padding: 8px 10px;
}

.portal-scope .workflow-application-page.request-detail-page textarea.form-control {
  min-height: 72px;
}

.portal-scope :is(.workflow-application-page.request-detail-page, .self-change-page) .portal-select__control {
  min-height: 38px;
  border-radius: 8px;
}

.portal-scope .portal-select {
  position: relative;
  width: 100%;
}

.portal-scope .portal-select.is-open {
  z-index: 1200;
}

.portal-scope .portal-select__control {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 6px 10px;
  background: #fff;
  cursor: text;
}

.portal-scope .portal-select__control:not(.portal-select--multi) {
  flex-wrap: nowrap;
}

.portal-scope .portal-select__control.is-invalid {
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.12);
}

.portal-scope .portal-cascader-control.is-invalid .portal-cascader-select {
  border-color: rgba(239, 68, 68, 0.6);
}

.portal-scope .portal-cascader-control.is-invalid .portal-cascader-select:not(.portal-select--disabled) {
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.12);
}

.portal-scope .portal-select__chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.portal-scope .portal-select__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 8px;
  background: #eef2ff;
  color: #1f2937;
  font-size: 12px;
}

.portal-scope .portal-select__chip button {
  border: none;
  background: transparent;
  padding: 0;
  color: #64748b;
  cursor: pointer;
}

.portal-scope .portal-select__input {
  border: none;
  outline: none;
  flex: 1 1 80px;
  min-width: 80px;
  max-width: 100%;
  padding: 4px 0;
  font-size: 14px;
  background: transparent;
  color: #0f172a;
}

.portal-scope .portal-select__control:not(.portal-select--multi) .portal-select__chips:empty {
  display: none;
}

.portal-scope .portal-select__control:not(.portal-select--multi) .portal-select__input {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-scope .portal-select__caret {
  display: inline-block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  border: 0;
  background: url("../icons/expand-more.svg") center / 16px 16px no-repeat;
  pointer-events: none;
}

.portal-scope .portal-select__control:not(.portal-select--multi) .portal-select__caret {
  margin-left: auto;
}

.portal-scope .portal-select__menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  max-height: 220px;
  overflow: auto;
  z-index: 1200;
  display: none;
}

.portal-scope .portal-select--file-type .portal-select__menu {
  max-height: 360px;
}

.portal-select__menu.is-floating {
  position: fixed;
  left: auto;
  right: auto;
  top: auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  max-height: none;
  overflow: visible;
  z-index: 3000;
  display: block;
}

.portal-scope .portal-select.is-open .portal-select__menu {
  display: block;
}

.portal-scope .portal-select__option {
  padding: 8px 10px;
  font-size: 14px;
  color: #0f172a;
  cursor: pointer;
}

.portal-scope .portal-select__option:is(:hover, .is-focused) {
  background: #f8fafc;
}

.portal-scope .portal-select__more {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-top: 1px solid #e5e7eb;
  background: #fff;
  color: #3159d9;
  text-align: left;
  cursor: pointer;
}

.portal-scope .portal-select__more:hover {
  background: #f8fafc;
}

.portal-scope .portal-select__more.is-hidden {
  display: none;
}

.portal-select__menu.is-floating .portal-select__option {
  padding: 8px 10px;
  font-size: 14px;
  color: #0f172a;
  cursor: pointer;
}

.portal-select__menu.is-floating .portal-select__option:hover {
  background: #f8fafc;
}

.portal-scope .portal-select__option.is-selected {
  background: #eef2ff;
  font-weight: 600;
}

.portal-scope .portal-select__option--bilingual,
.portal-select__menu.is-floating .portal-select__option--bilingual {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 400;
}

.portal-scope .portal-select__option--bilingual:last-child,
.portal-select__menu.is-floating .portal-select__option--bilingual:last-child {
  border-bottom: 0;
}

.portal-select__option-title {
  color: #171717;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.portal-select__option-subtitle {
  color: #666;
  font-size: 13px;
  line-height: 1.4;
}

.portal-select__menu.is-floating .portal-select__option.is-selected {
  background: #eef2ff;
  font-weight: 600;
}

.portal-scope .portal-select__option.is-hidden {
  display: none;
}

.portal-select__menu.is-floating .portal-select__option.is-hidden {
  display: none;
}

.portal-scope .portal-select__empty {
  padding: 8px 10px;
  color: #94a3b8;
  font-size: 13px;
}

.portal-select__menu.is-floating .portal-select__empty {
  padding: 8px 10px;
  color: #94a3b8;
  font-size: 13px;
}

.portal-scope .portal-select--disabled .portal-select__control {
  background: #f8fafc;
  cursor: not-allowed;
}

.portal-scope .portal-select--disabled .portal-select__input {
  cursor: not-allowed;
}

.portal-scope .portal-select--disabled .portal-select__menu {
  display: none !important;
}

.portal-scope .request-detail-page .field-control:focus {
  border-color: rgba(59, 100, 255, 0.6);
  box-shadow: 0 0 0 2px rgba(59, 100, 255, 0.15);
  outline: none;
}

.portal-scope .request-detail-page .field-control.is-invalid {
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.12);
}

.portal-scope .request-detail-page .group-block {
  grid-column: 1 / -1;
  padding: 18px 20px 20px;
  border: 1px solid var(--workflow-line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(238, 245, 255, .86) 0, rgba(238, 245, 255, .86) 58px, #ffffff 58px, #ffffff 100%);
  box-shadow: 0 10px 28px rgba(48, 86, 160, .08);
}

.portal-scope .request-detail-page .group-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  margin-bottom: 18px;
  color: var(--workflow-ink);
  font-size: 20px;
  line-height: 24px;
  font-weight: 800;
  background: transparent;
}

.portal-scope .request-detail-page .group-actions {
  display: flex;
  align-items: center;
}

.portal-scope .request-detail-page .group-rows {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.portal-scope .request-detail-page .group-row {
  border: 1px solid #dfe6fb;
  border-radius: 14px;
  padding: 16px 18px;
  background: #ffffff;
  overflow: visible;
}

.portal-scope .request-detail-page .group-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.portal-scope .request-detail-page .business-travel-detail-block {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow-x: hidden;
  overflow-y: auto;
}

.portal-scope .request-detail-page .business-travel-items {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.portal-scope .request-detail-page .business-travel-item-card {
  padding: 20px 24px 22px;
  border-radius: 6px;
  background: #f7f7fb;
  container-type: inline-size;
}

.portal-scope .request-detail-page .business-travel-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid #e5e7eb;
  color: #111827;
  font-size: 18px;
}

.portal-scope .request-detail-page .business-travel-card-action {
  border: 0;
  background: transparent;
  color: #6b7280;
}

.portal-scope .request-detail-page .business-travel-card-action:disabled {
  color: #c9cdd4;
}

.portal-scope .request-detail-page .business-travel-trip-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(170px, .8fr) minmax(420px, 1.7fr);
  gap: 16px 20px;
  padding: 18px 0;
  border-bottom: 1px solid #e5e7eb;
}

.portal-scope .request-detail-page .business-travel-inline-field .form-item,
.portal-scope .request-detail-page .business-travel-time-controls .form-item,
.portal-scope .request-detail-page .business-travel-route-control .form-item {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.portal-scope .request-detail-page .business-travel-inline-field .portal-radio-group {
  display: grid;
  grid-template-columns: repeat(var(--portal-radio-option-count, 2), minmax(0, 1fr));
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  min-width: var(--portal-radio-group-min-width, 0);
  height: 40px;
  min-height: 40px;
  padding: 4px;
  gap: 0;
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
}

.portal-scope .request-detail-page .business-travel-inline-field .workflow-radio-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 32px;
  height: 32px;
  padding: 5px 12px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #4e5969;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-scope .request-detail-page .business-travel-inline-field .workflow-radio-option:hover {
  border-color: transparent;
  background: transparent;
}

.portal-scope .request-detail-page .business-travel-inline-field .workflow-radio-group .btn-check:checked + .workflow-radio-option,
.portal-scope .request-detail-page .business-travel-inline-field .workflow-radio-option.is-selected {
  border-color: transparent;
  background: var(--portal-primary-soft);
  color: var(--portal-primary);
  font-weight: 400;
}

.portal-scope .request-detail-page .business-travel-inline-field .form-control,
.portal-scope .request-detail-page .business-travel-inline-field .form-select,
.portal-scope .request-detail-page .business-travel-inline-field .portal-select__control,
.portal-scope .request-detail-page .business-travel-time-controls .form-control,
.portal-scope .request-detail-page .business-travel-time-controls .portal-select__control,
.portal-scope .request-detail-page .business-travel-route-control .portal-cascader-control {
  width: 100%;
}

.portal-scope .request-detail-page .business-travel-inline-field .form-select,
.portal-scope .request-detail-page .business-travel-inline-field .portal-select__control,
.portal-scope .request-detail-page .business-travel-inline-field .portal-select__menu,
.portal-scope .request-detail-page .business-travel-time-controls .date-field,
.portal-scope .request-detail-page .business-travel-time-controls .date-input,
.portal-scope .request-detail-page .business-travel-time-controls .form-control,
.portal-scope .request-detail-page .business-travel-time-controls .portal-select__control,
.portal-scope .request-detail-page .business-travel-route-control .form-select,
.portal-scope .request-detail-page .business-travel-route-control .portal-cascader-select,
.portal-scope .request-detail-page .business-travel-route-control .portal-select__menu {
  border-radius: 4px;
}

.portal-scope .request-detail-page .business-travel-inline-field .form-select,
.portal-scope .request-detail-page .business-travel-inline-field .portal-select__control,
.portal-scope .request-detail-page .business-travel-time-controls .date-input,
.portal-scope .request-detail-page .business-travel-time-controls .form-control,
.portal-scope .request-detail-page .business-travel-time-controls .portal-select__control,
.portal-scope .request-detail-page .business-travel-route-control .form-select,
.portal-scope .request-detail-page .business-travel-route-control .portal-cascader-select {
  border-color: #dedfe3;
}

.portal-scope .request-detail-page .business-travel-time-controls {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.portal-scope .request-detail-page .business-travel-time-dash,
.portal-scope .request-detail-page .business-travel-duration {
  color: #4b5563;
}

.portal-scope .request-detail-page .business-travel-stopover-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  padding: 10px 14px;
  border: 1px solid #e4e7ff;
  background: #f1f3ff;
  color: #4b5563;
}

.portal-scope .request-detail-page .business-travel-stopover-tip .mdi {
  color: #4f5df5;
  font-size: 18px;
}

.portal-scope .request-detail-page .business-travel-route-list {
  margin-top: 14px;
}

.portal-scope .request-detail-page .business-travel-route-line {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 120px;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  border-bottom: 1px solid #e5e7eb;
}

.portal-scope .request-detail-page .business-travel-route-label {
  color: #4b5563;
  font-size: 15px;
}

.portal-scope .request-detail-page .business-travel-route-control {
  min-width: 0;
}

.portal-scope .request-detail-page .business-travel-stopover-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  width: 72px;
}

.portal-scope .request-detail-page .business-travel-icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #6b7280;
}

.portal-scope .request-detail-page .business-travel-icon-action:disabled {
  color: #d1d5db;
}

.portal-scope .request-detail-page .business-travel-icon-action.is-danger {
  color: #ef4444;
}

.portal-scope .request-detail-page .business-travel-stopover-drag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 1px;
  background: #f2f2f5;
  color: #86909c;
  cursor: grab;
}

.portal-scope .request-detail-page .business-travel-stopover-drag:hover {
  background: #f2f2f5;
}

.portal-scope .request-detail-page .business-travel-stopover-drag:active {
  cursor: grabbing;
}

.portal-scope .request-detail-page .business-travel-stopover-dots {
  display: grid;
  grid-template-columns: repeat(2, 3px);
  grid-auto-rows: 3px;
  gap: 3px;
}

.portal-scope .request-detail-page .business-travel-stopover-dots span {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

.portal-scope .request-detail-page .business-travel-stopover-line.is-dragging {
  opacity: .55;
}

.portal-scope .request-detail-page .business-travel-stopover-line.is-drag-over .business-travel-route-control {
  position: relative;
  border-radius: 4px;
  outline: 0;
}

.portal-scope .request-detail-page .business-travel-stopover-line.is-drag-over .business-travel-route-control::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px dashed var(--portal-primary);
  border-radius: 4px;
  pointer-events: none;
}

.portal-scope .request-detail-page .business-travel-add-stopover {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 40px;
  margin-top: 16px;
  border: 1px solid #c7d2fe;
  border-radius: 4px;
  background: #f5f6ff;
  color: #3158f5;
  font-size: 15px;
}

.portal-scope .request-detail-page .form-grid.nested {
  margin-top: 0;
  gap: 12px;
  padding: 0;
}

.portal-scope .request-detail-page .group-actions .btn-link {
  color: var(--portal-primary);
}

.portal-scope .request-detail-page .group-actions .btn-link:hover {
  color: var(--portal-primary);
}

.portal-scope .request-detail-page .actions {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #d8e2fb;
  border-radius: 14px;
  padding: 16px;
  width: min(96%, 1520px);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 -12px 30px rgba(45, 86, 160, .1);
  box-sizing: border-box;
}

.portal-scope .request-detail-page .actions .btn {
  border-radius: 4px;
}

.portal-scope .request-detail-page .group-footer {
  display: flex;
  justify-content: flex-end;
  padding: 16px 0;
}

.portal-scope .request-detail-page .group-footer .btn {
  padding: 8px 16px;
  border-radius: 4px;
  color: var(--portal-primary);
  border-color: var(--portal-primary);
}

.portal-scope .request-detail-page .reimbursement-detail-block {
  border: 1px solid #dfe6fb;
  border-radius: 16px;
  background: #ffffff;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}

.portal-scope .request-detail-page .reimbursement-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 10px 16px;
  background: #f4f6ff;
  border-bottom: 1px solid #dfe6fb;
}

.portal-scope .request-detail-page .reimbursement-detail-title {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  color: #141a44;
  font-size: 22px;
  font-weight: 800;
}

.portal-scope .request-detail-page .reimbursement-detail-count {
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
}

.portal-scope .request-detail-page .reimbursement-detail-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 12px;
  font-size: 13px;
  border-color: var(--portal-primary);
  color: var(--portal-primary);
  background: #ffffff;
}

.portal-scope .request-detail-page .reimbursement-detail-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-gutter: stable;
}

.portal-scope .request-detail-page .reimbursement-detail-table-wrap.is-select-open {
  padding-bottom: 0;
}

.portal-scope .request-detail-page .reimbursement-detail-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.portal-scope .request-detail-page .reimbursement-detail-table--corporate {
  min-width: 2180px;
}

.portal-scope .request-detail-page .reimbursement-detail-table th {
  height: 42px;
  padding: 8px 12px;
  color: #1f2937;
  background: #ffffff;
  border-bottom: 1px solid #E5E6EB;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.portal-scope .request-detail-page .finance-detail-header-help-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  vertical-align: super;
}

.portal-scope .request-detail-page .finance-detail-header-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  margin-left: 4px;
  padding: 0;
  border: 1px solid #9aa4b2;
  border-radius: 50%;
  background: #ffffff;
  color: #667085;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.portal-scope .request-detail-page .finance-detail-header-help:focus-visible {
  outline: 2px solid #8ea2ff;
  outline-offset: 2px;
}

.portal-scope .request-detail-page .finance-detail-header-help-popover {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  z-index: 20;
  display: none;
  width: max-content;
  max-width: 260px;
  transform: translateX(-50%);
  padding: 8px 10px;
  border: 1px solid #d7def4;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
  color: #334155;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  white-space: normal;
  text-align: left;
}

.portal-scope .request-detail-page .finance-detail-header-help-popover::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -5px;
  width: 8px;
  height: 8px;
  transform: translateX(-50%) rotate(45deg);
  border-left: 1px solid #d7def4;
  border-top: 1px solid #d7def4;
  background: #ffffff;
}

.portal-scope .request-detail-page .finance-detail-header-help-wrap:hover .finance-detail-header-help-popover,
.portal-scope .request-detail-page .finance-detail-header-help-wrap:focus-within .finance-detail-header-help-popover,
.portal-scope .request-detail-page .finance-detail-header-help-wrap.is-open .finance-detail-header-help-popover {
  display: block;
}

.portal-scope .request-detail-page .reimbursement-detail-table td {
  padding: 10px 12px;
  vertical-align: top;
  border-bottom: 1px solid #F0F2F5;
}

.portal-scope .request-detail-page .reimbursement-detail-table tbody tr:last-child td {
  border-bottom: none;
}

.portal-scope .request-detail-page .reimbursement-detail-table th:nth-child(1),
.portal-scope .request-detail-page .reimbursement-detail-table td:nth-child(1) {
  width: 22%;
}

.portal-scope .request-detail-page .reimbursement-detail-table th:nth-child(2),
.portal-scope .request-detail-page .reimbursement-detail-table td:nth-child(2) {
  width: 18%;
}

.portal-scope .request-detail-page .reimbursement-detail-table th:nth-child(3),
.portal-scope .request-detail-page .reimbursement-detail-table td:nth-child(3) {
  width: 16%;
}

.portal-scope .request-detail-page .reimbursement-detail-table th:nth-child(4),
.portal-scope .request-detail-page .reimbursement-detail-table td:nth-child(4) {
  width: 16%;
}

.portal-scope .request-detail-page .reimbursement-detail-table th:nth-child(5),
.portal-scope .request-detail-page .reimbursement-detail-table td:nth-child(5) {
  width: 20%;
}

.portal-scope .request-detail-page .reimbursement-detail-table th:nth-child(6),
.portal-scope .request-detail-page .reimbursement-detail-table td:nth-child(6) {
  width: 8%;
}

.portal-scope .request-detail-page .reimbursement-detail-table--corporate th:nth-child(1),
.portal-scope .request-detail-page .reimbursement-detail-table--corporate td:nth-child(1) {
  width: 15%;
}

.portal-scope .request-detail-page .reimbursement-detail-table--corporate th:nth-child(2),
.portal-scope .request-detail-page .reimbursement-detail-table--corporate td:nth-child(2) {
  width: 12%;
}

.portal-scope .request-detail-page .reimbursement-detail-table--corporate th:nth-child(3),
.portal-scope .request-detail-page .reimbursement-detail-table--corporate td:nth-child(3) {
  width: 11%;
}

.portal-scope .request-detail-page .reimbursement-detail-table--corporate th:nth-child(4),
.portal-scope .request-detail-page .reimbursement-detail-table--corporate td:nth-child(4) {
  width: 14%;
}

.portal-scope .request-detail-page .reimbursement-detail-table--corporate th:nth-child(5),
.portal-scope .request-detail-page .reimbursement-detail-table--corporate td:nth-child(5) {
  width: 9%;
}

.portal-scope .request-detail-page .reimbursement-detail-table--corporate th:nth-child(6),
.portal-scope .request-detail-page .reimbursement-detail-table--corporate td:nth-child(6) {
  width: 7%;
}

.portal-scope .request-detail-page .reimbursement-detail-table--corporate th:nth-child(7),
.portal-scope .request-detail-page .reimbursement-detail-table--corporate td:nth-child(7) {
  width: 12%;
}

.portal-scope .request-detail-page .reimbursement-detail-table--corporate th:nth-child(8),
.portal-scope .request-detail-page .reimbursement-detail-table--corporate td:nth-child(8) {
  width: 10%;
}

.portal-scope .request-detail-page .reimbursement-detail-table--corporate th:nth-child(9),
.portal-scope .request-detail-page .reimbursement-detail-table--corporate td:nth-child(9),
.portal-scope .request-detail-page .reimbursement-detail-table--corporate th:nth-child(10),
.portal-scope .request-detail-page .reimbursement-detail-table--corporate td:nth-child(10) {
  width: 8%;
}

.portal-scope .request-detail-page .reimbursement-detail-table--corporate th:nth-child(11),
.portal-scope .request-detail-page .reimbursement-detail-table--corporate td:nth-child(11) {
  width: 5%;
}

.portal-scope .request-detail-page .reimbursement-detail-table th.reimbursement-serial-no-cell,
.portal-scope .request-detail-page .reimbursement-detail-table td.reimbursement-serial-no-cell {
  width: 11%;
}

.portal-scope .request-detail-page .reimbursement-detail-table--corporate th.reimbursement-serial-no-cell,
.portal-scope .request-detail-page .reimbursement-detail-table--corporate td.reimbursement-serial-no-cell {
  width: 7.5%;
}

.portal-scope .request-detail-page .reimbursement-detail-table th.workflow-attachment-cell,
.portal-scope .request-detail-page .reimbursement-detail-table td.workflow-attachment-cell {
  width: 480px;
}

.portal-scope .request-detail-page .reimbursement-detail-table th.workflow-remark-cell,
.portal-scope .request-detail-page .reimbursement-detail-table td.workflow-remark-cell {
  width: 260px;
}

.portal-scope .request-detail-page .reimbursement-detail-table {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
}

.portal-scope .request-detail-page .reimbursement-detail-table th,
.portal-scope .request-detail-page .reimbursement-detail-table td {
  width: auto !important;
  min-width: 180px;
}

.portal-scope .request-detail-page .reimbursement-detail-table th.reimbursement-serial-no-cell,
.portal-scope .request-detail-page .reimbursement-detail-table td.reimbursement-serial-no-cell {
  min-width: 130px;
}

.portal-scope .request-detail-page .reimbursement-detail-table th.workflow-attachment-cell,
.portal-scope .request-detail-page .reimbursement-detail-table td.workflow-attachment-cell {
  min-width: 480px;
}

.portal-scope .request-detail-page .reimbursement-detail-table th.workflow-remark-cell,
.portal-scope .request-detail-page .reimbursement-detail-table td.workflow-remark-cell {
  min-width: 320px;
}

.portal-scope .request-detail-page .reimbursement-detail-table th.text-center,
.portal-scope .request-detail-page .reimbursement-detail-table td.reimbursement-actions-cell {
  min-width: 74px;
}

.portal-scope .request-detail-page .reimbursement-detail-table .form-item {
  gap: 0;
}

.portal-scope .request-detail-page .reimbursement-detail-table .form-item > .field-label {
  display: none;
}

.portal-scope .request-detail-page .reimbursement-detail-table .field-control,
.portal-scope .request-detail-page .reimbursement-detail-table .portal-select__control {
  min-height: 34px;
  border-radius: 4px;
  padding: 7px 9px;
  font-size: 13px;
}

.portal-scope .request-detail-page .reimbursement-detail-table .portal-select__input {
  font-size: 13px;
}

.portal-scope .request-detail-page .reimbursement-detail-table .portal-select__menu {
  max-height: none;
  overflow: visible;
}

.portal-scope .request-detail-page .reimbursement-detail-table .portal-select__chip {
  min-height: 22px;
  padding: 2px 6px;
  font-size: 12px;
}

.portal-scope .request-detail-page .reimbursement-detail-table .date-field .date-input {
  padding-right: 30px;
}

.portal-scope .request-detail-page .reimbursement-detail-table .date-field .date-icon {
  right: 8px;
  font-size: 0;
}

.date-hour-popover {
  position: fixed;
  z-index: 4000;
  display: grid;
  grid-template-columns: 270px 76px;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
  color: #111827;
}

.date-hour-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: 700;
}

.date-hour-title button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #4b5563;
}

.date-hour-title button:hover {
  background: #eef2ff;
  color: #3158f5;
}

.date-hour-weekdays,
.date-hour-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.date-hour-weekdays {
  margin-bottom: 6px;
  color: #4b5563;
  font-size: 12px;
}

.date-hour-days button,
.date-hour-hours button {
  min-height: 32px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #111827;
}

.date-hour-days button:hover,
.date-hour-hours button:hover {
  background: #eef2ff;
}

.date-hour-days button.is-active,
.date-hour-hours button.is-active {
  background: #3b64ff;
  color: #ffffff;
}

.date-hour-hours {
  display: grid;
  grid-auto-rows: 32px;
  max-height: 270px;
  overflow-y: auto;
  border-left: 1px solid #e5e7eb;
  padding-left: 12px;
}

@media (max-width: 1100px) {
  .portal-scope .request-detail-page .business-travel-trip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-scope .request-detail-page .business-travel-time-range {
    grid-column: 1 / -1;
  }

  .portal-scope .request-detail-page .business-travel-route-line {
    grid-template-columns: 120px minmax(0, 1fr) 104px;
  }
}

@media (max-width: 720px) {
  .portal-scope .request-detail-page .business-travel-trip-grid,
  .portal-scope .request-detail-page .business-travel-time-controls,
  .portal-scope .request-detail-page .business-travel-route-line {
    grid-template-columns: 1fr;
  }

  .portal-scope .request-detail-page .business-travel-stopover-actions {
    justify-content: flex-start;
  }

  .date-hour-popover {
    grid-template-columns: 1fr;
    width: calc(100vw - 24px);
  }

  .date-hour-hours {
    grid-template-columns: repeat(6, 1fr);
    max-height: none;
    border-left: 0;
    border-top: 1px solid #e5e7eb;
    padding: 12px 0 0;
  }
}

.portal-scope .request-detail-page .reimbursement-detail-table textarea.field-control {
  min-height: 34px;
  height: 34px;
  resize: vertical;
}

.portal-scope .request-detail-page .reimbursement-detail-table .file-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 6px;
}

.portal-scope .request-detail-page .reimbursement-detail-table .file-picker {
  width: auto;
  min-height: 34px;
  margin: 0;
}

.portal-scope .request-detail-page .reimbursement-detail-table .file-picker__button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid rgba(var(--tblr-primary-rgb), 0.25);
  border-radius: 4px;
  color: var(--portal-primary);
  background: #ffffff;
  font-weight: 700;
  font-size: 12px;
}

.portal-scope .request-detail-page .reimbursement-detail-table .file-picker__button::before {
  content: "\F0552";
  font-family: "Material Design Icons";
  font-size: 16px;
  font-weight: 400;
}

.portal-scope .request-detail-page .reimbursement-detail-table .file-picker__meta {
  display: none;
}

.portal-scope .request-detail-page .reimbursement-detail-table .file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
}

.portal-scope .request-detail-page .reimbursement-detail-table .file-chip {
  min-height: 28px;
  max-width: 135px;
  padding: 4px 7px;
  border-radius: 4px;
  background: #f8fafc;
  border: 1px solid #E5E6EB;
}

.portal-scope .request-detail-page .reimbursement-detail-table .file-chip a {
  max-width: 86px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-scope .request-detail-page .reimbursement-actions-cell {
  text-align: center;
  white-space: nowrap;
}

.portal-scope .request-detail-page .reimbursement-row-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  color: #475569;
  font-size: 17px;
}

.portal-scope .request-detail-page .reimbursement-row-action:hover {
  color: var(--portal-primary);
}

.portal-scope .request-detail-page .reimbursement-row-action.is-danger {
  color: #ef4444;
}

.portal-scope .request-detail-page .reimbursement-row-action.is-danger:hover {
  color: #dc2626;
}

.portal-scope .request-detail-page .chip-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  border-radius: 12px;
  background: #e0f2fe;
  color: #0f172a;
  font-weight: 700;
  font-size: 12px;
}

.portal-scope .request-detail-page .file-control {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.portal-scope .request-detail-page .file-input {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.portal-scope .request-detail-page .file-picker {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px dashed #cbd5f5;
  background: #f8fafc;
  cursor: pointer;
}

.portal-scope .request-detail-page .file-picker:hover {
  border-color: #c7d2fe;
  background: #f1f5f9;
}

.portal-scope .request-detail-page .file-picker__button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.portal-scope .request-detail-page .file-picker__meta {
  color: #64748b;
  font-size: 12px;
}

.portal-scope .request-detail-page .file-picker.is-uploading {
  opacity: 0.75;
  cursor: progress;
}

.portal-scope .request-detail-page .file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portal-scope .request-detail-page .file-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  background: #eef2ff;
  color: #1f2937;
  font-size: 12px;
}

.portal-scope .request-detail-page .file-chip a {
  color: inherit;
  text-decoration: none;
}

.portal-scope .request-detail-page .file-chip .mdi {
  font-size: 14px;
}

.portal-scope .request-detail-page .file-chip__icon {
  flex: 0 0 auto;
}

.portal-scope .request-detail-page .file-chip button {
  margin-left: auto;
}

.portal-scope .request-detail-page .error-text {
  color: #b91c1c;
  font-size: 12px;
  margin: 0;
}

.portal-scope .request-detail-page .approval-process {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 8px;
}

.portal-scope .request-detail-page .approval-process--branched {
  gap: 18px;
}

.portal-scope .request-detail-page .approval-branch-preview {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-left: 10px;
  padding-left: 16px;
  border-left: 1px dashed #cbd5e1;
}

.portal-scope .request-detail-page .approval-branch {
  position: relative;
  padding-left: 14px;
}

.portal-scope .request-detail-page .approval-branch::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 8px;
  left: 0;
  width: 2px;
  border-radius: 999px;
  background: #c7d2fe;
}

.portal-scope .request-detail-page .approval-branch-label {
  margin-bottom: 10px;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  word-break: break-word;
}

.portal-scope .request-detail-page .approval-process--branch {
  gap: 16px;
  margin-top: 0;
}

.portal-scope .request-detail-page .approval-process--branch .approval-title {
  font-size: 14px;
  line-height: 20px;
}

.portal-scope .request-detail-page .approval-process--branch .approval-step {
  gap: 10px;
}

.portal-scope .request-detail-page .approval-process--branch .approval-rail {
  width: 14px;
}

.portal-scope .request-detail-page .approval-process--branch .approval-dot {
  width: 10px;
  height: 10px;
}

.portal-scope .request-detail-page .approval-process--branch .approval-line {
  top: 18px;
  bottom: -16px;
  width: 1px;
}

.portal-scope .request-breadcrumb-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-top: var(--md-space-2);
  line-height: 20px;
}

.portal-scope .request-breadcrumb-row .admin-breadcrumbs {
  margin-top: 0;
  line-height: inherit;
}

.portal-scope .request-breadcrumb-row .admin-breadcrumbs,
.portal-scope .request-breadcrumb-row .admin-breadcrumbs :is(a, span) {
  font-weight: 400;
}

.portal-scope .request-breadcrumb-back {
  position: relative;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--md-text-regular);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  cursor: pointer;
}

.portal-scope .request-breadcrumb-back::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -8px;
  width: 1px;
  height: 14px;
  background: #e5e6eb;
  transform: translateY(-50%);
  pointer-events: none;
}

.portal-scope .request-breadcrumb-back:hover {
  color: var(--md-text-regular);
}

.portal-scope .request-breadcrumb-back:focus-visible {
  outline: 2px solid var(--md-text-regular);
  outline-offset: 4px;
}

.portal-scope .request-detail-page .approval-step {
  display: flex;
  gap: 16px;
  position: relative;
}

.portal-scope .request-detail-page .approval-rail {
  position: relative;
  width: 20px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

.portal-scope .request-detail-page .approval-dot {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid #c7d2fe;
  background: #ffffff;
  margin-top: 4px;
}

.portal-scope .request-detail-page .approval-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 20px;
  bottom: -20px;
  width: 2px;
  background: #e2e8f0;
}

.portal-scope .request-detail-page .approval-step.is-last .approval-line {
  display: none;
}

.portal-scope .request-detail-page .approval-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.portal-scope .request-detail-page .approval-content--department-cc {
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 24px;
}

.portal-scope .request-detail-page .approval-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  color: #0f172a;
}

.portal-scope .request-detail-page .approval-hint {
  color: #64748b;
  font-size: 13px;
  line-height: 1.4;
}

.portal-scope .request-detail-page .approval-assignees {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.portal-scope .request-detail-page .approval-assignees[data-action="open-approver-modal"] {
  flex-wrap: nowrap;
  align-items: center;
}

.portal-scope .request-detail-page .approval-assignees--inline-cc {
  min-width: 280px;
  max-width: 520px;
}

.portal-scope .request-detail-page .approval-chip-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.portal-scope .request-detail-page .approval-assignees[data-action="open-approver-modal"] .approval-chip-list {
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
}

.portal-scope .request-detail-page .approval-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 4px;
  background: #F2F2F5;
  color: #13121A;
  font-size: 14px;
  line-height: 1;
  flex: 0 0 auto;
}

.portal-scope .request-detail-page .approval-chip-avatar {
  width: 24px;
  height: 24px;
  border-radius: 2px;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 12px;
  color: #1f2937;
  overflow: hidden;
}

.portal-scope .request-detail-page .approval-chip-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-scope .request-detail-page .approval-chip-name {
  white-space: nowrap;
}

.portal-scope .request-detail-page .approval-chip-copy {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  line-height: 16px;
}

.portal-scope .request-detail-page .approval-chip-delegation {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--portal-primary);
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
  white-space: nowrap;
}

.portal-scope .request-detail-page .approval-chip-remove {
  border: none;
  background: transparent;
  color: #4E5969;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.portal-scope .request-detail-page .approval-chip-remove .mdi {
  font-size: 16px;
}

.portal-scope .request-detail-page .approval-placeholder {
  color: #94a3b8;
  font-size: 13px;
}

.portal-scope .request-detail-page .approval-assignees[data-action="open-approver-modal"] {
  cursor: pointer;
}

.portal-scope .request-detail-page .approval-add {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 2px solid #3b64ff;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #3b64ff;
  cursor: pointer;
}

.portal-scope .request-detail-page .approval-add .mdi {
  font-size: 22px;
}

.portal-scope .request-detail-page .approval-add:hover {
  background: #e5edff;
}

.portal-scope .portal-approver-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.55);
  z-index: 2000;
}

.portal-scope .portal-approver-modal.is-open {
  display: flex;
}

.portal-scope .contract-picker-field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.portal-scope .contract-picker-field .field-control {
  min-width: 0;
  flex: 1;
}

.portal-scope .contract-picker-add {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #4f63ff;
  border-radius: 4px;
  background: #ffffff;
  color: #4f63ff;
  cursor: pointer;
}

.portal-scope .contract-picker-add:hover {
  background: #eef2ff;
}

.portal-scope .contract-picker-add .mdi {
  font-size: 18px;
  line-height: 1;
}

.portal-scope .portal-contract-picker-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.55);
  z-index: 2000;
}

.portal-scope .portal-contract-picker-modal.is-open {
  display: flex;
}

.portal-scope .portal-contract-picker-card {
  width: 1240px;
  max-width: calc(100vw - 48px);
  height: 82vh;
  max-height: 860px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.portal-scope .portal-contract-picker-header,
.portal-scope .portal-contract-picker-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.portal-scope .portal-contract-picker-footer {
  border-top: 1px solid #e5e7eb;
  border-bottom: 0;
}

.portal-scope .portal-contract-picker-header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #111827;
}

.portal-scope .portal-contract-picker-toolbar {
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
}

.portal-scope .portal-contract-picker-search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #d9dce7;
  border-radius: 6px;
  background: #ffffff;
}

.portal-scope .portal-contract-picker-search input {
  flex: 1;
  border: 0;
  outline: 0;
  min-width: 0;
  font-size: 16px;
}

.portal-scope .portal-contract-picker-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #f7f8fc;
}

.portal-scope .portal-contract-picker-split {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  height: 100%;
  min-height: 0;
}

.portal-scope .portal-contract-picker-list-pane,
.portal-scope .portal-contract-picker-detail-pane {
  min-width: 0;
  min-height: 0;
  overflow: auto;
}

.portal-scope .portal-contract-picker-list-pane {
  border-right: 1px solid #e5e7eb;
  background: #f4f6ff;
}

.portal-scope .portal-contract-picker-list-count {
  padding: 12px 20px;
  border-bottom: 1px solid #e5e7eb;
  color: #7b8498;
  font-size: 13px;
  background: #ffffff;
}

.portal-scope .portal-contract-picker-detail-pane {
  background: #ffffff;
}

.portal-scope .portal-contract-picker-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}

.portal-scope .portal-contract-picker-option {
  border: 0;
  border-bottom: 1px solid #e3e7f0;
  border-left: 3px solid transparent;
  border-radius: 0;
  background: #f8faff;
  overflow: hidden;
  cursor: pointer;
}

.portal-scope .portal-contract-picker-option:hover {
  background: #f1f4ff;
}

.portal-scope .portal-contract-picker-option.is-selected {
  border-left-color: #4f63ff;
  background: #eef2ff;
  box-shadow: none;
}

.portal-scope .portal-contract-picker-option-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 0;
}

.portal-scope .portal-contract-picker-summary {
  flex: 1;
  min-width: 0;
}

.portal-scope .portal-contract-picker-summary-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.portal-scope .portal-contract-picker-type {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4353d8;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.portal-scope .portal-contract-picker-summary-subtitle {
  margin-top: 6px;
  font-size: 13px;
  color: #6b7280;
}

.portal-scope .portal-contract-picker-summary-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: #374151;
  font-size: 13px;
}

.portal-scope .portal-contract-picker-summary-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-scope .portal-contract-picker-detail {
  padding: 28px 36px 32px;
}

.portal-scope .portal-contract-picker-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid #edf0f5;
}

.portal-scope .portal-contract-picker-detail-eyebrow {
  color: #8b93a3;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.portal-scope .portal-contract-picker-detail-title {
  margin-top: 10px;
  color: #172554;
  font-size: 24px;
  font-weight: 700;
}

.portal-scope .portal-contract-picker-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.portal-scope .portal-contract-picker-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 28px;
  padding: 24px 0;
}

.portal-scope .portal-contract-picker-info {
  min-width: 0;
}

.portal-scope .portal-contract-picker-info-label {
  font-size: 14px;
  color: #8b93a3;
}

.portal-scope .portal-contract-picker-info-value {
  margin-top: 6px;
  font-size: 16px;
  color: #374151;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-scope .portal-contract-picker-items,
.portal-scope .portal-contract-picker-items-empty {
  border-top: 1px solid #edf0f5;
  margin-top: 2px;
}

.portal-scope .portal-contract-picker-items-title {
  padding: 18px 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.portal-scope .portal-contract-picker-items-empty {
  padding: 18px 0;
  color: #8b93a3;
  font-size: 14px;
}

.portal-scope .portal-contract-picker-items-table-wrap {
  overflow: auto;
  padding: 0;
  border: 1px solid #edf0f5;
  border-radius: 6px;
}

.portal-scope .portal-contract-picker-items-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
  font-size: 13px;
}

.portal-scope .portal-contract-picker-items-table th,
.portal-scope .portal-contract-picker-items-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #edf0f5;
  color: #374151;
  text-align: left;
  white-space: nowrap;
}

.portal-scope .portal-contract-picker-items-table th {
  background: #f7f8fc;
  font-weight: 600;
  color: #4b5563;
}

.portal-scope .portal-contract-picker-empty {
  padding: 48px 20px;
  text-align: center;
  color: #6b7280;
}

.portal-scope .portal-contract-picker-footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 900px) {
  .portal-scope .portal-contract-picker-card {
    height: 88vh;
  }

  .portal-scope .portal-contract-picker-split {
    grid-template-columns: 1fr;
  }

  .portal-scope .portal-contract-picker-list-pane {
    max-height: 260px;
    border-right: 0;
    border-bottom: 1px solid #e5e7eb;
  }

  .portal-scope .portal-contract-picker-detail {
    padding: 22px 20px 26px;
  }

  .portal-scope .portal-contract-picker-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.portal-scope .portal-approver-card {
  width: 980px;
  max-width: calc(100vw - 48px);
  height: 72vh;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.portal-scope .portal-approver-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.portal-scope .portal-approver-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}

.portal-scope .portal-approver-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
}

.portal-scope .portal-approver-left {
  display: flex;
  flex-direction: column;
  border-right: 1px solid #e5e7eb;
  min-width: 0;
  min-height: 0;
}

.portal-scope .portal-approver-right {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.portal-scope .portal-approver-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #ffffff;
}

.portal-scope .portal-approver-search input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 14px;
  color: #111827;
}

.portal-scope .portal-approver-search input::placeholder {
  color: #9ca3af;
}

.portal-scope .portal-approver-search .mdi {
  color: #94a3b8;
}

.portal-scope .portal-approver-content {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-top: solid 1px #E5E6EB;
  overflow-x: hidden;
}

.portal-scope .portal-approver-tree,
.portal-scope .portal-approver-search-results {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: auto;
  overflow-x: hidden;
  flex: 1;
}

.portal-scope .approver-tree-node {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.portal-scope .approver-dept-row {
  display: block;
  padding: 16px 24px;
  border-radius: 0;
  cursor: pointer;
}

.portal-scope .approver-dept-row:hover {
  background: #f2f2f5;
}

.portal-scope .approver-dept-row.is-selected {
  background: #f2f3ff;
}

.portal-scope .approver-dept-select {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  cursor: pointer;
}

.portal-scope .approver-row-content {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: calc(100% - var(--indent, 0px));
  box-sizing: border-box;
}

.portal-scope .approver-row-content .approver-avatar{
  border-radius: 4px;
  width:40px;
  height: 40px;
}

.portal-scope .approver-tree-name {
  font-weight: 400;
  color: #13121A;
  font-size: 14px;
  text-indent: 4px;
}

.portal-scope .approver-tree-node.is-root >.approver-dept-row .approver-tree-name {
  font-weight: 700;
  font-size: 16px;
}

.portal-scope .approver-tree-count {
  margin-left: 6px;
  font-weight: 400;
  color: #86909C;
  font-size: 14px;
}

.portal-scope .approver-tree-path {
  font-size: 12px;
  color: #94a3b8;
}

.portal-scope .approver-dept-children {
  border: none;
  background: transparent;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}

.portal-scope .approver-dept-divider {
  width: 1px;
  height: 16px;
  background: #d1d5db;
  display: inline-block;
}

.portal-scope .approver-tree-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 0;
}

.portal-scope .approver-tree-body.is-collapsed {
  display: none;
}


.portal-scope .approver-employee {
  display: block;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 0;
  cursor: pointer;
  border: 1px solid transparent;
}

.portal-scope .approver-employee .approver-row-content {
  display: inline-grid;
  grid-template-columns: 20px 32px 1fr;
  align-items: center;
  gap: 8px;
  width: calc(100% - var(--indent, 0px));
  box-sizing: border-box;
}

.portal-scope .approver-selected-item {
  display: grid;
  grid-template-columns: 40px 1fr 24px;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  border-radius: 0;
  cursor: default;
}

.portal-scope .approver-employee:hover {
  background: #f2f2f5;
}

.portal-scope .approver-employee.is-selected {
  background: #f2f3ff;
  border-color: #f2f3ff;
}

.portal-scope .approver-checkbox {
  width: 18px;
  height: 18px;
  border: 1px solid #86909C;
  border-radius: 2px;
  background: #ffffff;
  appearance: none;
  -webkit-appearance: none;
  display: inline-grid;
  place-items: center;
}

.portal-scope .approver-checkbox::after {
  content: '';
  width: 8px;
  height: 4px;
  border: 2px solid #ffffff;
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg);
  opacity: 0;
}

.portal-scope .approver-checkbox.is-indeterminate {
  background: var(--portal-primary);
  border-color: var(--portal-primary);
}

.portal-scope .approver-checkbox.is-indeterminate::after {
  width: 10px;
  height: 0;
  border: none;
  border-top: 2px solid #ffffff;
  transform: none;
  opacity: 1;
}

.portal-scope .approver-checkbox:checked {
  background: #3b64ff;
  border-color: #3b64ff;
}

.portal-scope .approver-checkbox:checked::after {
  opacity: 1;
}

.portal-scope .approver-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  overflow: hidden;
}

.portal-scope .approver-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-scope .approver-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 40px;
}

.portal-scope .approver-name {
  font-size: 14px;
  color: #111827;
  text-indent: 8px;
}

.portal-scope .approver-path {
  font-size: 12px;
  color: #94a3b8;
  display: block;
}

.portal-scope .portal-approver-selected-header {
  padding: 0px 24px;
  height: 72px;
  line-height: 72px;
  font-weight: 600;
  color: #111827;
  font-size: 14px;
}

.portal-scope .portal-approver-selected-list {
  flex: 1;
  overflow: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}

.portal-scope .approver-selected-item {
  border: none;
}

.portal-scope .approver-selected-item:hover {
  background: #f2f2f5;
}

.portal-scope .approver-selected-item .approver-avatar {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  border: none;
}

.portal-scope .approver-remove {
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
}

.portal-scope .portal-approver-footer {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid #e5e7eb;
}

.portal-scope .field-label-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.portal-scope .field-label-actions .field-label {
  min-width: 0;
}

.portal-scope .purchase-requirement-field-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

.portal-scope .purchase-requirement-clear-trigger,
.portal-scope .purchase-requirement-picker-trigger {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #d7dfff;
  border-radius: 7px;
  color: #3157d5;
  background: #f5f7ff;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.portal-scope .purchase-requirement-clear-trigger {
  border-color: #e1e4ea;
  color: #86909c;
  background: #fff;
}

.portal-scope .purchase-requirement-clear-trigger[hidden] {
  display: none;
}

.portal-scope .purchase-requirement-clear-trigger:hover {
  border-color: #ffb3b8;
  color: #d43845;
  background: #fff5f5;
}

.portal-scope .purchase-requirement-picker-trigger:hover {
  border-color: #8ba0ff;
  color: #2347bd;
  background: #eaf0ff;
}

.portal-scope .purchase-requirement-clear-trigger:focus-visible,
.portal-scope .purchase-requirement-picker-trigger:focus-visible {
  outline: 2px solid #3b64ff;
  outline-offset: 2px;
}

.portal-scope .purchase-requirement-clear-trigger .mdi,
.portal-scope .purchase-requirement-picker-trigger .mdi {
  font-size: 17px;
}

.portal-scope .product-code-quick-entry {
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}

.portal-scope .product-code-quick-entry > .portal-select {
  flex: 1 1 auto;
  min-width: 0;
}

.portal-scope .product-picker-trigger {
  display: inline-flex;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-height: 32px;
  padding: 0;
  border: 1px solid #6d87ee;
  border-radius: 7px;
  color: #ffffff;
  background: #3b64ff;
  box-shadow: 0 2px 6px rgba(59, 100, 255, 0.2);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.portal-scope .product-picker-trigger:hover {
  border-color: #274dcc;
  background: #3157d5;
  box-shadow: 0 4px 10px rgba(59, 100, 255, 0.28);
}

.portal-scope .product-picker-trigger:focus-visible {
  outline: 2px solid #3b64ff;
  outline-offset: 2px;
}

.portal-scope .product-picker-trigger .mdi {
  font-size: 19px;
}

.portal-scope .product-maintained-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 18px;
  height: 18px;
  margin-left: 4px;
  border: 0;
  border-radius: 50%;
  color: #64748b;
  background: #e8edf4;
  font-size: 12px;
  line-height: 1;
  vertical-align: middle;
}

.portal-scope .is-product-maintained .field-label {
  display: flex;
  align-items: center;
  min-width: 0;
  white-space: nowrap;
}

.portal-scope .is-product-maintained .field-control[readonly],
.portal-scope .is-product-maintained .portal-select--disabled {
  border-color: #d6dde8;
  color: #34425a;
  background: #f4f6f9;
  cursor: default;
}

.portal-scope.is-standard-item-request-layout input[data-field-path="productSeriesCode"][readonly] {
  border-color: #d6dde8;
  color: #34425a;
  background: #f4f6f9;
  cursor: default;
}

.portal-scope .is-product-maintained .portal-select--disabled .portal-select__input {
  color: #34425a;
  cursor: default;
}

.portal-scope .product-picker-option-category {
  max-width: 120px;
  overflow: hidden;
  color: #526078;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-scope .product-picker-summary dd {
  white-space: pre-wrap;
}

.portal-scope .purchase-requirement-picker-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.58);
}

.portal-scope .purchase-requirement-picker-modal.is-open {
  display: flex;
}

.product-picker-create-open .modal-backdrop {
  z-index: 2200;
}

.product-picker-create-open #drawer-modal {
  z-index: 2210;
}

.portal-scope .purchase-requirement-picker-modal.has-nested-modal {
  pointer-events: none;
}

.portal-scope .purchase-requirement-picker-card {
  display: flex;
  flex-direction: column;
  width: min(1120px, calc(100vw - 48px));
  height: min(780px, calc(100vh - 48px));
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.3);
}

.portal-scope .purchase-requirement-picker-header {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #e8edf5;
}

.portal-scope .purchase-requirement-picker-header h3 {
  margin: 0;
  color: #111827;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
}

.portal-scope .purchase-requirement-picker-header p {
  margin: 5px 0 0;
  color: #667085;
  font-size: 13px;
}

.portal-scope .purchase-requirement-picker-header .btn-close:focus-visible {
  outline: 2px solid #3b64ff;
  outline-offset: 3px;
}

.portal-scope .purchase-requirement-picker-toolbar {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid #edf1f6;
  background: #fbfcff;
}

.portal-scope .purchase-requirement-picker-search {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid #d8e0ec;
  border-radius: 9px;
  color: #667085;
  background: #ffffff;
}

.portal-scope .product-picker-create {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  white-space: nowrap;
}

.portal-scope .purchase-requirement-picker-search:focus-within {
  border-color: #6d87ee;
  box-shadow: 0 0 0 3px rgba(59, 100, 255, 0.12);
}

.portal-scope .purchase-requirement-picker-search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  color: #111827;
  background: transparent;
  font-size: 14px;
}

.portal-scope .purchase-requirement-picker-status {
  flex: 0 0 auto;
  color: #667085;
  font-size: 13px;
  white-space: nowrap;
}

.portal-scope .purchase-requirement-picker-body {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1.5fr);
  min-height: 0;
}

.portal-scope .purchase-requirement-picker-list {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  border-right: 1px solid #e8edf5;
  background: #f8faff;
}

.portal-scope .purchase-requirement-picker-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  width: 100%;
  padding: 15px 16px;
  border: 0;
  border-bottom: 1px solid #e8edf5;
  color: #111827;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.portal-scope .purchase-requirement-picker-option:hover {
  background: #f0f4ff;
}

.portal-scope .purchase-requirement-picker-option.is-selected {
  box-shadow: inset 3px 0 0 #3b64ff;
  background: #eaf0ff;
}

.portal-scope .purchase-requirement-picker-option:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid #3b64ff;
  outline-offset: -2px;
}

.portal-scope .purchase-requirement-picker-option-radio {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border: 1.5px solid #98a2b3;
  border-radius: 50%;
  background: #ffffff;
}

.portal-scope .purchase-requirement-picker-option.is-selected .purchase-requirement-picker-option-radio {
  border: 5px solid #3b64ff;
}

.portal-scope .purchase-requirement-picker-option-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.portal-scope .purchase-requirement-picker-option-copy strong {
  color: #1d3f9f;
  font-size: 14px;
}

.portal-scope .purchase-requirement-picker-option-copy > span {
  overflow: hidden;
  color: #344054;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-scope .purchase-requirement-picker-option-copy small {
  overflow: hidden;
  color: #7a8699;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-scope .purchase-requirement-picker-option-amount {
  color: #344054;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.portal-scope .purchase-requirement-picker-detail {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 22px 24px;
  background: #ffffff;
}

.portal-scope .purchase-requirement-picker-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid #edf1f6;
}

.portal-scope .purchase-requirement-picker-detail-head span:first-child {
  color: #7a8699;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.portal-scope .purchase-requirement-picker-detail-head h4 {
  margin: 4px 0 0;
  color: #172b4d;
  font-size: 20px;
  font-weight: 750;
}

.portal-scope .purchase-requirement-picker-approved {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #166534 !important;
  background: #dcfce7;
  font-size: 12px !important;
  font-weight: 650;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.portal-scope .purchase-requirement-picker-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  margin: 20px 0 24px;
}

.portal-scope .purchase-requirement-picker-summary > div {
  min-width: 0;
}

.portal-scope .purchase-requirement-picker-summary > .is-full {
  grid-column: 1 / -1;
}

.portal-scope .purchase-requirement-picker-summary dt {
  margin-bottom: 3px;
  color: #7a8699;
  font-size: 12px;
  font-weight: 500;
}

.portal-scope .purchase-requirement-picker-summary dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #172b4d;
  font-size: 14px;
}

.portal-scope .purchase-requirement-picker-lines {
  border: 1px solid #e4eaf2;
  border-radius: 10px;
  overflow: hidden;
}

.portal-scope .purchase-requirement-picker-lines-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #e4eaf2;
  background: #f8faff;
}

.portal-scope .purchase-requirement-picker-lines-head h5 {
  margin: 0;
  color: #172b4d;
  font-size: 14px;
  font-weight: 700;
}

.portal-scope .purchase-requirement-picker-lines-head span {
  min-width: 24px;
  padding: 2px 7px;
  border-radius: 999px;
  color: #3157d5;
  background: #e7edff;
  font-size: 12px;
  text-align: center;
}

.portal-scope .purchase-requirement-picker-table-wrap {
  overflow-x: auto;
}

.portal-scope .purchase-requirement-picker-table-wrap table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.portal-scope .purchase-requirement-picker-table-wrap th,
.portal-scope .purchase-requirement-picker-table-wrap td {
  padding: 10px 12px;
  border-bottom: 1px solid #edf1f6;
  color: #344054;
  font-size: 12px;
  text-align: left;
  vertical-align: top;
}

.portal-scope .purchase-requirement-picker-table-wrap th {
  color: #667085;
  background: #fcfdff;
  font-weight: 650;
  white-space: nowrap;
}

.portal-scope .purchase-requirement-picker-table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.portal-scope .purchase-requirement-picker-table-wrap td strong,
.portal-scope .purchase-requirement-picker-table-wrap td small {
  display: block;
}

.portal-scope .purchase-requirement-picker-table-wrap td strong {
  color: #172b4d;
  font-size: 12px;
}

.portal-scope .purchase-requirement-picker-table-wrap td small {
  margin-top: 3px;
  color: #7a8699;
}

.portal-scope .purchase-requirement-picker-no-lines {
  padding: 28px !important;
  color: #7a8699 !important;
  text-align: center !important;
}

.portal-scope .purchase-requirement-picker-empty {
  display: flex;
  min-height: 180px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  color: #667085;
  font-size: 13px;
  text-align: center;
}

.portal-scope .purchase-requirement-picker-empty.is-error {
  color: #b42318;
}

.portal-scope .purchase-requirement-picker-empty .mdi {
  font-size: 20px;
}

.portal-scope .purchase-requirement-picker-footer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
  border-top: 1px solid #e8edf5;
  background: #fbfcff;
}

.portal-scope .purchase-requirement-picker-footer > span {
  color: #667085;
  font-size: 12px;
}

.portal-scope .purchase-requirement-picker-footer > div {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.portal-scope .travel-document-choices {
  display: none;
}

.portal-scope .travel-source-card {
  width: min(920px, calc(100vw - 48px));
  height: min(680px, calc(100vh - 48px));
}

.portal-scope .travel-source-body {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.portal-scope .travel-source-list-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid #e8edf5;
  background: #f8faff;
}

.portal-scope .travel-source-list {
  flex: 1 1 auto;
  border-right: 0;
}

.portal-scope .travel-source-pages {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid #e8edf5;
  color: #667085;
  font-size: 13px;
  white-space: nowrap;
}

.portal-scope .travel-source-detail-title {
  overflow-wrap: anywhere;
  color: #172b4d;
  font-size: 19px;
  font-weight: 700;
}

.portal-scope .travel-source-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.portal-scope .travel-source-option-route,
.portal-scope .travel-source-option-time {
  overflow: visible !important;
  color: #475569 !important;
  white-space: normal !important;
}

.portal-scope .travel-source-legs-title {
  margin: 20px 0 10px;
  color: #172b4d;
  font-size: 14px;
  font-weight: 700;
}

.portal-scope .travel-source-legs {
  display: grid;
  gap: 8px;
}

.portal-scope .travel-source-legs > div {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid #e8edf5;
  border-radius: 8px;
  color: #475569;
  font-size: 12px;
}

.portal-scope .travel-source-legs strong {
  color: #172b4d;
  font-weight: 600;
}

.portal-scope .travel-source-summary div {
  padding-bottom: 10px;
  border-bottom: 1px solid #edf1f6;
}

.portal-scope .travel-source-summary dt {
  color: #667085;
  font-size: 12px;
}

.portal-scope .travel-source-summary dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  color: #172b4d;
  font-size: 14px;
}

@media (max-width: 760px) {
  .portal-scope [data-travel-document-type] #travel-document-type,
  .portal-scope [data-travel-document-type] .md-search-select[data-for="travel-document-type"] {
    display: none;
  }

  .portal-scope .travel-document-choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .portal-scope .travel-document-choice {
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #334155;
    background: #fff;
    font-weight: 600;
  }

  .portal-scope .travel-document-choice.is-active {
    border-color: #3559f4;
    color: #3559f4;
    background: #eef2ff;
  }

  .portal-scope .travel-source-card { width: 100%; height: calc(100vh - 20px); }
  .portal-scope .travel-source-body { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .portal-scope .travel-source-list-panel { border-right: 0; }
  .portal-scope .travel-source-body > .purchase-requirement-picker-detail { display: none; }
  .portal-scope .travel-source-pages { padding: 10px; }
  .portal-scope .travel-source-summary { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .portal-scope .purchase-requirement-picker-modal {
    padding: 10px;
  }

  .portal-scope .purchase-requirement-picker-card {
    width: 100%;
    height: calc(100vh - 20px);
    border-radius: 12px;
  }

  .portal-scope .purchase-requirement-picker-header,
  .portal-scope .purchase-requirement-picker-toolbar,
  .portal-scope .purchase-requirement-picker-detail,
  .portal-scope .purchase-requirement-picker-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .portal-scope .purchase-requirement-picker-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .portal-scope .purchase-requirement-picker-status {
    white-space: normal;
  }

  .portal-scope .product-picker-create {
    width: 100%;
  }

  .portal-scope .purchase-requirement-picker-body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(190px, 0.8fr) minmax(0, 1.2fr);
  }

  .portal-scope .purchase-requirement-picker-list {
    border-right: 0;
    border-bottom: 1px solid #e8edf5;
  }

  .portal-scope .purchase-requirement-picker-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .portal-scope .purchase-requirement-picker-summary > .is-full {
    grid-column: auto;
  }

  .portal-scope .purchase-requirement-picker-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .portal-scope .purchase-requirement-picker-footer > div {
    justify-content: flex-end;
  }

  .portal-scope .travel-source-body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
  }

  .portal-scope .travel-source-list {
    border-bottom: 0;
  }
}

/* Business travel change controls and source picker in narrow webviews. */
.portal-scope .travel-change-mode-choices {
  display: none;
}

@media (max-width: 760px) {
  .portal-scope [data-travel-document-type] #travel-change-mode,
  .portal-scope [data-travel-document-type] .md-search-select[data-for="travel-change-mode"] {
    display: none;
  }

  .portal-scope .travel-change-mode-choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .portal-scope .travel-change-mode-choice {
    min-width: 0;
    min-height: 44px;
    padding: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    font-weight: 600;
    white-space: normal;
  }

  .portal-scope .travel-change-mode-choice.is-active {
    border-color: #3559f4;
    background: #eef2ff;
    color: #3559f4;
  }

  .portal-scope .travel-source-modal {
    box-sizing: border-box;
    width: 100%;
    max-width: 100vw;
    padding: calc(8px + env(safe-area-inset-top)) 8px calc(8px + env(safe-area-inset-bottom));
    overflow: hidden;
  }

  .portal-scope .travel-source-card {
    box-sizing: border-box;
    flex: 0 1 auto;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: calc(100vh - 16px);
    height: calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    max-height: calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }

  .portal-scope .travel-source-body,
  .portal-scope .travel-source-list-panel {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
  }

  .portal-scope .travel-source-list {
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .portal-scope .travel-source-list .purchase-requirement-picker-option-copy,
  .portal-scope .travel-source-list .purchase-requirement-picker-option-copy strong,
  .portal-scope .travel-source-list .purchase-requirement-picker-option-copy small {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .portal-scope .travel-source-pages {
    white-space: normal;
  }

  .portal-scope .travel-source-card .purchase-requirement-picker-footer > div {
    flex: 1 1 auto;
    min-width: 0;
  }

  .portal-scope .travel-source-card .purchase-requirement-picker-footer button {
    min-width: 0;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-scope .purchase-requirement-clear-trigger,
  .portal-scope .purchase-requirement-picker-trigger,
  .portal-scope .product-picker-trigger {
    transition: none;
  }
}

.portal-scope .approver-empty {
  padding: 16px;
  color: #94a3b8;
  font-size: 14px;
}

.portal-scope .request-detail-page .approver-row {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}

.portal-scope .request-detail-page .approver-label {
  font-weight: 600;
  color: #0f172a;
}

.portal-scope .request-detail-page .approver-select,
.portal-scope .request-detail-page .approver-row .portal-select {
  max-width: 480px;
}

.portal-scope .request-detail-page .approver-row .portal-select__menu {
  z-index: 40;
}

.portal-scope .request-detail-page .approver-row .error-text {
  grid-column: 2 / -1;
}

.portal-scope .request-detail-page .loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-size: 14px;
}

.portal-scope .request-detail-page .loading-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(59, 100, 255, 0.2);
  border-top-color: #3b64ff;
  animation: portal-spin 0.8s linear infinite;
}

.portal-scope .request-detail-page .actions .btn[data-action="submit"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.portal-scope .request-detail-page .submit-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.portal-scope .request-detail-page .submit-loading .loading-spinner {
  width: 14px;
  height: 14px;
  border-width: 2px;
  border-color: rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
}

.portal-scope .request-detail-page .submit-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.2);
  z-index: 10;
}

.portal-scope .request-detail-page .submit-overlay__content {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  padding: 14px 16px;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.15);
  color: #0f172a;
  font-weight: 600;
}

@keyframes portal-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1024px) {
  .portal-scope .request-detail-card .detail-body {
    width: 100%;
  }
  .portal-scope .request-detail-page .actions {
    width: 100%;
  }
  .portal-scope .request-detail-page .form-grid {
    grid-template-columns: 1fr;
  }
  .portal-scope .request-detail-page .group-block {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .portal-scope .request-detail-page .reimbursement-detail-head {
    align-items: stretch;
    flex-direction: column;
  }

  .portal-scope .request-detail-page .reimbursement-detail-add {
    justify-content: center;
    width: 100%;
  }

  .portal-scope .request-detail-page .reimbursement-detail-table {
    min-width: 860px;
  }

  .portal-scope .request-detail-page .reimbursement-detail-table--corporate {
    min-width: 1980px;
  }

  .portal-scope .request-detail-page .reimbursement-detail-table-wrap {
    overflow-x: auto;
  }

  .portal-scope .request-detail-page .form-grid {
    grid-template-columns: 1fr;
  }
  .portal-scope .request-detail-page .form-grid.nested {
    grid-template-columns: 1fr;
  }
  .portal-scope .request-detail-page .group-block {
    grid-column: span 1;
  }
  .portal-scope .request-detail-page .approver-row {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
  .portal-scope .request-detail-page .approver-select,
  .portal-scope .request-detail-page .approver-row .portal-select {
    max-width: none;
    width: 100%;
  }
  .portal-scope .request-detail-page .approval-step {
    gap: 12px;
  }
  .portal-scope .portal-approver-card {
    width: 100%;
    height: 80vh;
    border-radius: 10px;
  }
  .portal-scope .portal-approver-body {
    grid-template-columns: 1fr;
  }
  .portal-scope .portal-approver-left {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }
}

.portal-scope .detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.portal-scope .portal-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 18px;
  margin-top: 12px;
  align-items: stretch;
}

.portal-scope .portal-form-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 12px;
  background: #f8fafc;
}

.portal-scope .portal-form-item.full {
  grid-column: 1 / -1;
}

.portal-scope .portal-form-label {
  font-weight: 600;
  color: #0f172a;
  font-size: 14px;
}

.portal-scope .portal-form-help {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
}

.portal-scope .portal-form-error {
  color: #b91c1c;
  font-size: 12px;
}

.portal-scope .portal-group-card {
  border: 1px dashed rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  padding: 12px;
  background: #f9fafb;
}

.portal-scope .portal-group-item {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  padding: 10px;
  background: #fff;
  margin-bottom: 12px;
}

.portal-scope .portal-file-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portal-scope .portal-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  background: #eef2ff;
  color: #1f2937;
  font-size: 12px;
}

.portal-scope .actions {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.portal-scope.portal-requests-scroll {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 56px);
  min-height: 0;
  overflow: hidden;
}

.portal-scope.portal-requests-scroll .admin-page-head {
  flex: 0 0 auto;
}

.portal-scope.portal-requests-scroll .portal-page.request-page {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.portal-scope.portal-detail-scroll {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.portal-scope.portal-detail-scroll .admin-page-head {
  flex: 0 0 auto;
}

.portal-scope.portal-detail-scroll .portal-page {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  height: calc(100vh - 147px);
}

.portal-scope .form-control,
.portal-scope .form-select {
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
  background-color: #fff;
}

.portal-scope .form-control {
  padding: 10px 12px;
}

.portal-scope .form-select {
  padding: 10px 36px 10px 12px;
}

.portal-scope .form-control:focus,
.portal-scope .form-select:focus {
  border-color: rgba(59, 100, 255, 0.6);
  box-shadow: 0 0 0 2px rgba(59, 100, 255, 0.15);
}

.portal-scope .employee-multi-filter {
  position: relative;
  flex: 0 0 auto;
}

.portal-scope .employee-multi-filter__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  overflow: hidden;
  text-align: left;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #6b7280;
  background: #fff;
}

.portal-scope .employee-multi-filter__button.has-value {
  color: #111827;
}

.portal-scope .employee-multi-filter__button::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 10px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #9ca3af;
  flex: 0 0 auto;
}

.portal-scope .employee-multi-filter__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 40;
  display: none;
  width: min(360px, 90vw);
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.portal-scope .employee-multi-filter.is-open .employee-multi-filter__menu {
  display: block;
}

.portal-scope .employee-multi-filter__search {
  height: 36px;
  margin-bottom: 8px;
}

.portal-scope .employee-multi-filter__options {
  max-height: 260px;
  overflow: auto;
}

.portal-scope .employee-multi-filter__option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
}

.portal-scope .employee-multi-filter__option:hover,
.portal-scope .employee-multi-filter__option.is-selected {
  background: #f4f6ff;
}

.portal-scope .employee-multi-filter__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.portal-scope .employee-multi-filter__check {
  width: 16px;
  height: 16px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
  flex: 0 0 auto;
}

.portal-scope .employee-multi-filter__option input:checked + .employee-multi-filter__check {
  border-color: #4c63ff;
  background: #4c63ff;
  box-shadow: inset 0 0 0 3px #fff;
}

.portal-scope .employee-multi-filter__label {
  display: grid;
  gap: 2px;
  min-width: 0;
  color: #111827;
}

.portal-scope .employee-multi-filter__label span,
.portal-scope .employee-multi-filter__label small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.portal-scope .employee-multi-filter__label small,
.portal-scope .employee-multi-filter__empty {
  color: #6b7280;
}

.portal-scope .employee-multi-filter__empty {
  padding: 12px 8px;
}

.employee-multi-filter {
  position: relative;
  flex: 0 0 auto;
}

.employee-multi-filter__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 44px;
  overflow: hidden;
  text-align: left;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #6b7280;
  background: #fff;
}

.employee-multi-filter__button.has-value {
  color: #111827;
}

.employee-multi-filter__button::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 10px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #9ca3af;
  flex: 0 0 auto;
}

.employee-multi-filter__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 1080;
  display: none;
  width: min(360px, 90vw);
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.employee-multi-filter.is-open .employee-multi-filter__menu {
  display: block;
}

.employee-multi-filter__search {
  height: 36px;
  margin-bottom: 8px;
}

.employee-multi-filter__options {
  max-height: 280px;
  overflow: auto;
}

.employee-multi-filter__option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
}

.employee-multi-filter__option:hover,
.employee-multi-filter__option.is-selected {
  background: #f4f6ff;
}

.employee-multi-filter__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.employee-multi-filter__check {
  width: 16px;
  height: 16px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
  flex: 0 0 auto;
}

.employee-multi-filter__option input:checked + .employee-multi-filter__check {
  border-color: #4c63ff;
  background: #4c63ff;
  box-shadow: inset 0 0 0 3px #fff;
}

.employee-multi-filter__label {
  display: grid;
  gap: 2px;
  min-width: 0;
  color: #111827;
}

.employee-multi-filter__label span,
.employee-multi-filter__label small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.employee-multi-filter__label small,
.employee-multi-filter__empty {
  color: #6b7280;
}

.employee-multi-filter__empty {
  padding: 12px 8px;
}

/* Approval detail */
.portal-scope .detail-shell {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.portal-scope .detail-card {
  background: #ffffff;
  border: 1px solid #e6e8ee;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.portal-scope .card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  padding: 0 12px;
  color: #8a8f9c;
  font-size: 13px;
  border-bottom: 1px solid #eceef4;
}

.portal-scope .card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
  overflow-y: auto;
}

.portal-scope .title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.portal-scope .task-title {
  align-items: center;
  gap: 16px;
  margin: 0 0 8px;
}

.portal-scope .task-title span {
  font-size: 24px;
  font-weight: 700;
  color: #13121a;
}

.portal-scope .title-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portal-scope .avatar-lg {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #cde2ff, #e7e9ff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 400;
  font-size: 12px;
  color: #2d1f7a;
  overflow: hidden;
  flex-shrink: 0;
}

.portal-scope .avatar-lg span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-transform: uppercase;
}

.portal-scope .avatar-lg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-scope .meta-text {
  display: flex;
  align-items: center;
  gap: 16px;
}

.portal-scope .name {
  font-weight: 400;
  color: #13121a;
  font-size: 14px;
}

.portal-scope .submitted {
  color: #707073;
  font-size: 14px;
}

.portal-scope .status-pill {
  font-weight: 400;
  font-size: 14px;
}

.portal-scope .portal-pill {
  padding: 4px 4px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 400;
  color: #0f172a;
}

.portal-scope .portal-pill-approved { background: #dcfce7; color: #166534; }
.portal-scope .portal-pill-rejected { background: #fee2e2; color: #991b1b; }
.portal-scope .portal-pill-withdrawn { background: #e2e8f0; color: #475569; }
.portal-scope .portal-pill-review { background: #e0e7ff; color: #4338ca; }
.portal-scope .portal-pill-pending { background: #fef9c3; color: #92400e; }

.portal-scope .section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portal-scope .section-title {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: #13121a;
  font-weight: 500;
  font-size: 16px;
}

.portal-scope .accent {
  width: 4px;
  height: 12px;
  border-radius: 1px;
  background: var(--portal-primary);
}

.portal-scope .detail-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  row-gap: 8px;
  column-gap: 8px;
}

.portal-scope .field {
  display: contents;
}

.portal-scope .field-label {
  color: #5d6b99;
  font-weight: 500;
  font-size: 15px;
}

.portal-scope .field-value {
  color: #17235f;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 800;
}

.portal-scope .field-value.long {
  white-space: pre-wrap;
}

.portal-scope .detail-grid > .scm-item-approval-form,
.portal-scope .scm-material-review {
  grid-column: 1 / -1;
  min-width: 0;
}

/* SCM Item approval is a complete, scan-friendly approval snapshot. */
.portal-scope .scm-item-approval-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  min-width: 0;
  background: transparent;
}

.portal-scope .scm-item-approval-panel {
  min-width: 0;
  container-type: inline-size;
  padding: 22px;
  border: 1px solid #e6e7eb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(18, 25, 38, 0.04);
}

.portal-scope .scm-item-approval-panel--basic {
  border-right: 0;
}

.portal-scope .scm-item-step-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 51px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f0f0f2;
}

.portal-scope .scm-item-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  color: #fff;
  background: var(--portal-primary);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.portal-scope .scm-item-step-title h3 {
  margin: 0;
  color: #13121a;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

.portal-scope .scm-item-readonly-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  min-width: 0;
  padding-top: 18px;
}

.portal-scope .scm-item-readonly-grid--basic {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-scope .scm-item-readonly-grid--details,
.portal-scope .scm-item-readonly-grid--attributes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-scope .scm-item-readonly-field {
  min-width: 0;
}

.portal-scope .scm-item-readonly-field--wide {
  grid-column: 1 / -1;
}

.portal-scope .scm-item-approval-options {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #e9edf5;
}

.portal-scope .scm-item-approval-options h4 {
  margin: 0 0 16px;
  color: #20232a;
  font-size: 18px;
  font-weight: 600;
}

.portal-scope .scm-item-approval-options__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
}

.portal-scope .scm-item-approval-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  color: #263249;
  font-size: 15px;
  font-weight: 500;
}

.portal-scope .scm-item-approval-option__box {
  display: inline-flex;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  align-items: center;
  justify-content: center;
  border: 2px solid #aeb8ca;
  border-radius: 5px;
  color: transparent;
  font-size: 15px;
  line-height: 1;
}

.portal-scope .scm-item-approval-option[aria-checked="true"] .scm-item-approval-option__box {
  border-color: #20232a;
  color: #fff;
  background: #20232a;
}

@media (max-width: 760px) {
  .portal-scope .scm-item-approval-options__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.portal-scope .scm-item-readonly-label {
  margin-bottom: 6px;
  color: #4e5969;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
}

.portal-scope .scm-item-readonly-value {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 12px;
  overflow-wrap: anywhere;
  border: 1px solid #dedfe3;
  border-radius: 4px;
  color: #13121a;
  background: #fff;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
}

.portal-scope .scm-item-readonly-value--long {
  align-items: flex-start;
  min-height: 66px;
  white-space: pre-wrap;
}

.portal-scope .scm-item-readonly-value.is-empty {
  color: #86909c;
  background: #fafafa;
}

.portal-scope .scm-item-bom-file {
  justify-content: space-between;
  gap: 12px;
}

.portal-scope .scm-item-bom-file__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-scope .scm-item-bom-file .scm-item-file-download {
  margin: -2px -5px -2px 0;
  font-size: 13px;
}

.portal-scope .scm-item-detail-card {
  margin-top: 18px;
  padding: 20px 24px;
  border-radius: 6px;
  background: #f7f7f9;
}

.portal-scope .scm-item-detail-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e6e7eb;
}

.portal-scope .scm-item-detail-card__header strong {
  color: #13121a;
  font-size: 16px;
  font-weight: 600;
}

.portal-scope .scm-item-detail-card__hint {
  color: #86909c;
  font-size: 12px;
}

.portal-scope .scm-item-detail-card > .scm-item-readonly-grid {
  padding-top: 18px;
}

.portal-scope .scm-item-subsection {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #e6e7eb;
}

.portal-scope .scm-item-subsection__title {
  margin: 0 0 14px;
  color: #13121a;
  font-size: 15px;
  font-weight: 600;
}

.portal-scope .scm-item-empty-state {
  margin-top: 18px;
  padding: 18px;
  border: 1px dashed #c9cdd4;
  border-radius: 6px;
  color: #86909c;
  background: #fafafa;
  font-size: 14px;
  text-align: center;
}

.portal-scope .scm-item-file-note {
  margin-top: 10px;
  padding: 10px 12px;
  overflow-wrap: anywhere;
  border-radius: 4px;
  color: #4e5969;
  background: #f7f7f9;
  font-size: 13px;
}

.portal-scope .scm-item-file-capability-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-left: 3px solid #2864f0;
  border-radius: 4px;
  color: #4e5969;
  background: #f3f7ff;
  font-size: 13px;
  line-height: 1.55;
}

.portal-scope .scm-item-technical-files {
  display: grid;
  gap: 12px;
}

.portal-scope .scm-item-technical-file {
  min-width: 0;
  padding: 16px 18px 0;
  border: 1px solid #e5e9f0;
  border-radius: 8px;
  background: #fff;
}

.portal-scope .scm-item-technical-file__header,
.portal-scope .scm-item-technical-file__identity,
.portal-scope .scm-item-technical-file__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.portal-scope .scm-item-technical-file__header {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.portal-scope .scm-item-technical-file__identity {
  min-width: 0;
}

.portal-scope .scm-item-technical-file__identity > div {
  min-width: 0;
}

.portal-scope .scm-item-technical-file__index {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  height: 28px;
  border-radius: 6px;
  color: #315efb;
  background: #eef3ff;
  font-weight: 600;
}

.portal-scope .scm-item-technical-file__name {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.portal-scope .scm-item-technical-file__subtitle,
.portal-scope .scm-item-technical-file__facts dt,
.portal-scope .scm-item-technical-file__unread {
  color: #86909c;
  font-size: 12px;
}

.portal-scope .scm-item-technical-file__actions {
  flex-wrap: wrap;
}

.portal-scope .scm-item-file-cell {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 5px 10px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.portal-scope .scm-item-file-cell > span { min-width: 0; }

.portal-scope .scm-item-file-download {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  padding: 2px 5px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #3159d9;
  font-size: 12px;
  line-height: 1.5;
  cursor: pointer;
}

.portal-scope .scm-item-file-download:hover { background: #eef3ff; }
.portal-scope .scm-item-file-download:disabled { opacity: .55; cursor: wait; }
.portal-scope .scm-item-file-download:focus-visible { outline: 2px solid #3159d9; outline-offset: 2px; }

.portal-scope .scm-item-technical-file__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px 18px;
  margin: 16px 0;
}

.portal-scope .scm-item-technical-file__facts > div {
  min-width: 0;
}

.portal-scope .scm-item-technical-file__facts dt {
  margin-bottom: 4px;
}

.portal-scope .scm-item-technical-file__facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.portal-scope .scm-item-technical-file__properties,
.portal-scope .scm-item-technical-file__unread {
  margin: 0 -18px;
  padding: 11px 18px;
  border-top: 1px solid #edf0f5;
}

.portal-scope .scm-item-technical-file__properties summary {
  color: #315efb;
  cursor: pointer;
  font-weight: 500;
}

.portal-scope .scm-item-technical-file__properties summary span {
  margin-left: 6px;
  color: #86909c;
  font-size: 12px;
  font-weight: 400;
}

.portal-scope .scm-item-technical-file__properties .scm-item-saved-properties {
  max-width: none;
  margin-top: 14px;
}

.portal-scope .scm-item-technical-file__properties .scm-item-saved-properties__group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 20px;
}

.portal-scope .scm-item-technical-file__properties .scm-item-saved-properties__title {
  grid-column: 1 / -1;
}

@media (max-width: 700px) {
  .portal-scope .scm-item-technical-file__properties .scm-item-saved-properties__group {
    grid-template-columns: minmax(0, 1fr);
  }
}

.portal-scope .scm-item-saved-properties {
  min-width: 240px;
  max-width: 420px;
}

.portal-scope .scm-item-saved-properties__meta {
  margin-bottom: 8px;
  color: #4e5969;
  font-size: 12px;
}

.portal-scope .scm-item-saved-properties__group + .scm-item-saved-properties__group {
  margin-top: 10px;
}

.portal-scope .scm-item-saved-properties__title {
  margin-bottom: 5px;
  color: #1d2129;
  font-weight: 600;
}

.portal-scope .scm-item-saved-property {
  display: grid;
  grid-template-columns: minmax(90px, .8fr) minmax(120px, 1.2fr);
  gap: 8px;
  padding: 3px 0;
  overflow-wrap: anywhere;
}

.portal-scope .scm-item-saved-property span {
  color: #86909c;
}

.portal-scope .scm-item-saved-properties__empty,
.portal-scope .scm-item-saved-properties__warning {
  color: #ad6800;
  font-size: 12px;
}

.portal-scope .solidworks-property-preview {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid #d8e2fb;
  border-radius: 10px;
  color: #1d2129;
  background: #fff;
  font-size: 13px;
}

.portal-scope .scm-property-picker-reopen {
  margin: 4px 0 10px;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: #3159d9;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.portal-scope .scm-property-picker-reopen:hover {
  text-decoration: underline;
}

.scm-property-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, .58);
}

.scm-property-picker-dialog {
  display: flex;
  flex-direction: column;
  font-family: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  width: min(1060px, 100%);
  max-height: min(800px, 92vh);
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 54px rgba(15, 23, 42, .24);
  color: #1d2129;
}

.scm-property-picker-dialog header,
.scm-property-picker-dialog footer,
.scm-property-picker-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.scm-property-picker-dialog header {
  padding: 18px 24px 15px;
  border-bottom: 1px solid #edf0f5;
}

.scm-property-picker-dialog h2 {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 650;
}

.scm-property-picker-dialog header p,
.scm-property-picker-dialog footer span {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.scm-property-picker-close {
  flex: 0 0 auto;
  align-self: flex-start;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.scm-property-picker-file {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 14px 24px 0;
  padding: 8px 11px;
  border: 1px solid #e4eaf4;
  border-radius: 6px;
  background: #f8faff;
  color: #52627c;
  font-size: 13px;
}

.scm-property-picker-file i { flex: 0 0 auto; font-size: 16px; }
.scm-property-picker-file span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scm-property-picker-notice {
  margin: 8px 24px 0;
  padding: 8px 11px;
  border: 1px solid #f1dcb9;
  border-radius: 6px;
  background: #fffaf2;
  color: #7a4b0b;
  font-size: 13px;
}

.scm-property-picker-toolbar {
  padding: 10px 24px;
  color: #475569;
  font-size: 13px;
}

.scm-property-picker-toolbar > div,
.scm-property-picker-dialog footer > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scm-property-picker-toolbar button {
  padding: 4px 7px;
  border: 0;
  background: transparent;
  color: #3159d9;
  cursor: pointer;
}

.scm-property-picker-list {
  min-height: 80px;
  overflow-y: auto;
  padding: 0 24px 12px;
}

.scm-property-picker-section + .scm-property-picker-section { margin-top: 12px; }

.scm-property-picker-section h3 {
  overflow: hidden;
  margin: 0;
  padding: 8px 4px;
  color: #17235f;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scm-property-picker-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.scm-property-picker-row {
  display: grid;
  grid-template-columns: 18px minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  min-height: 43px;
  padding: 6px 4px;
  border-top: 1px solid #edf0f5;
  cursor: pointer;
}

.scm-property-picker-row:hover {
  background: #f8faff;
}

.scm-property-picker-row input {
  margin: 0;
  accent-color: #3159d9;
}

.scm-property-picker-row__name {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: #5d6b99;
  font-size: 13px;
}

.scm-property-picker-row__name > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scm-property-picker-row__name em {
  flex: 0 0 auto;
  max-width: 45%;
  overflow: hidden;
  color: #3e61bb;
  font-size: 11px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scm-property-picker-row strong {
  min-width: 0;
  overflow: hidden;
  color: #1d2129;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scm-property-picker-row strong.is-empty { color: #a3adbd; font-weight: 400; }

.scm-property-picker-dialog footer {
  padding: 14px 24px;
  border-top: 1px solid #edf0f5;
}

.scm-property-picker-dialog :is(button, input):focus-visible,
.scm-property-picker-row:focus-within {
  outline: 2px solid #3159d9;
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .scm-property-picker-overlay { padding: 8px; }
  .scm-property-picker-dialog { max-height: 96vh; }
  .scm-property-picker-dialog header,
  .scm-property-picker-toolbar,
  .scm-property-picker-dialog footer { padding-inline: 16px; }
  .scm-property-picker-file,
  .scm-property-picker-notice { margin-inline: 16px; }
  .scm-property-picker-list { padding-inline: 16px; }
  .scm-property-picker-row { grid-template-columns: 18px minmax(0, .8fr) minmax(0, 1.2fr); }
  .scm-property-picker-dialog footer { align-items: stretch; flex-direction: column; }
}

@media (max-width: 420px) {
  .scm-property-picker-dialog header { padding-block: 14px; }
  .scm-property-picker-dialog h2 { font-size: 17px; }
  .scm-property-picker-toolbar { align-items: flex-start; flex-direction: column; gap: 2px; }
  .scm-property-picker-row { grid-template-columns: 18px minmax(0, .9fr) minmax(0, 1.1fr); }
}

.portal-scope.is-scm-procurement-layout .scm-technical-file-results {
  display: block;
  width: 100%;
  min-width: 0;
  margin-top: 14px;
}

.portal-scope.is-scm-procurement-layout .scm-technical-file-results .invoice-file-entry + .invoice-file-entry {
  margin-top: 16px;
}

.portal-scope.is-scm-procurement-layout .scm-technical-file-results .solidworks-property-preview__group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
}

.portal-scope.is-scm-procurement-layout .scm-technical-file-results .solidworks-property-preview__title {
  grid-column: 1 / -1;
}

.portal-scope.is-scm-procurement-layout .scm-technical-file-results .solidworks-property-preview__row {
  grid-template-columns: minmax(120px, .7fr) minmax(0, 1.3fr);
  min-width: 0;
}

@container (max-width: 760px) {
  .portal-scope.is-scm-procurement-layout .scm-technical-file-results .solidworks-property-preview__group {
    grid-template-columns: minmax(0, 1fr);
  }
}

.portal-scope .solidworks-property-preview__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}

.portal-scope .solidworks-property-preview__header span,
.portal-scope .solidworks-property-preview__scope {
  color: #86909c;
  font-size: 12px;
}

.portal-scope .solidworks-property-preview__scope {
  margin: 0 0 12px;
  line-height: 1.5;
}

.portal-scope .solidworks-property-preview__group + .solidworks-property-preview__group {
  margin-top: 12px;
}

.portal-scope .solidworks-property-preview__title {
  margin-bottom: 5px;
  color: #17235f;
  font-weight: 600;
}

.portal-scope .solidworks-property-preview__row {
  display: grid;
  grid-template-columns: minmax(130px, .8fr) minmax(160px, 1.2fr);
  gap: 12px;
  padding: 5px 0;
  border-top: 1px solid #f0f2f5;
  overflow-wrap: anywhere;
}

.portal-scope .solidworks-property-preview__row span {
  color: #5d6b99;
}

.portal-scope .scm-controlled-attribute-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  min-width: 0;
}

.portal-scope .scm-controlled-attribute-row {
  display: grid;
  grid-template-columns: minmax(120px, .7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 42px;
  padding: 4px 0;
  border-top: 1px solid #f0f2f5;
  overflow-wrap: anywhere;
}

.portal-scope .scm-controlled-attribute-row > span {
  color: #5d6b99;
}

.portal-scope .scm-controlled-attribute-row > strong {
  min-width: 0;
  color: #1d2129;
  font-weight: 600;
}

@media (max-width: 900px) {
  .portal-scope .scm-controlled-attribute-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@container (max-width: 760px) {
  .portal-scope .scm-controlled-attribute-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

.portal-scope .solidworks-property-preview__empty,
.portal-scope .solidworks-property-preview__warning,
.portal-scope .solidworks-property-preview.is-empty {
  color: #ad6800;
  font-size: 12px;
}

.portal-scope .scm-item-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e6e7eb;
  border-radius: 6px;
  background: #fff;
}

.portal-scope .scm-item-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  color: #1d2129;
  font-size: 13px;
}

.portal-scope .scm-item-table th,
.portal-scope .scm-item-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f2;
  text-align: left;
  vertical-align: middle;
}

.portal-scope .scm-item-table th {
  color: #4e5969;
  background: #f7f7f9;
  font-weight: 600;
  white-space: nowrap;
}

.portal-scope .scm-item-table tbody tr:last-child td {
  border-bottom: 0;
}

.portal-scope .scm-assembly-table {
  min-width: 300px;
  table-layout: fixed;
}

.portal-scope .scm-assembly-table th:first-child {
  width: 60%;
}

.portal-scope .scm-assembly-table td {
  overflow-wrap: anywhere;
}

.portal-scope .scm-item-table__actions {
  width: 1%;
  text-align: right;
  white-space: nowrap;
}

.portal-scope .scm-item-file-link {
  padding: 0;
  border: 0;
  color: #315efb;
  background: transparent;
  font: inherit;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.portal-scope .scm-item-file-link:hover,
.portal-scope .scm-item-file-link:focus-visible {
  text-decoration: underline;
  outline: none;
}

.portal-scope .scm-item-structure-table {
  margin-top: 18px;
}

.portal-scope .scm-item-structure-table[data-scm-bom-preview] .scm-item-table {
  min-width: 1100px;
}

.portal-scope .scm-item-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  color: #4e5969;
  background: #f2f3f5;
  font-size: 12px;
  font-weight: 500;
  line-height: 22px;
}

.portal-scope .scm-item-status-badge--success {
  color: #237804;
  background: #e8f5e2;
}

.portal-scope .scm-item-status-badge--pending {
  color: #ad6800;
  background: #fff7e6;
}

.portal-scope .scm-item-status-badge--danger {
  color: #cf1322;
  background: #fff1f0;
}

.portal-scope .scm-item-drawing-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid #dedfe3;
  border-radius: 4px;
  background: #fff;
}

.portal-scope .scm-item-approval-drawing {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
}

.portal-scope .scm-item-thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.portal-scope .scm-item-thumbnail-card {
  padding: 0;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dedfe3;
  border-radius: 6px;
  background: #fff;
  color: inherit;
  cursor: zoom-in;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.portal-scope .scm-item-thumbnail-card:hover,
.portal-scope .scm-item-thumbnail-card:focus-visible {
  border-color: #315efb;
  box-shadow: 0 0 0 2px rgb(49 94 251 / 12%);
  outline: none;
}

.portal-scope .scm-item-thumbnail-card__preview {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  color: #86909c;
  background: #f2f3f5;
  font-size: 12px;
}

.portal-scope .scm-item-thumbnail-card__preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.portal-scope .scm-item-thumbnail-card__name {
  padding: 8px 10px;
  overflow: hidden;
  color: #4e5969;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-scope.is-standard-item-request-layout .scm-pdm-thumbnail-card {
  display: flex;
  flex-direction: column;
  cursor: default;
}

.portal-scope.is-standard-item-request-layout .scm-pdm-thumbnail-card.is-primary {
  border-color: var(--portal-primary, #315efb);
}

.portal-scope.is-standard-item-request-layout .scm-pdm-thumbnail-card .scm-item-thumbnail-card__name {
  display: -webkit-box;
  min-height: 3em;
  padding-bottom: 0;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.portal-scope.is-standard-item-request-layout .scm-pdm-thumbnail-card__meta {
  padding: 4px 10px 0;
  color: #86909c;
  font-size: 12px;
}

.portal-scope.is-standard-item-request-layout .scm-pdm-thumbnail-card__actions {
  margin-top: auto;
  padding: 10px;
}

.portal-scope.is-standard-item-request-layout .scm-pdm-thumbnail-card__actions .btn {
  width: 100%;
  white-space: normal;
}

.portal-scope .scm-item-subsection__title--nested {
  margin-top: 16px;
}

.portal-scope .scm-item-history {
  display: grid;
  gap: 12px;
  padding-top: 18px;
}

.portal-scope .scm-item-history-entry {
  padding: 14px 16px;
  border: 1px solid #e6e7eb;
  border-left: 3px solid var(--portal-primary);
  border-radius: 6px;
  background: #fafafa;
  color: #1d2129;
}

.portal-scope .scm-item-history-entry__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.portal-scope .scm-item-history-entry__header span,
.portal-scope .scm-item-history-entry small {
  color: #86909c;
}

.portal-scope .scm-item-history-entry small {
  display: block;
  margin-top: 8px;
}

@media (max-width: 1100px) {
  .portal-scope .scm-item-readonly-grid,
  .portal-scope .scm-item-readonly-grid--basic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .portal-scope .scm-item-approval-panel,
  .portal-scope .scm-item-detail-card {
    padding: 18px 16px;
  }

  .portal-scope .scm-item-readonly-grid--basic,
  .portal-scope .scm-item-readonly-grid,
  .portal-scope .scm-item-readonly-grid--details,
  .portal-scope .scm-item-readonly-grid--attributes {
    grid-template-columns: 1fr;
  }
}

.portal-scope .group-display {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.portal-scope .group-row {
  border: 1px solid #d8e2fb;
  border-radius: 14px;
  padding: 10px;
  background: #fbfdff;
}

.portal-scope .group-row-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.portal-scope .chip-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  background: #2864f0;
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
}

.portal-scope .group-row-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.portal-scope .mini-field {
  background: #fbfdff;
  border: 1px solid #d8e2fb;
  border-radius: 13px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.portal-scope .mini-label {
  font-size: 12px;
  color: #5d6b99;
}

.portal-scope .mini-value {
  font-size: 16px;
  color: #17235f;
  font-weight: 750;
  word-break: break-word;
}

.portal-scope .approvals-page .approval-reimbursement-field {
  display: block;
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  margin-top: 0;
}

.portal-scope .approvals-page .approval-reimbursement-detail-block {
  border: 0;
  border-radius: 0;
  background: #ffffff;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
  padding: 0 0 10px;
  background: #ffffff;
  border-bottom: 0;
}

.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-title {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: #13121A;
  font-size: 16px;
  font-weight: 500;
}

.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-title--section {
  gap: 4px;
}

.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-count {
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
}

.portal-scope .approvals-page .approval-single-column-group .approval-reimbursement-detail-block .reimbursement-detail-table-shell {
  overflow: hidden;
  border: 1px solid #e5e6eb;
  border-radius: 8px;
  --detail-table-right-edge: 0px;
}

.portal-scope .approvals-page .approval-single-column-group .approval-reimbursement-detail-block .reimbursement-detail-table-header-wrap,
.portal-scope .approvals-page .approval-single-column-group .approval-reimbursement-detail-block .reimbursement-detail-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.portal-scope .approvals-page .approval-single-column-group .approval-reimbursement-detail-block .reimbursement-detail-table-wrap {
  max-height: none !important;
  overflow-y: auto;
}

.portal-scope .approvals-page .approval-single-column-group .approval-reimbursement-detail-block .reimbursement-detail-table--single-column {
  width: 100%;
  min-width: 100%;
  table-layout: fixed;
}

.portal-scope .approvals-page .approval-single-column-group .approval-reimbursement-detail-block .reimbursement-detail-table--single-column th,
.portal-scope .approvals-page .approval-single-column-group .approval-reimbursement-detail-block .reimbursement-detail-table--single-column td {
  width: 100% !important;
  min-width: 0;
  padding: 12px 18px;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.portal-scope .approvals-page .approval-single-column-group .approval-reimbursement-detail-block .reimbursement-detail-table--single-column th {
  height: auto;
  background: #f7f7fa;
  box-shadow: none;
}

.portal-scope .approvals-page .approval-single-column-group .approval-reimbursement-detail-block .reimbursement-detail-table--single-column td {
  height: auto;
  min-height: 48px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.portal-scope .approvals-page .approval-single-column-group .approval-reimbursement-detail-block .reimbursement-detail-table--single-column tbody tr:last-child td {
  border-bottom: 0;
}

.portal-scope .approvals-page .approval-single-column-group .approval-reimbursement-detail-block .reimbursement-detail-v-scroll,
.portal-scope .approvals-page .approval-single-column-group .approval-reimbursement-detail-block .reimbursement-detail-h-scroll {
  display: none !important;
}

.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table-shell {
  position: relative;
  max-width: 100%;
  --detail-table-right-edge: 8px;
}

.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table-shell::after {
  content: "";
  position: absolute;
  top: 0;
  right: 8px;
  bottom: 14px;
  z-index: 4;
  width: 96px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 120ms ease;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.88) 58%, #ffffff 100%),
    linear-gradient(90deg, rgba(var(--tblr-primary-rgb), 0), rgba(var(--tblr-primary-rgb), 0.10));
  box-shadow: inset -18px 0 18px -18px rgba(19, 18, 26, 0.32);
}

.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table-shell.is-h-scrollable.has-h-scroll-right::after {
  opacity: 1;
}

.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table-header-wrap {
  position: relative;
  z-index: 5;
  width: calc(100% - var(--detail-table-right-edge));
  max-width: calc(100% - var(--detail-table-right-edge));
  padding-right: 0;
  overflow: hidden;
  overscroll-behavior: none;
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table-header-wrap::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table-wrap {
  position: relative;
  width: calc(100% - var(--detail-table-right-edge));
  max-width: calc(100% - var(--detail-table-right-edge));
  max-height: 264px;
  padding-right: 0;
  overflow-x: hidden;
  overflow-y: scroll;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: auto;
  background-image: none;
  background-position: right top;
  background-repeat: no-repeat;
  background-size: 8px 100%;
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table-wrap::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table-wrap::-webkit-scrollbar:vertical {
  width: 0;
  display: none;
}

.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table-wrap::-webkit-scrollbar:horizontal {
  height: 0;
  display: none;
}

.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table-wrap::-webkit-scrollbar-track:horizontal,
.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table-wrap::-webkit-scrollbar-thumb:horizontal {
  display: none;
}

.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table-wrap::-webkit-scrollbar-track {
  border-radius: 4px;
  background: transparent;
}

.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table-wrap::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: transparent;
}

.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-v-scroll {
  position: absolute;
  top: 46px;
  right: 0;
  bottom: 0;
  display: none;
  width: 8px;
  border-radius: 999px;
  background: #F7F7FA;
  cursor: pointer;
  touch-action: none;
}

.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table-shell.is-h-scrollable > .reimbursement-detail-v-scroll {
  bottom: 14px;
}

.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table-shell.is-v-scrollable > .reimbursement-detail-v-scroll {
  display: block;
}

.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-v-scroll-thumb {
  width: 100%;
  min-height: 40px;
  border-radius: inherit;
  background: rgba(0, 0, 0, 0.3);
  cursor: grab;
}

.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-v-scroll-thumb:hover,
.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-v-scroll:active .reimbursement-detail-v-scroll-thumb {
  background: rgba(0, 0, 0, 0.3);
}

.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-v-scroll-thumb:active {
  cursor: grabbing;
}

.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-h-scroll {
  display: none;
  height: 8px;
  margin-top: 6px;
  margin-right: var(--detail-table-right-edge);
  border-radius: 999px;
  background: #F7F7FA;
  cursor: pointer;
  touch-action: none;
}

.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table-shell.is-h-scrollable > .reimbursement-detail-h-scroll {
  display: block;
}

.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-h-scroll-thumb {
  height: 100%;
  border-radius: inherit;
  background: rgba(0, 0, 0, 0.3);
  cursor: grab;
}

.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-h-scroll-thumb:hover,
.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-h-scroll:active .reimbursement-detail-h-scroll-thumb {
  background: rgba(0, 0, 0, 0.3);
}

.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-h-scroll-thumb:active {
  cursor: grabbing;
}

.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table {
  width: max-content;
  min-width: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
}

.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table--corporate {
  min-width: 0;
}

.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table thead {
  position: relative;
  z-index: 6;
}

.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table th {
  position: relative;
  z-index: 6;
  height: 46px;
  padding: 10px 28px;
  color: #86909C;
  background: #F2F2F5;
  border-bottom: 1px solid #E5E6EB;
  box-shadow: 0 1px 0 #E5E6EB;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table td {
  height: 48px;
  padding: 10px 28px;
  color: #13121A;
  font-size: 14px;
  line-height: 22px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #F0F2F5;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table tbody tr:last-child td {
  border-bottom: 1px solid #F0F2F5;
}

.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table th:nth-child(1),
.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table td:nth-child(1) {
  width: 22%;
}

.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table th:nth-child(2),
.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table td:nth-child(2) {
  width: 18%;
}

.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table th:nth-child(3),
.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table td:nth-child(3) {
  width: 16%;
}

.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table th:nth-child(4),
.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table td:nth-child(4) {
  width: 18%;
}

.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table th:nth-child(5),
.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table td:nth-child(5) {
  width: 26%;
}

.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table--corporate th:nth-child(1),
.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table--corporate td:nth-child(1) {
  width: 14%;
}

.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table--corporate th:nth-child(2),
.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table--corporate td:nth-child(2) {
  width: 11%;
}

.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table--corporate th:nth-child(3),
.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table--corporate td:nth-child(3) {
  width: 12%;
}

.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table--corporate th:nth-child(4),
.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table--corporate td:nth-child(4) {
  width: 15%;
}

.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table--corporate th:nth-child(5),
.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table--corporate td:nth-child(5),
.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table--corporate th:nth-child(7),
.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table--corporate td:nth-child(7) {
  width: 10%;
}

.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table--corporate th:nth-child(6),
.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table--corporate td:nth-child(6),
.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table--corporate th:nth-child(9),
.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table--corporate td:nth-child(9),
.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table--corporate th:nth-child(10),
.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table--corporate td:nth-child(10) {
  width: 8%;
}

.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table--corporate th:nth-child(8),
.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table--corporate td:nth-child(8) {
  width: 9%;
}

.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table {
  width: max-content;
  min-width: 0;
  table-layout: auto;
}

.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table--corporate {
  min-width: 0;
}

.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table th,
.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table td {
  width: 1% !important;
  min-width: 0;
}

.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table th.reimbursement-serial-no-cell,
.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table td.reimbursement-serial-no-cell {
  min-width: 0;
}

.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table th.workflow-attachment-cell,
.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table td.workflow-attachment-cell {
  width: auto !important;
  min-width: 0;
}

.portal-scope .approvals-page .reimbursement-detail-table td.workflow-attachment-cell .detail-file-list {
  display: grid;
  grid-template-columns: repeat(4, fit-content(240px));
  align-items: flex-start;
  justify-content: start;
  row-gap: 6px;
  column-gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.portal-scope .approvals-page .reimbursement-detail-table td.workflow-attachment-cell .detail-file-item,
.portal-scope .approvals-page .reimbursement-detail-table td.workflow-attachment-cell .detail-file-link {
  display: block;
  width: fit-content;
  max-width: min(240px, 100%);
  max-height: 48px;
  overflow: hidden;
  white-space: normal;
  overflow-wrap: anywhere;
  text-overflow: clip;
  text-align: left;
}

.portal-scope .detail-file-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 240px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.portal-scope .detail-file-item:not(:has(.detail-file-link)) {
  border-radius: 4px;
  background: #F7F7FA;
  color: #13121A;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 22px;
}

.portal-scope .detail-file-link {
  border: 0;
  border-radius: 4px;
  background: #F7F7FA;
  color: #13121A;
  padding: 2px 8px;
  font: inherit;
  font-size: 12px;
  line-height: 22px;
  text-decoration: none;
  cursor: pointer;
  max-width: 240px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.portal-scope .detail-file-link:hover {
  color: var(--portal-primary);
  text-decoration: underline;
}

.attachment-preview-modal .modal-content {
  border: 0;
  border-radius: 12px;
  overflow: hidden;
}

.attachment-preview-header {
  align-items: center;
  gap: 16px;
}

.attachment-preview-header .modal-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-preview-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.attachment-preview-body {
  min-height: 60vh;
  max-height: 78vh;
  background: #f7f8fc;
  padding: 16px;
}

.attachment-preview-frame {
  width: 100%;
  height: 72vh;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
}

.attachment-preview-stage {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.attachment-preview-stage img,
.attachment-preview-stage video {
  max-width: 100%;
  max-height: 72vh;
  border-radius: 8px;
  background: #ffffff;
}

.attachment-preview-empty {
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #6b7280;
}

.attachment-preview-empty-title {
  color: #1f2937;
  font-weight: 700;
  margin-bottom: 8px;
}

.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table th.workflow-remark-cell,
.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-table td.workflow-remark-cell {
  min-width: 0;
}

.portal-scope .opinion-box {
  border: 1px solid #e6e7ed;
  border-radius: 12px;
  min-height: 88px;
  display: flex;
  align-items: stretch;
  background: #ffffff;
  overflow: hidden;
  margin-top: 8px;
}

.portal-scope .opinion-box textarea {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 14px;
  resize: none;
  font-size: 14px;
  color: #1f1f1f;
}

.portal-scope .opinion-box textarea::placeholder {
  color: #86909c;
}

.portal-scope .legal-approval-attachments {
  margin-top: 12px;
}

.portal-scope .legal-approval-attachments__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.portal-scope .legal-approval-attachments__head .form-label {
  margin: 0;
  color: #4b5563;
  font-weight: 600;
}

.portal-scope .legal-approval-attachments__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.portal-scope .legal-approval-attachments__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
}

.portal-scope .legal-approval-attachments__item .detail-file-link {
  min-width: 0;
}

.portal-scope .legal-approval-attachments__remove {
  border: none;
  background: transparent;
  color: #6b7280;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  flex: 0 0 auto;
}

.portal-scope .legal-approval-attachments__remove:hover {
  background: #eef2ff;
  color: #4f46e5;
}

.portal-scope .legal-approval-attachments__empty {
  color: #9ca3af;
  font-size: 13px;
}

.portal-scope .opinion-footer {
  padding: 12px 20px;
  border-top: 1px solid #eceef4;
  background: #ffffff;
}

.portal-scope .approval-detail-page.is-offer-approval-detail .detail-shell {
  min-height: 100%;
  align-items: center;
  padding: 14px;
  background: #f7f9fc;
}

.portal-scope .approval-detail-page.is-offer-approval-detail .detail-card {
  width: min(1200px, 100%);
  flex: 0 0 auto;
  min-height: auto;
  border: 1px solid #dbe3f0;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.portal-scope .approval-detail-page.is-offer-approval-detail .card-top,
.portal-scope .approval-detail-page.is-offer-approval-detail .title-row,
.portal-scope .approval-detail-page.is-offer-approval-detail .section > .section-title,
.portal-scope .approval-detail-page.is-offer-approval-detail [data-role="applicant-assets-section"],
.portal-scope .approval-detail-page.is-offer-approval-detail .card-body > .section:nth-of-type(3),
.portal-scope .approval-detail-page.is-offer-approval-detail .card-body > .section:nth-of-type(4) {
  display: none;
}

.portal-scope .approval-detail-page.is-offer-approval-detail .card-body {
  padding: 0;
  gap: 0;
  overflow: visible;
}

.portal-scope .approval-detail-page.is-offer-approval-detail .section {
  gap: 0;
}

.portal-scope .approval-detail-page.is-offer-approval-detail .detail-grid {
  display: block;
}

.portal-scope .offer-approval-form {
  display: grid;
  gap: 20px;
  padding: 38px 38px 20px;
  color: #0f1f3d;
}

.portal-scope .offer-approval-head {
  display: grid;
  gap: 12px;
}

.portal-scope .offer-approval-title-line {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.portal-scope .offer-approval-title-line h1 {
  margin: 0;
  color: #10213e;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.15;
}

.portal-scope .offer-approval-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
}

.portal-scope .offer-approval-number {
  color: #66748c;
  font-size: 16px;
}

.portal-scope .offer-approval-candidate-card,
.portal-scope .offer-approval-panel {
  border: 1px solid #d9e1ed;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.035);
}

.portal-scope .offer-approval-candidate-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 34px;
  padding: 30px 36px;
}

.portal-scope .offer-approval-avatar {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(145deg, #e4e5ff, #f2efff);
  color: #6655f6;
  font-size: 52px;
  font-weight: 800;
}

.portal-scope .offer-approval-candidate-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.portal-scope .offer-approval-candidate-title {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.portal-scope .offer-approval-candidate-title strong {
  min-width: 0;
  color: #11213d;
  font-size: 34px;
  font-weight: 850;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.portal-scope .offer-approval-candidate-title span {
  flex: 0 0 auto;
  padding: 5px 12px;
  border-radius: 999px;
  background: #eef0ff;
  color: #4f46e5;
  font-size: 14px;
  font-weight: 800;
}

.portal-scope .offer-approval-candidate-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: #5c6a85;
  font-size: 16px;
}

.portal-scope .offer-approval-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.portal-scope .offer-approval-meta-item i {
  color: #7a86a0;
  font-size: 20px;
}

.portal-scope .offer-approval-meta-item span {
  overflow-wrap: anywhere;
}

.portal-scope .offer-approval-meta-sep {
  width: 1px;
  height: 20px;
  background: #cbd5e1;
}

.portal-scope .offer-approval-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.95fr);
  gap: 20px;
}

.portal-scope .offer-approval-panel {
  min-width: 0;
  padding: 32px 28px;
}

.portal-scope .offer-section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  color: #11213d;
}

.portal-scope .offer-section-title::before {
  content: "";
  width: 3px;
  height: 30px;
  border-radius: 999px;
  background: #2563eb;
}

.portal-scope .offer-section-icon,
.portal-scope .offer-highlight-icon,
.portal-scope .offer-info-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.portal-scope .offer-section-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #eef4ff;
  color: #2563eb;
  font-size: 22px;
}

.portal-scope .offer-section-title strong {
  color: #11213d;
  font-size: 20px;
  font-weight: 850;
}

.portal-scope .offer-highlight-list {
  display: grid;
  gap: 20px;
  margin-bottom: 24px;
}

.portal-scope .offer-highlight {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 100px;
  padding: 18px 24px;
  border: 1px solid #dbe6f6;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fbff, #eef6ff);
}

.portal-scope .offer-highlight--green {
  border-color: #d6eadb;
  background: linear-gradient(135deg, #f7fffb, #ecfbf0);
}

.portal-scope .offer-highlight-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #e2ecff;
  color: #2563eb;
  font-size: 26px;
}

.portal-scope .offer-highlight--green .offer-highlight-icon {
  background: #d8f6df;
  color: #16a34a;
}

.portal-scope .offer-highlight small,
.portal-scope .offer-info-item small {
  display: block;
  color: #52617c;
  font-size: 15px;
  line-height: 1.25;
}

.portal-scope .offer-highlight strong {
  display: block;
  margin-top: 6px;
  color: #2563eb;
  font-size: 27px;
  font-weight: 850;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.portal-scope .offer-highlight--green strong {
  color: #16a34a;
}

.portal-scope .offer-kv-list {
  display: grid;
  gap: 18px;
}

.portal-scope .offer-kv {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  margin: 0;
}

.portal-scope .offer-kv dt {
  color: #52617c;
  font-size: 15px;
  font-weight: 600;
}

.portal-scope .offer-kv dd {
  margin: 0;
  color: #0f1f3d;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.portal-scope .offer-salary-total {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #2563eb;
}

.portal-scope .offer-salary-total strong {
  font-size: 48px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
}

.portal-scope .offer-salary-total span {
  font-size: 16px;
  font-weight: 800;
}

.portal-scope .offer-salary-caption {
  margin-top: 18px;
  color: #53627f;
  font-size: 18px;
  font-weight: 600;
}

.portal-scope .offer-salary-breakdown {
  display: grid;
  gap: 24px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px dashed #cbd5e1;
}

.portal-scope .offer-salary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.portal-scope .offer-salary-row span {
  color: #52617c;
  font-size: 15px;
}

.portal-scope .offer-salary-row strong {
  color: #0f1f3d;
  font-size: 16px;
  font-weight: 750;
  text-align: right;
}

.portal-scope .offer-other-panel {
  padding-top: 22px;
  padding-bottom: 18px;
}

.portal-scope .offer-other-panel .offer-section-title {
  margin-bottom: 12px;
}

.portal-scope .offer-other-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 30px;
  row-gap: 0;
}

.portal-scope .offer-info-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 72px;
  border-bottom: 1px solid #e2e8f0;
}

.portal-scope .offer-info-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #eef4ff;
  color: #2563eb;
  font-size: 21px;
}

.portal-scope .offer-info-item strong {
  display: block;
  margin-top: 3px;
  color: #0f1f3d;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.portal-scope .approval-detail-page.is-offer-approval-detail .opinion-footer {
  padding: 16px 38px 22px;
  border-top: 0;
}

.portal-scope .approval-detail-page.is-offer-approval-detail .opinion-footer .section-title {
  margin-bottom: 8px;
  color: #52617c;
  font-size: 15px;
  font-weight: 600;
}

.portal-scope .approval-detail-page.is-offer-approval-detail .opinion-footer .section-title .accent {
  display: none;
}

.portal-scope .approval-detail-page.is-offer-approval-detail .opinion-box {
  min-height: 64px;
  margin-top: 0;
  border-color: #dbe3f0;
  border-radius: 8px;
}

.portal-scope .approval-detail-page.is-offer-approval-detail .opinion-box textarea {
  min-height: 64px;
  padding: 14px 16px;
}

.portal-scope .approval-detail-page.is-offer-approval-detail .footer-actions {
  padding-top: 14px;
}

.portal-scope .approval-detail-page.is-offer-approval-detail .right-actions .btn {
  min-width: 140px;
  height: 42px;
  border-radius: 8px;
  font-weight: 700;
}

.portal-scope .approval-detail-page.is-offer-approval-detail .right-actions .btn-primary {
  background: #2563eb;
  border-color: #2563eb;
}

@media (max-width: 900px) {
  .portal-scope .offer-approval-form {
    padding: 24px 18px 16px;
  }

  .portal-scope .offer-approval-main-grid,
  .portal-scope .offer-other-grid {
    grid-template-columns: 1fr;
  }

  .portal-scope .offer-approval-candidate-card {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 18px;
    padding: 22px;
  }

  .portal-scope .offer-approval-avatar {
    width: 72px;
    height: 72px;
    font-size: 38px;
  }

  .portal-scope .offer-approval-candidate-title strong {
    font-size: 28px;
  }

  .portal-scope .offer-salary-total strong {
    font-size: 40px;
  }

  .portal-scope .approval-detail-page.is-offer-approval-detail .opinion-footer {
    padding: 14px 18px 18px;
  }
}

@media (max-width: 640px) {
  .portal-scope .approval-detail-page.is-offer-approval-detail .detail-shell {
    padding: 0;
    background: #ffffff;
  }

  .portal-scope .approval-detail-page.is-offer-approval-detail .detail-card {
    width: 100%;
    border-width: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .portal-scope .offer-approval-title-line {
    flex-wrap: wrap;
  }

  .portal-scope .offer-approval-title-line h1 {
    font-size: 26px;
  }

  .portal-scope .offer-approval-number,
  .portal-scope .offer-approval-candidate-meta,
  .portal-scope .offer-kv dd,
  .portal-scope .offer-info-item strong {
    font-size: 14px;
  }

  .portal-scope .offer-approval-candidate-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .portal-scope .offer-approval-candidate-title {
    justify-content: center;
    flex-wrap: wrap;
  }

  .portal-scope .offer-approval-candidate-meta {
    justify-content: center;
  }

  .portal-scope .offer-approval-meta-sep {
    display: none;
  }

  .portal-scope .offer-approval-panel {
    padding: 22px 18px;
  }

  .portal-scope .offer-highlight {
    grid-template-columns: 52px minmax(0, 1fr);
    min-height: 80px;
    padding: 14px;
  }

  .portal-scope .offer-highlight-icon {
    width: 46px;
    height: 46px;
    font-size: 22px;
  }

  .portal-scope .offer-highlight strong {
    font-size: 22px;
  }

  .portal-scope .offer-kv {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .portal-scope .offer-salary-total strong {
    font-size: 34px;
  }

  .portal-scope .offer-salary-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .portal-scope .offer-salary-row strong {
    text-align: left;
  }

  .portal-scope .offer-info-item {
    min-height: 66px;
  }

  .portal-scope .approval-detail-page.is-offer-approval-detail .footer-actions,
  .portal-scope .approval-detail-page.is-offer-approval-detail .right-actions {
    width: 100%;
  }

  .portal-scope .approval-detail-page.is-offer-approval-detail .right-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .portal-scope .approval-detail-page.is-offer-approval-detail .right-actions .btn {
    min-width: 0;
    width: 100%;
  }
}

.portal-scope .footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 12px;
}

@media (max-width: 640px) {
  .portal-scope .approval-detail-page.is-offer-approval-detail .footer-actions,
  .portal-scope .approval-detail-page.is-offer-approval-detail .right-actions {
    width: 100%;
  }

  .portal-scope .approval-detail-page.is-offer-approval-detail .right-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

.portal-scope .left-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
}

.portal-scope .right-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portal-scope .process-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Read-only detail dialogs keep parallel reviewers in the same workflow step. */
.portal-scope .reimbursement-portal-process,
.portal-scope .reimbursement-portal-process > .process-group {
  width: 100%;
}

.portal-scope .reimbursement-portal-process .group-nodes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
  align-items: start;
}

.portal-scope .reimbursement-portal-process :is(.process-item, .node, .node-meta) {
  min-width: 0;
}

.portal-scope .reimbursement-portal-process :is(.node-title, .node-name) {
  flex-wrap: wrap;
}

.portal-scope .reimbursement-portal-process :is(.node-delegation, .node-reassignment, .node-comment) {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.portal-scope .process-group {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.portal-scope .group-nodes {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: center;
}

.portal-scope .group-nodes.group-nodes-aggregate {
  display: grid;
  grid-template-columns: fit-content(50%) minmax(0, 1fr);
  column-gap: 40px;
  row-gap: 12px;
  align-items: center;
  width: 100%;
}

.portal-scope .group-nodes.group-nodes-single-aggregate {
  grid-template-columns: minmax(0, 1fr);
}

.portal-scope .group-nodes.group-nodes-aggregate .process-item,
.portal-scope .group-nodes.group-nodes-aggregate .node-meta {
  min-width: 0;
}

.portal-scope .group-nodes.group-nodes-aggregate .node {
  min-width: 0;
  max-width: 100%;
}

.portal-scope .group-nodes.group-nodes-aggregate .node-avatar {
  flex-shrink: 0;
}

.portal-scope .group-nodes.group-nodes-aggregate .node-name {
  flex-wrap: wrap;
}

.portal-scope .group-nodes.group-nodes-aggregate .node-comment {
  max-width: min(320px, 100%);
  overflow-wrap: anywhere;
}

.portal-scope .group-nodes.group-nodes-aggregate .node-delegation span {
  white-space: normal;
  overflow-wrap: anywhere;
}

.approval-detail-modal .portal-scope .approval-detail-or-candidate {
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.portal-scope .process-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  position: relative;
}

.portal-scope .process-item.has-pill {
  margin-right: 36px;
}

.portal-scope .node {
  display: flex;
  align-items: center;
  gap: 10px;
}

.portal-scope .node-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f4f4f6;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #3c3c46;
  overflow: hidden;
}

.portal-scope .node-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-scope .node-avatar.completed { border: 1px solid #40c563; color: #1e8c3a; }
.portal-scope .node-avatar.current { border: 1px solid var(--portal-primary); color: var(--portal-primary); }
.portal-scope .node-avatar.pending { border: 1px solid #e3e4e8; color: #8b8f98; }
.portal-scope .node-avatar.initiator { border: 1px solid #d7d9e0; color: #3c3c46; }
.portal-scope .node-avatar.rejected { border: 1px solid #f87171; color: #b91c1c; }
.portal-scope .node-avatar.returned { border: 1px solid #fb923c; color: #c2410c; }
.portal-scope .node-avatar.withdrawn { border: 1px solid #a3a3a3; color: #525252; }
.portal-scope .node-avatar.skipped { border: 1px solid #94a3b8; color: #475569; }
.portal-scope .node-avatar.aggregated {
  background: var(--portal-primary-soft);
  color: var(--portal-primary);
  border-color: var(--portal-primary);
  font-weight: 800;
}

.portal-scope .badge {
  position: absolute;
  bottom: 2px;
  right: 4px;
  background: #40c563;
  color: #fff;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 1px solid #fff;
  font-size: 11px;
  line-height: 16px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.portal-scope .node-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.portal-scope .node-title {
  font-weight: 400;
  font-size: 14px;
  color: #707073;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.portal-scope .node-flag {
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: #e2e8f0;
  color: #475569;
  line-height: 1.2;
}

.portal-scope .node-flag-skip {
  background: #e2e8f0;
  color: #475569;
}

.portal-scope .node-flag-returned {
  background: #fff7ed;
  color: #c2410c;
}

.portal-scope .node-flag-rejected {
  background: #fee2e2;
  color: #b91c1c;
}

.portal-scope .node-title.completed { color: #00b22a; }
.portal-scope .node-title.rejected { color: #b91c1c; }
.portal-scope .node-title.returned { color: #c2410c; }
.portal-scope .node-title.withdrawn { color: #525252; }
.portal-scope .node-title.skipped { color: #475569; }
.portal-scope .node-title.current { color: var(--portal-primary); }
.portal-scope .node-title.initiator { color: #3c3c46; }
.portal-scope .node-title.aggregated { color: #707073; font-weight: 400; }

.portal-scope .node-comment.completed { color: #00b22a; }
.portal-scope .node-comment.rejected { color: #b91c1c; }
.portal-scope .node-comment.returned { color: #c2410c; }
.portal-scope .node-comment.withdrawn { color: #525252; }
.portal-scope .node-comment.skipped { color: #475569; }

.portal-scope .node-comment {
  color: #4b5563;
  font-size: 12px;
  line-height: 1.4;
  background: #f8fafc;
  border-radius: 8px;
  padding: 6px 8px;
  max-width: 320px;
  white-space: pre-wrap;
}

.portal-scope .node-attachments {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
  max-width: 360px;
}

.portal-scope .node-attachments--table {
  max-width: none;
}

.portal-scope .node-attachments__label {
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
}

.portal-scope .node-attachments__files {
  font-size: 12px;
}

.portal-scope .node-time {
  color: #bcbcbf;
  font-size: 12px;
  white-space: pre;
}

.portal-scope .node-name {
  color: #13121a;
  font-weight: 400;
  font-size: 14px;
  gap: 8px;
  align-items: center;
}

.portal-scope .node-name.aggregated {
  flex-wrap: nowrap;
  max-width: 100%;
}

.portal-scope .node-delegation {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  max-width: 100%;
  color: var(--portal-primary);
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
}

.portal-scope .node-delegation span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-scope .node-reassignment {
  display: inline-flex;
  align-items: flex-start;
  gap: 5px;
  width: fit-content;
  max-width: min(420px, 100%);
  margin-top: 4px;
  padding: 4px 7px;
  border-radius: 6px;
  background: #f8fafc;
  color: #4b5563;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
}

.portal-scope .node-reassignment i {
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--portal-primary);
}

.portal-scope .node-reassignment span {
  min-width: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.portal-scope .aggregate-users {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  max-width: 100%;
}

.portal-scope .aggregate-user {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 10px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.portal-scope .aggregate-user .mini-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #def0ff, #e9e7ff);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #2d1f7a;
  overflow: hidden;
}

.portal-scope .aggregate-user .mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-scope .aggregate-user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.portal-scope .aggregate-user-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 6px;
}

.portal-scope .aggregate-user .mini-avatar.node-avatar {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  overflow: visible;
}

.portal-scope .aggregate-user .mini-avatar.node-avatar img {
  border-radius: inherit;
}

.portal-scope .aggregate-user .mini-avatar .badge {
  width: 12px;
  height: 12px;
  line-height: 12px;
  font-size: 9px;
  bottom: -2px;
  right: -2px;
}

.portal-scope .aggregate-user-meta .node-comment {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.portal-scope .aggregate-user--history,
.portal-scope .aggregate-user--delegated {
  align-items: flex-start;
  flex-shrink: 1;
  min-width: 0;
  max-width: 100%;
}

.portal-scope .aggregate-user--delegated .mini-avatar {
  flex-shrink: 0;
}

.portal-scope .aggregate-user--delegated .node-delegation span {
  white-space: normal;
  overflow-wrap: anywhere;
}

.portal-scope .aggregate-name {
  color: #13121a;
  font-weight: 400;
  font-size: 14px;
  white-space: nowrap;
}

.portal-scope .process-node-cc {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
  max-width: 100%;
}

.portal-scope .process-node-cc__label {
  color: #13121a;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.portal-scope .process-node-cc--compact .process-node-cc__label {
  color: #8a94a6;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
}

.portal-scope .process-node-cc .aggregate-users {
  flex-wrap: wrap;
  row-gap: 8px;
}

.portal-scope .process-node-cto {
  margin-top: 8px;
}

.portal-scope .process-node-cto .process-node-cc__label {
  color: #13121a;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.portal-scope .process-node-cto-decision {
  align-items: center;
  gap: 10px;
}

.portal-scope .approval-segment {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #d9dce7;
  border-radius: 8px;
  background: #ffffff;
}

.portal-scope .approval-segment-btn {
  min-width: 54px;
  height: 30px;
  border: 0;
  border-left: 1px solid #d9dce7;
  background: transparent;
  color: #4b5563;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.portal-scope .approval-segment-btn:first-child {
  border-left: 0;
}

.portal-scope .approval-segment-btn.is-active {
  background: #264aff;
  color: #ffffff;
}

.portal-scope .group-nodes.group-nodes-aggregate .node-name.aggregated {
  flex-wrap: wrap;
}

.portal-scope .group-nodes.group-nodes-aggregate .aggregate-users {
  flex-wrap: wrap;
  row-gap: 8px;
  overflow-x: hidden;
}

.portal-scope .connector {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-left: 20px;
}

.portal-scope .connector-inline {
  position: absolute;
  top: 20px;
  left: calc(100% + 8px);
  flex-direction: row;
  align-items: center;
  gap: 6px;
  margin-left: 0;
  pointer-events: none;
}

.portal-scope .connector-line {
  width: 2px;
  height: 30px;
  background: #e4e4eb;
}

.portal-scope .connector-line.dashed {
  width: 20px;
  height: 2px;
  border-bottom: 2px dashed #e5e6eb;
  background: transparent;
  flex-shrink: 0;
}

.portal-scope .connector-pill {
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--portal-primary-soft);
  color: var(--portal-primary);
  font-weight: 700;
  font-size: 11px;
}

.portal-scope .cc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
  color: #1f1f1f;
}

.portal-scope .cc-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--portal-primary-soft);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.portal-scope .cc-text {
  font-weight: 400;
}

.portal-scope .cc-people {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.portal-scope .cc-person {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.portal-scope .cc-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #def0ff, #e9e7ff);
  display: grid;
  place-items: center;
  font-weight: 400;
  font-size: 12px;
  color: #2d1f7a;
  overflow: hidden;
}

.portal-scope .cc-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-scope .cc-name {
  color: #1f1f1f;
  font-weight: 400;
}

.portal-scope .approvals-page .detail-card .title-row {
  margin-bottom: 0;
  padding: 0;
  border-bottom: 0;
}

.portal-scope .approvals-page .detail-card .detail-heading {
  flex: 1 1 auto;
  min-width: 0;
}

.portal-scope .approvals-page .detail-card .detail-title-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 96px;
  padding-top: 2px;
}

.portal-scope .approvals-page .detail-card .task-title {
  align-items: center;
  gap: 10px;
  color: #17235f;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0;
}

.portal-scope .approvals-page .detail-card .title-meta {
  gap: 4px;
  margin-top: 10px;
}

.portal-scope .approvals-page .detail-card .detail-data-section {
  gap: 8px;
  margin-top: 24px;
}

.portal-scope .approvals-page .detail-card .detail-data-section .section-title {
  color: #13121a;
  font-size: 16px;
  font-weight: 500;
}

.portal-scope .approvals-page .detail-card .section {
  margin-top: 0;
}

.portal-scope .approvals-page .detail-card .detail-heading > .detail-data-section {
  margin-top: 24px;
}

.portal-scope .approvals-page .detail-card .section-title {
  color: #13121A;
  font-size: 16px;
  font-weight: 500;
}

.portal-scope .approvals-page .detail-card .section-title .accent {
  width: 4px;
  height: 14px;
  border-radius: 5px;
  background: #2864f0;
}

.portal-scope .approvals-page .detail-card .detail-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 0;
}

.portal-scope .approvals-page .detail-card .detail-grid > .approval-reimbursement-field:not(:first-child) {
  margin-top: 16px;
}

.portal-scope .approvals-page .detail-card .detail-grid > .approval-reimbursement-field:first-child {
  margin-top: 20px;
}

.portal-scope .approvals-page .detail-card .detail-grid > .field,
.portal-scope .approvals-page .detail-card .detail-grid > .approval-reimbursement-field {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.portal-scope .approvals-page .detail-card .detail-grid > .field:not(.approval-reimbursement-field) {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.portal-scope .approvals-page .detail-card .detail-grid > .field .field-label {
  color: #4E5969;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
}

.portal-scope .approvals-page .detail-card .detail-grid > .field .field-value {
  color: #13121A;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
  overflow-wrap: anywhere;
}

.portal-scope .approvals-page .detail-card .detail-grid > .field.field-total .field-value {
  color: #3158f5;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.portal-scope .approval-detail-page .detail-card .detail-grid > .field .field-value .detail-value-link,
.portal-scope .approvals-page .detail-card .detail-grid > .field .field-value .detail-value-link {
  color: #3F51F5;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.portal-scope .approval-detail-page .detail-card .detail-grid > .field .field-value .detail-value-link:hover,
.portal-scope .approvals-page .detail-card .detail-grid > .field .field-value .detail-value-link:hover {
  text-decoration: underline;
}

.portal-scope .approvals-page .detail-card .detail-grid > .field .field-value.long {
  white-space: pre-wrap;
}

.portal-scope .approval-detail-page .detail-card .detail-value-link,
.portal-scope .approvals-page .detail-card .detail-value-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  color: #3155ff;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.portal-scope .approval-detail-page .detail-card .detail-value-link:hover,
.portal-scope .approvals-page .detail-card .detail-value-link:hover {
  color: #1738d1;
}

.portal-scope .approval-detail-page .detail-card .detail-value-link:focus-visible,
.portal-scope .approvals-page .detail-card .detail-value-link:focus-visible {
  border-radius: 3px;
  outline: 2px solid rgba(49, 85, 255, 0.35);
  outline-offset: 2px;
}

.portal-scope .approval-detail-page .detail-card .detail-value-link .mdi,
.portal-scope .approvals-page .detail-card .detail-value-link .mdi {
  flex: 0 0 auto;
  font-size: 16px;
  text-decoration: none;
}

.portal-scope .approvals-page .detail-card .detail-grid > .approval-reimbursement-field {
  grid-column: 1 / -1;
  padding: 0;
  border: none;
  background: transparent;
}

.portal-scope .approvals-page .process-row {
  gap: 0;
  margin-top: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #ffffff;
}

.portal-scope .approvals-page .detail-card .process-section {
  gap: 8px;
}

.portal-scope .approvals-page .detail-card .process-section .process-row {
  margin-top: 0;
}

.portal-scope .approvals-page .detail-card .process-section .cc-row {
  margin-top: 8px;
}

.portal-scope .approvals-page .detail-card .approval-opinion-section {
  padding: 0;
  border-top: 0;
  background: transparent;
}

.portal-scope .approvals-page .process-group {
  min-height: 74px;
}

.portal-scope .approvals-page .group-nodes {
  gap: 18px;
}

.portal-scope .approvals-page .process-item {
  gap: 8px;
}

.portal-scope .approvals-page .node-avatar {
  width: 44px;
  height: 44px;
}

.portal-scope .dismiss-btn {
  border-color: #f36b6b !important;
  color: #f36b6b !important;
}

.portal-scope .agree-btn {
  color: #ffffff !important;
}
.portal-scope .agree-btn:disabled,
.portal-scope .agree-btn[disabled] {
  background: #b9c4ff;
  border-color: #b9c4ff;
  color: #ffffff !important;
  opacity: 0.7;
  cursor: not-allowed;
  box-shadow: none;
}
.portal-scope .notice-card,.review-card{
  padding: 20px 0px !important;
}
.notice-card .panel-head{
  padding: 0px 16px;
}
.review-card .panel-head{
  padding: 0px 16px;
}
.notice-card .notice-items{
  padding: 0px 8px;
}
.review-card .review-list{
    padding: 0px 8px;
    flex: 1;
  }
.review-card{
    flex: 1;
    display: flex;
    flex-direction: column;
        backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.03), inset 0 1.5px 1px rgba(255, 255, 255, 0.8), inset 0 -1px 1px rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, .5) !important;
    border-radius: 8px !important;
  }
.review-card .review-list .state-text{
    margin: auto;
    text-align: center;
    width: 100%;
  }

.portal-scope .main-col-right .review-card {
  box-sizing: border-box;
  flex: 0 0 auto;
  height: var(--worklist-height, 420px);
  min-height: 0;
  overflow: hidden;
}

.portal-scope .main-col-right .review-card .panel-head {
  flex-shrink: 0;
}

.portal-scope .main-col-right .review-card .review-list {
  min-height: 0;
  overflow-y: auto;
}

.portal-scope .main-col-right .review-card .review-row {
  flex-shrink: 0;
}

.portal-scope .employee-search-card {
  padding: 20px 16px;
}

.portal-scope .employee-search-card--inline {
  margin-left: auto;
  padding: 12px;
  border-radius: 4px;
  min-width: 260px;
  max-width: 320px;
  box-shadow: none;
}

.portal-scope .employee-search-card--hero {
  padding: 14px;
  border-radius: 4px;
}


.portal-scope .employee-search-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portal-scope .employee-search-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  position: relative;
}

.portal-scope .employee-search-bar .portal-search-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
}

.portal-scope .employee-search-bar .portal-search {
  border-radius: 4px;
  padding: 8px 34px 8px 14px;
  width: 100%;
}

.portal-scope .employee-search-bar .portal-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #94a3b8;
  display: none;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
}

.portal-scope .employee-search-bar .portal-search-wrap.has-value:hover .portal-search-clear,
.portal-scope .employee-search-bar .portal-search-wrap.has-value:focus-within .portal-search-clear {
  display: inline-flex;
}

.portal-scope .employee-search-bar .portal-search-clear:hover {
  color: #64748b;
  background: rgba(148, 163, 184, 0.2);
}

.portal-scope .employee-search-bar .portal-search:focus,
.portal-scope .employee-search-bar .portal-search:focus-visible {
  outline: none;
  box-shadow: none;
}

.portal-scope .employee-search-bar .btn {
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
}

.portal-scope .employee-search-results {
  display: none;
  flex-direction: column;
  gap: 10px;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 10;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 10px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.portal-scope .employee-search-card--hero .employee-search-results {
  left: -16px;
  right: -16px;
}

.portal-scope .employee-search-results.is-open {
  display: flex;
}

.portal-scope .employee-search-results .state-text {
  margin: 0;
}

.portal-scope .employee-search-results.is-empty {
  min-height: 72px;
  align-items: center;
  justify-content: center;
}

.portal-scope .employee-search-results.is-empty .state-text {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-scope .employee-result {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.portal-scope .employee-result__avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--portal-primary-soft);
  color: var(--portal-primary);
  font-weight: 700;
  overflow: hidden;
  flex: 0 0 auto;
}

.portal-scope .employee-result__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-scope .employee-result__info {
  flex: 1 1 auto;
  min-width: 0;
}

.portal-scope .employee-result__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.portal-scope .employee-result__name {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

.portal-scope .employee-result__alias {
  font-size: 12px;
  color: #64748b;
}

.portal-scope .employee-result__badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
}

.portal-scope .employee-result__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  font-size: 12px;
  color: #475569;
}

.portal-scope .employee-result__meta--secondary {
  color: #64748b;
}

.portal-scope .employee-result__meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.portal-scope .employee-result__meta .mdi {
  font-size: 14px;
  color: #94a3b8;
}


@media (max-width: 1024px) {
  .portal-scope .main-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .portal-scope .main-col {
    flex: 1 1 auto;
  }

  .portal-scope .main-col-left {
    height: calc(100vh - 56px - 16px);
    max-height: calc(100vh - 56px - 16px);
    overflow: hidden;
  }

  .portal-scope .main-col-left .schedule-card {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }

  .portal-scope .main-col-left .schedule-card .schedule-grid {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    scrollbar-width: none;
  }

  .portal-scope .main-col-left .schedule-card .schedule-grid::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  .portal-scope .portal-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1400px) {
  .portal-scope .main-col-left {
    height: calc(100vh - 56px - 16px);
    max-height: calc(100vh - 56px - 16px);
    overflow: hidden;
  }

  .portal-scope .main-col-left .schedule-card {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }

  .portal-scope .main-col-left .schedule-card .schedule-grid {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    overflow: auto;
    scrollbar-width: none;
  }

  .portal-scope .main-col-left .schedule-card .schedule-grid::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  .portal-scope .event-title-row {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .portal-scope .event-title-main {
    width: 100%;
  }

  .portal-scope .event-badges {
    align-self: flex-start;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .portal-scope .event-pill {
    width: fit-content;
  }
}

@media (max-width: 900px) {
  .portal-scope .leaf-grid {
    gap: 10px;
  }

  .portal-scope .detail-grid {
    grid-template-columns: 140px 1fr;
  }

  .portal-scope .group-row-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .portal-scope .portal-form-grid {
    grid-template-columns: 1fr;
  }

  .portal-scope .quick-grid {
    gap: 12px;
  }

  .portal-scope .quick-search {
    flex: 1 1 100%;
    min-width: 0;
    max-width: 100%;
  }

  .portal-scope .quick-chip {
    height: 48px;
  }

  .portal-scope .employee-search-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .portal-scope .employee-search-bar .btn {
    width: 100%;
  }
}

@container (max-width: 980px) {
  .portal-scope .approvals-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .portal-scope .approvals-layout .list-panel {
    width: 100%;
    max-width: none;
  }
}

.portal-scope .approvals-page.is-single-pane {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 149px);
  min-height: 0;
}

.portal-scope .approvals-page.is-single-pane .portal-tabs {
  flex: 0 0 auto;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.portal-scope .approvals-page.is-single-pane .portal-tabs::-webkit-scrollbar {
  display: none;
}

.portal-scope .approvals-page.is-single-pane .portal-tab,
.portal-scope .approvals-page.is-single-pane .portal-delegation-trigger {
  flex: 0 0 auto;
  white-space: nowrap;
}

.portal-scope .approvals-page.is-single-pane .portal-tabs-spacer {
  min-width: 8px;
}

.portal-scope .approvals-page.is-single-pane .approvals-layout {
  grid-template-columns: minmax(0, 1fr);
  height: auto;
  flex: 1 1 auto;
  min-height: 0;
}

.portal-scope .approvals-page.is-single-pane.is-detail-view .approvals-layout {
  grid-template-rows: minmax(0, 1fr);
}

.portal-scope .approvals-page.is-single-pane .list-panel {
  width: 100%;
  max-width: none;
  height: 100%;
  border-right: 0;
  border-bottom: 0;
}

.portal-scope .approvals-page.is-single-pane.is-list-view .detail-panel,
.portal-scope .approvals-page.is-single-pane.is-detail-view .list-panel,
.portal-scope .approvals-page.is-single-pane.is-detail-view .portal-tabs,
.portal-scope .approvals-page.is-single-pane.is-detail-view .approval-filter-bar {
  display: none;
}

.portal-scope .approvals-page.is-single-pane .approval-mobile-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #eef0f4;
  background: #fff;
}

.portal-scope .approval-mobile-filter-toggle,
.portal-scope .approval-mobile-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  gap: 6px;
  border: 0;
  border-radius: 6px;
  background: #eef3ff;
  color: var(--portal-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.portal-scope .approval-mobile-filter-toggle {
  padding: 0 12px;
}

.portal-scope .approval-mobile-result-count {
  color: #707073;
  font-size: 12px;
}

.portal-scope .approvals-page.is-single-pane .filters {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid #eef0f4;
}

.portal-scope .approvals-page.is-single-pane.is-filters-open .filters {
  display: grid;
}

.portal-scope .approvals-page.is-single-pane .filters .filter-label {
  display: block;
}

.portal-scope .approvals-page.is-single-pane .approval-batch-bar {
  flex-wrap: wrap;
  padding: 8px 10px 8px 0;
}

.portal-scope .approvals-page.is-single-pane .approval-batch-actions {
  flex: 1 1 auto;
  justify-content: flex-end;
}

.portal-scope .approvals-page.is-single-pane .list {
  min-height: 0;
  padding: 8px 10px 12px 0;
  overscroll-behavior: contain;
}

.portal-scope .approvals-page.is-single-pane .detail-panel {
  height: 100%;
  min-height: 0;
  background: #fff;
}

.portal-scope .approvals-page.is-single-pane .approval-mobile-detail-nav {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 48px;
  padding: 4px 10px;
  border-bottom: 1px solid #eef0f4;
  background: #fff;
}

.portal-scope .approval-mobile-back {
  justify-content: flex-start;
  padding: 0 10px 0 6px;
  background: transparent;
}

.portal-scope .approval-mobile-back .mdi {
  font-size: 22px;
}

.portal-scope .approvals-page.is-single-pane .approval-detail-content,
.portal-scope .approvals-page.is-single-pane .detail-shell,
.portal-scope .approvals-page.is-single-pane .detail-card {
  min-height: 0;
}

.portal-scope .approvals-page.is-single-pane .detail-card {
  box-shadow: none;
}

.portal-scope .approvals-page.is-single-pane .detail-panel .card-top {
  padding: 8px 16px;
}

.portal-scope .approvals-page.is-single-pane .detail-panel .card-body {
  padding: 16px;
  overscroll-behavior: contain;
}

.portal-scope .approvals-page.is-single-pane .detail-panel .footer-actions {
  flex: 0 0 auto;
  flex-wrap: wrap;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: #fff;
  box-shadow: 0 -8px 22px rgba(15, 23, 42, 0.08);
}

.portal-scope .approvals-page.is-single-pane .footer-actions .left-actions,
.portal-scope .approvals-page.is-single-pane .footer-actions .right-actions {
  width: 100%;
  margin: 0;
}

.portal-scope .approvals-page.is-single-pane .footer-actions .left-actions:empty {
  display: none;
}

.portal-scope .approvals-page.is-single-pane .footer-actions .right-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-scope .approvals-page.is-single-pane .footer-actions .btn {
  min-height: 44px;
  min-width: 0;
  width: 100%;
}

.portal-scope .approvals-page.is-single-pane .detail-card .title-row {
  flex-wrap: wrap;
}

.portal-scope .approvals-page.is-single-pane .detail-card .detail-title-actions {
  width: 100%;
  min-width: 0;
  justify-content: flex-start;
}

.portal-scope .approvals-page.is-single-pane .group-nodes.group-nodes-aggregate {
  grid-template-columns: minmax(0, 1fr);
  row-gap: 10px;
}

.portal-scope .approvals-page.is-single-pane .aggregate-users {
  flex-wrap: wrap;
}

@container (max-width: 620px) {
  .portal-scope .approvals-page.is-single-pane .portal-tabs {
    display: grid;
    grid-template-columns: repeat(3, max-content) minmax(0, 1fr);
    height: auto;
    overflow: visible;
  }

  .portal-scope .approvals-page.is-single-pane .portal-tabs-spacer {
    display: none;
  }

  .portal-scope .approvals-page.is-single-pane .filters {
    grid-template-columns: minmax(0, 1fr);
  }

  .portal-scope .approvals-page.is-single-pane .portal-tab {
    --approval-tab-inset: 12px;
    min-height: 48px;
    height: 48px;
    padding: 0 12px;
  }

  .portal-scope .approvals-page.is-single-pane .portal-delegation-trigger {
    grid-column: 1 / -1;
    justify-self: end;
    min-height: 40px;
    margin: 4px 8px 8px;
  }

  .portal-scope .approvals-page.is-single-pane .detail-card .task-title {
    align-items: flex-start;
    flex-wrap: wrap;
    font-size: 20px;
  }

  .portal-scope .approvals-page.is-single-pane .detail-card .task-title > span:first-child {
    flex: 1 1 100%;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .portal-scope .approvals-page.is-single-pane .detail-card .title-meta,
  .portal-scope .approvals-page.is-single-pane .detail-card .meta-text {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .portal-scope .approvals-page.is-single-pane .detail-card .detail-grid > .field:not(.approval-reimbursement-field) {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    padding: 9px 0;
    border-bottom: 1px solid #f0f1f5;
  }

  .portal-scope .approvals-page.is-single-pane .detail-card .detail-grid > .field .field-label {
    color: #707073;
    font-size: 12px;
  }

  .portal-scope .approvals-page.is-single-pane .detail-card .detail-grid > .field .field-value {
    min-width: 0;
    font-size: 14px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .portal-scope .approvals-page.is-single-pane .item-footer {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .portal-scope .approvals-page.is-single-pane .item-footer .submitted {
    flex: 1 1 100%;
    text-align: right;
    white-space: normal;
  }

  .portal-scope .approvals-page.is-single-pane .footer-actions .left-actions,
  .portal-scope .approvals-page.is-single-pane .footer-actions .right-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-scope .approvals-page.is-single-pane .footer-actions .left-actions > :only-child,
  .portal-scope .approvals-page.is-single-pane .footer-actions .right-actions .agree-btn:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .portal-scope .approvals-page.is-single-pane .process-item.has-pill {
    margin-right: 0;
  }

  .portal-scope .approvals-page.is-single-pane .node-comment,
  .portal-scope .approvals-page.is-single-pane .node-attachments {
    max-width: 100%;
  }
}

.portal-notice-alert {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.portal-notice-alert.is-open {
  display: flex;
}

.portal-notice-alert__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
}

.portal-notice-alert__card {
  position: relative;
  width: 560px;
  max-width: 100%;
  background: #ffffff;
  border-radius: 10px;
  border: none;
  z-index: 1;
  overflow: hidden;
  max-height: 80vh;
  min-height: 48vh;
  display: flex;
  flex-direction: column;
  background-image: url("../img/portal/home/notify_bg.png");
  background-repeat: no-repeat;
  background-position: top;
  background-size: 100%;
}

.portal-notice-alert__header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: right;
  gap: 12px;
  padding: 0 60px;
  height: 51px !important;
  min-height: 51px !important;
  max-height: 51px !important;
  flex: 0 0 51px !important;
  color: #e2edff;
}

.portal-notice-alert__header > * {
  position: relative;
  z-index: 1;
}

.portal-notice-alert__header-title {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  font-size: 36px;
  letter-spacing: 0.04em;
  text-transform: capitalize;
}

.portal-notice-alert__view {
  border: none;
  background: transparent;
  color: #eaf2ff;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 2px 6px;
}

.portal-notice-alert__body {
  padding: 18px 60px 0;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: transparent;
}

.portal-notice-alert__title {
  margin: 6px 0 6px;
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  white-space: normal !important;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-height: 30px;
  max-height: none;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-notice-alert__content {
  color: #4E5969;
  font-size: 14px;
  line-height: 1.9;
  overflow: auto;
  padding-right: 4px;
  flex: 1 1 auto;
  min-height: 0;
  scrollbar-width: none;
}

.portal-notice-alert__content p {
  margin: 10px 0;
}

.portal-notice-alert__content .ql-align-center {
  text-align: center;
}

.portal-notice-alert__content .ql-align-right {
  text-align: right;
}

.portal-notice-alert__content .ql-align-left {
  text-align: left;
}

.portal-notice-alert__content .ql-align-center img {
  display: block;
  margin: 0 auto;
}

.portal-scope .notice-detail-page .notice-content .ql-align-center {
  text-align: center;
}

.portal-scope .notice-detail-page .notice-content .ql-align-right {
  text-align: right;
}

.portal-scope .notice-detail-page .notice-content .ql-align-left {
  text-align: left;
}

.portal-scope .notice-detail-page .notice-content .ql-align-center img {
  display: block;
  margin: 0 auto;
}

.portal-notice-alert__content::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.portal-notice-alert__meta-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  margin-top: 16px;
  color: #86909c;
  font-size: 14px;
}

.portal-notice-alert__time {
  width: 100%;
  text-align: right;
}

.portal-notice-alert__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 60px 24px;
  justify-content: center;
}

.portal-notice-alert__actions .btn {
  border-radius: 2px;
  padding: 5px 16px;
  font-weight: 400;
}

.notice-preview-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.notice-preview-title {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1 1 auto;
  display: block;
}

.notice-preview-header {
  max-width: 100%;
  flex-wrap: nowrap;
}

.notice-preview-header .badge {
  flex: 0 0 auto;
}

.notice-preview-content .ql-align-center {
  text-align: center;
}

.notice-preview-content .ql-align-right {
  text-align: right;
}

.notice-preview-content .ql-align-left {
  text-align: left;
}

@media (max-width: 576px) {
  .portal-notice-alert__card {
    border-radius: 8px;
  }
  .portal-notice-alert__header-title {
    font-size: 24px;
  }
  .portal-notice-alert__body {
    padding: 16px 18px 0;
  }
  .portal-notice-alert__title {
    font-size: 18px;
  }
  .portal-notice-alert__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .portal-notice-alert__actions .btn {
    width: 100%;
  }
}

/* Reimbursement Apply desktop only: the three panels own scrolling, never the page shell. */
body.has-expense-report-layout {
  overflow-y: hidden;
}

.admin-shell .admin-body.has-expense-report-layout,
.admin-shell .admin-body.has-expense-report-layout #content-area {
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
}

.admin-shell #content-area > .portal-scope.portal-detail-scroll.is-expense-report-layout {
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

.portal-scope.portal-detail-scroll.is-expense-report-layout .workflow-application-page {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  overflow: hidden;
}

.portal-scope.portal-detail-scroll.is-expense-report-layout .workflow-application-page .request-detail-card {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.portal-scope.is-expense-report-layout .workflow-application-page .request-detail-card .detail-body {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-height: 0;
  max-height: 100%;
  height: calc(var(--expense-content-height, calc(100dvh - 80px)) + 72px);
  padding-bottom: 72px;
  overflow: hidden;
}

.portal-scope.is-expense-report-layout .workflow-application-page .workflow-application-hero {
  display: none;
}

.portal-scope.is-expense-report-layout .workflow-application-page .workflow-application-body {
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: stretch;
  height: var(--expense-content-height, calc(100dvh - 80px));
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
}

.portal-scope.is-expense-report-layout .workflow-application-page .workflow-application-actions {
  width: 100%;
  max-width: none;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 -4px 10px 0 rgba(0, 11, 46, 0.05);
}

.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page .field-label {
  color: #4e5969;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
}

.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page .form-item {
  gap: 0;
  padding: 0;
}

.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
  .portal-select.portal-select__control.portal-select--disabled {
  padding-left: 0;
  padding-right: 0;
}

.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
  .portal-select.portal-select__control.portal-select--disabled > .portal-select__chips:empty {
  display: none;
}

.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
  .portal-select.portal-select__control.portal-select--disabled > .portal-select__input {
  margin-left: 0;
  padding-left: 0;
}

.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
  .expense-basic-fields [data-field-path="relatedTravelNo"] > .portal-select__control,
.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
  .expense-basic-fields [data-field-path="travelNo"] > .portal-select__control,
.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
  .expense-basic-fields [data-field-path="travelNumber"] > .portal-select__control {
  padding-left: 12px;
  padding-right: 12px;
}

.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page .portal-select__menu,
body.has-expense-report-layout .portal-select__menu.is-floating {
  border: 0;
  border-radius: 4px;
}

.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page .expense-basic-fields .field-display {
  min-height: 22px;
  padding: 0;
  border: 0;
  color: #13121a;
  background: transparent;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
}

.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
  .expense-basic-fields .field-label + .field-control.form-control-plaintext.field-display {
  padding-left: 0;
  padding-right: 0;
}

.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page .expense-basic-fields .field-control,
.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page .expense-basic-fields .portal-select__control,
.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page .expense-detail-fields .field-control,
.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page .expense-detail-fields .portal-select__control {
  min-height: 32px;
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
}

.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page .expense-detail-fields .field-control,
.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page .expense-detail-fields .portal-select__control {
  box-sizing: border-box;
  width: 100%;
  height: 32px;
}

.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page .expense-basic-fields .portal-select__control,
.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page .expense-detail-fields .portal-select__control {
  align-items: center;
}

.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page .expense-basic-fields .portal-select__input,
.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page .expense-detail-fields .portal-select__input {
  height: 22px;
  min-height: 22px;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 22px;
}

.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page .expense-basic-fields .portal-select__caret,
.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page .expense-detail-fields .portal-select__caret {
  display: inline-block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  align-self: center;
  margin-top: 0;
  margin-bottom: 0;
  opacity: 1;
  visibility: visible;
  background: url("../icons/expand-more.svg") center / 16px 16px no-repeat;
}

.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
  .expense-basic-fields .portal-select.portal-select__control.portal-select--disabled,
.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
  .expense-detail-fields .portal-select.portal-select__control.portal-select--disabled {
  padding-left: 12px;
  padding-right: 12px;
}

.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
  .expense-detail-fields .expense-field-amount .field-control {
  min-height: 40px;
  height: 40px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
  .expense-detail-fields .expense-field-amount .expense-currency-suffix {
  height: 40px;
}

.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
  .expense-detail-fields .expense-field-type
  .portal-select.portal-select__control {
  padding-left: 12px;
  padding-right: 12px;
}

.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page .expense-detail-list {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
  .group-block.reimbursement-detail-block.expense-detail-list {
  overflow-y: auto;
}

@container (min-width: 821px) {
  .portal-scope.is-expense-report-layout:not(.is-corporate-payment-layout):not(.is-business-travel-layout)
    .workflow-application-page.request-detail-page
    .expense-detail-fields {
    grid-template-columns: repeat(24, minmax(0, 1fr));
  }

  .portal-scope.is-expense-report-layout:not(.is-corporate-payment-layout):not(.is-business-travel-layout)
    .workflow-application-page.request-detail-page
    .expense-field-description,
  .portal-scope.is-expense-report-layout:not(.is-corporate-payment-layout):not(.is-business-travel-layout)
    .workflow-application-page.request-detail-page
    .expense-field-attachment {
    grid-column: 1 / -1;
  }

  .portal-scope.is-expense-report-layout:not(.is-corporate-payment-layout):not(.is-business-travel-layout)
    .workflow-application-page.request-detail-page
    .expense-field-type {
    grid-column: span 5;
  }

  .portal-scope.is-expense-report-layout:not(.is-corporate-payment-layout):not(.is-business-travel-layout)
    .workflow-application-page.request-detail-page
    .expense-field-amount,
  .portal-scope.is-expense-report-layout:not(.is-corporate-payment-layout):not(.is-business-travel-layout)
    .workflow-application-page.request-detail-page
    .expense-field-date,
  .portal-scope.is-expense-report-layout:not(.is-corporate-payment-layout):not(.is-business-travel-layout)
    .workflow-application-page.request-detail-page
    .expense-field-extra {
    grid-column: span 6;
  }

  .portal-scope.is-expense-report-layout:not(.is-corporate-payment-layout):not(.is-business-travel-layout)
    .workflow-application-page.request-detail-page
    .expense-original-payment {
    grid-column: span 7;
  }
}

@container (max-width: 820px) {
  .portal-scope.is-expense-report-layout:not(.is-corporate-payment-layout):not(.is-business-travel-layout)
    .workflow-application-page.request-detail-page
    .expense-detail-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-scope.is-expense-report-layout:not(.is-corporate-payment-layout):not(.is-business-travel-layout)
    .workflow-application-page.request-detail-page
    .expense-field-type,
  .portal-scope.is-expense-report-layout:not(.is-corporate-payment-layout):not(.is-business-travel-layout)
    .workflow-application-page.request-detail-page
    .expense-field-amount,
  .portal-scope.is-expense-report-layout:not(.is-corporate-payment-layout):not(.is-business-travel-layout)
    .workflow-application-page.request-detail-page
    .expense-field-date,
  .portal-scope.is-expense-report-layout:not(.is-corporate-payment-layout):not(.is-business-travel-layout)
    .workflow-application-page.request-detail-page
    .expense-field-extra,
  .portal-scope.is-expense-report-layout:not(.is-corporate-payment-layout):not(.is-business-travel-layout)
    .workflow-application-page.request-detail-page
    .expense-original-payment {
    grid-column: auto;
  }

  .portal-scope.is-expense-report-layout:not(.is-corporate-payment-layout):not(.is-business-travel-layout)
    .workflow-application-page.request-detail-page
    .expense-field-description,
  .portal-scope.is-expense-report-layout:not(.is-corporate-payment-layout):not(.is-business-travel-layout)
    .workflow-application-page.request-detail-page
    .expense-field-attachment {
    grid-column: 1 / -1;
  }
}

@container (max-width: 560px) {
  .portal-scope.is-expense-report-layout:not(.is-corporate-payment-layout):not(.is-business-travel-layout)
    .workflow-application-page.request-detail-page
    .expense-detail-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .portal-scope.is-expense-report-layout:not(.is-corporate-payment-layout):not(.is-business-travel-layout)
    .workflow-application-page.request-detail-page
    .expense-field-type,
  .portal-scope.is-expense-report-layout:not(.is-corporate-payment-layout):not(.is-business-travel-layout)
    .workflow-application-page.request-detail-page
    .expense-field-amount,
  .portal-scope.is-expense-report-layout:not(.is-corporate-payment-layout):not(.is-business-travel-layout)
    .workflow-application-page.request-detail-page
    .expense-field-date,
  .portal-scope.is-expense-report-layout:not(.is-corporate-payment-layout):not(.is-business-travel-layout)
    .workflow-application-page.request-detail-page
    .expense-field-extra,
  .portal-scope.is-expense-report-layout:not(.is-corporate-payment-layout):not(.is-business-travel-layout)
    .workflow-application-page.request-detail-page
    .expense-original-payment,
  .portal-scope.is-expense-report-layout:not(.is-corporate-payment-layout):not(.is-business-travel-layout)
    .workflow-application-page.request-detail-page
    .expense-field-description,
  .portal-scope.is-expense-report-layout:not(.is-corporate-payment-layout):not(.is-business-travel-layout)
    .workflow-application-page.request-detail-page
    .expense-field-attachment {
    grid-column: 1;
  }
}

/* Standard Item Request keeps compact two-up rows until the Item card itself
 * is genuinely narrow. This sits after the generic reimbursement container
 * rules so the workbench does not collapse to a single column on laptops. */
@container (min-width: 321px) {
  .portal-scope.is-expense-report-layout.is-scm-procurement-layout.is-scm-material-request-layout
    .workflow-application-page.request-detail-page
    .scm-procurement-item-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-scope.is-expense-report-layout.is-scm-procurement-layout.is-scm-material-request-layout
    .workflow-application-page.request-detail-page
    .scm-procurement-item-field {
    grid-column: span 1;
  }

  .portal-scope.is-expense-report-layout.is-scm-procurement-layout.is-scm-material-request-layout
    .workflow-application-page.request-detail-page
    .scm-procurement-item-field--wide {
    grid-column: 1 / -1;
  }
}

.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
  .expense-original-payment-controls .portal-select__control {
  min-width: 0;
  flex-wrap: nowrap;
}

.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
  .expense-original-payment-controls .portal-select__chips:empty {
  display: none;
}

.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
  .expense-original-payment-controls .portal-select__input {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
  .expense-original-payment-controls .portal-select__caret {
  flex: 0 0 auto;
  margin-left: auto;
}

.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
  .expense-basic-fields textarea.field-control,
.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
  .expense-detail-fields textarea.field-control {
  min-height: 46px;
  height: auto;
  padding: 10px 12px;
}

.portal-scope.is-corporate-payment-layout .workflow-application-page.request-detail-page
  .expense-detail-fields .expense-field-corporate-description textarea.field-control,
.portal-scope.is-expense-report-layout:not(.is-corporate-payment-layout) .workflow-application-page.request-detail-page
  .expense-detail-fields .expense-field-fee-information textarea.field-control {
  min-height: 40px;
  height: 40px;
  resize: vertical;
}

.portal-scope.is-purchase-contract-apply-layout .workflow-application-page.request-detail-page
  .purchase-contract-textarea-field textarea.field-control,
.portal-scope.is-purchase-contract-apply-layout .workflow-application-page.request-detail-page
  .expense-detail-fields .expense-field-purchase-contract-textarea textarea.field-control {
  min-height: 40px;
  height: 40px;
  resize: vertical;
}

.portal-scope.is-corporate-payment-layout .workflow-application-page.request-detail-page
  .expense-detail-fields .expense-field-corporate-tax-total .field-label,
.portal-scope.is-corporate-payment-layout .workflow-application-page.request-detail-page
  .expense-detail-fields .expense-field-corporate-tax-total .field-display {
  padding-left: 0;
  padding-right: 0;
  text-align: left;
}

.portal-scope.is-corporate-payment-layout .workflow-application-page.request-detail-page
  .corporate-payment-detail-list .expense-detail-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.portal-scope.is-corporate-payment-layout .workflow-application-page.request-detail-page
  .corporate-payment-field-row {
  display: contents;
}

.portal-scope.is-corporate-payment-layout .workflow-application-page.request-detail-page
  .corporate-payment-field-row > .expense-item-field:not(.expense-field-corporate-tax-total),
.portal-scope.is-corporate-payment-layout .workflow-application-page.request-detail-page
  .corporate-payment-field-row > .expense-original-payment {
  grid-column: auto;
  justify-self: stretch;
  width: 100%;
  max-width: none;
}

.portal-scope.is-corporate-payment-layout .workflow-application-page.request-detail-page
  .corporate-payment-field-row > .expense-field-corporate-tax-total {
  grid-column: auto;
}

.portal-scope.is-purchase-contract-apply-layout .workflow-application-page.request-detail-page
  .corporate-payment-detail-list .expense-detail-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.portal-scope.is-purchase-contract-apply-layout .workflow-application-page.request-detail-page
  .corporate-payment-field-row {
  display: contents;
}

.portal-scope.is-purchase-contract-apply-layout .workflow-application-page.request-detail-page
  .corporate-payment-field-row-purchase-product,
.portal-scope.is-purchase-contract-apply-layout .workflow-application-page.request-detail-page
  .corporate-payment-field-row-purchase-money {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.portal-scope.is-purchase-contract-apply-layout .workflow-application-page.request-detail-page
  .corporate-payment-field-row-purchase-package {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.portal-scope.is-purchase-contract-apply-layout .workflow-application-page.request-detail-page
  .corporate-payment-field-row-purchase-text {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.portal-scope.is-purchase-contract-apply-layout .workflow-application-page.request-detail-page
  .corporate-payment-field-row > .expense-item-field,
.portal-scope.is-purchase-contract-apply-layout .workflow-application-page.request-detail-page
  .corporate-payment-field-row > .expense-original-payment {
  grid-column: auto;
  justify-self: stretch;
  width: 100%;
  max-width: none;
}

.portal-scope.is-purchase-contract-apply-layout .workflow-application-page.request-detail-page
  .expense-field-attachment {
  grid-column: 1 / -1;
  width: 100%;
}

.portal-scope.is-purchase-requirement-apply-layout .workflow-application-page.request-detail-page
  .corporate-payment-detail-list .expense-detail-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.portal-scope.is-purchase-requirement-apply-layout .workflow-application-page.request-detail-page
  .corporate-payment-field-row {
  display: contents;
}

.portal-scope.is-purchase-requirement-apply-layout .workflow-application-page.request-detail-page
  .corporate-payment-field-row > .expense-field-purchase-requirement-technical {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
}

.portal-scope.is-corporate-payment-layout.is-purchase-requirement-apply-layout
  .workflow-application-page.request-detail-page
  .corporate-payment-field-row > .expense-item-field.expense-field-purchase-requirement-technical {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
}

.portal-scope.is-purchase-requirement-apply-layout .workflow-application-page.request-detail-page
  .expense-field-attachment {
  grid-column: 1 / -1;
  width: 100%;
}

.portal-scope.is-purchase-requirement-apply-layout .workflow-application-page.request-detail-page
  .expense-field-purchase-requirement-technical textarea.field-control {
  min-height: 96px;
  height: 96px;
  resize: vertical;
}

@container (max-width: 720px) {
  .portal-scope.is-corporate-payment-layout .workflow-application-page.request-detail-page
    .corporate-payment-detail-list .expense-detail-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-scope.is-purchase-contract-apply-layout .workflow-application-page.request-detail-page
    .corporate-payment-detail-list .expense-detail-fields,
  .portal-scope.is-purchase-contract-apply-layout .workflow-application-page.request-detail-page
    .corporate-payment-field-row-purchase-product,
  .portal-scope.is-purchase-contract-apply-layout .workflow-application-page.request-detail-page
    .corporate-payment-field-row-purchase-package,
  .portal-scope.is-purchase-contract-apply-layout .workflow-application-page.request-detail-page
    .corporate-payment-field-row-purchase-money,
  .portal-scope.is-purchase-contract-apply-layout .workflow-application-page.request-detail-page
    .corporate-payment-field-row-purchase-text,
  .portal-scope.is-purchase-requirement-apply-layout .workflow-application-page.request-detail-page
    .corporate-payment-detail-list .expense-detail-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-scope.is-purchase-contract-apply-layout .workflow-application-page.request-detail-page
    .corporate-payment-field-row-purchase-text {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container (max-width: 560px) {
  .portal-scope.is-corporate-payment-layout .workflow-application-page.request-detail-page
    .corporate-payment-detail-list .expense-detail-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container (max-width: 360px) {
  .portal-scope.is-corporate-payment-layout .workflow-application-page.request-detail-page
    .corporate-payment-detail-list .expense-detail-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .portal-scope.is-purchase-contract-apply-layout .workflow-application-page.request-detail-page
    .corporate-payment-detail-list .expense-detail-fields,
  .portal-scope.is-purchase-contract-apply-layout .workflow-application-page.request-detail-page
    .corporate-payment-field-row-purchase-product,
  .portal-scope.is-purchase-contract-apply-layout .workflow-application-page.request-detail-page
    .corporate-payment-field-row-purchase-package,
  .portal-scope.is-purchase-contract-apply-layout .workflow-application-page.request-detail-page
    .corporate-payment-field-row-purchase-money,
  .portal-scope.is-purchase-contract-apply-layout .workflow-application-page.request-detail-page
    .corporate-payment-field-row-purchase-text {
    grid-template-columns: minmax(0, 1fr);
  }
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-detail-list .business-travel-detail-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-detail-fields .expense-item-field {
  grid-column: auto;
  justify-self: stretch;
  width: 100%;
  min-width: 0;
  max-width: none;
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-detail-fields .expense-field-description,
.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-detail-fields .expense-field-attachment,
.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-detail-fields .business-travel-field-full {
  grid-column: 1 / -1;
}

.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
  .expense-basic-fields .workflow-radio-group,
.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
  .expense-detail-fields .workflow-radio-group {
  display: grid;
  grid-template-columns: repeat(var(--portal-radio-option-count, 2), minmax(var(--portal-radio-option-min-width, 64px), 1fr));
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  min-width: var(--portal-radio-group-min-width, 0);
  height: 40px;
  min-height: 40px;
  padding: 4px;
  gap: 0;
  border-radius: 4px;
  background: #f7f7fa;
}

.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
  .expense-detail-fields .workflow-radio-group {
  background: #fff;
}

.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
  .expense-basic-fields .field-control:not(textarea):not(.form-control-plaintext),
.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
  .expense-detail-fields .field-control:not(textarea):not(.form-control-plaintext),
.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
  .expense-basic-fields .portal-select__control,
.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
  .expense-detail-fields .portal-select__control,
.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
  .expense-basic-fields .date-field,
.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
  .expense-detail-fields .date-field {
  box-sizing: border-box;
  height: 40px;
  min-height: 40px;
}

.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
  .expense-basic-fields .field-control:not(textarea):not(.form-control-plaintext),
.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
  .expense-detail-fields .field-control:not(textarea):not(.form-control-plaintext) {
  padding-top: 8px;
  padding-bottom: 8px;
  line-height: 22px;
}

.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
  .expense-basic-fields .portal-select__control.portal-select--multi,
.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
  .expense-detail-fields .portal-select__control.portal-select--multi {
  height: auto;
  min-height: 40px;
  padding-left: 8px;
  padding-right: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
  .portal-select__control.portal-select--multi:has(.portal-select__chips:not(:empty)) {
  align-items: flex-start;
}

.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
  .portal-select__control.portal-select--multi .portal-select__chips {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
  .portal-select__control.portal-select--multi .portal-select__chips:empty {
  flex: 0 0 auto;
}

.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
  .portal-select__control.portal-select--multi .portal-select__chips:not(:empty) + .portal-select__input {
  flex: 0 0 2px;
  width: 2px;
  min-width: 2px;
  padding-left: 0;
  padding-right: 0;
}

.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
  .portal-select__control.portal-select--multi .portal-select__chips:not(:empty) + .portal-select__input::placeholder {
  color: transparent;
  opacity: 0;
}

.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
  .portal-select__control.portal-select--multi .portal-select__caret {
  align-self: center;
  margin-top: 0;
  margin-left: auto;
}

.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
  .portal-select__control.portal-select--multi:has(.portal-select__chips:not(:empty)) .portal-select__caret {
  align-self: flex-start;
  margin-top: 8px;
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-basic-panel .portal-select__control.portal-select--multi:has(.portal-select__chips:not(:empty)) {
  align-items: center;
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-basic-panel .portal-select__control.portal-select--multi:has(.portal-select__chips:not(:empty)) .portal-select__caret {
  align-self: center;
  margin-top: 0;
}

.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
  .portal-select__control.portal-select--multi .portal-select__chip {
  gap: 4px;
  flex: 0 1 auto;
  min-height: 22px;
  padding: 0 4px;
  border-radius: 2px;
  background: #f7f7fa;
  font-size: 12px;
  line-height: 22px;
  white-space: nowrap;
}

.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
  .portal-select__control.portal-select--multi .portal-select__chip button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  background: url("../icons/close-small.svg") center / 14px 14px no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
}

.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
  .portal-select__control.portal-select--multi .portal-select__chip button .mdi {
  display: none;
}

.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
  .expense-basic-fields .workflow-radio-option,
.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
  .expense-detail-fields .workflow-radio-option {
  min-width: var(--portal-radio-option-min-width, 64px);
  min-height: 32px;
  height: 32px;
  padding: 5px 12px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #4e5969;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  white-space: nowrap;
}

.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
  .expense-basic-fields .workflow-radio-group .btn-check:checked + .workflow-radio-option,
.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
  .expense-basic-fields .workflow-radio-option.is-selected,
.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
  .expense-detail-fields .workflow-radio-group .btn-check:checked + .workflow-radio-option,
.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
  .expense-detail-fields .workflow-radio-option.is-selected {
  border-color: transparent;
  background: var(--portal-primary-soft);
  color: var(--portal-primary);
  font-weight: 400;
}

@container (max-width: 820px) {
  .portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
    .business-travel-detail-list .business-travel-detail-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@container (max-width: 620px) {
  .portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
    .business-travel-detail-list .business-travel-detail-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container (max-width: 420px) {
  .portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
    .business-travel-detail-list .business-travel-detail-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-detail-list .business-travel-detail-fields {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-field-row {
  display: flex;
  width: 100%;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid #e5e6eb;
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-field-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-field-row:last-child {
  padding-bottom: 0;
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-detail-fields .expense-item-field {
  width: auto;
  min-width: 0;
  max-width: none;
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-inline-field:has(.form-item.d-none),
.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-route-control:has(.form-item.d-none),
.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-date-control:has(.form-item.d-none) {
  display: none;
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-trip-row {
  flex-wrap: nowrap;
  align-items: flex-start;
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-trip-row:has(.business-travel-transit:not(:has(.form-item.d-none))) {
  flex-wrap: nowrap;
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-trip-row:has(.business-travel-transit:not(:has(.form-item.d-none)))
  .business-travel-date-range {
  flex: 1.5 1 420px;
  min-width: 0;
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-trip-direction {
  flex: 1 1 260px;
  min-width: 180px;
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-transportation,
.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-transit {
  flex: 0.8 1 200px;
  min-width: 140px;
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-date-range {
  flex: 2 1 520px;
  min-width: 0;
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-trip-grid {
  display: grid;
  grid-template-columns: minmax(176px, 1fr) minmax(140px, 1fr) minmax(360px, 2.2fr);
  align-items: start;
  gap: 24px;
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-trip-grid:has(> .business-travel-inline-field:nth-child(3) > .form-item:not(.d-none) .workflow-radio-group) {
  grid-template-columns: minmax(176px, 1.1fr) minmax(140px, 1fr) minmax(132px, .9fr) minmax(360px, 2.4fr);
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-trip-grid .business-travel-time-range {
  grid-column: auto;
  width: 100%;
  min-width: 0;
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-trip-grid .business-travel-inline-field,
.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-trip-grid .business-travel-inline-field .form-item,
.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-trip-grid .business-travel-inline-field .portal-radio-group,
.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-trip-grid .business-travel-inline-field .portal-select__control,
.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-trip-grid .business-travel-inline-field .field-control {
  min-width: 0;
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-trip-grid .business-travel-inline-field .portal-radio-group {
  min-width: 0;
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-date-range-controls {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  min-width: 0;
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-date-control {
  flex: 1 1 0;
  min-width: 0;
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-date-control .date-field,
.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-date-control .date-input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-date-control .field-label,
.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-route-control .field-label {
  display: none;
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-date-control .form-item,
.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-route-control .form-item {
  gap: 0;
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-range-separator {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #4e5969;
  font-size: 14px;
  line-height: 22px;
  white-space: nowrap;
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-trip-grid {
  gap: 16px 24px;
  padding: 18px 0 16px;
  border-bottom: 0;
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-time-range {
  min-width: 0;
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-time-controls {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 4px;
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-route-separator {
  display: none;
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-duration-divider {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0;
  margin: 0;
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-duration-divider::before,
.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-duration-divider::after {
  content: "";
  flex: 1 1 0;
  border-top: 1px solid #e5e6eb;
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-duration-divider .business-travel-duration-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 0;
  margin: 0 8px;
  color: #13121a;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  white-space: nowrap;
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-route-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-route-line {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 16px;
  min-height: 40px;
  padding: 0;
  border-bottom: 0;
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-route-row {
  align-items: center;
  gap: 0;
  padding: 8px 0;
  border-top: 0;
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-duration-divider + .business-travel-route-row {
  padding-top: 16px;
  border-top: 0;
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-route-label {
  display: flex;
  align-items: center;
  flex: 0 0 80px;
  width: 80px;
  min-height: 40px;
  padding: 0;
  border-right: 0;
  box-sizing: content-box;
  color: #4e5969;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  white-space: nowrap;
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-route-control {
  min-width: 0;
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-route-control .workflow-cascader-control {
  gap: 16px;
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-route-control .workflow-cascader-separator {
  display: none;
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-route-control .workflow-cascader-control .portal-cascader-level {
  flex: 1 1 0;
  min-width: 0;
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-route-control .workflow-cascader-control .portal-cascader-select {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  height: 40px;
  min-height: 40px;
  padding: 8px 12px;
  gap: 8px;
  border: 1px solid #dedfe3;
  border-radius: 4px;
  background: #fff;
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-route-control .workflow-cascader-control .portal-cascader-select .portal-select__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 22px;
  padding: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 22px;
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-route-control .workflow-cascader-control .portal-cascader-select .portal-select__caret {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-left: 0;
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-route-control .workflow-cascader-control .form-select {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  width: 100%;
  height: 40px;
  min-height: 40px;
  border: 1px solid #dedfe3;
  border-radius: 4px;
  padding: 8px 36px 8px 12px;
  background-color: #fff;
  background-image: url("../icons/expand-more.svg");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
  color: #13121a;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  box-shadow: none;
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-route-control .workflow-cascader-control .form-select:has(option[value=""]:checked) {
  color: #c9cdd4;
  font-size: 14px;
  font-weight: 400;
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-route-control .workflow-cascader-control .form-select:focus {
  border-color: #dedfe3;
  box-shadow: none;
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-route-control .workflow-cascader-control .form-select:disabled {
  background-color: #fff;
  color: #c9cdd4;
  opacity: 1;
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-route-controls {
  display: flex;
  align-items: flex-start;
  flex: 1 1 auto;
  gap: 12px;
  padding-left: 16px;
  padding-right: 63px;
  min-width: 0;
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-route-control {
  flex: 1 1 0;
  min-width: 0;
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-route-control .workflow-cascader-control .portal-cascader-level {
  flex: 1 1 0;
  min-width: 0;
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-extra-row {
  flex-wrap: wrap;
}

.portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
  .business-travel-extra-row .expense-item-field {
  flex: 1 1 220px;
}

@container (max-width: 760px) {
  .portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
    .business-travel-trip-row,
  .portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
    .business-travel-trip-row:has(.business-travel-transit:not(:has(.form-item.d-none))) {
    flex-wrap: wrap;
  }

  .portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
    .business-travel-date-range {
    flex-basis: 420px;
  }

  .portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
    .business-travel-route-row {
    flex-direction: row;
    align-items: center;
  }

  .portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
    .business-travel-route-label {
    flex: 0 0 80px;
    width: 80px;
    min-height: 40px;
    padding: 0;
    border-right: 0;
    white-space: nowrap;
  }

  .portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
    .business-travel-route-controls {
    padding-left: 16px;
    padding-right: 0;
  }
}

@container (max-width: 880px) {
  .portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
    .business-travel-trip-grid:has(> .business-travel-inline-field:nth-child(3) > .form-item:not(.d-none) .workflow-radio-group) {
    grid-template-columns: minmax(176px, 1fr) minmax(100px, 1fr) minmax(132px, 1fr);
  }

  .portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
    .business-travel-trip-grid:has(> .business-travel-inline-field:nth-child(3) > .form-item:not(.d-none) .workflow-radio-group)
    .business-travel-time-range {
    grid-column: 1 / -1;
  }

  .portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
    .business-travel-trip-grid:has(> .business-travel-inline-field:nth-child(3) > .form-item:not(.d-none) .workflow-radio-group)
    .business-travel-inline-field,
  .portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
    .business-travel-trip-grid:has(> .business-travel-inline-field:nth-child(3) > .form-item:not(.d-none) .workflow-radio-group)
    .business-travel-time-range {
    width: 100%;
    min-width: 0;
  }
}

@container (max-width: 760px) {
  .portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
    .business-travel-trip-grid:not(:has(> .business-travel-inline-field:nth-child(3) > .form-item:not(.d-none) .workflow-radio-group)) {
    grid-template-columns: minmax(176px, 1fr) minmax(140px, 1fr);
  }

  .portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
    .business-travel-trip-grid:not(:has(> .business-travel-inline-field:nth-child(3) > .form-item:not(.d-none) .workflow-radio-group))
    .business-travel-time-range {
    grid-column: 1 / -1;
  }
}

@container (max-width: 520px) {
  .portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
    .business-travel-trip-grid:has(> .business-travel-inline-field:nth-child(3) > .form-item:not(.d-none) .workflow-radio-group) {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, 1fr);
  }

  .portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
    .business-travel-trip-grid:has(> .business-travel-inline-field:nth-child(3) > .form-item:not(.d-none) .workflow-radio-group)
    .business-travel-time-range {
    grid-column: 1 / -1;
  }

  .portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
    .business-travel-date-range-controls {
    flex-direction: column;
    gap: 8px;
  }

  .portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
    .business-travel-range-separator {
    display: none;
  }

  .portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
    .business-travel-route-line {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 8px;
    padding: 8px 0;
  }

  .portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
    .business-travel-route-label {
    width: auto;
    min-height: 0;
    padding: 0;
    white-space: normal;
  }

  .portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
    .business-travel-route-control,
  .portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
    .business-travel-route-control .workflow-cascader-control,
  .portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
    .business-travel-route-control .workflow-cascader-control .portal-cascader-level {
    width: 100%;
    min-width: 0;
  }

  .portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
    .business-travel-route-control .workflow-cascader-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 8px;
  }

  .portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
    .business-travel-stopover-actions {
    justify-content: flex-end;
    width: 100%;
  }
}

.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page .approval-title,
.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page .approver-label {
  color: #27262e;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
}

.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
  .workflow-cc-panel .approver-row {
  grid-template-columns: max-content minmax(0, 1fr);
  width: 100%;
  min-width: 0;
}

.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
  .workflow-cc-panel .approval-assignees,
.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
  .workflow-cc-panel .approval-chip-list {
  flex-wrap: wrap;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
  .workflow-cc-panel .approval-chip {
  min-width: 0;
  max-width: 100%;
}

.portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page .reimbursement-detail-add {
  height: 34px;
  min-height: 34px;
  padding: 5px 16px;
  border: 1px solid var(--portal-primary);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
}

@media (max-width: 760px) {
  .portal-scope.is-expense-report-layout .workflow-application-page .workflow-application-hero {
    padding: 20px 16px 16px;
  }

  .portal-scope.is-expense-report-layout .workflow-application-page .request-detail-card .detail-body {
    padding-bottom: 0;
  }
}
.portal-scope .portal-delegation-trigger {
  font-weight: 400;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--portal-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  align-self: center;
  flex: 0 0 auto;
  width: auto;
  height: 30px;
  min-height: 30px;
  margin-right: 16px;
  padding: 4px 10px;
  font-size: 12px;
  line-height: 20px;
  white-space: nowrap;
}

.approval-delegation-page {
  --approval-delegation-ink: #172033;
  --approval-delegation-body: #475467;
  --approval-delegation-muted: #687386;
  --approval-delegation-border: #e4e8f0;
  display: flex;
  height: calc(100dvh - 72px);
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  color: var(--approval-delegation-body);
}

.approval-delegation-page .admin-card { border-radius: 4px; box-shadow: none; }
.approval-delegation-page .admin-page-title { color: var(--approval-delegation-ink); }
.approval-delegation-page .admin-breadcrumbs { color: var(--approval-delegation-muted); }
.approval-delegation-visible-filters { flex-wrap: nowrap; }
.approval-delegation-visible-filters .form-select { width: 210px; min-width: 210px; }
.approval-delegation-applied { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 16px; }
.approval-delegation-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid #dfe3ea;
  border-radius: 3px;
  background: #f8f9fb;
  color: var(--approval-delegation-body);
  font-size: 12px;
  line-height: 1.3;
}
.approval-delegation-filter-tag:hover { border-color: #b9c5dc; background: #f2f5fa; }

.approval-delegation-table { min-width: 1020px; margin-bottom: 0; table-layout: fixed; }
.approval-delegation-table th {
  color: #344054;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.approval-delegation-table td { color: var(--approval-delegation-body); font-size: 14px; vertical-align: middle; }
.approval-delegation-table [data-column="delegate"] { width: 180px; }
.approval-delegation-table [data-column="period"] { width: 230px; }
.approval-delegation-table [data-column="status"] { width: 105px; }
.approval-delegation-table [data-column="reason"] { width: 190px; min-width: 190px; }
.approval-delegation-table [data-column="updatedAt"] { width: 150px; white-space: nowrap; }
.approval-delegation-table [data-column="actions"] { width: 145px; min-width: 145px; }
.approval-delegation-cell-title {
  display: block;
  color: var(--approval-delegation-ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
}
.approval-delegation-cell-subtitle {
  display: block;
  margin-top: 3px;
  color: var(--approval-delegation-muted);
  font-size: 13px;
  line-height: 1.4;
}
.approval-delegation-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef1f6;
  color: #4e5b70;
  font-size: 12px;
  font-weight: 700;
}
.approval-delegation-status[data-status="ACTIVE"] { background: #e3f5eb; color: #167346; }
.approval-delegation-status[data-status="SCHEDULED"] { background: #e8efff; color: #315fbd; }
.approval-delegation-status[data-status="CANCELLED"] { background: #fde9e7; color: #a33b32; }
.approval-reason-cell { white-space: normal; overflow-wrap: break-word; word-break: normal; }
.approval-delegation-updated { font-variant-numeric: tabular-nums; }
.approval-delegation-action-group { display: flex; justify-content: flex-end; gap: 6px; white-space: nowrap; }
.approval-delegation-empty {
  position: static !important;
  width: auto !important;
  min-width: 0 !important;
  padding: 38px !important;
  color: var(--approval-delegation-muted) !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: center !important;
  white-space: normal !important;
}
.approval-delegation-empty::before { display: none !important; }
.approval-delegation-empty.is-error { color: #b42318 !important; }

.approval-delegation-date-help {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #28456f;
  background: #f1f6ff;
  font-size: 13px;
}

.approval-delegated-label {
  display: block;
  margin-top: 4px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  color: #3b64ff;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .approval-delegation-visible-filters { align-items: stretch; flex-direction: column; flex-wrap: wrap; }
  .approval-delegation-visible-filters .form-select { width: 100%; min-width: 0; }
  .approval-delegation-visible-filters .btn { flex: 1 1 0; min-height: 44px; }
  .approval-delegation-page .admin-actions,
  .approval-delegation-page .admin-actions .btn { width: 100%; }
  .portal-scope .portal-delegation-trigger { margin-right: 8px; }
}

@media (max-width: 1100px) {
  .approval-delegation-page { height: auto; min-height: 100%; overflow: visible; }
}

@media (max-width: 900px) {
  .approval-delegation-page .admin-card {
    border: 0;
    background: transparent;
  }

  .approval-delegation-page .admin-card > .card-body {
    padding: 0;
  }

  .approval-delegation-page .admin-toolbar {
    padding: 12px;
    border: 1px solid var(--approval-delegation-border);
    border-radius: 8px;
    background: #fff;
  }

  .approval-delegation-page .table-responsive {
    overflow: visible;
  }

  .approval-delegation-table {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .approval-delegation-table thead {
    display: none;
  }

  .approval-delegation-table tbody {
    display: grid;
    gap: 12px;
  }

  .approval-delegation-table tbody tr {
    display: grid;
    padding: 6px 12px;
    border: 1px solid var(--approval-delegation-border);
    border-radius: 8px;
    background: #fff;
  }

  .approval-delegation-table tbody td {
    display: grid;
    grid-template-columns: minmax(88px, .36fr) minmax(0, 1fr);
    gap: 12px;
    width: auto !important;
    min-width: 0 !important;
    padding: 10px 0;
    border: 0;
    border-bottom: 1px solid #edf0f5;
    text-align: left !important;
    white-space: normal;
  }

  .approval-delegation-table tbody td::before {
    content: attr(data-label);
    color: var(--approval-delegation-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 20px;
  }

  .approval-delegation-table tbody td:last-child {
    border-bottom: 0;
  }

  .approval-delegation-action-group {
    justify-content: flex-start;
    flex-wrap: wrap;
    white-space: normal;
  }

  .approval-delegation-empty {
    display: block !important;
    padding: 28px 12px !important;
  }
}

/* Keep large invoice sets separate from the reimbursement item table. */
.portal-scope .approvals-page .approval-invoice-section {
  width: 100%;
  min-width: 0;
  margin-top: 20px;
}

.portal-scope .approvals-page .approval-invoice-section__head {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding-bottom: 10px;
}

.portal-scope .approvals-page .approval-invoice-table-wrap {
  width: 100%;
  max-width: 100%;
  max-height: 288px;
  overflow: auto;
  border: 1px solid #e5e6eb;
  border-radius: 8px;
  background: #fff;
  scrollbar-color: rgba(0, 0, 0, 0.28) #f2f3f5;
  scrollbar-width: thin;
}

.portal-scope .approvals-page .approval-invoice-table-wrap:focus-visible {
  outline: 2px solid var(--portal-primary);
  outline-offset: 2px;
}

.portal-scope .approvals-page .approval-invoice-table {
  width: 100%;
  min-width: 680px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  color: #13121a;
  font-size: 14px;
}

.portal-scope .approvals-page .approval-invoice-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

.portal-scope .approvals-page .approval-invoice-table th {
  height: 42px;
  padding: 9px 16px;
  border-bottom: 1px solid #e5e6eb;
  color: #86909c;
  background: #f2f2f5;
  font-size: 13px;
  font-weight: 500;
  line-height: 22px;
  text-align: left;
  white-space: nowrap;
}

.portal-scope .approvals-page .approval-invoice-table th:nth-child(1) { width: 14%; }
.portal-scope .approvals-page .approval-invoice-table th:nth-child(2) { width: 38%; }
.portal-scope .approvals-page .approval-invoice-table th:nth-child(3) { width: 25%; }
.portal-scope .approvals-page .approval-invoice-table th:nth-child(4) { width: 23%; }

.portal-scope .approvals-page .approval-invoice-table td {
  height: 44px;
  padding: 9px 16px;
  border-bottom: 1px solid #f0f2f5;
  background: #fff;
  line-height: 22px;
  vertical-align: middle;
}

.portal-scope .approvals-page .approval-invoice-table tbody tr:last-child td {
  border-bottom: 0;
}

.portal-scope .approvals-page .approval-invoice-table tbody tr:hover td {
  background: #f8faff;
}

.portal-scope .approvals-page .approval-invoice-item-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 1px 8px;
  border-radius: 4px;
  color: #4e5969;
  background: #f2f3f5;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.portal-scope .approvals-page .approval-invoice-number {
  overflow: hidden;
  color: #17235f;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-scope .approvals-page .approval-invoice-amount,
.portal-scope .approvals-page .approval-invoice-date {
  color: #4e5969;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .portal-scope .approvals-page .approval-invoice-table-wrap {
    max-height: 360px;
    overflow-x: hidden;
  }

  .portal-scope .approvals-page .approval-invoice-table {
    min-width: 0;
    table-layout: auto;
  }

  .portal-scope .approvals-page .approval-invoice-table thead {
    display: none;
  }

  .portal-scope .approvals-page .approval-invoice-table tbody,
  .portal-scope .approvals-page .approval-invoice-table tr,
  .portal-scope .approvals-page .approval-invoice-table td {
    display: block;
    width: 100%;
  }

  .portal-scope .approvals-page .approval-invoice-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    padding: 12px;
    border-bottom: 1px solid #e5e6eb;
  }

  .portal-scope .approvals-page .approval-invoice-table td {
    display: grid;
    gap: 2px;
    height: auto;
    padding: 0;
    border: 0;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .portal-scope .approvals-page .approval-invoice-table td::before {
    content: attr(data-label);
    color: #86909c;
    font-size: 11px;
    font-weight: 500;
  }

  .portal-scope .approvals-page .approval-invoice-table td:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}

/* Attachment-first invoice hierarchy, aligned with the reimbursement apply form. */
.portal-scope .approvals-page .approval-invoice-groups {
  width: 100%;
  max-width: 100%;
  max-height: 420px;
  padding: 12px 0;
  overflow-x: hidden;
  overflow-y: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  scrollbar-color: rgba(0, 0, 0, 0.28) #f2f3f5;
  scrollbar-width: thin;
}

.portal-scope .approvals-page .approval-invoice-groups:focus-visible {
  outline: 2px solid var(--portal-primary);
  outline-offset: 2px;
}

.portal-scope .approvals-page .approval-invoice-attachment {
  overflow: visible;
  margin-bottom: 12px;
  border: 1px solid #dce3ef;
  border-radius: 8px;
  background: #fff;
}

.portal-scope .approvals-page .approval-invoice-attachment:last-child {
  margin-bottom: 0;
}

.portal-scope .approvals-page .approval-invoice-attachment__head {
  position: sticky;
  top: -12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 14px;
  border-bottom: 1px solid #dce3ef;
  border-radius: 8px 8px 0 0;
  background: #f2f3f5;
}

.portal-scope .approvals-page .approval-invoice-attachment.is-collapsed .approval-invoice-attachment__head {
  border-bottom: 0;
  border-radius: 8px;
}

.portal-scope .approvals-page .approval-invoice-attachment__file {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: min(52%, 560px);
  padding: 0;
  border: 0;
  color: #13121a;
  background: transparent;
  text-align: left;
}

.portal-scope .approvals-page .approval-invoice-attachment__file .file-format-icon {
  flex: 0 0 auto;
}

.portal-scope .approvals-page .approval-invoice-attachment__file strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-scope .approvals-page .approval-invoice-attachment__file-link {
  cursor: pointer;
}

.portal-scope .approvals-page .approval-invoice-attachment__file-link strong {
  color: var(--portal-primary);
}

.portal-scope .approvals-page .approval-invoice-attachment__file-link:hover strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.portal-scope .approvals-page .approval-invoice-attachment__file-link:focus-visible {
  outline: 2px solid var(--portal-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.portal-scope .approvals-page .approval-invoice-attachment__summary,
.portal-scope .approvals-page .approval-invoice-attachment__actions {
  display: flex;
  align-items: center;
}

.portal-scope .approvals-page .approval-invoice-attachment__summary {
  justify-content: flex-end;
  gap: 14px;
  min-width: 0;
}

.portal-scope .approvals-page .approval-invoice-attachment__actions {
  gap: 4px;
}

.portal-scope .approvals-page .approval-invoice-attachment__action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  padding: 4px 7px;
  border: 0;
  border-radius: 4px;
  color: var(--portal-primary);
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.portal-scope .approvals-page .approval-invoice-attachment__action:hover {
  background: var(--portal-primary-soft);
}

.portal-scope .approvals-page .approval-invoice-attachment__action:focus-visible {
  outline: 2px solid var(--portal-primary);
  outline-offset: 1px;
}

.portal-scope .approvals-page .approval-invoice-attachment__action:disabled {
  cursor: wait;
  opacity: .65;
}

.portal-scope .approvals-page .approval-invoice-attachment__meta {
  flex: 0 0 auto;
  color: #657084;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.portal-scope .approvals-page .approval-invoice-cards {
  display: grid;
  padding: 0 14px;
}

.portal-scope .approvals-page .approval-invoice-cards[hidden] {
  display: none;
}

.portal-scope .approvals-page .approval-invoice-card {
  display: grid;
  grid-template-columns: minmax(110px, .42fr) minmax(0, 2.58fr);
  gap: 20px;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid #e8ebf0;
  background: #fff;
}

.portal-scope .approvals-page .approval-invoice-card:last-child {
  border-bottom: 0;
}

.portal-scope .approvals-page .approval-invoice-card__title {
  padding: 1px 0 0;
  color: #4e5969;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
}

.portal-scope .approvals-page .approval-invoice-card__fields {
  display: grid;
  grid-template-columns: minmax(230px, 1.6fr) minmax(130px, .65fr) minmax(130px, .65fr);
  gap: 12px 24px;
  margin: 0;
  padding: 0;
}

.portal-scope .approvals-page .approval-invoice-card__field {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.portal-scope .approvals-page .approval-invoice-card__field dt {
  margin: 0;
  color: #86909c;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

.portal-scope .approvals-page .approval-invoice-card__field dd {
  margin: 0;
  overflow: hidden;
  color: #1d2433;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.portal-scope .approvals-page .approval-invoice-card__field--number dd {
  color: #152b68;
  font-weight: 600;
}

@media (max-width: 767px) {
  .portal-scope .approvals-page .approval-invoice-groups {
    max-height: 480px;
    padding: 8px;
  }

  .portal-scope .approvals-page .approval-invoice-attachment__head {
    top: -8px;
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .portal-scope .approvals-page .approval-invoice-attachment__file {
    max-width: 100%;
  }

  .portal-scope .approvals-page .approval-invoice-attachment__summary {
    justify-content: space-between;
    gap: 8px;
  }

  .portal-scope .approvals-page .approval-invoice-cards {
    padding: 0 12px;
  }

  .portal-scope .approvals-page .approval-invoice-card {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 0;
  }

  .portal-scope .approvals-page .approval-invoice-card__fields {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* Item and Project Initiation requests share the responsive staged form layout. */
.portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) {
  --item-request-content-max: 1360px;
  --item-request-page-gutter: clamp(12px, 2vw, 28px);
  --item-request-panel-padding: clamp(18px, 2vw, 28px);
  min-width: 0;
  overflow-x: clip;
}

.portal-scope.is-standard-item-request-layout > .admin-page-head {
  padding-inline-start: 0;
}

.portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) > .workflow-application-page {
  box-sizing: border-box;
  width: min(100%, var(--item-request-content-max));
  max-width: var(--item-request-content-max);
  min-width: 0;
  margin-inline: auto;
  container-name: item-request-page;
  container-type: inline-size;
}

.portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .workflow-application-card,
.portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .workflow-application-body,
.portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .scm-item-request-flow,
.portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .scm-item-request-stage,
.portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .expense-basic-fields,
.portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .form-item,
.portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .field-control,
.portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .portal-select,
.portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .portal-select__control {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

.portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .field-label,
.portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .field-help,
.portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .file-chip,
.portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .self-design-pdm-selection {
  overflow-wrap: anywhere;
}

.portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .scm-item-request-stage--images .file-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  min-width: 0;
  margin-top: 10px;
}

.portal-scope.is-expense-report-layout:is(.is-standard-item-request-layout, .is-project-initiation-layout)
  .workflow-application-page.request-detail-page
  .scm-item-request-stage--images .scm-procurement-item-field[data-field-key="file"],
.portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .scm-item-request-stage--images .file-control {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
}

.portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .scm-item-request-stage--images .file-picker {
  align-self: flex-start;
  width: min(100%, 450px);
  box-sizing: border-box;
}

.portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .scm-item-request-stage--images .scm-image-file-preview {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  background: #fff;
}

.portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .scm-item-request-stage--images .scm-image-file-preview a {
  display: block;
  min-width: 0;
}

.portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .scm-item-request-stage--images .scm-image-file-preview img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: contain;
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  background: #fff;
}

.portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .scm-item-request-stage--images .scm-image-file-preview span {
  min-width: 0;
  padding-right: 24px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .scm-item-request-stage--images .scm-image-file-preview button {
  position: absolute;
  right: 10px;
  bottom: 10px;
}

@media (max-width: 1200px) {
  .portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .scm-item-request-stage--images .file-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .scm-item-request-stage--images .file-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 761px) {
  .portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) > .admin-page-head {
    box-sizing: border-box;
    width: min(100%, var(--item-request-content-max));
    max-width: var(--item-request-content-max);
    margin-inline: auto;
  }

  .portal-scope.portal-detail-scroll.is-expense-report-layout:is(.is-standard-item-request-layout, .is-project-initiation-layout) .workflow-application-page {
    height: calc(100vh - 147px);
    overflow-y: auto;
  }

  .portal-scope.portal-detail-scroll.is-expense-report-layout:is(.is-standard-item-request-layout, .is-project-initiation-layout) .workflow-application-page .request-detail-card {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .portal-scope.is-expense-report-layout:is(.is-standard-item-request-layout, .is-project-initiation-layout) .workflow-application-page .request-detail-card .detail-body {
    height: auto;
    max-height: none;
    padding-bottom: 104px;
    overflow: visible;
  }

  .portal-scope.is-expense-report-layout:is(.is-standard-item-request-layout, .is-project-initiation-layout) .workflow-application-page .workflow-application-body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "basic" "side";
    grid-template-rows: auto;
    gap: clamp(12px, 1.5vw, 20px);
    height: auto;
    overflow: visible;
  }

  .portal-scope.is-expense-report-layout:is(.is-standard-item-request-layout, .is-project-initiation-layout) .expense-basic-panel,
  .portal-scope.is-expense-report-layout:is(.is-standard-item-request-layout, .is-project-initiation-layout) .expense-breakdown-panel,
  .portal-scope.is-expense-report-layout:is(.is-standard-item-request-layout, .is-project-initiation-layout) .workflow-application-side-card {
    min-height: 0;
    max-height: none;
    border: 0;
    border-radius: 8px;
    overflow: visible;
  }

  .portal-scope.is-expense-report-layout:is(.is-standard-item-request-layout, .is-project-initiation-layout) .expense-basic-panel,
  .portal-scope.is-expense-report-layout:is(.is-standard-item-request-layout, .is-project-initiation-layout) .expense-breakdown-panel,
  .portal-scope.is-expense-report-layout:is(.is-standard-item-request-layout, .is-project-initiation-layout) .workflow-application-side-card {
    padding: var(--item-request-panel-padding);
  }

  .portal-scope.is-expense-report-layout:is(.is-standard-item-request-layout, .is-project-initiation-layout) .expense-basic-fields {
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    align-items: start;
    gap: 20px 24px;
    width: 100%;
    overflow: visible;
  }

  .portal-scope.is-expense-report-layout:is(.is-standard-item-request-layout, .is-project-initiation-layout) .expense-basic-fields > .form-item,
  .portal-scope.is-expense-report-layout:is(.is-standard-item-request-layout, .is-project-initiation-layout) .expense-basic-fields > .expense-basic-attachment {
    min-width: 0;
  }

  .portal-scope.is-expense-report-layout:is(.is-standard-item-request-layout, .is-project-initiation-layout) .expense-basic-fields > .expense-basic-attachment {
    grid-column: 1 / -1;
  }

  .portal-scope.is-expense-report-layout:is(.is-standard-item-request-layout, .is-project-initiation-layout) .expense-basic-fields > :is(
    [data-field-path="description"],
    [data-field-path="remarks"],
    [data-field-path="reason"],
    [data-field-path="attributes"],
    [data-field-path="subAssemblyFileIds"],
    [data-field-path="bomFile"],
    .standard-item-controlled-attributes-field,
    .workflow-cascader-field
  ) {
    grid-column: 1 / -1;
  }

  .portal-scope.is-expense-report-layout:is(.is-standard-item-request-layout, .is-project-initiation-layout) .expense-detail-list,
  .portal-scope.is-expense-report-layout:is(.is-standard-item-request-layout, .is-project-initiation-layout) .scm-procurement-tab-panels,
  .portal-scope.is-expense-report-layout:is(.is-standard-item-request-layout, .is-project-initiation-layout) .scm-procurement-tab-panel,
  .portal-scope.is-expense-report-layout:is(.is-standard-item-request-layout, .is-project-initiation-layout) .workflow-process-panel > [data-role="approver-list"] {
    flex: 0 0 auto;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .portal-scope.is-expense-report-layout:is(.is-standard-item-request-layout, .is-project-initiation-layout) .scm-procurement-tab-panel,
  .portal-scope.is-expense-report-layout:is(.is-standard-item-request-layout, .is-project-initiation-layout) .workflow-application-page.request-detail-page .scm-procurement-tab-panel {
    padding-bottom: 0;
  }

  .portal-scope.is-expense-report-layout:is(.is-standard-item-request-layout, .is-project-initiation-layout) .workflow-application-side-card .workflow-process-panel {
    flex: 0 0 auto;
  }

  .portal-scope.is-expense-report-layout:is(.is-standard-item-request-layout, .is-project-initiation-layout)
    .workflow-application-page .workflow-application-actions {
    width: min(calc(100% - (2 * var(--item-request-page-gutter))), var(--item-request-content-max));
    max-width: var(--item-request-content-max);
    padding-inline: var(--item-request-panel-padding);
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  .portal-scope.is-expense-report-layout:is(.is-standard-item-request-layout, .is-project-initiation-layout) .expense-basic-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}

/*
 * The application shell can become narrow even while the browser viewport is
 * still wide (expanded navigation, split screen, or browser side panels).
 * Adapt to the request page's usable width instead of relying on viewport
 * breakpoints alone.
 */
@container item-request-page (max-width: 980px) {
  .portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .expense-basic-fields,
  .portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .request-detail-page .form-grid,
  .portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .request-detail-page .form-grid.nested,
  .portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .workflow-controlled-attribute-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .expense-basic-panel,
  .portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .expense-breakdown-panel,
  .portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .workflow-application-side-card {
    padding: clamp(16px, 3cqi, 22px);
  }

  .portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .expense-section-heading,
  .portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .self-design-pdm-panel__header,
  .portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .self-design-bom-panel__header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .workflow-application-actions {
    gap: 12px;
  }

  .portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .workflow-application-actions .expense-action-buttons {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
  }
}

@container item-request-page (max-width: 700px) {
  .portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .workflow-application-body {
    padding: 12px;
  }

  .portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .scm-item-request-flow {
    gap: 12px;
  }

  .portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .expense-basic-panel,
  .portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .expense-breakdown-panel,
  .portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .workflow-application-side-card {
    padding: 14px;
  }

  .portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .scm-item-request-options__grid,
  .portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .self-design-bom-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .self-design-bom-summary__hash {
    grid-column: auto;
  }

  .portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .scm-procurement-item-card {
    padding: 14px;
  }

  .portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .self-design-bom-control__picker,
  .portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .self-design-bom-selected {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .self-design-bom-control__browse {
    margin-left: 0;
  }

  .portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .self-design-bom-selected__actions {
    justify-content: flex-end;
    width: 100%;
  }

  .portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .workflow-application-actions,
  .portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .request-detail-page .actions {
    position: sticky;
    z-index: 20;
    left: auto;
    bottom: 0;
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    transform: none;
    flex-direction: column;
    align-items: stretch;
  }

  .portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .workflow-application-actions .expense-action-buttons {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    margin-left: 0;
  }

  .portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .workflow-application-actions .btn {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 760px) {
  .admin-shell:has(.is-project-initiation-layout) {
    grid-template-columns: minmax(0, 1fr);
  }

  .portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) {
    --item-request-page-gutter: 12px;
  }

  .portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) > .workflow-application-page {
    width: 100%;
    margin-inline: 0;
  }

  .portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .workflow-application-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 18px 16px;
  }

  .portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .workflow-application-icon,
  .portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .workflow-application-code {
    display: none;
  }

  .portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .workflow-application-title-block h1 {
    font-size: clamp(22px, 7vw, 28px);
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .workflow-application-body {
    padding: 12px;
  }

  .portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .request-detail-card .detail-body {
    width: 100%;
    padding-bottom: 0;
  }

  .portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .request-detail-page .form-grid,
  .portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .request-detail-page .form-grid.nested,
  .portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .workflow-controlled-attribute-grid,
  .portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .scm-item-request-options__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .request-detail-page .form-item {
    padding: 12px;
  }

  .portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .workflow-application-actions,
  .portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .request-detail-page .actions {
    position: sticky;
    z-index: 20;
    left: auto;
    bottom: 0;
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    transform: none;
    flex-direction: column;
    align-items: stretch;
  }

  .portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .workflow-application-actions .expense-action-buttons,
  .portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .workflow-application-actions .btn {
    width: 100%;
  }

  .portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .workflow-application-actions .expense-action-buttons {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
}

@media (max-width: 420px) {
  .portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .workflow-application-body {
    padding-inline: 8px;
  }

  .portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .request-detail-page .form-item {
    padding: 10px;
  }
}

/* Keep the five standard-item PDM document inputs in two balanced rows. */
.portal-scope.is-expense-report-layout:is(.is-standard-item-request-layout, .is-project-initiation-layout)
  .workflow-application-page.request-detail-page
  .scm-procurement-item-card[data-group-key="technicalDocuments"] .scm-procurement-item-fields {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px 20px;
}

.portal-scope.is-expense-report-layout:is(.is-standard-item-request-layout, .is-project-initiation-layout)
  .workflow-application-page.request-detail-page
  .scm-procurement-item-card[data-group-key="technicalDocuments"] .scm-procurement-item-field {
  grid-column: span 2;
}

.portal-scope.is-expense-report-layout:is(.is-standard-item-request-layout, .is-project-initiation-layout)
  .workflow-application-page.request-detail-page
  .scm-procurement-item-card[data-group-key="technicalDocuments"] .scm-procurement-item-field[data-field-key="file"] {
  grid-column: span 4;
}

/* Item requests show the form stages and each file category separately. */
.portal-scope.is-expense-report-layout:is(.is-standard-item-request-layout, .is-project-initiation-layout)
  .workflow-application-page.request-detail-page
  .scm-procurement-item-card[data-group-key="supportingAttachments"] .scm-procurement-item-fields {
  grid-template-columns: minmax(0, 1fr);
}

.portal-scope.is-expense-report-layout:is(.is-standard-item-request-layout, .is-project-initiation-layout)
  .workflow-application-page.request-detail-page
  .scm-procurement-item-card[data-group-key="supportingAttachments"] .scm-procurement-item-field[data-field-key="file"] {
  grid-column: 1 / -1;
  max-width: 640px;
}

.portal-scope.is-expense-report-layout:is(.is-standard-item-request-layout, .is-project-initiation-layout)
  .workflow-application-page .workflow-application-body {
  grid-template-areas: "basic" "side";
  grid-template-rows: auto;
  height: auto;
  overflow: visible;
}

.portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .scm-item-request-flow {
  display: grid;
  grid-area: basic;
  gap: 16px;
  min-width: 0;
  align-self: start;
}

.portal-scope:is(.is-standard-item-request-layout, .is-project-initiation-layout) .scm-item-request-stage {
  grid-area: auto;
  width: 100%;
  box-sizing: border-box;
  min-height: 0;
  max-height: none;
  overflow: visible;
}

.portal-scope.is-standard-item-request-layout .scm-item-request-stage--attributes .standard-item-controlled-attributes-field,
.portal-scope.is-standard-item-request-layout .scm-item-request-stage--attributes [data-field-path="itemName"] {
  grid-column: 1 / -1;
}

.portal-scope.is-standard-item-request-layout .scm-item-request-options {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid #e9edf5;
}

.portal-scope.is-standard-item-request-layout .scm-item-request-options h3 {
  margin: 0 0 16px;
  color: #20232a;
  font-size: 18px;
  font-weight: 600;
}

.portal-scope.is-standard-item-request-layout .scm-item-request-options__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
}

.portal-scope.is-expense-report-layout.is-standard-item-request-layout
  .workflow-application-page.request-detail-page .scm-item-request-options__grid > .form-item {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.portal-scope.is-standard-item-request-layout .scm-item-request-options .portal-checkbox-control,
.portal-scope.is-standard-item-request-layout .scm-item-request-options .portal-checkbox-control:hover {
  min-height: 46px;
  padding: 0 4px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
}

.portal-scope.is-standard-item-request-layout .scm-item-request-options .portal-checkbox-control:focus-within {
  outline: 2px solid #7c8ab5;
  outline-offset: 2px;
}

.portal-scope.is-standard-item-request-layout .scm-item-request-options .portal-checkbox-input {
  left: 4px;
}

.portal-scope.is-standard-item-request-layout .scm-item-request-options .portal-checkbox-label {
  flex: 0 1 auto;
  font-weight: 500;
}

.portal-scope.is-standard-item-request-layout .scm-item-request-options .portal-checkbox-input:checked + .portal-checkbox-box {
  border-color: #20232a;
  background: #20232a;
}

.portal-scope.is-standard-item-request-layout .scm-item-request-options .portal-checkbox-state {
  display: none;
}

.portal-scope.is-standard-item-request-layout .scm-item-attribute-option {
  display: flex;
  align-items: center;
  min-height: 46px;
  gap: 3px;
}

.portal-scope.is-standard-item-request-layout .scm-item-attribute-help {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.portal-scope.is-standard-item-request-layout .scm-item-attribute-help__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font-size: 18px;
}

.portal-scope.is-standard-item-request-layout .scm-item-attribute-help__icon:hover {
  color: #3157f4;
  background: #eef2ff;
}

.portal-scope.is-standard-item-request-layout .scm-item-attribute-help__icon:focus-visible,
.portal-scope.is-standard-item-request-layout .scm-item-attribute-help__close:focus-visible {
  outline: 2px solid #3157f4;
  outline-offset: 2px;
}

.portal-scope.is-standard-item-request-layout .scm-item-attribute-help__popover {
  position: absolute;
  z-index: 80;
  top: calc(100% + 8px);
  left: 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: min(340px, calc(100vw - 24px));
  box-sizing: border-box;
  padding: 12px 12px 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .16);
  color: #20232a;
  font-size: 14px;
  line-height: 1.45;
}

.portal-scope.is-standard-item-request-layout .scm-item-attribute-help__popover[hidden] {
  display: none;
}

.portal-scope.is-standard-item-request-layout .scm-item-attribute-help__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  margin: -3px -3px -3px 0;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: #f1f3f6;
  color: #20232a;
  cursor: pointer;
  font-size: 18px;
}

@media (max-width: 760px) {
  .portal-scope.is-standard-item-request-layout .scm-item-request-options__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.portal-scope.is-standard-part-request-layout .scm-technical-file-results .solidworks-property-preview {
  max-height: 280px;
  overflow-y: auto;
}

.portal-scope .self-design-pdm-properties {
  width: 100%;
  min-width: 0;
}

.portal-scope .self-design-pdm-properties__status,
.portal-scope .self-design-pdm-properties__summary {
  margin: 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.5;
}

.portal-scope .self-design-pdm-properties__status.is-error {
  color: #b42318;
}

@container (max-width: 820px) {
  .portal-scope.is-expense-report-layout.is-standard-item-request-layout
    .workflow-application-page.request-detail-page
    .scm-procurement-item-card[data-group-key="technicalDocuments"] .scm-procurement-item-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-scope.is-expense-report-layout.is-standard-item-request-layout
    .workflow-application-page.request-detail-page
    .scm-procurement-item-card[data-group-key="technicalDocuments"] .scm-procurement-item-field {
    grid-column: span 1;
  }

  .portal-scope.is-expense-report-layout.is-standard-item-request-layout
    .workflow-application-page.request-detail-page
    .scm-procurement-item-card[data-group-key="technicalDocuments"] .scm-procurement-item-field[data-field-key="file"] {
    grid-column: 1 / -1;
  }
}

@container (max-width: 520px) {
  .portal-scope.is-expense-report-layout.is-standard-item-request-layout
    .workflow-application-page.request-detail-page
    .scm-procurement-item-card[data-group-key="technicalDocuments"] .scm-procurement-item-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .portal-scope.is-expense-report-layout.is-standard-item-request-layout
    .workflow-application-page.request-detail-page
    .scm-procurement-item-card[data-group-key="technicalDocuments"] .scm-procurement-item-field {
    grid-column: 1 / -1;
  }
}
/* Product Development Code Request keeps steps 2 and 3 as peer sections in
 * the middle column, with one scroll area for both sections. */
.portal-scope.is-expense-report-layout.is-product-development-code-layout
  .product-development-code-main {
  display: flex;
  flex-direction: column;
  grid-area: breakdown;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  border-radius: 0 8px 8px 0;
  background: #fff;
}

.portal-scope.is-expense-report-layout.is-product-development-code-layout
  .product-development-code-main > .expense-breakdown-panel {
  flex: 0 0 auto;
  grid-area: auto;
  align-self: auto;
  max-height: none;
  overflow: visible;
  border-radius: 0;
}

.portal-scope.is-expense-report-layout.is-product-development-code-layout
  .product-development-code-reservation-panel {
  padding-top: 0;
}

@media (min-width: 761px) {
  .portal-scope.is-expense-report-layout.is-product-development-code-layout {
    --workflow-left-column-width: clamp(280px, 24%, 360px);
    --workflow-side-column-width: clamp(240px, 20%, 320px);
  }

  .portal-scope.is-expense-report-layout.is-product-development-code-layout
    .product-development-code-basic-fields,
  .portal-scope.is-expense-report-layout.is-product-development-code-layout
    .product-development-code-fields {
    align-content: start;
    padding-right: 6px;
  }

  .portal-scope.is-expense-report-layout.is-product-development-code-layout
    .product-development-code-basic-fields > .form-item,
  .portal-scope.is-expense-report-layout.is-product-development-code-layout
    .product-development-code-fields > .form-item {
    min-width: 0;
  }

  .portal-scope.is-expense-report-layout.is-product-development-code-layout
    .product-development-code-fields textarea.field-control {
    min-height: 160px;
    resize: vertical;
  }

  .portal-scope.is-expense-report-layout.is-product-development-code-layout
    .product-development-code-fields .field-control[readonly]:not(.field-display) {
    color: #4e5969;
    background: #f7f7f9;
  }
}
.portal-scope.is-expense-report-layout.is-product-development-code-layout
  .product-development-code-fields {
  flex: 0 0 auto;
  overflow-y: visible;
}

.product-series-code-reservation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 16px;
  padding: 20px;
  border: 1px solid #dbe3f3;
  border-radius: 12px;
  background: #f8faff;
}

.product-series-code-reservation.is-ready {
  border-color: #9db1ff;
  background: #f3f6ff;
}

.product-series-code-field {
  flex: 1 1 auto;
  min-width: 0;
}

.product-series-code-label {
  color: #667085;
  font-size: 13px;
}

.product-series-code-value {
  margin: 4px 0;
  color: #1f2a5a;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: .08em;
}

.product-series-code-field .muted {
  display: block;
  margin-top: 6px;
}

@media (max-width: 767px) {
  .product-series-code-reservation {
    align-items: stretch;
    flex-direction: column;
  }
}

.portal-scope .self-change-field .portal-select__input { min-height: 0; border-radius: 0; font-weight: 400; }
/* Keep the existing application panels readable inside the draft View dialog. */
#drawer-body .workflow-draft-preview.is-expense-report-layout {
  --workflow-left-column-width: max(320px, 36%);
  --workflow-side-column-width: 0px;
  --workflow-middle-side-gap: 0px;
  --expense-content-height: auto;
}

#drawer-body .workflow-draft-preview.is-expense-report-layout .workflow-application-body {
  grid-template-rows: auto;
  overflow: visible;
}

#drawer-body .workflow-draft-preview.is-expense-report-layout .expense-basic-panel,
#drawer-body .workflow-draft-preview.is-expense-report-layout .expense-breakdown-panel,
#drawer-body .workflow-draft-preview.is-expense-report-layout .expense-basic-fields,
#drawer-body .workflow-draft-preview.is-expense-report-layout .expense-detail-list,
#drawer-body .workflow-draft-preview.is-expense-report-layout .business-travel-detail-block {
  max-height: none;
  overflow: visible;
}

#drawer-body .workflow-draft-preview .field-display,
#drawer-body .workflow-draft-preview .file-chip__name {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

#drawer-body .workflow-draft-preview .form-grid.nested {
  grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
}

/* Stacked request forms share one bounded scroll owner. Letting this element
 * grow with the form would put later sections outside the clipped app shell. */
@media (max-width: 1199px) {
  body.has-expense-report-layout {
    overflow-y: hidden;
  }

  .admin-shell .admin-body.has-expense-report-layout {
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
  }
}

/* Compact request layout for phones and tablets. */
@media (max-width: 1024px) {
  /* Split request forms use fixed panel heights on desktop. On compact screens they
   * must return to one document scroll so later sections and actions cannot
   * become trapped inside an independently scrolling middle panel. */
  .admin-shell .admin-body.has-expense-report-layout #content-area,
  .admin-shell #content-area > .portal-scope.portal-detail-scroll.is-expense-report-layout,
  .portal-scope.portal-detail-scroll.is-expense-report-layout .workflow-application-page,
  .portal-scope.portal-detail-scroll.is-expense-report-layout .workflow-application-page .request-detail-card,
  .portal-scope.is-expense-report-layout .workflow-application-page .request-detail-card .detail-body {
    height: auto;
    max-height: none;
    min-height: 0;
    overflow: visible;
  }

  .portal-scope.is-expense-report-layout .workflow-application-page .request-detail-card .detail-body {
    padding-bottom: 0;
  }

  .portal-scope.is-expense-report-layout .workflow-application-page .workflow-application-body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "basic"
      "breakdown"
      "side";
    grid-template-rows: auto;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .portal-scope.is-expense-report-layout .expense-basic-panel,
  .portal-scope.is-expense-report-layout .expense-breakdown-panel,
  .portal-scope.is-expense-report-layout .workflow-application-side-card,
  .portal-scope.is-expense-report-layout.is-product-development-code-layout .product-development-code-main {
    align-self: auto;
    height: auto;
    max-height: none;
    min-height: 0;
    overflow: visible;
  }

  .portal-scope.is-expense-report-layout.is-product-development-code-layout .product-development-code-main {
    width: 100%;
  }

  .portal-scope.is-expense-report-layout.is-product-development-code-layout
    .product-development-code-main > .expense-breakdown-panel,
  .portal-scope.is-expense-report-layout.is-product-development-code-layout
    .product-development-code-reservation-panel,
  .portal-scope.is-expense-report-layout.is-product-development-code-layout
    .product-series-code-reservation {
    width: 100%;
    min-width: 0;
  }
}

/* Shared phone layout for workflow request and standalone approval detail pages. */
@media (max-width: 760px) {
  .portal-scope .request-detail-card {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .portal-scope .request-detail-card .detail-body {
    width: 100%;
    padding-bottom: 0;
  }

  .portal-scope .workflow-application-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 18px 16px;
  }

  .portal-scope .workflow-application-icon,
  .portal-scope .workflow-application-code {
    display: none;
  }

  .portal-scope .workflow-application-title-block h1 {
    font-size: clamp(22px, 7vw, 28px);
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .portal-scope .workflow-application-title-block p {
    margin-top: 6px;
    font-size: 14px;
  }

  .portal-scope .workflow-application-body {
    padding: 14px 12px;
  }

  .portal-scope .workflow-process-panel,
  .portal-scope .workflow-cc-panel {
    padding: 14px;
    border-radius: 10px;
  }

  .portal-scope .request-detail-page .actions,
  .portal-scope .request-detail-page .workflow-application-actions {
    position: sticky;
    z-index: 20;
    left: auto;
    bottom: 0;
    width: 100%;
    margin-top: 12px;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
    transform: none;
    flex-direction: column;
    align-items: stretch;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
  }

  .portal-scope .request-detail-page .expense-action-buttons {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    width: 100%;
    margin-left: 0;
  }

  .portal-scope .request-detail-page .actions .btn {
    width: 100%;
    min-width: 0;
    min-height: 44px;
  }

  .portal-scope .request-detail-page .actions [data-action="submit"] {
    grid-column: auto;
  }

  .portal-scope .approval-detail-page:not(.is-offer-approval-detail) .detail-shell {
    padding: 0;
  }

  .portal-scope .approval-detail-page:not(.is-offer-approval-detail) .detail-card {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .portal-scope .approval-detail-page:not(.is-offer-approval-detail) .card-body {
    padding: 14px 12px;
  }

  .portal-scope .approval-detail-page:not(.is-offer-approval-detail) .title-row,
  .portal-scope .approval-detail-page:not(.is-offer-approval-detail) .task-title,
  .portal-scope .approval-detail-page:not(.is-offer-approval-detail) .title-meta,
  .portal-scope .approval-detail-page:not(.is-offer-approval-detail) .meta-text {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .portal-scope .approval-detail-page:not(.is-offer-approval-detail) .task-title span {
    font-size: 20px;
  }

  .portal-scope .approval-detail-page:not(.is-offer-approval-detail) .detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .portal-scope .approval-detail-page:not(.is-offer-approval-detail) .footer-actions {
    flex-wrap: wrap;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    box-shadow: 0 -8px 22px rgba(15, 23, 42, 0.08);
  }

  .portal-scope .approval-detail-page:not(.is-offer-approval-detail) .left-actions,
  .portal-scope .approval-detail-page:not(.is-offer-approval-detail) .right-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin: 0;
  }

  .portal-scope .approval-detail-page:not(.is-offer-approval-detail) .footer-actions .btn {
    width: 100%;
    min-width: 0;
    min-height: 44px;
  }
}

/* Reimbursement Apply: keep every expense item in one vertical phone column. */
@media (max-width: 760px) {
  .portal-scope.is-personal-reimbursement-layout .expense-breakdown-panel,
  .portal-scope.is-personal-reimbursement-layout .group-block.reimbursement-detail-block.expense-detail-list,
  .portal-scope.is-personal-reimbursement-layout .expense-detail-cards,
  .portal-scope.is-personal-reimbursement-layout .expense-detail-card,
  .portal-scope.is-personal-reimbursement-layout .expense-detail-fields {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .portal-scope.is-personal-reimbursement-layout .expense-breakdown-panel,
  .portal-scope.is-personal-reimbursement-layout .group-block.reimbursement-detail-block.expense-detail-list {
    overflow-x: hidden;
    overflow-y: visible;
  }

  .portal-scope.is-personal-reimbursement-layout .expense-detail-card {
    padding: 14px 12px;
  }

  .portal-scope.is-personal-reimbursement-layout .expense-detail-card-head {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }

  .portal-scope.is-personal-reimbursement-layout .expense-detail-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 14px;
  }

  .portal-scope.is-personal-reimbursement-layout .expense-detail-fields > .expense-item-field,
  .portal-scope.is-personal-reimbursement-layout .expense-detail-fields > .expense-original-payment {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .portal-scope.is-personal-reimbursement-layout .expense-original-payment-controls,
  .portal-scope.is-personal-reimbursement-layout .expense-field-attachment .file-control,
  .portal-scope.is-personal-reimbursement-layout .expense-field-attachment .file-list,
  .portal-scope.is-personal-reimbursement-layout .invoice-number-confirmation__fields,
  .portal-scope.is-personal-reimbursement-layout .expense-detail-fields .workflow-radio-group {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
  }

  .portal-scope.is-personal-reimbursement-layout .expense-payment-divider {
    display: none;
  }
}

/*
 * Approval request forms on tablets and phones.
 * Desktop keeps the existing business-specific workbench. Compact screens use
 * one document scroll, wider form controls, and detail rows that never create
 * a page-level horizontal scrollbar.
 */
@media (min-width: 761px) and (max-width: 1199px) {
  .admin-shell .admin-body.has-expense-report-layout #content-area,
  .admin-shell #content-area > .portal-scope.portal-detail-scroll.is-expense-report-layout,
  .portal-scope .workflow-application-page.request-detail-page,
  .portal-scope .workflow-application-page.request-detail-page .request-detail-card,
  .portal-scope .workflow-application-page.request-detail-page .request-detail-card .detail-body {
    height: auto;
    max-height: none;
    min-height: 0;
    overflow: visible;
  }

  .portal-scope .workflow-application-page.request-detail-page .workflow-application-hero {
    display: none;
  }

  .portal-scope .workflow-application-page.request-detail-page .request-detail-card .detail-body {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    padding-bottom: 0;
  }

  .portal-scope .workflow-application-page.request-detail-page .workflow-application-body,
  .portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page .workflow-application-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "basic"
      "breakdown"
      "side";
    grid-template-rows: auto;
    gap: 12px;
    height: auto;
    max-height: none;
    padding: 16px;
    overflow: visible;
    background: #f3f5f9;
  }

  .portal-scope.is-standard-item-request-layout .workflow-application-page.request-detail-page .workflow-application-body {
    padding-inline: 0;
  }

  .portal-scope .workflow-application-page.request-detail-page .expense-basic-panel,
  .portal-scope .workflow-application-page.request-detail-page .expense-breakdown-panel,
  .portal-scope .workflow-application-page.request-detail-page .workflow-application-side-card,
  .portal-scope .workflow-application-page.request-detail-page .product-development-code-main {
    box-sizing: border-box;
    align-self: auto;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    min-height: 0;
    padding: 18px;
    border: 1px solid #e8ebf1;
    border-radius: 10px;
    background: #fff;
    overflow: visible;
  }

  .portal-scope .workflow-application-page.request-detail-page .product-development-code-main {
    display: grid;
    gap: 12px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .portal-scope .workflow-application-page.request-detail-page .expense-section-heading {
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    height: auto;
    min-height: 52px;
  }

  .portal-scope .workflow-application-page.request-detail-page .reimbursement-detail-add {
    justify-content: center;
    width: auto;
    min-width: 0;
  }

  .portal-scope .workflow-application-page.request-detail-page .expense-basic-fields,
  .portal-scope .workflow-application-page.request-detail-page .form-grid:not(.nested) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 0 24px;
    width: 100%;
    min-width: 0;
    padding-top: 0;
    overflow: visible;
  }

  .portal-scope .workflow-application-page.request-detail-page .form-grid.nested,
  .portal-scope .workflow-application-page.request-detail-page .workflow-controlled-attribute-grid,
  .portal-scope .workflow-application-page.request-detail-page .scm-item-request-options__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }

  .portal-scope .workflow-application-page.request-detail-page .expense-basic-fields > .form-item,
  .portal-scope .workflow-application-page.request-detail-page .expense-basic-fields > .expense-basic-attachment,
  .portal-scope .workflow-application-page.request-detail-page .form-grid:not(.nested) > .form-item {
    min-width: 0;
    padding: 14px 0;
    border: 0;
    border-bottom: 1px solid #eef0f4;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .portal-scope .workflow-application-page.request-detail-page .expense-basic-fields > :is(
      .expense-basic-remark-field,
      .expense-basic-attachment,
      .workflow-cascader-field,
      [data-field-path="reason"],
      [data-field-path="description"],
      [data-field-path="remark"],
      [data-field-path="remarks"],
      [data-field-path="attributes"],
      [data-field-path="subAssemblyFileIds"],
      [data-field-path="bomFile"]
    ),
  .portal-scope .workflow-application-page.request-detail-page .form-grid:not(.nested) > .form-item.full {
    grid-column: 1 / -1;
  }

  .portal-scope .workflow-application-page.request-detail-page :is(
      .field-control,
      .date-field,
      .portal-select,
      .portal-select__control,
      .workflow-cascader-control,
      .file-control,
      .file-picker,
      .rich-text-editor
    ) {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .portal-scope .workflow-application-page.request-detail-page :is(.field-control, .portal-select__control) {
    min-height: 44px;
  }

  .portal-scope .workflow-application-page.request-detail-page .expense-detail-list,
  .portal-scope .workflow-application-page.request-detail-page .expense-detail-cards,
  .portal-scope .workflow-application-page.request-detail-page .expense-detail-card,
  .portal-scope .workflow-application-page.request-detail-page .business-travel-detail-block,
  .portal-scope .workflow-application-page.request-detail-page .business-travel-items,
  .portal-scope .workflow-application-page.request-detail-page .business-travel-item-card {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page .expense-detail-fields,
  .portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page .scm-procurement-item-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
  }

  .portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
    .expense-detail-fields > :is(.expense-item-field, .expense-original-payment),
  .portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
    .scm-procurement-item-fields > .scm-procurement-item-field {
    grid-column: auto;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
    .expense-detail-fields > :is(
      .expense-field-description,
      .expense-field-attachment,
      .expense-original-payment,
      .scm-procurement-item-field--wide
    ),
  .portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
    .scm-procurement-item-fields > .scm-procurement-item-field--wide {
    grid-column: 1 / -1;
  }

  .portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
    :is(.business-travel-trip-row, .business-travel-trip-grid, .business-travel-time-range,
      .business-travel-date-range, .business-travel-route-row, .business-travel-route-controls) {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
    .business-travel-trip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
    .business-travel-trip-grid:has(> .business-travel-inline-field:nth-child(3) > .form-item:not(.d-none) .workflow-radio-group) {
    grid-template-columns: minmax(0, 1fr) minmax(0, .5fr) minmax(0, .5fr) !important;
  }

  .portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
    .business-travel-time-range {
    grid-column: 1 / -1 !important;
  }

  .portal-scope .workflow-application-page.request-detail-page
    :is(.workflow-process-panel, .workflow-cc-panel) {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
  }

  .portal-scope .workflow-application-page.request-detail-page
    :is(.workflow-application-actions, .actions) {
    position: static;
    z-index: auto;
    left: auto;
    bottom: auto;
    width: 100%;
    max-width: none;
    min-height: 0;
    margin-top: 12px;
    padding: 14px 20px;
    transform: none;
    border: 0;
    border-top: 1px solid #e8ebf1;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  .portal-scope .workflow-application-page.request-detail-page .expense-action-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
  }

  .portal-scope .workflow-application-page.request-detail-page .workflow-application-actions .btn {
    width: auto;
    min-width: 112px;
    min-height: 42px;
  }

  .portal-scope .approval-detail-page:not(.is-offer-approval-detail) .detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  body.has-expense-report-layout {
    overflow: hidden;
  }

  .admin-shell .admin-body.has-expense-report-layout {
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }

  .admin-shell .admin-body.has-expense-report-layout #content-area {
    max-width: 100%;
    overflow: visible;
  }

  .portal-scope .workflow-application-page.request-detail-page,
  .portal-scope .workflow-application-page.request-detail-page .request-detail-card,
  .portal-scope .workflow-application-page.request-detail-page .request-detail-card .detail-body,
  .portal-scope .workflow-application-page.request-detail-page .workflow-application-body,
  .portal-scope .workflow-application-page.request-detail-page [data-role="form-section"],
  .portal-scope .workflow-application-page.request-detail-page [data-role="form-area"] {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .portal-scope .workflow-application-page.request-detail-page .workflow-application-hero {
    display: none;
  }

  .portal-scope .workflow-application-page.request-detail-page .request-detail-card {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .portal-scope .workflow-application-page.request-detail-page .request-detail-card .detail-body {
    padding-bottom: 0;
  }

  .portal-scope .workflow-application-page.request-detail-page .workflow-application-body,
  .portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page .workflow-application-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "basic"
      "breakdown"
      "side";
    grid-template-rows: auto;
    gap: 10px;
    padding: 0;
    background: #f3f5f9;
  }

  .portal-scope .workflow-application-page.request-detail-page .section {
    margin: 0;
  }

  .portal-scope .workflow-application-page.request-detail-page .expense-basic-panel,
  .portal-scope .workflow-application-page.request-detail-page .expense-breakdown-panel,
  .portal-scope .workflow-application-page.request-detail-page .workflow-application-side-card,
  .portal-scope .workflow-application-page.request-detail-page .product-development-code-main,
  .portal-scope .workflow-application-page.request-detail-page .product-development-code-main > .expense-breakdown-panel {
    box-sizing: border-box;
    align-self: auto;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: auto;
    max-height: none;
    padding: 0;
    border: 0;
    border-top: 1px solid #e8ebf1;
    border-bottom: 1px solid #e8ebf1;
    border-radius: 0;
    background: #fff;
    overflow: visible;
  }

  .portal-scope .workflow-application-page.request-detail-page .product-development-code-main {
    display: grid;
    gap: 10px;
    border: 0;
    background: transparent;
  }

  .portal-scope .workflow-application-page.request-detail-page
    :is(.expense-basic-panel > .expense-step-title,
      .expense-breakdown-panel > .expense-section-heading,
      .workflow-process-panel > .workflow-section-title,
      .workflow-cc-panel > .workflow-section-title) {
    box-sizing: border-box;
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    min-height: 54px;
    margin: 0;
    padding: 14px 16px;
    border-bottom: 1px solid #e8ebf1;
  }

  .portal-scope .workflow-application-page.request-detail-page .expense-section-heading {
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }

  .portal-scope .workflow-application-page.request-detail-page
    :is(.expense-step-title h2, .workflow-section-title) {
    font-size: 16px;
    line-height: 24px;
  }

  .portal-scope .workflow-application-page.request-detail-page .reimbursement-detail-add {
    justify-content: center;
    width: auto;
    min-width: 0;
  }

  .portal-scope .workflow-application-page.request-detail-page .expense-basic-fields,
  .portal-scope .workflow-application-page.request-detail-page .form-grid,
  .portal-scope .workflow-application-page.request-detail-page .form-grid.nested,
  .portal-scope .workflow-application-page.request-detail-page .workflow-controlled-attribute-grid,
  .portal-scope .workflow-application-page.request-detail-page .scm-item-request-options__grid {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 0 16px;
    overflow: visible;
  }

  .portal-scope .workflow-application-page.request-detail-page .expense-basic-fields > .form-item,
  .portal-scope .workflow-application-page.request-detail-page .expense-basic-fields > .expense-basic-attachment,
  .portal-scope .workflow-application-page.request-detail-page .form-grid > .form-item,
  .portal-scope .workflow-application-page.request-detail-page .expense-detail-fields .form-item {
    grid-column: 1;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 13px 0;
    border: 0;
    border-bottom: 1px solid #eef0f4;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .portal-scope .workflow-application-page.request-detail-page .field-label {
    margin-bottom: 7px;
    color: #525d70;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    white-space: normal;
  }

  .portal-scope .workflow-application-page.request-detail-page :is(
      .field-control,
      .date-field,
      .date-input,
      .portal-select,
      .portal-select__control,
      .workflow-cascader-control,
      .portal-cascader-level,
      .file-control,
      .file-picker,
      .file-list,
      .rich-text-editor,
      .workflow-radio-group
    ) {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .portal-scope .workflow-application-page.request-detail-page :is(
      .field-control:not(.form-control-plaintext),
      .date-input,
      .portal-select__control,
      .portal-cascader-level
    ),
  .portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
    .expense-field-date :is(.date-field, .date-input) {
    min-height: 48px;
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 7px;
    font-size: 16px;
  }

  .portal-scope .workflow-application-page.request-detail-page textarea.field-control,
  .portal-scope .workflow-application-page.request-detail-page textarea.form-control {
    min-height: 100px;
  }

  .portal-scope .workflow-application-page.request-detail-page :is(
      .field-display,
      .portal-select__value,
      .portal-select__input,
      .file-picker__meta,
      .file-name,
      .self-design-bom-selected__details,
      .approval-title,
      .approver-label,
      .approval-chip
    ) {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .portal-scope .workflow-application-page.request-detail-page .expense-detail-list,
  .portal-scope .workflow-application-page.request-detail-page .business-travel-detail-block {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: auto;
    max-height: none;
    margin: 0;
    padding: 12px 16px 16px;
    border: 0;
    border-radius: 0;
    overflow: visible;
  }

  .portal-scope .workflow-application-page.request-detail-page :is(
      .expense-detail-cards,
      .expense-detail-card,
      .business-travel-items,
      .business-travel-item-card,
      .scm-procurement-detail-cards,
      .scm-procurement-item-card
    ) {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .portal-scope .workflow-application-page.request-detail-page
    :is(.expense-detail-card, .business-travel-item-card, .scm-procurement-item-card) {
    padding: 13px;
    border: 1px solid #dfe3ec;
    border-radius: 8px;
    background: #fff;
  }

  .portal-scope .workflow-application-page.request-detail-page
    :is(.expense-detail-card-head, .business-travel-item-head) {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
    :is(.expense-detail-fields, .scm-procurement-item-fields),
  .portal-scope.is-standard-item-request-layout .workflow-application-page.request-detail-page
    .scm-procurement-item-card[data-group-key="technicalDocuments"] .scm-procurement-item-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding-top: 0;
  }

  .portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
    .expense-detail-fields > :is(.expense-item-field, .expense-original-payment),
  .portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
    .scm-procurement-item-fields > .scm-procurement-item-field,
  .portal-scope.is-standard-item-request-layout .workflow-application-page.request-detail-page
    .scm-procurement-item-card[data-group-key="technicalDocuments"]
    .scm-procurement-item-fields > .scm-procurement-item-field {
    grid-column: 1 / -1 !important;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .portal-scope.is-corporate-payment-layout .workflow-application-page.request-detail-page
    .corporate-payment-detail-list .expense-detail-fields,
  .portal-scope.is-purchase-contract-apply-layout .workflow-application-page.request-detail-page
    :is(.corporate-payment-detail-list .expense-detail-fields,
      .corporate-payment-field-row-purchase-product,
      .corporate-payment-field-row-purchase-package,
      .corporate-payment-field-row-purchase-money,
      .corporate-payment-field-row-purchase-text),
  .portal-scope.is-purchase-requirement-apply-layout .workflow-application-page.request-detail-page
    .corporate-payment-detail-list .expense-detail-fields {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .portal-scope.is-corporate-payment-layout .workflow-application-page.request-detail-page
    .corporate-payment-field-row > :is(.expense-item-field, .expense-original-payment),
  .portal-scope.is-purchase-contract-apply-layout .workflow-application-page.request-detail-page
    :is(.corporate-payment-field-row-purchase-product,
      .corporate-payment-field-row-purchase-package,
      .corporate-payment-field-row-purchase-money,
      .corporate-payment-field-row-purchase-text) > :is(.expense-item-field, .expense-original-payment),
  .portal-scope.is-purchase-requirement-apply-layout .workflow-application-page.request-detail-page
    .corporate-payment-field-row > :is(.expense-item-field, .expense-original-payment) {
    grid-column: 1 / -1 !important;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
    .expense-original-payment-controls,
  .portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
    .invoice-number-confirmation__fields,
  .portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
    .expense-field-attachment .file-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    width: 100%;
    min-width: 0;
  }

  .portal-scope.is-expense-report-layout .workflow-application-page.request-detail-page
    .expense-payment-divider {
    display: none;
  }

  .portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
    :is(.business-travel-trip-row, .business-travel-trip-grid, .business-travel-date-range,
      .business-travel-time-range, .business-travel-route-row, .business-travel-route-controls,
      .business-travel-route-line, .business-travel-route-control,
      .business-travel-route-control .workflow-cascader-control) {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
    .business-travel-trip-grid,
  .portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
    .business-travel-route-line,
  .portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
    .business-travel-route-control .workflow-cascader-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px;
  }

  .portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
    .business-travel-time-range {
    grid-column: 1 / -1 !important;
  }

  .portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
    .business-travel-trip-grid > :is(.business-travel-inline-field, .business-travel-time-range),
  .portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
    .business-travel-trip-grid > :is(.business-travel-inline-field, .business-travel-time-range) .form-item,
  .portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
    .business-travel-trip-grid > :is(.business-travel-inline-field, .business-travel-time-range)
    :is(.field-control, .date-field, .date-input, .portal-select, .portal-select__control, .workflow-radio-group) {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
    .business-travel-route-row {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
    .business-travel-route-label {
    flex: 0 0 auto !important;
    box-sizing: border-box;
    width: 100% !important;
    min-height: 0;
    padding: 0;
    white-space: normal !important;
  }

  .portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
    .business-travel-route-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
    min-width: 0;
    padding-right: 0;
    padding-left: 0 !important;
  }

  .portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
    .business-travel-date-range-controls,
  .portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
    .business-travel-time-controls {
    display: flex;
    align-items: stretch;
    flex-direction: column !important;
    gap: 8px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
    .business-travel-time-controls > :is(.form-item, .date-field, .date-input, .field-control) {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .portal-scope.is-business-travel-layout .workflow-application-page.request-detail-page
    :is(.business-travel-range-separator, .business-travel-time-dash) {
    display: none;
  }

  .portal-scope .workflow-application-page.request-detail-page .workflow-radio-group {
    --portal-radio-group-min-width: 0px;
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    height: auto;
  }

  .portal-scope .workflow-application-page.request-detail-page
    :is(.workflow-process-panel, .workflow-cc-panel) {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0 16px 16px;
    border: 0;
    border-radius: 0;
    background: #fff;
  }

  .portal-scope .workflow-application-page.request-detail-page
    :is(.workflow-application-actions, .actions) {
    position: static;
    z-index: auto;
    left: auto;
    bottom: auto;
    width: 100%;
    max-width: none;
    min-height: 0;
    margin-top: 10px;
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
    transform: none;
    flex-direction: column;
    align-items: stretch;
    border: 0;
    border-top: 1px solid #e8ebf1;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  .portal-scope .workflow-application-page.request-detail-page .expense-total-summary {
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    margin: 0;
  }

  .portal-scope .workflow-application-page.request-detail-page .expense-action-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin: 0;
  }

  .portal-scope .workflow-application-page.request-detail-page .workflow-application-actions .btn {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    height: auto;
    padding: 9px 10px;
    font-size: 14px;
  }

  .portal-scope .workflow-application-page.request-detail-page
    .workflow-application-actions [data-action="submit"] {
    grid-column: 1 / -1;
    grid-row: 1;
    min-height: 46px;
  }

  .portal-scope .workflow-application-page.request-detail-page
    .workflow-application-actions [data-action="cancel"] {
    grid-column: 1;
    grid-row: 2;
  }

  .portal-scope .workflow-application-page.request-detail-page
    .workflow-application-actions [data-action="save-draft"] {
    grid-column: 2;
    grid-row: 2;
  }

  .portal-scope .workflow-application-page.request-detail-page
    .expense-action-buttons:has([data-action="save-draft"].d-none) [data-action="cancel"] {
    grid-column: 1 / -1;
  }

  .portal-scope .approval-detail-page:not(.is-offer-approval-detail) :is(
      .detail-shell,
      .detail-card,
      .card-body,
      .detail-grid,
      .detail-grid > *
    ) {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
}

/* Inset the full-width separators below the Approvals tabs. */
.portal-scope .approvals-page .approvals-layout .approval-filter-bar {
  border-bottom-color: transparent;
}

.portal-scope .approvals-page .approvals-layout .approval-filter-bar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 16px;
  bottom: 0;
  height: 1px;
  background: #eef0f4;
  pointer-events: none;
}

.portal-scope .approvals-page .approvals-layout .detail-panel .card-top,
.portal-scope .approvals-page .approvals-layout .approval-mobile-toolbar,
.portal-scope .approvals-page .approvals-layout .approval-mobile-detail-nav,
.portal-scope .approvals-page.is-single-pane .approvals-layout .filters {
  border-bottom-color: transparent;
  background-image: linear-gradient(#eef0f4, #eef0f4);
  background-size: calc(100% - 32px) 1px;
  background-position: center bottom;
  background-repeat: no-repeat;
}

.portal-scope .approvals-page .approvals-layout .detail-panel .opinion-footer,
.portal-scope .approvals-page .approvals-layout .detail-panel .footer-actions {
  border-top-color: transparent;
  background-image: linear-gradient(#eef0f4, #eef0f4);
  background-size: calc(100% - 32px) 1px;
  background-position: center top;
  background-repeat: no-repeat;
}

/* Keep all button labels on Approvals regular in every interaction state. */
.portal-scope .approvals-page :is(button, .btn, [role="button"]),
.portal-scope .approvals-page :is(button, .btn, [role="button"]) * {
  font-weight: 400 !important;
}

/* Flat, bordered module cards in the Approvals detail pane. */
.portal-scope .approvals-page .detail-panel .detail-card {
  box-shadow: none;
}

.portal-scope .approvals-page .detail-panel :is(.scm-item-approval-panel, .approval-invoice-card, .card) {
  border-radius: 4px;
  box-shadow: none;
}

.portal-scope .approvals-page .detail-panel .scm-item-approval-panel {
  border: 1px solid #e6e7eb;
}

/* Avoid a second outer border around tables inside approval module cards. */
.portal-scope .approvals-page .detail-panel .scm-item-table-wrap {
  border: 0;
  border-radius: 0;
}

/* Travel and other workflow detail tables inherit a rounded wrapper globally. */
.portal-scope .approvals-page .detail-panel .approval-reimbursement-detail-block .reimbursement-detail-table-wrap,
.portal-scope .approvals-page .detail-panel .approval-reimbursement-detail-block .reimbursement-detail-table-shell {
  border: 0;
  border-radius: 0;
}

/* Match detail text actions to the Delegation Settings text button. */
.portal-scope .approvals-page .detail-panel .btn.btn-link {
  color: var(--portal-primary);
}

/* Keep approval actions on the right across request types and viewport sizes. */
.portal-scope .approvals-page .detail-panel .footer-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.portal-scope .approvals-page .detail-panel .footer-actions .left-actions,
.portal-scope .approvals-page .detail-panel .footer-actions .right-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  width: auto;
  max-width: 100%;
  margin: 0;
}

.portal-scope .approvals-page .detail-panel .footer-actions .left-actions:empty {
  display: none;
}

.portal-scope .approvals-page .detail-panel .footer-actions .btn {
  width: auto;
}

.portal-scope .approvals-page .detail-panel .detail-card .detail-title-actions {
  justify-content: flex-end;
}

/* Consistent spacing within and between approval action groups. */
.portal-scope .approvals-page .detail-panel .footer-actions,
.portal-scope .approvals-page .detail-panel .footer-actions .left-actions,
.portal-scope .approvals-page .detail-panel .footer-actions .right-actions,
.portal-scope .approvals-page .detail-panel .detail-card .detail-title-actions {
  gap: 16px;
}

/* Match detail scrolling to the list pane's shared scrollbar tokens. */
.portal-scope .approvals-page .detail-panel .card-body,
.portal-scope .approvals-page .detail-panel .scm-item-table-wrap {
  scrollbar-width: thin;
  scrollbar-color: var(--md-scrollbar-thumb) var(--md-scrollbar-track);
}

.portal-scope .approvals-page .approval-reimbursement-detail-block :is(.reimbursement-detail-v-scroll, .reimbursement-detail-h-scroll) {
  background: var(--md-scrollbar-track);
  border-radius: 999px;
}

.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-v-scroll {
  width: var(--md-scrollbar-size);
}

.portal-scope .approvals-page .approval-reimbursement-detail-block .reimbursement-detail-h-scroll {
  height: var(--md-scrollbar-size);
}

.portal-scope .approvals-page .approval-reimbursement-detail-block :is(.reimbursement-detail-v-scroll-thumb, .reimbursement-detail-h-scroll-thumb) {
  background: var(--md-scrollbar-thumb);
  border-radius: 999px;
}

.portal-scope .approvals-page .approval-reimbursement-detail-block :is(.reimbursement-detail-v-scroll-thumb, .reimbursement-detail-h-scroll-thumb):hover,
.portal-scope .approvals-page .approval-reimbursement-detail-block :is(.reimbursement-detail-v-scroll, .reimbursement-detail-h-scroll):active > :is(.reimbursement-detail-v-scroll-thumb, .reimbursement-detail-h-scroll-thumb) {
  background: var(--md-scrollbar-thumb-hover);
}

/* Export sits at the left of the shared footer, outside the full-width details. */
.portal-scope .approvals-page .detail-panel .footer-actions .approval-footer-export {
  display: flex;
  align-items: center;
  align-self: center;
  margin-right: auto;
  min-width: 0;
}

.portal-scope .approvals-page .detail-panel .footer-actions .approval-footer-export .detail-title-actions {
  width: auto;
  min-width: 0;
  padding-top: 0;
  justify-content: flex-start;
}

/* Approvals uses the SKYVAULT brand palette throughout. */
.portal-scope .approvals-page {
  --portal-primary: #6530ED;
  --portal-primary-soft: rgba(101, 48, 237, .12);
  --md-brand-primary: #6530ED;
  --md-brand-primary-hover: #4923AB;
  --tblr-primary: #6530ED;
  --tblr-primary-rgb: 101, 48, 237;
  accent-color: #6530ED;
}

.portal-scope .approvals-page .item:hover {
  border-color: rgba(101, 48, 237, .4);
}

.portal-scope .approvals-page :is(.avatar, .pill-review, .portal-pill-review) {
  background: var(--portal-primary-soft);
  color: var(--portal-primary);
}

.portal-scope .approvals-page .approvals-layout .detail-panel .approval-add {
  border-color: var(--portal-primary);
  color: var(--portal-primary);
}

.portal-scope .approvals-page :is(.chip-index, .approval-segment-btn.is-active),
.portal-scope .approvals-page .detail-card .section-title .accent {
  background: var(--portal-primary);
}

.portal-scope .approvals-page .scm-item-file-capability-note {
  border-left-color: var(--portal-primary);
  background: var(--portal-primary-soft);
}

.portal-scope .approvals-page .agree-btn:disabled {
  background: #c5b1f8;
  border-color: #c5b1f8;
}

/* Consistent title accents throughout the approval detail pane. */
.portal-scope .approvals-page .detail-panel .detail-card .accent,
.portal-scope .approvals-page .detail-panel .detail-card .section-title .accent,
.portal-scope .approvals-page .detail-panel .workflow-section-title::before,
.portal-scope .approvals-page .detail-panel .offer-section-title::before {
  width: 4px;
  height: 14px;
  flex: 0 0 4px;
  border-radius: 1px;
  background: #6530ED;
}

/* Travel application primary action — standard / primary / medium. */
#content-area .portal-scope:is(.is-business-travel-layout, .is-personal-reimbursement-layout) .workflow-application-actions [data-action="submit"] {
  box-sizing: border-box;
  width: auto;
  min-width: 0 !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 16px !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 22px !important;
  border-radius: 2px !important;
  border: none !important;
  background: #264AFF !important;
  color: #FFFFFF !important;
  box-shadow: none !important;
  opacity: 1;
}

#content-area .portal-scope:is(.is-business-travel-layout, .is-personal-reimbursement-layout) .workflow-application-actions [data-action="submit"] :is(.submit-label, .submit-loading) {
  font-size: inherit;
  font-weight: 400 !important;
  line-height: 22px;
}

#content-area .portal-scope:is(.is-business-travel-layout, .is-personal-reimbursement-layout) .workflow-application-actions [data-action="submit"] :is(.mdi, .icon, svg) {
  width: 16px;
  height: 16px;
  font-size: 16px;
  margin: 0 8px;
}

#content-area .portal-scope:is(.is-business-travel-layout, .is-personal-reimbursement-layout) .workflow-application-actions [data-action="submit"]:focus {
  background: #264AFF !important;
  color: #FFFFFF !important;
}

#content-area .portal-scope:is(.is-business-travel-layout, .is-personal-reimbursement-layout) .workflow-application-actions [data-action="submit"]:hover {
  background: #2140DB !important;
  color: #FFFFFF !important;
}

#content-area .portal-scope:is(.is-business-travel-layout, .is-personal-reimbursement-layout) .workflow-application-actions [data-action="submit"]:active {
  background: #1B35B8 !important;
  color: #FFFFFF !important;
}

#content-area .portal-scope:is(.is-business-travel-layout, .is-personal-reimbursement-layout) .workflow-application-actions [data-action="submit"]:is(:disabled, .disabled, [aria-disabled="true"]) {
  background: #F3F5F8 !important;
  color: #A8B1C1 !important;
  border: none !important;
  opacity: 1 !important;
}

/* Travel application outline actions — standard / outline / medium. */
#content-area .portal-scope:is(.is-business-travel-layout, .is-personal-reimbursement-layout) .workflow-application-actions :is([data-action="cancel"], [data-action="save-draft"]) {
  --travel-outline-bg: #FFFFFF;
  --travel-outline-text: #264AFF;
  --travel-outline-hover-bg: #F2F4FF;
  --travel-outline-hover-text: #2140DB;
  --travel-outline-pressed-bg: #E9EDFF;
  --travel-outline-pressed-text: #1B35B8;
  box-sizing: border-box;
  width: auto;
  min-width: 0 !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 16px !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 22px !important;
  border-radius: 2px !important;
  background: var(--travel-outline-bg) !important;
  color: var(--travel-outline-text) !important;
  border: 1px solid var(--travel-outline-text) !important;
  box-shadow: none !important;
  opacity: 1;
}

#content-area .portal-scope:is(.is-business-travel-layout, .is-personal-reimbursement-layout) .workflow-application-actions :is([data-action="cancel"], [data-action="save-draft"]):focus {
  background: var(--travel-outline-bg) !important;
  color: var(--travel-outline-text) !important;
  border: 1px solid var(--travel-outline-text) !important;
}

#content-area .portal-scope:is(.is-business-travel-layout, .is-personal-reimbursement-layout) .workflow-application-actions :is([data-action="cancel"], [data-action="save-draft"]):hover {
  background: var(--travel-outline-hover-bg) !important;
  color: var(--travel-outline-hover-text) !important;
  border: 1px solid var(--travel-outline-hover-text) !important;
}

#content-area .portal-scope:is(.is-business-travel-layout, .is-personal-reimbursement-layout) .workflow-application-actions :is([data-action="cancel"], [data-action="save-draft"]):active {
  background: var(--travel-outline-pressed-bg) !important;
  color: var(--travel-outline-pressed-text) !important;
  border: 1px solid var(--travel-outline-pressed-text) !important;
}

#content-area .portal-scope:is(.is-business-travel-layout, .is-personal-reimbursement-layout) .workflow-application-actions :is([data-action="cancel"], [data-action="save-draft"]):is(:disabled, .disabled, [aria-disabled="true"]) {
  background: #F3F5F8 !important;
  color: #A8B1C1 !important;
  border: 1px solid #C2CAD7 !important;
  opacity: 1 !important;
}

#content-area .portal-scope:is(.is-business-travel-layout, .is-personal-reimbursement-layout) .workflow-application-actions :is([data-action="cancel"], [data-action="save-draft"]) :is(.mdi, .icon, svg) {
  width: 16px;
  height: 16px;
  font-size: 16px;
  margin: 0 8px;
}

/* Cancel uses the danger outline palette; disabled colours remain shared. */
#content-area .portal-scope:is(.is-business-travel-layout, .is-personal-reimbursement-layout) .workflow-application-actions [data-action="cancel"] {
  --travel-outline-bg: transparent;
  --travel-outline-text: #D92D3F;
  --travel-outline-hover-bg: #FFF0F2;
  --travel-outline-hover-text: #B42332;
  --travel-outline-pressed-bg: #FFF0F2;
  --travel-outline-pressed-text: #B42332;
}

/* Travel: add a detail form using the medium standard outline button. */
#content-area :is(.is-business-travel-layout, .is-personal-reimbursement-layout) .reimbursement-detail-add[data-action="group-add"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 30px;
  min-height: 30px;
  padding: 0 16px;
  gap: 8px;
  border: 1px solid #264AFF;
  border-radius: 2px;
  background: #FFFFFF;
  color: #264AFF;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  box-shadow: none;
}
#content-area :is(.is-business-travel-layout, .is-personal-reimbursement-layout) .reimbursement-detail-add[data-action="group-add"]:focus {
  background: #FFFFFF;
  color: #264AFF;
  border-color: #264AFF;
}
#content-area :is(.is-business-travel-layout, .is-personal-reimbursement-layout) .reimbursement-detail-add[data-action="group-add"]:hover {
  background: #F2F4FF;
  color: #2140DB;
  border-color: #2140DB;
}
#content-area :is(.is-business-travel-layout, .is-personal-reimbursement-layout) .reimbursement-detail-add[data-action="group-add"]:active {
  background: #E9EDFF;
  color: #1B35B8;
  border-color: #1B35B8;
}
#content-area :is(.is-business-travel-layout, .is-personal-reimbursement-layout) .reimbursement-detail-add[data-action="group-add"]:is(:disabled, .disabled, [aria-disabled="true"]) {
  background: #F3F5F8;
  color: #A8B1C1;
  border-color: #C2CAD7;
  opacity: 1;
}
#content-area :is(.is-business-travel-layout, .is-personal-reimbursement-layout) .reimbursement-detail-add[data-action="group-add"] > i {
  width: 16px;
  height: 16px;
  margin: 0;
  font-size: 16px;
  line-height: 16px;
}
#content-area :is(.is-business-travel-layout, .is-personal-reimbursement-layout) .reimbursement-detail-add[data-action="group-add"] > span {
  font-weight: 400;
}

/* Travel form Delete: medium danger text button per the supplied reference. */
#content-area .is-business-travel-layout :is(.business-travel-card-action, .business-travel-icon-action[data-action="stopover-remove"]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 30px;
  min-height: 30px;
  padding: 0 16px;
  gap: 8px;
  border: none;
  border-radius: 2px;
  background: transparent;
  color: #D92D3F;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  box-shadow: none;
  text-decoration: none;
}
#content-area .is-business-travel-layout :is(.business-travel-card-action, .business-travel-icon-action[data-action="stopover-remove"]):focus {
  background: transparent;
  color: #D92D3F;
}
#content-area .is-business-travel-layout :is(.business-travel-card-action, .business-travel-icon-action[data-action="stopover-remove"]):hover {
  background: #FFF0F2;
  color: #B42332;
}
#content-area .is-business-travel-layout :is(.business-travel-card-action, .business-travel-icon-action[data-action="stopover-remove"]):active {
  background: #FFF0F2;
  color: #B42332;
}
#content-area .is-business-travel-layout :is(.business-travel-card-action, .business-travel-icon-action[data-action="stopover-remove"]):is(:disabled, [aria-disabled="true"]) {
  background: transparent;
  color: #A8B1C1;
  opacity: 1;
}

/* Keep the icon-only stopover action inside its existing action column. */
#content-area .is-business-travel-layout .business-travel-icon-action[data-action="stopover-remove"] {
  width: 30px;
  padding: 0;
  flex-shrink: 0;
}
#content-area .is-business-travel-layout .business-travel-icon-action[data-action="stopover-remove"] > i {
  font-size: 16px;
  line-height: 16px;
}

/* Keep the complete travel form in the app body's single mobile scroll. */
@media (max-width: 760px) {
  .admin-shell #content-area > .portal-scope.portal-detail-scroll.is-business-travel-layout,
  .admin-shell #content-area > .portal-scope.portal-detail-scroll.is-business-travel-layout .portal-page,
  .portal-scope.is-business-travel-layout .workflow-application-page,
  .portal-scope.is-business-travel-layout .workflow-application-page .workflow-application-body {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  .admin-shell #content-area > .portal-scope.portal-detail-scroll.is-business-travel-layout .portal-page {
    flex: 0 0 auto;
  }

  .portal-scope.is-business-travel-layout .workflow-application-page .workflow-application-body {
    align-items: start;
    grid-template-rows: auto auto auto;
  }

  .portal-scope.is-business-travel-layout .workflow-application-page .expense-basic-panel,
  .portal-scope.is-business-travel-layout .workflow-application-page .expense-breakdown-panel,
  .portal-scope.is-business-travel-layout .workflow-application-page .workflow-application-side-card {
    align-self: start;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  .portal-scope.is-business-travel-layout .workflow-application-page .expense-basic-fields {
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }
}

/* SCM project contract amounts follow the legacy contract's two-column order. */
.portal-scope.is-scm-procurement-layout .scm-contract-item-card .scm-procurement-item-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-scope.is-scm-procurement-layout .scm-contract-item-card
  .scm-procurement-item-fields > :is([data-field-key="attachments"], [data-field-key="remark"]) {
  grid-column: 1 / -1;
}

.portal-scope.is-scm-procurement-layout .scm-contract-item-card
  .scm-procurement-item-fields > [data-field-key="discount"] {
  grid-column: 1 / -1;
}

.portal-scope.is-scm-procurement-layout .scm-contract-item-card
  .scm-procurement-item-fields > [data-field-key="discount"] > .form-item {
  width: calc(50% - 10px);
}

@container (max-width: 480px) {
  .portal-scope.is-scm-procurement-layout .scm-contract-item-card .scm-procurement-item-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .portal-scope.is-scm-procurement-layout .scm-contract-item-card
    .scm-procurement-item-fields > [data-field-key="discount"] > .form-item {
    width: 100%;
  }
}

/* Shared naming preview for material applications and changes. */
.scm-generated-material-name { margin: 20px 0; padding: 16px; background: var(--portal-primary-soft, #f4f0ff); border-radius: 6px; }
.scm-generated-material-name .field-control, .scm-generated-material-name input { width: 100%; min-width: 0; }
.scm-generated-material-name .field-help { margin-bottom: 0; }
.portal-scope .scm-material-attribute-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.portal-scope .scm-material-attribute-label label { margin: 0; overflow-wrap: anywhere; }
.portal-scope .scm-material-attribute-label .scm-controlled-attribute-name {
  flex: 1 1 0%;
  min-width: 0;
  width: 100%;
}
.portal-scope .scm-material-name-choice {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  accent-color: var(--portal-primary, #4c3cff);
  cursor: pointer;
}
.portal-scope .scm-material-name-choice:disabled {
  cursor: default;
}
.portal-scope .scm-material-name-choice:focus-visible {
  outline: 2px solid var(--portal-primary, #4c3cff);
  outline-offset: 3px;
}
