.luxcrm-portal-blocks {
  width: 100%;
  padding: 36px 40px 48px;
  background: var(
    --portal-bg-gradient,
    linear-gradient(135deg, #093f42 0%, #116a69 50%, #062629 100%)
  );
  position: relative;
  overflow: hidden;
  color: #fff;
  min-height: 360px;
  border-radius: 0;
  display: flex;
  flex-direction: column;
}

/* Fluid glowing background blobs */
.luxcrm-portal-blocks::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 150%;
  height: 200%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(20, 184, 166, 0.3) 0%, transparent 40%),
    radial-gradient(circle at 80% 50%, rgba(6, 182, 212, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(13, 148, 136, 0.2) 0%, transparent 45%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

/* Curved wave lines style matching Oracle home page */
.luxcrm-portal-blocks::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='1' d='M0,160L48,176C96,192,192,224,288,224C384,224,480,192,576,165.3C672,139,768,117,864,122.7C960,128,1056,160,1152,165.3C1248,171,1344,149,1392,138.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
  background-size: cover;
  background-position: bottom;
  pointer-events: none;
  z-index: 0;
}

.luxcrm-portal-blocks__intro,
.luxcrm-portal-blocks__tabs-container,
.luxcrm-portal-blocks__split-layout {
  position: relative;
  z-index: 1;
}

.luxcrm-portal-blocks__intro {
  margin-bottom: 24px;
}

.luxcrm-portal-blocks__greeting {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  margin-bottom: 6px;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.luxcrm-portal-blocks__title {
  margin: 0 !important;
  color: #fff !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  font-size: 28px !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Tabs Navigation Bar (Category Selector) */
.luxcrm-portal-blocks__tabs-container {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 24px;
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}

.luxcrm-portal-blocks__tabs-container::-webkit-scrollbar {
  display: none;
}

.luxcrm-portal-blocks__tab-item {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14.5px;
  font-weight: 600;
  padding: 10px 4px;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease, text-shadow 0.2s ease;
  white-space: nowrap;
}

.luxcrm-portal-blocks__tab-item:hover {
  color: #fff;
}

.luxcrm-portal-blocks__tab-item--active {
  color: #fff;
}

.luxcrm-portal-blocks__tab-item--active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--portal-accent, #e8a88a);
  border-radius: 99px;
  box-shadow: 0 0 10px color-mix(in srgb, var(--portal-accent, #e8a88a) 85%, transparent);
}

/* Horizontal Role Tabs (CRM Only) */
.luxcrm-portal-blocks__role-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.luxcrm-portal-blocks__role-tab {
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.luxcrm-portal-blocks__role-tab:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
}

.luxcrm-portal-blocks__role-tab--active {
  background: rgba(255, 255, 255, 0.95);
  color: #0b4e51;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Split Columns Layout */
.luxcrm-portal-blocks__split-layout {
  display: flex;
  gap: 36px;
  width: 100%;
  align-items: stretch;
}

@media (max-width: 900px) {
  .luxcrm-portal-blocks__split-layout {
    flex-direction: column;
    gap: 24px;
  }
}

/* Left Column: Quick Actions */
.luxcrm-portal-blocks__quick-actions {
  width: 270px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  padding-right: 24px;
}

@media (max-width: 900px) {
  .luxcrm-portal-blocks__quick-actions {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-right: 0;
    padding-bottom: 20px;
  }
}

.luxcrm-portal-blocks__quick-actions-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 700;
  margin-bottom: 2px;
}

.luxcrm-portal-blocks__quick-action-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-align: left;
}

.luxcrm-portal-blocks__quick-action-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.luxcrm-portal-blocks__quick-action-icon {
  font-size: 16px;
  display: flex;
  align-items: center;
  opacity: 0.9;
}

/* Right Area: Apps Area */
.luxcrm-portal-blocks__apps-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.luxcrm-portal-blocks__apps-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 700;
  margin-bottom: 2px;
}

.luxcrm-portal-blocks__apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
  gap: 14px;
  width: 100%;
}

@media (min-width: 900px) {
  .luxcrm-portal-blocks__apps-grid {
    grid-template-columns: repeat(auto-fill, minmax(154px, 1fr));
    gap: 16px;
  }
}

/* App Card styling */
.luxcrm-portal-blocks__app-card {
  aspect-ratio: 1.12;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  color: #fff;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  gap: 12px;
}

.luxcrm-portal-blocks__app-card:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.26);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

.luxcrm-portal-blocks__app-card:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.luxcrm-portal-blocks__app-card-icon {
  font-size: 26px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: #fff;
}

.luxcrm-portal-blocks__app-card:hover:not(:disabled) .luxcrm-portal-blocks__app-card-icon {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.08);
}

.luxcrm-portal-blocks__app-card-icon svg {
  width: 24px;
  height: 24px;
}

.luxcrm-portal-blocks__app-card-label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pex-dot-loader {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.pex-dot-loader--inline {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.pex-dot-loader-block {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
}

.pex-dot-loader__dots {
  display: inline-flex;
  align-items: flex-end;
  gap: 10px;
  height: 24px;
}

.pex-dot-loader--sm .pex-dot-loader__dots {
  gap: 7px;
  height: 16px;
}

.pex-dot-loader--lg .pex-dot-loader__dots {
  gap: 12px;
  height: 30px;
}

.pex-dot-loader__dots > span {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--redwood-shell-nav-accent, var(--ant-color-primary, #c25e40));
  animation: pex-dot-bounce 1s ease-in-out infinite;
}

.pex-dot-loader--sm .pex-dot-loader__dots > span {
  width: 6px;
  height: 6px;
}

.pex-dot-loader--lg .pex-dot-loader__dots > span {
  width: 12px;
  height: 12px;
}

.pex-dot-loader__dots > span:nth-child(1) {
  animation-delay: 0s;
}

.pex-dot-loader__dots > span:nth-child(2) {
  animation-delay: 0.18s;
}

.pex-dot-loader__dots > span:nth-child(3) {
  animation-delay: 0.36s;
}

.pex-dot-loader__tip {
  color: var(--ant-color-text-secondary, rgba(0, 0, 0, 0.45));
  font-size: 14px;
  line-height: 1.5;
}

.pex-dot-loader--sm .pex-dot-loader__tip {
  font-size: 13px;
}

@keyframes pex-dot-bounce {
  0%,
  70%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }

  35% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

.pex-dot-loader--sm .pex-dot-loader__dots > span {
  animation-name: pex-dot-bounce-sm;
}

.pex-dot-loader--lg .pex-dot-loader__dots > span {
  animation-name: pex-dot-bounce-lg;
}

@keyframes pex-dot-bounce-sm {
  0%,
  70%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }

  35% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

@keyframes pex-dot-bounce-lg {
  0%,
  70%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }

  35% {
    transform: translateY(-12px);
    opacity: 1;
  }
}
.luxcrm-mywork {
  display: flex;
  gap: 20px;
  width: 100%;
  margin-top: 16px;
  align-items: stretch;
}

@media (max-width: 768px) {
  .luxcrm-mywork {
    flex-direction: column;
  }
}

/* Left Metrics Card */
.luxcrm-mywork__summary-card {
  width: 240px;
  flex-shrink: 0;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  text-align: center;
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
}

@media (max-width: 768px) {
  .luxcrm-mywork__summary-card {
    width: 100%;
    flex-direction: row;
    justify-content: space-around;
    padding: 16px;
  }
}

.luxcrm-mywork__metric-group {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.luxcrm-mywork__metric-label {
  font-size: 12px;
  color: var(--text-muted, rgba(0, 0, 0, 0.45));
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.luxcrm-mywork__metric-value {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-color, rgba(0, 0, 0, 0.88));
}

.luxcrm-mywork__metric-divider {
  width: 80%;
  height: 1px;
  background: var(--border-color, rgba(0, 0, 0, 0.08));
  margin: 0 auto;
}

@media (max-width: 768px) {
  .luxcrm-mywork__metric-divider {
    width: 1px;
    height: 40px;
    margin: auto 0;
  }
}

/* Right Scrollable Cards Deck */
.luxcrm-mywork__deck {
  flex: 1;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 4px 16px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}

.luxcrm-mywork__deck::-webkit-scrollbar {
  height: 6px;
}

.luxcrm-mywork__deck::-webkit-scrollbar-track {
  background: transparent;
}

.luxcrm-mywork__deck::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 99px;
}

.luxcrm-mywork__deck-card {
  width: 280px;
  height: 170px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.luxcrm-mywork__deck-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.luxcrm-mywork__deck-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

.luxcrm-mywork__deck-card-date {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.luxcrm-mywork__deck-card-category {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-color, #0b4e51);
  background: var(--accent-bg, rgba(11, 78, 81, 0.08));
  padding: 2px 6px;
  border-radius: 4px;
}

.luxcrm-mywork__deck-card-subject {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  margin: 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.luxcrm-mywork__deck-card-footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  width: 100%;
}

.luxcrm-mywork__btn-dismiss,
.luxcrm-mywork__btn-view {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.luxcrm-mywork__btn-dismiss {
  background: #0b4e51;
  color: #fff;
}

.luxcrm-mywork__btn-dismiss:hover {
  background: #116a69;
  box-shadow: 0 4px 10px rgba(11, 78, 81, 0.2);
}

.luxcrm-mywork__btn-view {
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: var(--text-color, rgba(0, 0, 0, 0.85));
}

.luxcrm-mywork__btn-view:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.25);
}

.luxcrm-mywork__load-more {
  width: 160px;
  height: 170px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px dashed var(--border-color, rgba(0, 0, 0, 0.08));
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.luxcrm-mywork__load-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  border-color: var(--accent-color, #0b4e51);
}

.luxcrm-mywork__load-more-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-color, #0b4e51);
}

.luxcrm-mywork__load-more-count {
  font-size: 12px;
  color: var(--text-muted, rgba(0, 0, 0, 0.45));
}

.luxcrm-mywork__empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 2px dashed rgba(0, 0, 0, 0.08);
  padding: 32px;
  text-align: center;
  min-height: 170px;
}
/* PexModal — mirrors Oracle JET oj-dialog structure & Redwood chrome */

/* Ant Design 6: padding lives on .ant-modal-container, not .ant-modal-content */
.pex-modal.ant-modal .ant-modal-container,
.pex-modal.ant-modal .ant-modal-content {
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--redwood-border, #e6e1da);
  box-shadow: 0 8px 32px rgba(35, 33, 31, 0.14);
  background: var(--redwood-container, #fff);
}

.pex-modal.ant-modal .ant-modal-body {
  padding: 0;
}

.pex-modal.ant-modal .ant-modal-header,
.pex-modal.ant-modal .ant-modal-footer {
  display: none;
}

/* oj-dialog-container */
.pex-modal__container {
  display: flex;
  flex-direction: column;
  max-height: min(88vh, 900px);
  background: var(--redwood-container, #fff);
}

.pex-modal--chromeless .pex-modal__container {
  max-height: none;
}

/* oj-dialog-header-decoration — full-bleed top strip */
.pex-modal__ornament {
  display: block;
  width: 100%;
  height: 12px;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  background-color: #f5f3f0;
  background-image: url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='160'%20height='14'%20viewBox='0%200%20160%2014'%20fill='none'%3e%3crect%20width='160'%20height='14'%20fill='%23f7f5f2'/%3e%3cg%20opacity='0.55'%20stroke='%23c8c2ba'%20stroke-width='0.65'%20stroke-linecap='round'%3e%3cpath%20d='M0%204.5c6-2.2%2012-2.2%2018%200s12%202.2%2018%200%2012-2.2%2018%200%2012%202.2%2018%200%2012-2.2%2018%200%2012%202.2%2018%200%2012-2.2%2018%200'/%3e%3cpath%20d='M0%208.5c5%201.8%2010%201.8%2015%200s10-1.8%2015%200%2010%201.8%2015%200%2010-1.8%2015%200%2010%201.8%2015%200%2010-1.8%2015%200%2010%201.8%2015%200'/%3e%3cpath%20d='M0%2011.5c4-1.4%208-1.4%2012%200s8%201.4%2012%200%208-1.4%2012%200%208%201.4%2012%200%208-1.4%2012%200%208%201.4%2012%200%208-1.4%2012%200'/%3e%3c/g%3e%3cg%20opacity='0.35'%20stroke='%23b8b0a6'%20stroke-width='0.5'%20stroke-linecap='round'%3e%3cpath%20d='M4%202c3%201.2%206%201.2%209%200M28%202c3%201.2%206%201.2%209%200M52%202c3%201.2%206%201.2%209%200M76%202c3%201.2%206%201.2%209%200M100%202c3%201.2%206%201.2%209%200M124%202c3%201.2%206%201.2%209%200'/%3e%3cpath%20d='M16%206.5c2.5-.9%205-.9%207.5%200M40%206.5c2.5-.9%205-.9%207.5%200M64%206.5c2.5-.9%205-.9%207.5%200M88%206.5c2.5-.9%205-.9%207.5%200M112%206.5c2.5-.9%205-.9%207.5%200M136%206.5c2.5-.9%205-.9%207.5%200'/%3e%3c/g%3e%3c/svg%3e");
  background-repeat: repeat-x;
  background-size: auto 12px;
  background-position: top center;
  border-radius: 7px 7px 0 0;
}

[data-theme="dark"] .pex-modal__ornament {
  background-color: #2a2826;
  opacity: 0.92;
}

/* oj-dialog-header */
.pex-modal__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: var(--redwood-container, #fff);
  flex-shrink: 0;
}

/* oj-dialog-title */
.pex-modal__title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--redwood-text-primary, #23211f);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pex-modal__header-extra {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pex-modal__header-actions,
.pex-modal__footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.pex-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--redwood-text-secondary, #6c6660);
  cursor: pointer;
  flex-shrink: 0;
}

.pex-modal__close:hover {
  background: var(--redwood-border-subtle, #f0ede8);
  color: var(--redwood-text-primary, #23211f);
}

/* oj-dialog-content → body-wrapper → body */
.pex-modal__content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.pex-modal__body-wrapper {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.pex-modal__body {
  flex: 1;
  min-height: 0;
  padding: 0 24px 20px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(35, 33, 31, 0.2) transparent;
  color: var(--redwood-text-primary, #23211f);
  font-size: 14px;
  line-height: 1.5;
}

.pex-modal__body::-webkit-scrollbar {
  width: 8px;
  height: 0;
}

.pex-modal__body::-webkit-scrollbar-thumb {
  background: rgba(35, 33, 31, 0.16);
  border-radius: 999px;
}

.pex-modal__body .pex-form-layout,
.pex-modal__body .ant-form {
  max-width: 100%;
}

.pex-modal--chromeless .pex-modal__body {
  padding: 0;
  overflow: visible;
}

.pex-modal__footer-slot {
  flex-shrink: 0;
}

.pex-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 24px 16px;
  background: var(--redwood-container, #fff);
  flex-shrink: 0;
}

.pex-modal__btn-chrome.ant-btn {
  min-width: 72px;
  border-radius: 4px;
  font-weight: 500;
  box-shadow: none;
}

.pex-modal__btn-chrome.ant-btn-default {
  background: var(--redwood-container, #fff);
  border-color: var(--redwood-border, #c4bdb4);
  color: var(--redwood-text-primary, #23211f);
}

.pex-modal__btn-chrome.ant-btn-default:not(:disabled):hover {
  border-color: var(--redwood-text-secondary, #6c6660);
  color: var(--redwood-text-primary, #23211f);
  background: var(--redwood-container, #fff);
}

.pex-modal--full.ant-modal {
  max-width: none;
}

/* --- Motion (oj-dialog open/close) --- */
.pex-modal-motion-enter,
.pex-modal-motion-appear {
  opacity: 0;
}

.pex-modal-motion-enter-active,
.pex-modal-motion-appear-active {
  opacity: 1;
  transition: opacity 0.22s cubic-bezier(0.2, 0, 0, 1);
}

.pex-modal-motion-leave {
  opacity: 1;
}

.pex-modal-motion-leave-active {
  opacity: 0;
  transition: opacity 0.18s cubic-bezier(0.4, 0, 1, 1);
}

.pex-modal.ant-modal.pex-modal-motion-enter .ant-modal-container,
.pex-modal.ant-modal.pex-modal-motion-appear .ant-modal-container {
  transform: scale(0.97) translateY(-10px);
  opacity: 0;
}

.pex-modal.ant-modal.pex-modal-motion-enter-active .ant-modal-container,
.pex-modal.ant-modal.pex-modal-motion-appear-active .ant-modal-container {
  transform: scale(1) translateY(0);
  opacity: 1;
  transition:
    transform 0.24s cubic-bezier(0.2, 0, 0, 1),
    opacity 0.24s cubic-bezier(0.2, 0, 0, 1);
}

.pex-modal.ant-modal.pex-modal-motion-leave-active .ant-modal-container {
  transform: scale(0.98) translateY(6px);
  opacity: 0;
  transition:
    transform 0.18s cubic-bezier(0.4, 0, 1, 1),
    opacity 0.18s cubic-bezier(0.4, 0, 1, 1);
}

/* --- Drag --- */
.pex-modal__header--draggable {
  cursor: move;
  user-select: none;
}

.pex-modal--dragging .pex-modal__header--draggable {
  cursor: grabbing;
}

.pex-modal--dragging,
.pex-modal--resizing {
  user-select: none;
}

/* --- Resize (width + height) --- */
.pex-modal__container {
  position: relative;
}

.pex-modal__container--fixed-height {
  height: 100%;
  max-height: none;
}

.pex-modal__container--fixed-height .pex-modal__content,
.pex-modal__container--fixed-height .pex-modal__body-wrapper {
  min-height: 0;
}

.pex-modal__resize {
  position: absolute;
  z-index: 2;
}

.pex-modal__resize--e {
  top: 48px;
  right: 0;
  width: 8px;
  bottom: 24px;
  cursor: ew-resize;
}

.pex-modal__resize--s {
  left: 0;
  right: 16px;
  bottom: 0;
  height: 8px;
  cursor: ns-resize;
}

.pex-modal__resize--se {
  right: 0;
  bottom: 0;
  width: 16px;
  height: 16px;
  cursor: nwse-resize;
  background: linear-gradient(
    135deg,
    transparent 0 45%,
    var(--redwood-border, #c4bdb4) 45% 50%,
    transparent 50% 100%
  );
}

.pex-modal__resize--se:hover {
  background: linear-gradient(
    135deg,
    transparent 0 42%,
    var(--redwood-rust, #c25e40) 42% 54%,
    transparent 54% 100%
  );
}

/* Static confirm — ornament full bleed on container */
.pex-modal-confirm.ant-modal .ant-modal-container {
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
}

.pex-modal-confirm.ant-modal .ant-modal-container::before {
  content: "";
  display: block;
  height: 12px;
  background-color: #f5f3f0;
  background-image: url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='160'%20height='14'%20viewBox='0%200%20160%2014'%20fill='none'%3e%3crect%20width='160'%20height='14'%20fill='%23f7f5f2'/%3e%3cg%20opacity='0.55'%20stroke='%23c8c2ba'%20stroke-width='0.65'%20stroke-linecap='round'%3e%3cpath%20d='M0%204.5c6-2.2%2012-2.2%2018%200s12%202.2%2018%200%2012-2.2%2018%200%2012%202.2%2018%200%2012-2.2%2018%200%2012%202.2%2018%200%2012-2.2%2018%200'/%3e%3cpath%20d='M0%208.5c5%201.8%2010%201.8%2015%200s10-1.8%2015%200%2010%201.8%2015%200%2010-1.8%2015%200%2010%201.8%2015%200%2010-1.8%2015%200%2010%201.8%2015%200'/%3e%3cpath%20d='M0%2011.5c4-1.4%208-1.4%2012%200s8%201.4%2012%200%208-1.4%2012%200%208%201.4%2012%200%208-1.4%2012%200%208%201.4%2012%200%208-1.4%2012%200'/%3e%3c/g%3e%3cg%20opacity='0.35'%20stroke='%23b8b0a6'%20stroke-width='0.5'%20stroke-linecap='round'%3e%3cpath%20d='M4%202c3%201.2%206%201.2%209%200M28%202c3%201.2%206%201.2%209%200M52%202c3%201.2%206%201.2%209%200M76%202c3%201.2%206%201.2%209%200M100%202c3%201.2%206%201.2%209%200M124%202c3%201.2%206%201.2%209%200'/%3e%3cpath%20d='M16%206.5c2.5-.9%205-.9%207.5%200M40%206.5c2.5-.9%205-.9%207.5%200M64%206.5c2.5-.9%205-.9%207.5%200M88%206.5c2.5-.9%205-.9%207.5%200M112%206.5c2.5-.9%205-.9%207.5%200M136%206.5c2.5-.9%205-.9%207.5%200'/%3e%3c/g%3e%3c/svg%3e");
  background-repeat: repeat-x;
  background-size: auto 12px;
}

.pex-modal-confirm.ant-modal .ant-modal-confirm-title {
  padding: 16px 24px 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.pex-modal-confirm.ant-modal .ant-modal-body {
  padding: 0 24px 20px;
}

.pex-modal-confirm.ant-modal .ant-modal-confirm-btns {
  padding: 0 24px 16px;
}

.pex-modal-confirm.ant-modal .ant-modal-confirm-btns .ant-btn-primary {
  background: var(--redwood-container, #fff);
  border-color: var(--redwood-border, #c4bdb4);
  color: var(--redwood-text-primary, #23211f);
  box-shadow: none;
}

@media (max-width: 576px) {
  .pex-modal.ant-modal {
    max-width: calc(100vw - 16px) !important;
    margin: 8px auto;
  }

  .pex-modal__header {
    padding: 14px 16px;
  }

  .pex-modal__body {
    padding: 0 16px 16px;
  }

  .pex-modal__footer {
    padding: 10px 16px 14px;
  }
}
.resizable-split-pane {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
}

.resizable-split-pane--horizontal {
  flex-direction: row;
}

.resizable-split-pane--vertical {
  flex-direction: column;
}

.resizable-split-pane--stacked {
  flex-direction: column;
}

.resizable-split-pane--stacked .resizable-split-pane__divider {
  display: none;
}

.resizable-split-pane__panel {
  min-width: 0;
  min-height: 0;
  overflow: auto;
}

.resizable-split-pane__panel--start {
  flex-shrink: 0;
}

.resizable-split-pane__panel--end {
  flex: 1 1 auto;
}

.resizable-split-pane--stacked .resizable-split-pane__panel--start,
.resizable-split-pane--stacked .resizable-split-pane__panel--end {
  flex: none;
  width: 100% !important;
  height: auto !important;
  max-width: none;
}

.resizable-split-pane__divider {
  flex: 0 0 var(--luxcrm-split-divider-size, 8px);
  margin: var(--luxcrm-split-divider-margin, 0 4px);
  cursor: col-resize;
  border-radius: 4px;
  position: relative;
  align-self: stretch;
  touch-action: none;
  transition: background 0.15s ease;
}

.resizable-split-pane--vertical .resizable-split-pane__divider {
  cursor: row-resize;
  margin: 4px 0;
  width: 100%;
  height: var(--luxcrm-split-divider-size, 8px);
}

.resizable-split-pane__divider::after {
  content: "";
  position: absolute;
  border-radius: 2px;
  background: var(--luxcrm-split-divider-color, rgba(0, 0, 0, 0.12));
  transition: background 0.15s ease;
}

.resizable-split-pane--horizontal .resizable-split-pane__divider::after {
  top: 12px;
  bottom: 12px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
}

.resizable-split-pane--vertical .resizable-split-pane__divider::after {
  left: 12px;
  right: 12px;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
}

.resizable-split-pane__divider:hover::after,
.resizable-split-pane__divider--active::after {
  background: var(--luxcrm-split-divider-active, #1677ff);
}

.resizable-split-pane--horizontal .resizable-split-pane__divider:hover::after,
.resizable-split-pane--horizontal .resizable-split-pane__divider--active::after {
  width: 3px;
}

.resizable-split-pane--vertical .resizable-split-pane__divider:hover::after,
.resizable-split-pane--vertical .resizable-split-pane__divider--active::after {
  height: 3px;
}

.resizable-split-pane__divider:hover,
.resizable-split-pane__divider--active {
  background: var(--luxcrm-split-divider-hover-bg, rgba(22, 119, 255, 0.08));
}

.resizable-split-pane:has(.resizable-split-pane__divider--active) .resizable-split-pane__panel {
  pointer-events: none;
  will-change: width, height;
}

.resizable-split-pane--disabled .resizable-split-pane__divider {
  pointer-events: none;
  opacity: 0.35;
}

body.luxcrm-split-dragging--horizontal,
body.luxcrm-split-dragging--vertical {
  user-select: none !important;
}

body.luxcrm-split-dragging--horizontal,
body.luxcrm-split-dragging--horizontal * {
  cursor: col-resize !important;
}

body.luxcrm-split-dragging--vertical,
body.luxcrm-split-dragging--vertical * {
  cursor: row-resize !important;
}
.entity-detail-layout {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.entity-detail-layout .resizable-split-pane {
  flex: 1;
  min-height: 0;
}

.entity-detail-layout .resizable-split-pane__panel {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.entity-detail-start,
.entity-detail-end {
  width: 100%;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.entity-detail-start {
  container-type: inline-size;
  container-name: entity-detail-start;
}

.entity-detail-end {
  container-type: inline-size;
  container-name: entity-detail-end;
}

.entity-detail-start .ant-card,
.entity-detail-end .ant-card {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

.entity-detail-start .ant-card-body,
.entity-detail-end .ant-card-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.entity-detail-end .account-activity-card {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--ant-color-border-secondary, rgba(0, 0, 0, 0.06));
}

.entity-detail-end .ant-timeline-item-content .account-activity-card + .account-activity-card {
  margin-top: 0;
}

.entity-detail-end .ant-timeline-item {
  padding-bottom: 10px;
}

.entity-detail-end .ant-timeline-item:last-child {
  padding-bottom: 0;
}

@container entity-detail-start (max-width: 560px) {
  .entity-detail-start .ant-row > .ant-col {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .entity-detail-start .ant-card-head-title {
    white-space: normal;
    line-height: 1.3;
  }
}

@container entity-detail-end (max-width: 400px) {
  .entity-detail-end .ant-list-item {
    flex-wrap: wrap;
  }

  .entity-detail-end .ant-list-item-action {
    margin-inline-start: 0 !important;
    width: 100%;
  }
}

@container entity-detail-end (max-width: 600px) {
  .entity-detail-end .ant-card-head-title {
    white-space: normal;
    line-height: 1.3;
  }

  .entity-detail-end .ant-timeline-item-content {
    width: 100%;
    max-width: 100%;
  }
}
/* Host establishes container context — queries must target descendants, not self. */
.pex-field-group-host {
  container-type: inline-size;
  min-width: 0;
  width: 100%;
}

.pex-field-group-host--stack-360 {
  container-name: pex-field-group-360;
}

.pex-field-group-host--stack-420 {
  container-name: pex-field-group-420;
}

.pex-field-group-host--stack-480 {
  container-name: pex-field-group-480;
}

.pex-field-group-host--stack-560 {
  container-name: pex-field-group-560;
}

/* Shared label/value field group — one grid so columns stay aligned when resized. */
.pex-field-group {
  display: grid;
  grid-template-columns: var(--pex-field-group-label-column, minmax(120px, 152px)) minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border-radius: inherit;
}

.pex-field-group__row {
  display: contents;
}

.pex-field-group__label {
  padding: 10px 10px;
  font-size: 12px;
  line-height: 1.35;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  overflow: hidden;
  min-width: 0;
  border-bottom: 1px solid var(--pex-field-group-row-border, rgba(0, 0, 0, 0.06));
}

.pex-field-group__row:last-child .pex-field-group__label,
.pex-field-group__row:last-child .pex-field-group__value {
  border-bottom: none;
}

.pex-field-group__icon {
  flex: 0 0 14px;
  width: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  font-size: 12px;
}

.pex-field-group__label-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.pex-field-group__value {
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  min-width: 0;
  word-break: break-word;
  border-bottom: 1px solid var(--pex-field-group-row-border, rgba(0, 0, 0, 0.06));
}

.pex-field-group__value > * {
  min-width: 0;
  max-width: 100%;
}

@container pex-field-group-360 (max-width: 360px) {
  .pex-field-group {
    grid-template-columns: minmax(0, 1fr);
  }

  .pex-field-group__label {
    border-right: none !important;
    padding: 8px 12px;
  }

  .pex-field-group__value {
    padding: 10px 12px 12px;
  }
}

@container pex-field-group-420 (max-width: 420px) {
  .pex-field-group {
    grid-template-columns: minmax(0, 1fr);
  }

  .pex-field-group__label {
    border-right: none !important;
    padding: 8px 12px;
  }

  .pex-field-group__value {
    padding: 10px 12px 12px;
  }
}

@container pex-field-group-480 (max-width: 480px) {
  .pex-field-group {
    grid-template-columns: minmax(0, 1fr);
  }

  .pex-field-group__label {
    border-right: none !important;
    padding: 8px 12px;
  }

  .pex-field-group__value {
    padding: 10px 12px 12px;
  }
}

@container pex-field-group-560 (max-width: 560px) {
  .pex-field-group {
    grid-template-columns: minmax(0, 1fr);
  }

  .pex-field-group__label {
    border-right: none !important;
    padding: 8px 12px;
  }

  .pex-field-group__value {
    padding: 10px 12px 12px;
  }
}
.luxcrm-oracle-header {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center !important;
  column-gap: 16px;
  line-height: 1 !important;
  overflow: visible !important;
}

.luxcrm-oracle-header__start,
.luxcrm-oracle-header__actions {
  display: flex;
  align-items: center;
  min-height: 36px;
}

.luxcrm-oracle-header__start {
  gap: 12px;
  min-width: 0;
  overflow: hidden;
}

.luxcrm-oracle-header__menu-btn {
  flex-shrink: 0;
}

.luxcrm-oracle-header__actions {
  gap: 10px;
  flex-shrink: 0;
  justify-content: flex-end;
  overflow: visible;
}

.luxcrm-oracle-header__trailing-tools {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.luxcrm-oracle-header__actions .ant-badge {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  flex-shrink: 0;
}

.luxcrm-oracle-header__brand {
  text-decoration: none;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  flex-shrink: 1;
  overflow: hidden;
}

.luxcrm-oracle-header__crumb-sep {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.luxcrm-oracle-header__crumb-title {
  font-size: 15px;
  color: #f3efeb !important;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.luxcrm-oracle-header__user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 2px 4px;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  color: inherit;
  flex-shrink: 0;
}

.luxcrm-oracle-header__user:hover {
  background: rgba(255, 255, 255, 0.08);
}

.luxcrm-oracle-header__user-email {
  font-weight: 500;
  color: #f3efeb;
  font-size: 14px;
  line-height: 1.25;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Square icon controls — hamburger, bell, etc. */
.luxcrm-oracle-header__icon-btn.ant-btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
}

.luxcrm-oracle-header__icon-btn.ant-btn .ant-btn-icon,
.luxcrm-oracle-header__icon-btn.ant-btn svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 18px;
  line-height: 1;
}

.luxcrm-oracle-header__actions .luxcrm-workspace-header-slot {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: 0;
  flex-shrink: 1;
  min-width: 0;
}

.luxcrm-oracle-header .ant-btn-text {
  color: #f3efeb !important;
}

.luxcrm-oracle-header .ant-btn-text:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
}

.luxcrm-oracle-header .ant-typography {
  color: #f3efeb !important;
}

.luxcrm-oracle-header .ant-typography-secondary {
  color: rgba(243, 239, 235, 0.45) !important;
}

@media (max-width: 767px) {
  .luxcrm-oracle-header {
    column-gap: 8px;
  }

  .luxcrm-oracle-header__start {
    gap: 8px;
  }

  .luxcrm-oracle-header__actions {
    gap: 6px;
  }

  .luxcrm-oracle-header__trailing-tools {
    gap: 6px;
  }

  .luxcrm-oracle-header__crumb-title {
    font-size: 14px;
  }

  .luxcrm-oracle-header__user-email {
    display: none;
  }
}
.pex-shell-host {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.pex-shell-host__iframe {
  flex: 1;
  width: 100%;
  border: none;
  min-height: calc(100vh - 60px);
  opacity: 1;
  transition: opacity 0.15s ease;
}

.pex-shell-host__iframe--loading {
  opacity: 0;
  pointer-events: none;
}

.pex-shell-host__loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.04);
  z-index: 1;
  pointer-events: none;
}
.luxcrm-workspace-header-slot {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-right: 4px;
}

.luxcrm-workspace-header-dropdown {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 14px 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #f3efeb;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  max-width: min(280px, 42vw);
}

.luxcrm-workspace-header-dropdown:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

.luxcrm-workspace-header-dropdown__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.65;
  white-space: nowrap;
  padding-right: 2px;
}

.luxcrm-workspace-header-dropdown__value {
  font-size: 13px;
  font-weight: 600;
  color: var(--ws-accent, #f3efeb);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 2px;
}

.luxcrm-workspace-header-dropdown__caret {
  font-size: 10px;
  opacity: 0.7;
  flex-shrink: 0;
}

.luxcrm-workspace-header-hint {
  font-size: 12px !important;
  color: rgba(243, 239, 235, 0.55) !important;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 2px;
}

.luxcrm-workspace-menu-item__title {
  font-weight: 600;
  font-size: 13px;
  line-height: 1.3;
}

.luxcrm-workspace-menu-item__desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.3;
  margin-top: 2px;
}

.luxcrm-workspace-menu-item__spacer {
  display: inline-block;
  width: 14px;
}

.luxcrm-shell-dropdown-overlay .ant-dropdown-menu {
  background: var(--redwood-shell-nav-bg, #2d2926) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.32);
  padding: 4px;
  min-width: 220px;
}

.luxcrm-shell-dropdown-overlay .ant-dropdown-menu-item {
  color: rgba(255, 255, 255, 0.88) !important;
  border-radius: 6px;
  padding: 8px 12px !important;
}

.luxcrm-shell-dropdown-overlay .ant-dropdown-menu-item:hover,
.luxcrm-shell-dropdown-overlay .ant-dropdown-menu-item-active {
  background: rgba(255, 255, 255, 0.08) !important;
}

.luxcrm-shell-dropdown-overlay .ant-dropdown-menu-item-selected {
  background: rgba(194, 94, 64, 0.28) !important;
  color: #ffffff !important;
}

.luxcrm-shell-dropdown-overlay .ant-dropdown-menu-item .anticon {
  color: var(--redwood-shell-nav-accent, #c25e40);
}
.luxcrm-workspace-header-slot {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-right: 4px;
}

.luxcrm-workspace-header-dropdown {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 14px 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #f3efeb;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  max-width: min(280px, 42vw);
}

.luxcrm-workspace-header-dropdown:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

.luxcrm-workspace-header-dropdown__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.65;
  white-space: nowrap;
  padding-right: 2px;
}

.luxcrm-workspace-header-dropdown__value {
  font-size: 13px;
  font-weight: 600;
  color: var(--ws-accent, #f3efeb);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 2px;
}

.luxcrm-workspace-header-dropdown__caret {
  font-size: 10px;
  opacity: 0.7;
  flex-shrink: 0;
}

.luxcrm-workspace-header-hint {
  font-size: 12px !important;
  color: rgba(243, 239, 235, 0.55) !important;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 2px;
}

.luxcrm-workspace-menu-item__title {
  font-weight: 600;
  font-size: 13px;
  line-height: 1.3;
}

.luxcrm-workspace-menu-item__desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.3;
  margin-top: 2px;
}

.luxcrm-workspace-menu-item__spacer {
  display: inline-block;
  width: 14px;
}

/* Header workspace switcher dropdown — match shell nav palette */
.luxcrm-shell-dropdown-overlay .ant-dropdown-menu {
  background: var(--redwood-shell-nav-bg, #2d2926) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.32);
  padding: 4px;
  min-width: 220px;
}

.luxcrm-shell-dropdown-overlay .ant-dropdown-menu-item {
  color: rgba(255, 255, 255, 0.88) !important;
  border-radius: 6px;
  padding: 8px 12px !important;
}

.luxcrm-shell-dropdown-overlay .ant-dropdown-menu-item:hover,
.luxcrm-shell-dropdown-overlay .ant-dropdown-menu-item-active {
  background: rgba(255, 255, 255, 0.08) !important;
}

.luxcrm-shell-dropdown-overlay .ant-dropdown-menu-item-selected {
  background: rgba(194, 94, 64, 0.28) !important;
  color: #ffffff !important;
}

.luxcrm-shell-dropdown-overlay .ant-dropdown-menu-item .anticon {
  color: var(--redwood-shell-nav-accent, #c25e40);
}
.pex-module-slot {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.pex-module-slot__loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
}

.pex-module-slot__mount {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.pex-module-slot__mount--loading {
  visibility: hidden;
}

.pex-module-slot__error {
  padding: 1.5rem;
  color: var(--pex-color-danger, #cf1322);
}
.luxcrm-app-rail {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  align-self: stretch;
  min-height: 100vh;
  position: sticky;
  top: 0;
  border-right: 1px solid var(--luxcrm-app-rail-border, rgba(0, 0, 0, 0.06));
  background: var(--luxcrm-app-rail-bg, #fff);
  transition: width 0.2s ease;
  overflow: hidden;
}

.luxcrm-app-rail__brand {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 60px;
  padding: 10px 6px 8px;
  border-bottom: 1px solid var(--luxcrm-app-rail-border, rgba(0, 0, 0, 0.06));
}

.luxcrm-app-rail__menu-btn {
  width: 36px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  color: var(--luxcrm-app-rail-muted, rgba(0, 0, 0, 0.55));
  font-size: 16px;
  transition: background 0.15s ease, color 0.15s ease;
}

.luxcrm-app-rail__menu-btn:hover {
  background: var(--luxcrm-app-rail-hover, rgba(0, 0, 0, 0.04));
  color: var(--luxcrm-app-rail-text, rgba(0, 0, 0, 0.88));
}

.luxcrm-app-rail__brand-link {
  display: block;
  width: 100%;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.luxcrm-app-rail__quick-label {
  flex-shrink: 0;
  padding: 10px 4px 4px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  color: var(--luxcrm-app-rail-muted, rgba(0, 0, 0, 0.45));
  line-height: 1.2;
}

.luxcrm-app-rail--brand-icon .luxcrm-app-rail__quick-label,
.luxcrm-app-rail--brand-text .luxcrm-app-rail__quick-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  padding: 8px 0;
  margin: 0 auto;
}

.luxcrm-app-rail__scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  padding: 4px 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.luxcrm-app-rail__footer {
  flex-shrink: 0;
  padding: 8px 6px 10px;
  border-top: 1px solid var(--luxcrm-app-rail-border, rgba(0, 0, 0, 0.06));
  display: flex;
  justify-content: center;
}

.luxcrm-app-rail__quick-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 8px 4px;
  border: none;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  color: var(--luxcrm-app-rail-muted, rgba(0, 0, 0, 0.55));
  transition: background 0.15s ease, color 0.15s ease;
}

.luxcrm-app-rail__quick-item:hover:not(:disabled) {
  background: var(--luxcrm-app-rail-hover, rgba(0, 0, 0, 0.04));
  color: var(--luxcrm-app-rail-text, rgba(0, 0, 0, 0.88));
}

.luxcrm-app-rail__quick-item:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.luxcrm-app-rail__quick-item--active {
  background: var(--luxcrm-app-rail-active-bg, rgba(22, 119, 255, 0.1));
  color: var(--luxcrm-app-rail-active-color, #1677ff);
}

.luxcrm-app-rail__quick-item--active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--luxcrm-app-rail-active-color, #1677ff);
}

.luxcrm-app-rail__quick-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
}

.luxcrm-app-rail__quick-icon svg {
  width: 20px;
  height: 20px;
}

.luxcrm-app-rail__config-btn {
  width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  color: var(--luxcrm-app-rail-muted, rgba(0, 0, 0, 0.55));
  font-size: 16px;
  transition: background 0.15s ease, color 0.15s ease;
}

.luxcrm-app-rail__config-btn:hover {
  background: var(--luxcrm-app-rail-hover, rgba(0, 0, 0, 0.04));
  color: var(--luxcrm-app-rail-text, rgba(0, 0, 0, 0.88));
}

.luxcrm-app-rail--drawer {
  height: auto;
  min-height: calc(100vh - 60px);
  position: static;
  width: 100% !important;
}

.luxcrm-app-rail--drawer .luxcrm-app-rail__quick-item {
  justify-content: flex-start;
  gap: 12px;
  padding: 10px 14px;
}

.luxcrm-app-rail__quick-label-text {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--luxcrm-app-rail-text, rgba(0, 0, 0, 0.88));
  text-align: left;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.luxcrm-app-rail--shell {
  min-height: calc(100vh - 60px);
  border-right-color: rgba(255, 255, 255, 0.1);
}

.luxcrm-app-rail--shell .luxcrm-app-rail__quick-label {
  color: rgba(255, 255, 255, 0.45);
}

.luxcrm-app-rail--collapsed {
  border-right: none;
  overflow: hidden;
}

.luxcrm-app-rail-collapsed-toggle-wrap {
  flex-shrink: 0;
  width: 40px;
  display: flex;
  align-items: flex-start;
  padding: 8px 4px;
  background: var(--redwood-shell-nav-bg, #2d2926);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.luxcrm-app-rail__menu-btn--floating {
  width: 32px;
  height: 32px;
  color: rgba(255, 255, 255, 0.75);
}

.luxcrm-app-rail__menu-btn--floating:hover {
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.08);
}

.luxcrm-app-rail--shell .luxcrm-app-rail__menu-btn {
  color: rgba(255, 255, 255, 0.75);
}

.luxcrm-app-rail--shell .luxcrm-app-rail__menu-btn:hover {
  color: rgba(255, 255, 255, 0.95);
}

.luxcrm-app-rail--drawer .luxcrm-app-rail__quick-label {
  writing-mode: horizontal-tb;
  transform: none;
  text-align: left;
  padding: 8px 14px 4px;
  font-size: 10px;
}
.pex-microservice-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

/* Embedded in ERP iframe shell — no inner header; sub-nav sticks to top of iframe */
.pex-microservice-shell--embedded {
  min-height: 100%;
  height: 100%;
}

.pex-microservice-shell--embedded .luxcrm-hcm-nav--shell,
.pex-microservice-shell--embedded .luxcrm-crm-nav--shell,
.pex-microservice-shell--embedded .luxcrm-crm-nav--with-switcher.luxcrm-crm-nav--shell {
  top: 0;
}

.pex-microservice-shell--embedded .pex-module-shell__body {
  flex: 1;
  min-height: 0 !important;
  height: auto !important;
  display: flex;
  flex-direction: column;
}

.pex-microservice-shell--embedded .pex-module-shell__content {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

html:has(.pex-microservice-shell--embedded),
html:has(.pex-microservice-shell--embedded) body,
html:has(.pex-microservice-shell--embedded) #root {
  height: 100%;
  min-height: 100%;
}
.pex-shell-host-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.pex-shell-host-page__chrome {
  flex-shrink: 0;
}

.pex-shell-host-page__body {
  flex: 1;
  min-height: 0;
}

.pex-shell-host-page__iframe-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: calc(100vh - 60px);
}

.pex-shell-quick-menu-drawer .ant-drawer-content {
  background: var(--redwood-shell-nav-bg, #2d2926);
}

.pex-shell-quick-menu-drawer__header {
  background: var(--redwood-shell-nav-bg, #2d2926) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.pex-shell-quick-menu-drawer__header .ant-drawer-title {
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pex-shell-quick-menu-drawer__header .ant-drawer-close {
  color: rgba(255, 255, 255, 0.65);
}

.pex-shell-quick-menu-drawer__header .ant-drawer-close:hover {
  color: #fff;
}

.pex-shell-quick-menu-drawer__body {
  padding: 0 !important;
  background: var(--redwood-shell-nav-bg, #2d2926);
}

.pex-shell-quick-menu-drawer .luxcrm-app-rail--drawer {
  min-height: auto;
  border-right: none;
}

.pex-shell-quick-menu-drawer .luxcrm-app-rail--drawer .luxcrm-app-rail__quick-label {
  display: none;
}
.luxcrm-crm-nav {
  width: 100%;
  flex-shrink: 0;
}

.luxcrm-crm-nav__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
}

.luxcrm-crm-nav__bar .luxcrm-crm-nav__desktop-menu {
  flex: 1;
  min-width: 0;
}

.luxcrm-crm-nav--compact .luxcrm-crm-nav__bar {
  flex-direction: column;
  align-items: stretch;
}

.luxcrm-crm-nav--shell {
  position: sticky;
  top: 60px;
  z-index: 9;
}

.luxcrm-crm-nav--with-switcher.luxcrm-crm-nav--shell {
  top: 60px;
}

.luxcrm-crm-nav--content {
  position: sticky;
  top: 0;
  z-index: 8;
}

.luxcrm-crm-nav__desktop-menu--compact.ant-menu-horizontal > .ant-menu-item,
.luxcrm-crm-nav__desktop-menu--compact.ant-menu-horizontal > .ant-menu-submenu {
  flex-shrink: 0;
}

.luxcrm-crm-nav__desktop-menu--compact.ant-menu-horizontal > .ant-menu-item {
  padding-inline: 12px;
  font-size: 13px;
}

.luxcrm-crm-nav__desktop-menu--compact.ant-menu-horizontal
  > .ant-menu-submenu
  > .ant-menu-submenu-title {
  padding-inline: 12px;
  font-size: 13px;
}

.luxcrm-crm-nav__desktop-menu--compact.ant-menu-horizontal
  > .ant-menu-item
  .ant-menu-item-icon,
.luxcrm-crm-nav__desktop-menu--compact.ant-menu-horizontal
  > .ant-menu-submenu
  > .ant-menu-submenu-title
  .ant-menu-item-icon {
  font-size: 14px;
}

.luxcrm-crm-nav--compact .ant-menu-overflow-item-rest .ant-menu-submenu-title {
  padding-inline: 12px;
}

.luxcrm-crm-nav__desktop-menu {
  border-bottom: 0;
  background: transparent;
  min-height: 48px;
  line-height: 1.4;
  padding-left: 12px;
  padding-right: 12px;
}

.luxcrm-crm-nav__desktop-menu--shell.ant-menu-horizontal > .ant-menu-item,
.luxcrm-crm-nav__desktop-menu--shell.ant-menu-horizontal > .ant-menu-submenu {
  top: 0 !important;
  margin-top: 0;
  margin-bottom: 0;
  padding-inline: 0;
  vertical-align: top;
}

.luxcrm-crm-nav__desktop-menu--shell.ant-menu-horizontal > .ant-menu-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding-inline: 16px;
  border-radius: 0;
}

.luxcrm-crm-nav__desktop-menu--shell.ant-menu-horizontal > .ant-menu-submenu > .ant-menu-submenu-title {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  line-height: 1.4;
  margin-top: 0;
  margin-bottom: 0;
  padding-inline: 16px;
  border-radius: 0;
}

.luxcrm-crm-nav__desktop-menu--shell.ant-menu-horizontal .ant-menu-title-content {
  display: inline-flex;
  align-items: center;
  line-height: 1.4;
}

.luxcrm-crm-nav__desktop-menu--shell.ant-menu-dark .ant-menu-title-content a {
  color: inherit;
  display: inline-flex;
  align-items: center;
}

.luxcrm-crm-nav__desktop-menu--shell.ant-menu-dark .ant-menu-title-content a:focus,
.luxcrm-crm-nav__desktop-menu--shell.ant-menu-dark .ant-menu-title-content a:focus-visible {
  outline: none;
}

.luxcrm-crm-nav__desktop-menu--shell.ant-menu-dark {
  color: rgba(255, 255, 255, 0.72);
}

.luxcrm-crm-nav__desktop-menu--shell.ant-menu-dark .ant-menu-item {
  color: rgba(255, 255, 255, 0.72);
}

.luxcrm-crm-nav__desktop-menu--shell.ant-menu-dark .ant-menu-item:hover,
.luxcrm-crm-nav__desktop-menu--shell.ant-menu-dark .ant-menu-item.ant-menu-item-active {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.luxcrm-crm-nav__desktop-menu--shell.ant-menu-dark.ant-menu-horizontal
  > .ant-menu-submenu:hover,
.luxcrm-crm-nav__desktop-menu--shell.ant-menu-dark.ant-menu-horizontal
  > .ant-menu-submenu.ant-menu-submenu-active,
.luxcrm-crm-nav__desktop-menu--shell.ant-menu-dark.ant-menu-horizontal
  > .ant-menu-submenu.ant-menu-submenu-open,
.luxcrm-crm-nav__desktop-menu--shell.ant-menu-dark.ant-menu-horizontal
  > .ant-menu-submenu.ant-menu-submenu-selected {
  background: transparent !important;
}

.luxcrm-crm-nav__desktop-menu--shell.ant-menu-dark.ant-menu-horizontal
  > .ant-menu-submenu:hover > .ant-menu-submenu-title,
.luxcrm-crm-nav__desktop-menu--shell.ant-menu-dark.ant-menu-horizontal
  > .ant-menu-submenu.ant-menu-submenu-active > .ant-menu-submenu-title,
.luxcrm-crm-nav__desktop-menu--shell.ant-menu-dark.ant-menu-horizontal
  > .ant-menu-submenu.ant-menu-submenu-open > .ant-menu-submenu-title {
  color: #ffffff !important;
  background: var(--luxcrm-crm-nav-hover, rgba(255, 255, 255, 0.08)) !important;
}

.luxcrm-crm-nav__desktop-menu--shell.ant-menu-dark .ant-menu-item-selected,
.luxcrm-crm-nav__desktop-menu--shell.ant-menu-dark .ant-menu-submenu-selected > .ant-menu-submenu-title,
.luxcrm-crm-nav__desktop-menu--shell.ant-menu-dark .ant-menu-submenu-open > .ant-menu-submenu-title {
  color: #ffffff !important;
  background-color: var(--luxcrm-crm-nav-active-bg, rgba(194, 94, 64, 0.22)) !important;
}

.luxcrm-crm-nav__desktop-menu--shell.ant-menu-dark .ant-menu-submenu-selected > .ant-menu-submenu-title:hover,
.luxcrm-crm-nav__desktop-menu--shell.ant-menu-dark .ant-menu-submenu-open > .ant-menu-submenu-title:hover {
  color: #ffffff !important;
  background-color: var(--luxcrm-crm-nav-active-bg, rgba(194, 94, 64, 0.22)) !important;
}

.luxcrm-crm-nav__desktop-menu--shell.ant-menu-dark .ant-menu-item-selected::after,
.luxcrm-crm-nav__desktop-menu--shell.ant-menu-dark .ant-menu-submenu-selected > .ant-menu-submenu-title::after,
.luxcrm-crm-nav__desktop-menu--shell.ant-menu-dark .ant-menu-submenu-open > .ant-menu-submenu-title::after {
  border-bottom-color: var(--redwood-shell-nav-accent, #c25e40) !important;
}

.luxcrm-crm-nav__desktop-menu--shell.ant-menu-dark .ant-menu-submenu-title {
  color: rgba(255, 255, 255, 0.72);
}

.luxcrm-crm-nav__desktop-menu--shell.ant-menu-dark .ant-menu-submenu-title:hover {
  color: #ffffff !important;
  background: var(--luxcrm-crm-nav-hover, rgba(255, 255, 255, 0.08)) !important;
}

.luxcrm-crm-nav__submenu-popup .ant-menu {
  background: var(--redwood-shell-nav-bg, #2d2926) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.32);
  padding: 4px;
  min-width: 180px;
}

.luxcrm-crm-nav__desktop-menu--shell.ant-menu-horizontal > .ant-menu-item .ant-menu-item-icon,
.luxcrm-crm-nav__desktop-menu--shell.ant-menu-horizontal
  > .ant-menu-submenu
  > .ant-menu-submenu-title
  .ant-menu-item-icon {
  flex-shrink: 0;
  display: inline-flex !important;
  align-items: center;
  line-height: 1;
}

.luxcrm-crm-nav__submenu-popup .ant-menu-item {
  color: rgba(255, 255, 255, 0.78) !important;
  border-radius: 6px;
  margin: 2px 0;
  width: 100%;
  min-height: 36px;
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  gap: 8px;
  padding-inline: 10px !important;
  line-height: 1.4 !important;
}

.luxcrm-crm-nav__submenu-popup .ant-menu-item-icon {
  flex-shrink: 0;
  display: inline-flex !important;
  align-items: center;
  line-height: 1;
}

.luxcrm-crm-nav__submenu-popup .ant-menu-title-content {
  flex: 1 1 auto;
  min-width: 0;
}

.luxcrm-crm-nav__submenu-popup .ant-menu-item a {
  color: inherit !important;
  display: inline;
  width: auto;
  min-height: unset;
  padding-block: 0;
}

.luxcrm-crm-nav__submenu-popup .ant-menu-item:hover,
.luxcrm-crm-nav__submenu-popup .ant-menu-item-active {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.08) !important;
}

.luxcrm-crm-nav__submenu-popup .ant-menu-item-selected {
  color: #ffffff !important;
  background-color: rgba(194, 94, 64, 0.28) !important;
}

.luxcrm-crm-nav__submenu-popup .ant-menu-item-selected::after {
  display: none;
}
.luxcrm-hcm-nav {
  width: 100%;
  flex-shrink: 0;
}

.luxcrm-hcm-nav--shell {
  position: sticky;
  top: 60px;
  z-index: 9;
  min-width: 0;
  max-width: 100%;
}

.luxcrm-hcm-nav__desktop-menu {
  border-bottom: 0;
  background: transparent;
  min-height: 48px;
  min-width: 0;
  width: 100%;
  padding-left: 12px;
  padding-right: 12px;
}

.luxcrm-hcm-nav__desktop-menu--shell.ant-menu-dark {
  color: rgba(255, 255, 255, 0.72);
}

.luxcrm-hcm-nav__desktop-menu--shell.ant-menu-horizontal > .ant-menu-item,
.luxcrm-hcm-nav__desktop-menu--shell.ant-menu-horizontal > .ant-menu-submenu {
  top: 0 !important;
  margin-top: 0;
  margin-bottom: 0;
  padding-inline: 0;
  vertical-align: top;
}

.luxcrm-hcm-nav__desktop-menu--shell.ant-menu-horizontal > .ant-menu-item {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding-inline: 16px;
  border-radius: 0;
}

.luxcrm-hcm-nav__desktop-menu--shell.ant-menu-horizontal > .ant-menu-submenu > .ant-menu-submenu-title {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  line-height: 1.4;
  margin-top: 0;
  margin-bottom: 0;
  padding-inline: 16px;
  border-radius: 0;
}

.luxcrm-hcm-nav__desktop-menu--shell.ant-menu-horizontal .ant-menu-title-content {
  display: inline-flex;
  align-items: center;
  line-height: 1.4;
}

.luxcrm-hcm-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.luxcrm-hcm-nav__link:focus,
.luxcrm-hcm-nav__link:focus-visible {
  outline: none;
}

.luxcrm-hcm-nav__link-icon {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  line-height: 1;
}

.luxcrm-hcm-nav__link-label {
  line-height: 1.4;
  white-space: nowrap;
}

.luxcrm-hcm-nav__desktop-menu--shell.ant-menu-dark .ant-menu-item,
.luxcrm-hcm-nav__desktop-menu--shell.ant-menu-dark .ant-menu-submenu-title {
  color: rgba(255, 255, 255, 0.72);
}

.luxcrm-hcm-nav__desktop-menu--shell.ant-menu-dark .ant-menu-title-content a {
  color: inherit;
}

.luxcrm-hcm-nav__desktop-menu--shell.ant-menu-dark .ant-menu-title-content a:focus,
.luxcrm-hcm-nav__desktop-menu--shell.ant-menu-dark .ant-menu-title-content a:focus-visible {
  outline: none;
}

.luxcrm-hcm-nav__desktop-menu--shell.ant-menu-dark .ant-menu-item:focus-visible {
  outline: 2px solid var(--redwood-shell-nav-accent, #c25e40);
  outline-offset: -2px;
}

.luxcrm-hcm-nav__desktop-menu--shell.ant-menu-dark .ant-menu-item:hover,
.luxcrm-hcm-nav__desktop-menu--shell.ant-menu-dark .ant-menu-item.ant-menu-item-active {
  color: #ffffff !important;
  background: var(--luxcrm-crm-nav-hover, rgba(255, 255, 255, 0.08)) !important;
}

.luxcrm-hcm-nav__desktop-menu--shell.ant-menu-dark.ant-menu-horizontal
  > .ant-menu-submenu:hover,
.luxcrm-hcm-nav__desktop-menu--shell.ant-menu-dark.ant-menu-horizontal
  > .ant-menu-submenu.ant-menu-submenu-active,
.luxcrm-hcm-nav__desktop-menu--shell.ant-menu-dark.ant-menu-horizontal
  > .ant-menu-submenu.ant-menu-submenu-open,
.luxcrm-hcm-nav__desktop-menu--shell.ant-menu-dark.ant-menu-horizontal
  > .ant-menu-submenu.ant-menu-submenu-selected {
  background: transparent !important;
}

.luxcrm-hcm-nav__desktop-menu--shell.ant-menu-dark.ant-menu-horizontal
  > .ant-menu-submenu:hover > .ant-menu-submenu-title,
.luxcrm-hcm-nav__desktop-menu--shell.ant-menu-dark.ant-menu-horizontal
  > .ant-menu-submenu.ant-menu-submenu-active > .ant-menu-submenu-title,
.luxcrm-hcm-nav__desktop-menu--shell.ant-menu-dark.ant-menu-horizontal
  > .ant-menu-submenu.ant-menu-submenu-open > .ant-menu-submenu-title {
  color: #ffffff !important;
  background: var(--luxcrm-crm-nav-hover, rgba(255, 255, 255, 0.08)) !important;
}

.luxcrm-hcm-nav__desktop-menu--shell.ant-menu-dark .ant-menu-item-selected,
.luxcrm-hcm-nav__desktop-menu--shell.ant-menu-dark .ant-menu-submenu-selected > .ant-menu-submenu-title,
.luxcrm-hcm-nav__desktop-menu--shell.ant-menu-dark .ant-menu-submenu-open > .ant-menu-submenu-title {
  color: #ffffff !important;
  background-color: var(--luxcrm-crm-nav-active-bg, rgba(194, 94, 64, 0.22)) !important;
}

.luxcrm-hcm-nav__desktop-menu--shell.ant-menu-dark .ant-menu-submenu-selected > .ant-menu-submenu-title:hover,
.luxcrm-hcm-nav__desktop-menu--shell.ant-menu-dark .ant-menu-submenu-open > .ant-menu-submenu-title:hover {
  color: #ffffff !important;
  background-color: var(--luxcrm-crm-nav-active-bg, rgba(194, 94, 64, 0.22)) !important;
}

.luxcrm-hcm-nav__desktop-menu--shell.ant-menu-dark .ant-menu-item-selected::after,
.luxcrm-hcm-nav__desktop-menu--shell.ant-menu-dark .ant-menu-submenu-selected > .ant-menu-submenu-title::after,
.luxcrm-hcm-nav__desktop-menu--shell.ant-menu-dark .ant-menu-submenu-open > .ant-menu-submenu-title::after {
  border-bottom-color: var(--redwood-shell-nav-accent, #c25e40) !important;
}

.luxcrm-hcm-nav__desktop-menu--shell.ant-menu-dark .ant-menu-submenu-title {
  color: rgba(255, 255, 255, 0.72);
}

.luxcrm-hcm-nav__desktop-menu--shell.ant-menu-dark .ant-menu-submenu-title:hover {
  color: #ffffff !important;
  background: var(--luxcrm-crm-nav-hover, rgba(255, 255, 255, 0.08)) !important;
}

.luxcrm-hcm-nav__desktop-menu--shell.ant-menu-horizontal > .ant-menu-item .ant-menu-item-icon,
.luxcrm-hcm-nav__desktop-menu--shell.ant-menu-horizontal
  > .ant-menu-submenu
  > .ant-menu-submenu-title
  .ant-menu-item-icon {
  flex-shrink: 0;
  display: inline-flex !important;
  align-items: center;
  line-height: 1;
}

.luxcrm-hcm-nav__submenu-popup {
  z-index: 1050;
}

.luxcrm-hcm-nav__submenu-popup .ant-menu-item-selected {
  color: #ffffff !important;
  background-color: rgba(194, 94, 64, 0.28) !important;
}

.luxcrm-hcm-nav__submenu-popup .ant-menu {
  background: var(--redwood-shell-nav-bg, #2d2926) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.32);
  padding: 4px;
  min-width: 180px;
}

.luxcrm-hcm-nav__submenu-popup .ant-menu-item {
  color: rgba(255, 255, 255, 0.78) !important;
  border-radius: 6px;
  margin: 2px 0;
  width: 100%;
  min-height: 36px;
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  gap: 8px;
  padding-inline: 10px !important;
  line-height: 1.4 !important;
}

.luxcrm-hcm-nav__submenu-popup .ant-menu-item-icon {
  flex-shrink: 0;
  display: inline-flex !important;
  align-items: center;
  line-height: 1;
}

.luxcrm-hcm-nav__submenu-popup .ant-menu-title-content {
  flex: 1 1 auto;
  min-width: 0;
}

.luxcrm-hcm-nav__submenu-popup .ant-menu-item a {
  color: inherit !important;
  display: inline;
  width: auto;
}

.luxcrm-hcm-nav__submenu-popup .ant-menu-item:hover,
.luxcrm-hcm-nav__submenu-popup .ant-menu-item-active {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.08) !important;
}

.luxcrm-hcm-nav__submenu-popup .ant-menu-item-selected::after {
  display: none;
}

.luxcrm-hcm-nav--scrollable {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.luxcrm-hcm-nav--scrollable::-webkit-scrollbar {
  display: none;
}

.luxcrm-hcm-nav--scrollable .luxcrm-hcm-nav__desktop-menu--shell.ant-menu-horizontal {
  flex-wrap: nowrap;
  min-width: max-content;
}

.luxcrm-hcm-nav--scrollable .luxcrm-hcm-nav__desktop-menu--shell.ant-menu-horizontal > .ant-menu-item {
  padding-inline: 14px;
}

.luxcrm-hcm-nav__desktop-menu--compact.ant-menu-horizontal > .ant-menu-item,
.luxcrm-hcm-nav__desktop-menu--compact.ant-menu-horizontal > .ant-menu-submenu {
  flex-shrink: 0;
}

.luxcrm-hcm-nav__desktop-menu--compact.ant-menu-horizontal > .ant-menu-item {
  padding-inline: 12px;
  font-size: 13px;
}

.luxcrm-hcm-nav__desktop-menu--compact.ant-menu-horizontal
  > .ant-menu-submenu
  > .ant-menu-submenu-title {
  padding-inline: 12px;
  font-size: 13px;
}

.luxcrm-hcm-nav__desktop-menu--compact.ant-menu-horizontal
  > .ant-menu-item
  .ant-menu-item-icon,
.luxcrm-hcm-nav__desktop-menu--compact.ant-menu-horizontal
  > .ant-menu-submenu
  > .ant-menu-submenu-title
  .ant-menu-item-icon {
  font-size: 14px;
}

.luxcrm-hcm-nav--compact .ant-menu-overflow-item-rest .ant-menu-submenu-title {
  padding-inline: 12px;
}
/* stylelint-disable */
html,
body {
  width: 100%;
  height: 100%;
}
input::-ms-clear,
input::-ms-reveal {
  display: none;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  font-family: sans-serif;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -ms-overflow-style: scrollbar;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
  margin: 0;
}
[tabindex='-1']:focus {
  outline: none;
}
hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 0.5em;
  font-weight: 500;
}
p {
  margin-top: 0;
  margin-bottom: 1em;
}
abbr[title],
abbr[data-original-title] {
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted;
  border-bottom: 0;
  cursor: help;
}
address {
  margin-bottom: 1em;
  font-style: normal;
  line-height: inherit;
}
input[type='text'],
input[type='password'],
input[type='number'],
textarea {
  -webkit-appearance: none;
}
ol,
ul,
dl {
  margin-top: 0;
  margin-bottom: 1em;
}
ol ol,
ul ul,
ol ul,
ul ol {
  margin-bottom: 0;
}
dt {
  font-weight: 500;
}
dd {
  margin-bottom: 0.5em;
  margin-left: 0;
}
blockquote {
  margin: 0 0 1em;
}
dfn {
  font-style: italic;
}
b,
strong {
  font-weight: bolder;
}
small {
  font-size: 80%;
}
sub,
sup {
  position: relative;
  font-size: 75%;
  line-height: 0;
  vertical-align: baseline;
}
sub {
  bottom: -0.25em;
}
sup {
  top: -0.5em;
}
pre,
code,
kbd,
samp {
  font-size: 1em;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
}
pre {
  margin-top: 0;
  margin-bottom: 1em;
  overflow: auto;
}
figure {
  margin: 0 0 1em;
}
img {
  vertical-align: middle;
  border-style: none;
}
a,
area,
button,
[role='button'],
input:not([type='range']),
label,
select,
summary,
textarea {
  touch-action: manipulation;
}
table {
  border-collapse: collapse;
}
caption {
  padding-top: 0.75em;
  padding-bottom: 0.3em;
  text-align: left;
  caption-side: bottom;
}
input,
button,
select,
optgroup,
textarea {
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
}
button,
input {
  overflow: visible;
}
button,
select {
  text-transform: none;
}
button,
html [type='button'],
[type='reset'],
[type='submit'] {
  -webkit-appearance: button;
}
button::-moz-focus-inner,
[type='button']::-moz-focus-inner,
[type='reset']::-moz-focus-inner,
[type='submit']::-moz-focus-inner {
  padding: 0;
  border-style: none;
}
input[type='radio'],
input[type='checkbox'] {
  box-sizing: border-box;
  padding: 0;
}
input[type='date'],
input[type='time'],
input[type='datetime-local'],
input[type='month'] {
  -webkit-appearance: listbox;
}
textarea {
  overflow: auto;
  resize: vertical;
}
fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
legend {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-bottom: 0.5em;
  padding: 0;
  color: inherit;
  font-size: 1.5em;
  line-height: inherit;
  white-space: normal;
}
progress {
  vertical-align: baseline;
}
[type='number']::-webkit-inner-spin-button,
[type='number']::-webkit-outer-spin-button {
  height: auto;
}
[type='search'] {
  outline-offset: -2px;
  -webkit-appearance: none;
}
[type='search']::-webkit-search-cancel-button,
[type='search']::-webkit-search-decoration {
  -webkit-appearance: none;
}
::-webkit-file-upload-button {
  font: inherit;
  -webkit-appearance: button;
}
output {
  display: inline-block;
}
summary {
  display: list-item;
}
template {
  display: none;
}
[hidden] {
  display: none !important;
}
body {
  background-color: #f8f4f3;
}
/* Oracle Redwood Design System Stylesheet */

:root {
  --redwood-brand-dark: #23211f;
  --redwood-shell-header-bg: #2d2926;
  --redwood-shell-nav-bg: #2d2926;
  --redwood-shell-nav-accent: #c25e40;
  --redwood-canvas: #faf9f6;
  --redwood-container: #ffffff;
  --redwood-rust: #c25e40;
  --redwood-rust-hover: #a54f35;
  --redwood-rust-light: #fbeee9;
  --redwood-border: #e6e1da;
  --redwood-border-subtle: #f0ede8;
  --redwood-text-primary: #23211f;
  --redwood-text-secondary: #6c6660;
  --redwood-text-muted: #969089;
  
  /* Status Colors */
  --redwood-status-active-bg: #e1f0f7;
  --redwood-status-active-text: #1d5f7a;
  --redwood-status-completed-bg: #e2f4e9;
  --redwood-status-completed-text: #225a3d;
  --redwood-status-hold-bg: #fdf0dd;
  --redwood-status-hold-text: #8a5316;
  --redwood-status-draft-bg: #f0ede8;
  --redwood-status-draft-text: #5e5953;
  --redwood-status-cancelled-bg: #fde8e5;
  --redwood-status-cancelled-text: #8c281e;

  --redwood-table-header-bg: #f3eeec;
  --redwood-table-row-stripe: rgba(0, 0, 0, 0.02);
  --redwood-table-row-hover: rgba(194, 94, 64, 0.06);
  --redwood-table-row-selected: #fbeee9;
  --redwood-surface-inset: rgba(255, 255, 255, 0.65);
  --redwood-shadow-soft: rgba(35, 33, 31, 0.05);
  --redwood-shadow-medium: rgba(35, 33, 31, 0.08);
}

[data-theme="dark"] {
  --redwood-canvas: #141414;
  --redwood-container: #1f1f1f;
  --redwood-border: #424242;
  --redwood-border-subtle: #303030;
  --redwood-text-primary: rgba(255, 255, 255, 0.85);
  --redwood-text-secondary: rgba(255, 255, 255, 0.65);
  --redwood-text-muted: rgba(255, 255, 255, 0.45);
  --redwood-rust-light: rgba(194, 94, 64, 0.18);
  --redwood-status-active-bg: rgba(22, 119, 255, 0.16);
  --redwood-status-active-text: #69b1ff;
  --redwood-status-completed-bg: rgba(82, 196, 26, 0.14);
  --redwood-status-completed-text: #95de64;
  --redwood-status-hold-bg: rgba(250, 173, 20, 0.14);
  --redwood-status-hold-text: #ffc53d;
  --redwood-status-draft-bg: rgba(255, 255, 255, 0.06);
  --redwood-status-draft-text: rgba(255, 255, 255, 0.55);
  --redwood-status-cancelled-bg: rgba(255, 77, 79, 0.14);
  --redwood-status-cancelled-text: #ff7875;
  --redwood-table-header-bg: rgba(255, 255, 255, 0.04);
  --redwood-table-row-stripe: rgba(255, 255, 255, 0.03);
  --redwood-table-row-hover: rgba(194, 94, 64, 0.12);
  --redwood-table-row-selected: rgba(194, 94, 64, 0.18);
  --redwood-surface-inset: rgba(255, 255, 255, 0.06);
  --redwood-shadow-soft: rgba(0, 0, 0, 0.28);
  --redwood-shadow-medium: rgba(0, 0, 0, 0.42);
}

/* Page Canvas Layout */
.redwood-page {
  background-color: var(--redwood-canvas);
  min-height: 100vh;
  padding-bottom: 40px;
}

/* Modal overlay wrapper — theme tokens only, not a full-page canvas */
.redwood-overlay:not(.redwood-page) {
  min-height: 0;
  padding-bottom: 0;
  background-color: transparent;
}

/* Compact density — data-dense screens (pipeline, inventory, tables) */
.redwood-page-compact {
  padding-bottom: 16px;
}

.redwood-page-compact .redwood-banner {
  padding: 14px 20px 10px;
  margin-bottom: 12px;
  border-bottom-width: 2px;
}

.redwood-page-compact .redwood-banner::before,
.redwood-page-compact .redwood-banner::after {
  display: none;
}

.redwood-page-compact .redwood-banner-breadcrumbs {
  font-size: 11px;
  margin-bottom: 4px;
  gap: 6px;
}

.redwood-page-compact .redwood-banner-back {
  width: 30px;
  height: 30px;
}

.redwood-page-compact .redwood-banner-header {
  gap: 10px;
  align-items: center;
}

.redwood-page-compact .redwood-banner-title-area {
  gap: 2px;
}

.redwood-page-compact .redwood-banner-title {
  font-size: 20px;
}

.redwood-page-compact .redwood-banner-subtitle {
  font-size: 12px;
  line-height: 1.35;
}

.redwood-page-compact .redwood-banner-actions {
  gap: 8px;
}

.redwood-page-compact .redwood-banner-meta {
  margin-top: 10px;
  gap: 20px;
  padding-top: 8px;
}

.redwood-page-compact .redwood-banner-meta-label {
  font-size: 10px;
}

.redwood-page-compact .redwood-banner-meta-value {
  font-size: 13px;
}

.redwood-page-compact .redwood-stats-row {
  gap: 12px;
  margin-bottom: 16px;
}

.redwood-page-compact .redwood-stat-card {
  padding: 14px 16px;
  min-width: 160px;
}

.redwood-page-compact .redwood-stat-card-value {
  font-size: 26px;
}

.redwood-page-compact .redwood-card .ant-card-head {
  padding: 8px 16px !important;
  min-height: 40px;
}

.redwood-page-compact .redwood-card .ant-card-head-title {
  font-size: 14px;
}

.redwood-page-compact .redwood-card .ant-card-body {
  padding: 16px !important;
}

.redwood-page-compact .redwood-tabs.ant-tabs .ant-tabs-nav {
  margin-bottom: 12px !important;
}

.redwood-page-compact .redwood-tabs.ant-tabs .ant-tabs-tab {
  font-size: 13px;
  padding: 8px 12px !important;
}

.redwood-page-compact .redwood-tag {
  padding: 2px 8px !important;
  font-size: 10px !important;
}

/* Banner Component */
.redwood-banner {
  background-color: var(--redwood-brand-dark);
  color: #ffffff;
  padding: 32px 40px 24px 40px;
  border-bottom: 4px solid var(--redwood-rust);
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}

/* Decorative background shapes mimicking Oracle Redwood abstract art pattern */
.redwood-banner::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(194, 94, 64, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.redwood-banner::after {
  content: "";
  position: absolute;
  bottom: -30%;
  right: 15%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(212, 163, 115, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.redwood-banner-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #ffffff;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.redwood-banner-back:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.redwood-banner-breadcrumbs {
  font-size: 13px;
  color: #d1cbc4 !important;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.redwood-banner-breadcrumbs span {
  color: #d1cbc4 !important;
}
.redwood-banner-breadcrumbs a {
  color: #d1cbc4 !important;
  text-decoration: none;
  transition: color 0.2s;
}
.redwood-banner-breadcrumbs a:hover {
  color: #ffffff !important;
}

.redwood-banner-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

.redwood-banner-title-area {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.redwood-banner-title-wrapper {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.redwood-banner-title {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  margin: 0;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.redwood-banner-subtitle {
  font-size: 14px;
  color: #c7c0b7;
  margin: 0;
  font-weight: 400;
}

.redwood-banner-subtitle-link {
  color: #e8dcc8;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.redwood-banner-subtitle-link:hover {
  color: #ffffff;
}

.redwood-banner-actions {
  display: flex;
  gap: 6px;
  align-items: stretch;
  flex-wrap: wrap;
}

/* Banner actions — PexModal chrome on dark banner (white outlined controls) */
.redwood-banner .pex-modal__btn-chrome.ant-btn {
  min-width: 72px;
}

.redwood-page-compact .redwood-banner .pex-modal__btn-chrome.ant-btn {
  height: 32px;
  padding-inline: 14px;
  font-size: 12px;
  min-width: 64px;
}

.redwood-banner-actions__group {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  padding: 0;
  border-radius: 4px;
  background: var(--redwood-container, #fff);
  border: 1px solid var(--redwood-border, #c4bdb4);
  overflow: hidden;
}

.redwood-banner-actions__group .pex-modal__btn-chrome.ant-btn {
  height: 32px;
  min-width: 0;
  border-radius: 0;
  border: none;
  border-right: 1px solid var(--redwood-border, #c4bdb4);
  box-shadow: none;
}

.redwood-banner-actions__group .pex-modal__btn-chrome.ant-btn:not(:disabled):hover {
  background: var(--redwood-canvas, #f5f3f0);
}

.redwood-banner-actions__tooltip-wrap {
  display: inline-flex;
  align-items: stretch;
}

/* View switcher inside chrome toolbar — fixed brand accent (not theme-remapped --redwood-rust) */
.redwood-banner-actions__group .redwood-banner-segmented.ant-segmented {
  background: transparent !important;
  padding: 0;
  border-radius: 0;
}

.redwood-banner-actions__group .redwood-banner-segmented.ant-segmented .ant-segmented-item {
  border-radius: 0;
  transition: color 0.15s ease;
}

.redwood-banner-actions__group .redwood-banner-segmented.ant-segmented .ant-segmented-item:not(:last-child) {
  border-right: 1px solid var(--redwood-border, #c4bdb4);
}

.redwood-banner-actions__group .redwood-banner-segmented.ant-segmented .ant-segmented-thumb {
  background: #c25e40 !important;
  border-radius: 0 !important;
  box-shadow: none;
}

.redwood-banner-actions__group .redwood-banner-segmented.ant-segmented .ant-segmented-item-selected {
  background: #c25e40 !important;
  box-shadow: none;
}

.redwood-banner-actions__group .redwood-banner-segmented.ant-segmented .ant-segmented-item-label {
  min-height: 32px;
  line-height: 32px;
  padding-inline: 12px;
  font-size: 12px;
  border-radius: 0;
}

.redwood-banner-actions__group .redwood-banner-segmented.ant-segmented .ant-segmented-item-selected .ant-segmented-item-label {
  font-weight: 600;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.redwood-banner-actions__group .redwood-banner-segmented.ant-segmented .ant-segmented-item-selected .anticon {
  color: #ffffff !important;
}

.redwood-banner-actions__group .redwood-banner-segmented.ant-segmented .ant-segmented-item:not(.ant-segmented-item-selected) .ant-segmented-item-label,
.redwood-banner-actions__group .redwood-banner-segmented.ant-segmented .ant-segmented-item:not(.ant-segmented-item-selected) .anticon {
  color: #6c6660 !important;
  -webkit-text-fill-color: #6c6660 !important;
  font-weight: 400;
}

.redwood-banner-actions__group .redwood-banner-segmented.ant-segmented .ant-segmented-item:not(.ant-segmented-item-selected):hover .ant-segmented-item-label,
.redwood-banner-actions__group .redwood-banner-segmented.ant-segmented .ant-segmented-item:not(.ant-segmented-item-selected):hover .anticon {
  color: #23211f !important;
  -webkit-text-fill-color: #23211f !important;
  background: #f5f3f0;
}

/* Standalone Segmented on dark banner (not inside chrome group): force light-on-dark track */
.redwood-banner > .redwood-banner-actions .ant-segmented:not(.redwood-banner-segmented),
.redwood-banner-actions > .ant-segmented:not(.redwood-banner-segmented) {
  background: rgba(255, 255, 255, 0.12) !important;
}

.redwood-banner > .redwood-banner-actions .ant-segmented:not(.redwood-banner-segmented) .ant-segmented-item-selected,
.redwood-banner-actions > .ant-segmented:not(.redwood-banner-segmented) .ant-segmented-item-selected {
  background: #fff !important;
}

.redwood-banner > .redwood-banner-actions .ant-segmented:not(.redwood-banner-segmented) .ant-segmented-item-selected .ant-segmented-item-label,
.redwood-banner-actions > .ant-segmented:not(.redwood-banner-segmented) .ant-segmented-item-selected .ant-segmented-item-label {
  color: #23211f !important;
  -webkit-text-fill-color: #23211f !important;
}

.redwood-banner > .redwood-banner-actions .ant-segmented:not(.redwood-banner-segmented) .ant-segmented-item:not(.ant-segmented-item-selected) .ant-segmented-item-label,
.redwood-banner-actions > .ant-segmented:not(.redwood-banner-segmented) .ant-segmented-item:not(.ant-segmented-item-selected) .ant-segmented-item-label {
  color: rgba(255, 255, 255, 0.88) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.88) !important;
}

.redwood-banner > .redwood-banner-actions .ant-segmented:not(.redwood-banner-segmented) .ant-segmented-item:not(.ant-segmented-item-selected):hover .ant-segmented-item-label,
.redwood-banner-actions > .ant-segmented:not(.redwood-banner-segmented) .ant-segmented-item:not(.ant-segmented-item-selected):hover .ant-segmented-item-label {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.redwood-banner-meta {
  margin-top: 24px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(230, 225, 218, 0.15);
  padding-top: 16px;
}

.redwood-banner-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.redwood-banner-meta-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9c958e;
}
.redwood-banner-meta-value {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
}

/* Stats layout */
.redwood-stats-row {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.redwood-stat-card {
  background: var(--redwood-container);
  border: 1px solid var(--redwood-border);
  border-radius: 8px;
  padding: 20px 24px;
  flex: 1;
  min-width: 200px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(35, 33, 31, 0.04);
}

.redwood-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(35, 33, 31, 0.08);
  border-color: var(--redwood-rust);
}

.redwood-stat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.redwood-stat-card-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--redwood-text-secondary);
}

.redwood-stat-card-icon {
  font-size: 18px;
  color: var(--redwood-rust);
  background: var(--redwood-rust-light);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.redwood-stat-card-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--redwood-text-primary);
  line-height: 1;
}

.redwood-stat-card-desc {
  font-size: 12px;
  color: var(--redwood-text-muted);
  margin-top: 8px;
}

/* Cards & Containers */
.redwood-card {
  background: var(--redwood-container);
  border: 1px solid var(--redwood-border) !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 3px rgba(35, 33, 31, 0.04) !important;
  overflow: hidden;
}

.redwood-card .ant-card-head {
  border-bottom: 1px solid var(--redwood-border-subtle) !important;
  background-color: var(--redwood-canvas) !important;
  padding: 12px 24px !important;
}

.redwood-card .ant-card-head-title {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--redwood-text-primary);
}

.redwood-card .ant-card-body {
  padding: 24px !important;
}

/* Redwood Styled Tabs */
.redwood-tabs.ant-tabs .ant-tabs-nav {
  margin-bottom: 24px !important;
}

.redwood-tabs.ant-tabs .ant-tabs-nav::before {
  border-bottom: 1px solid var(--redwood-border-subtle) !important;
}

.redwood-tabs.ant-tabs .ant-tabs-tab {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  padding: 12px 16px !important;
  transition: all 0.2s !important;
}

.redwood-tabs.ant-tabs .ant-tabs-tab-active .ant-tabs-tab-btn {
  color: var(--redwood-rust) !important;
  font-weight: 600 !important;
}

.redwood-tabs.ant-tabs .ant-tabs-ink-bar {
  background: var(--redwood-rust) !important;
  height: 3px !important;
}

/* Custom Status Badges */
.redwood-tag {
  border: none !important;
  padding: 4px 10px !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
  font-size: 11px !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: inline-block;
  text-align: center;
}

.redwood-tag-active, .redwood-tag-running, .redwood-tag-processing {
  background-color: var(--redwood-status-active-bg) !important;
  color: var(--redwood-status-active-text) !important;
}

.redwood-tag-completed, .redwood-tag-success, .redwood-tag-done {
  background-color: var(--redwood-status-completed-bg) !important;
  color: var(--redwood-status-completed-text) !important;
}

.redwood-tag-on_hold, .redwood-tag-hold, .redwood-tag-warning, .redwood-tag-review {
  background-color: var(--redwood-status-hold-bg) !important;
  color: var(--redwood-status-hold-text) !important;
}

.redwood-tag-draft, .redwood-tag-default, .redwood-tag-todo, .redwood-tag-not_started {
  background-color: var(--redwood-status-draft-bg) !important;
  color: var(--redwood-status-draft-text) !important;
}

.redwood-tag-cancelled, .redwood-tag-error, .redwood-tag-failed {
  background-color: var(--redwood-status-cancelled-bg) !important;
  color: var(--redwood-status-cancelled-text) !important;
}

/* Redwood Primary Button styles (pages + portaled overlays/drawers) */
.redwood-page .ant-btn-primary:not(.ant-btn-dangerous),
.redwood-overlay .ant-btn-primary:not(.ant-btn-dangerous) {
  background-color: var(--redwood-rust) !important;
  border-color: var(--redwood-rust) !important;
  box-shadow: 0 2px 4px rgba(194, 94, 64, 0.15) !important;
  color: #ffffff !important;
}
.redwood-page .ant-btn-primary:not(.ant-btn-dangerous):hover,
.redwood-page .ant-btn-primary:not(.ant-btn-dangerous):focus,
.redwood-overlay .ant-btn-primary:not(.ant-btn-dangerous):hover,
.redwood-overlay .ant-btn-primary:not(.ant-btn-dangerous):focus {
  background-color: var(--redwood-rust-hover) !important;
  border-color: var(--redwood-rust-hover) !important;
}

/* Timeline Customizations */
.redwood-timeline .ant-timeline-item-tail {
  border-inline-start: 2px solid var(--redwood-border-subtle) !important;
}

.redwood-timeline .ant-timeline-item-head {
  background-color: var(--redwood-canvas) !important;
}

/* Table Customizations */
.redwood-table-container,
.pex-table-container {
  border: 1px solid var(--redwood-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--redwood-container);
}

.redwood-table-container .pex-table .ant-table,
.pex-table-container .pex-table .ant-table {
  background: transparent;
}

.redwood-table-container th.ant-table-cell,
.pex-table-container th.ant-table-cell,
.pex-table th.ant-table-cell {
  background-color: var(--redwood-table-header-bg, var(--redwood-canvas)) !important;
  color: var(--redwood-text-secondary) !important;
  font-weight: 600 !important;
  font-size: 11px !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--redwood-border) !important;
  padding: 10px 16px !important;
}

.redwood-table-container td.ant-table-cell,
.pex-table-container td.ant-table-cell,
.pex-table td.ant-table-cell {
  border-bottom: 1px solid var(--redwood-border-subtle) !important;
  font-size: 14px;
  color: var(--redwood-text-primary);
  padding: 12px 16px !important;
  background-color: var(--redwood-container);
}

.redwood-table-container tr:hover td.ant-table-cell,
.pex-table-container tr:hover td.ant-table-cell,
.pex-table .ant-table-tbody > tr.ant-table-row:hover > td {
  background-color: var(--redwood-table-row-hover, rgba(194, 94, 64, 0.06)) !important;
}

.pex-table.pex-table-striped .ant-table-tbody > tr.ant-table-row:nth-child(even) > td {
  background-color: var(--redwood-table-row-stripe, rgba(0, 0, 0, 0.02));
}

.pex-table.pex-table-striped .ant-table-tbody > tr.ant-table-row:nth-child(even):hover > td {
  background-color: var(--redwood-table-row-hover, rgba(194, 94, 64, 0.06)) !important;
}

.pex-table .ant-table-tbody > tr.ant-table-row-selected > td {
  background-color: var(--redwood-table-row-selected, var(--redwood-rust-light)) !important;
}

.pex-table th.pex-table-row-number-cell,
.pex-table td.pex-table-row-number-cell {
  color: var(--redwood-text-muted) !important;
  font-size: 12px !important;
  font-variant-numeric: tabular-nums;
  text-align: center !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
}

.pex-table .ant-table-pagination {
  margin: 12px 16px !important;
  padding-top: 4px;
  border-top: 1px solid var(--redwood-border-subtle);
}

.pex-table .ant-pagination-item-active {
  border-color: var(--redwood-rust) !important;
}

.pex-table .ant-pagination-item-active a {
  color: var(--redwood-rust) !important;
}

.redwood-page-compact .pex-table-container th.ant-table-cell,
.redwood-page-compact .pex-table th.ant-table-cell {
  padding: 8px 12px !important;
  font-size: 10px !important;
}

.redwood-page-compact .pex-table-container td.ant-table-cell,
.redwood-page-compact .pex-table td.ant-table-cell {
  padding: 8px 12px !important;
  font-size: 13px;
}

.redwood-page-compact .pex-table .ant-table-pagination {
  margin: 8px 12px !important;
}

/* List view layout */
.pex-list-view {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pex-list-toolbar {
  margin-bottom: 16px;
}

.pex-list-toolbar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pex-list-toolbar__row--mobile {
  flex-direction: column;
  align-items: stretch;
}

.pex-list-toolbar__leading,
.pex-list-toolbar__trailing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.pex-list-toolbar__trailing {
  margin-left: auto;
}

.pex-list-toolbar__row--mobile .pex-list-toolbar__trailing {
  margin-left: 0;
  justify-content: space-between;
}

.pex-list-toolbar__filters,
.pex-list-toolbar__actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pex-list-toolbar__count {
  font-size: 12px;
  white-space: nowrap;
}

.pex-list-toolbar .ant-input-affix-wrapper {
  border-radius: 6px;
  border-color: var(--redwood-border);
}

.pex-list-toolbar .ant-input-affix-wrapper:hover,
.pex-list-toolbar .ant-input-affix-wrapper-focused {
  border-color: var(--redwood-rust);
}

.pex-list-view-empty {
  border: 1px dashed var(--redwood-border);
  border-radius: 8px;
  background: var(--redwood-canvas);
  padding: 48px 24px;
}

.pex-list-view-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--redwood-border-subtle);
  overflow-x: auto;
}

.pex-list-scroll-sentinel {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 8px;
}

/* Micro-animations */
@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.redwood-animate-fade-in {
  animation: fadeInSlide 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Suggestion tags styling */
.redwood-sprint-suggestion-tag {
  cursor: pointer;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  border: 1px solid var(--redwood-border) !important;
  background-color: var(--redwood-canvas) !important;
  color: var(--redwood-text-secondary) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 13px !important;
  font-weight: 500 !important;
  margin: 0 !important;
}

.redwood-sprint-suggestion-tag:hover {
  border-color: var(--redwood-rust) !important;
  color: var(--redwood-rust) !important;
  background-color: var(--redwood-rust-light) !important;
  transform: translateY(-1px);
}

/* Redwood Form Control & Layout System */
.pex-form-layout {
  width: 100%;
}

.pex-form-item {
  margin-bottom: 20px !important;
}

.pex-form-item .ant-form-item-label {
  padding: 0 0 6px 0 !important;
}

.pex-form-item .ant-form-item-label > label {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--redwood-text-secondary) !important;
  height: auto !important;
}

/* Horizontal Label (labelEdge: start) */
.pex-form-item.label-edge-start {
  display: flex !important;
  align-items: flex-start !important;
}

.pex-form-item.label-edge-start .ant-form-item-label {
  padding: 8px 12px 0 0 !important;
  text-align: right !important;
}

.pex-form-item .pex-label-wrapper {
  display: inline-flex;
  align-items: center;
}

.pex-form-item .pex-help-icon {
  color: var(--redwood-text-muted) !important;
  transition: color 0.2s ease;
  font-size: 14px;
}

.pex-form-item .pex-help-icon:hover {
  color: var(--redwood-rust) !important;
}

/* Redefine Ant Design input border styles to match Redwood canvas */
.pex-form-item .ant-input,
.pex-form-item .ant-input-number,
.pex-form-item .ant-select-selector,
.pex-form-item .ant-picker,
.pex-form-item .ant-input-affix-wrapper {
  border-color: var(--redwood-border) !important;
  background-color: var(--redwood-container) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.pex-form-item .ant-input:hover,
.pex-form-item .ant-input-number:hover,
.pex-form-item .ant-select-selector:hover,
.pex-form-item .ant-picker:hover,
.pex-form-item .ant-input-affix-wrapper:hover {
  border-color: var(--redwood-rust) !important;
}

.pex-form-item .ant-input:focus,
.pex-form-item .ant-input-focused,
.pex-form-item .ant-input-number-focused,
.pex-form-item .ant-select-focused .ant-select-selector,
.pex-form-item .ant-picker-focused,
.pex-form-item .ant-input-affix-wrapper-focused {
  border-color: var(--redwood-rust) !important;
  box-shadow: 0 0 0 2px var(--redwood-rust-light) !important;
}

/* Checkbox / Switch alignment in form item */
.pex-checkbox-item .ant-form-item-control-input,
.pex-switch-item .ant-form-item-control-input {
  min-height: auto !important;
  display: flex;
  align-items: center;
}


@keyframes lux-icon-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.lux-icon-spin {
  animation: lux-icon-spin 1s linear infinite;
}
/**
 * LuxCRM toast: full-width rectangular cards at bottom-right.
 * Ant Design Message uses placement "top" + absolute notices; overrides below
 * shrink the holder and use normal document flow so long text is fully visible.
 */

.ant-message.ant-message-top {
  top: auto !important;
  bottom: 24px;
  left: auto !important;
  right: 24px;
  transform: none !important;
  margin: 0;
  width: min(420px, calc(100vw - 48px));
  min-width: 300px;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  pointer-events: none;
}

.ant-message.ant-message-top.ant-message-list {
  max-height: none !important;
  padding: 0 !important;
  overflow: visible !important;
}

.ant-message.ant-message-top .ant-message-list-content {
  display: flex !important;
  flex-direction: column-reverse;
  align-items: stretch;
  gap: 12px;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  pointer-events: none;
}

.ant-message.ant-message-top .ant-message-notice {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  inset: auto !important;
  transform: none !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  margin: 0;
  clip-path: none !important;
  pointer-events: auto;
  border-radius: 4px;
  box-sizing: border-box;
}

.ant-message.ant-message-top .ant-message-notice-wrapper {
  width: 100%;
  align-items: flex-start;
}

.ant-message.ant-message-top .ant-message-notice-title {
  flex: 1;
  min-width: 0;
  word-break: break-word;
  white-space: normal;
  line-height: 1.5;
}

/* Avoid motion translate clipping a partially visible card */
.ant-message.ant-message-top .ant-message-notice.ant-message-fade-appear,
.ant-message.ant-message-top .ant-message-notice.ant-message-fade-enter,
.ant-message.ant-message-top .ant-message-notice.ant-message-fade-leave,
.ant-message.ant-message-top .ant-message-notice.ant-message-fade-appear-prepare,
.ant-message.ant-message-top .ant-message-notice.ant-message-fade-enter-prepare {
  transform: none !important;
}
