@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 .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;
}

.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;
  }
}

/*
 * Desktop finance request split layout. Keep every related override scoped by
 * .is-expense-report-layout; mobile does not receive this class and must retain
 * the legacy page styles.
 */
.portal-scope .expense-total-summary {
  display: none;
}

.portal-scope .expense-action-buttons {
  display: contents;
}

/* Preserve the legacy DOM flow unless the desktop Reimbursement Apply 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 {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.portal-scope.is-purchase-requirement-apply-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 {
  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-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;
  }
}

.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-business-travel-layout .expense-total-summary {
  display: none;
}

.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;
}

/* 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 .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;
}

.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;
}

.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 {
  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;
}

/* Approvals layout */
.portal-scope .approvals-layout {
  display: grid;
  grid-template-columns: 380px 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 .filters {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0;
  padding: 16px;
  border-bottom: none;
  background: #fff;
  gap: 8px;
  overflow: hidden;
}

.portal-scope .approvals-layout .filter {
  min-width: 0;
}

.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: 0 16px 12px;
  background: #fff;
  border-bottom: 1px solid #eef0f4;
}

.portal-scope .approvals-layout .approval-batch-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #374151;
}

.portal-scope .approvals-layout .approval-batch-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.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 .list {
  flex: 1;
  overflow: auto;
  padding: 0 8px 8px;
}

.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 .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: 52px;
  height: auto;
  padding: 15px 30px;
  border-bottom: 1px solid #d8e2fb;
  color: #5d6b99;
  font-size: 14px;
  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-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: hidden;
  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 .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 .request-detail-page .portal-select__control {
  border-radius: 10px;
  border-color: #dce6fb;
  min-height: 46px;
  background: #ffffff;
}

.portal-scope .request-detail-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 .workflow-application-page.request-detail-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-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:hover {
  background: #f8fafc;
}

.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-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-detail-page .approval-step {
  display: flex;
  gap: 16px;
  position: relative;
}

.portal-scope .request-detail-page .approval-rail {
  position: relative;
  width: 20px;
  display: flex;
  justify-content: center;
}

.portal-scope .request-detail-page .approval-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #c7d2fe;
  background: #ffffff;
  margin-top: 4px;
}

.portal-scope .request-detail-page .approval-line {
  position: absolute;
  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;
  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-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;
}

@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;
  }
}

@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 .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 .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;
}

.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: max-content minmax(0, 1fr);
  column-gap: 40px;
  row-gap: 12px;
  align-items: center;
  width: 100%;
}

.portal-scope .group-nodes.group-nodes-aggregate .process-item,
.portal-scope .group-nodes.group-nodes-aggregate .node-meta {
  min-width: 0;
}

.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-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 .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-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 .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%;
  }
}

@media (max-width: 1100px) {
  .portal-scope .approvals-layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .portal-scope .approvals-layout .list-panel {
    border-right: none;
    border-bottom: 1px solid #eef0f4;
    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;
  }
}

.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(360px, 2fr);
  }

  .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: auto;
  }

  .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(176px, 1fr) minmax(140px, 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-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 {
  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; }
  .portal-scope .portal-delegation-trigger { margin-right: 8px; }
}

@media (max-width: 1100px) {
  .approval-delegation-page { height: auto; min-height: 100%; overflow: visible; }
}

/* 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;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid #e1e6f0;
  border-radius: 8px;
  background: #f7f7fa;
  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: #1f4fc9;
}

.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: #315ecf;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.portal-scope .approvals-page .approval-invoice-attachment__action:hover {
  background: #e8efff;
}

.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;
  }
}
