/* ATOSY ERP 350A — View/Edit uses the existing Object Create visual system. */
html body #atosy-object-create-v347a [hidden] { display:none !important; }
html body #atosy-object-create-v347a[data-object-mode="view"] .atosy-subject-detail-v5-edit-field :is(input,select,textarea):disabled {
  opacity:1 !important; color:#e6f1ff !important; -webkit-text-fill-color:#e6f1ff !important;
  background:#16365a !important; border-color:rgba(138,185,228,.28) !important;
}
html body #atosy-object-create-v347a[data-object-mode="view"] .atosy-object-create-category-trigger-v348b:disabled {
  opacity:1 !important; cursor:default !important;
}
html body #atosy-object-create-v347a .atosy-object-view-edit-switch-v350a {
  background:linear-gradient(135deg,#2678c5,#14599d) !important;
  border-color:rgba(126,189,255,.52) !important; color:#fff !important;
}
html body .object-lookup-table tbody tr[data-object-id] {cursor:pointer;}
html body .object-lookup-table tbody tr[data-object-id]:hover td {background:rgba(111,172,242,.13) !important;}
html body .object-lookup-table tbody tr[data-object-id]:focus-visible {outline:2px solid #80bbff;outline-offset:-2px;}
html body #atosy-object-create-v347a .atosy-subject-detail-v5-actions button[hidden] {display:none !important;}

/* 354A — Object View/Edit summary header parity */
html body #atosy-object-create-v347a .atosy-object-hero-copy-v354a {
  min-width:0 !important; flex:1 1 auto !important;
}
html body #atosy-object-create-v347a .atosy-object-hero-label-v354a {
  margin:0 0 6px !important; color:#a7cbee !important;
  font-size:11px !important; font-weight:800 !important;
  letter-spacing:1px !important; text-transform:uppercase !important;
}
html body #atosy-object-create-v347a .atosy-subject-detail-v5-profile > .atosy-object-hero-copy-v354a {
  min-width:0 !important;
}
html body #atosy-object-create-v347a .atosy-subject-detail-v5-name {
  word-break:break-word !important;
}
html body #atosy-object-create-v347a .atosy-subject-detail-v5-meta {
  flex-wrap:wrap !important;
}
html body #atosy-object-create-v347a .atosy-object-summary-chips-v354a .atosy-subject-detail-v5-chip {
  max-width:100% !important; white-space:nowrap !important;
  overflow:hidden !important; text-overflow:ellipsis !important;
}
/* 353A — Object View/Edit: single-line cancel label, equal action button heights */
html body #atosy-object-create-v347a .atosy-subject-detail-v5-actions button[data-object-cancel],
html body #atosy-object-create-v347a .atosy-subject-detail-v5-actions button.atosy-object-create-save-v348a {
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  padding: 0 14px !important;
  line-height: 1 !important;
}

/* 358A — Object header action bar UX fix */
html body #atosy-object-create-v347a .atosy-subject-detail-v5-topline {
  align-items: flex-start !important;
}
html body #atosy-object-create-v347a .atosy-subject-detail-v5-actions {
  display: flex !important;
  flex: 0 0 auto !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: nowrap !important;
}
html body #atosy-object-create-v347a .atosy-subject-detail-v5-actions > button {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  white-space: nowrap !important;
}
html body #atosy-object-create-v347a .atosy-subject-detail-v5-actions .atosy-subject-detail-v5-cancel-btn {
  min-width: 88px !important;
  padding-left: 14px !important;
  padding-right: 14px !important;
}
html body #atosy-object-create-v347a .atosy-subject-detail-v5-actions .atosy-object-view-edit-switch-v350a {
  min-width: 118px !important;
  padding-left: 14px !important;
  padding-right: 14px !important;
}
html body #atosy-object-create-v347a .atosy-subject-detail-v5-actions .atosy-object-create-save-v348a {
  min-width: 154px !important;
  padding-left: 18px !important;
  padding-right: 18px !important;
}
html body #atosy-object-create-v347a .atosy-subject-detail-v5-actions .atosy-subject-detail-v5-close {
  width: 37px !important;
  min-width: 37px !important;
  max-width: 37px !important;
  padding: 0 !important;
  margin-left: 0 !important;
}

/* 359A — Object drawer location / size parity with Subject */
/* Keep Create/View/Edit at the same right-side anchor as Subject Profile. */
html body #atosy-object-create-v347a.atosy-subject-detail-v5-overlay {
  position: fixed !important;
  inset: 0 !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: stretch !important;
  padding: 128px 18px 18px !important;
  box-sizing: border-box !important;
}
html body #atosy-object-create-v347a .atosy-subject-detail-v5-drawer {
  box-sizing: border-box !important;
  flex: 0 1 auto !important;
  width: min(760px, calc(100vw - 110px)) !important;
  max-width: min(760px, calc(100vw - 110px)) !important;
  min-width: 0 !important;
  height: 100% !important;
  max-height: none !important;
  min-height: 0 !important;
  border-radius: 28px !important;
}
@media (max-width: 880px) {
  html body #atosy-object-create-v347a.atosy-subject-detail-v5-overlay {
    padding: 8px !important;
  }
  html body #atosy-object-create-v347a .atosy-subject-detail-v5-drawer {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    border-radius: 22px !important;
  }
}

/* 360A — High contrast picker and enabled save validation */
html body .atosy-object-create-picker-search-v348b input,
html body .atosy-object-create-picker-search-v348b input:focus {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff !important;
  opacity: 1 !important;
  background-color: #122f5a !important;
  font-size: 14px !important;
  font-weight: 650 !important;
}
html body .atosy-object-create-picker-search-v348b input::placeholder {
  color: #c4d7f0 !important;
  -webkit-text-fill-color: #c4d7f0 !important;
  opacity: 1 !important;
}
html body .atosy-object-create-picker-search-v348b input::selection {
  background: #3b82f6 !important;
  color: #fff !important;
}
html body #atosy-object-create-v347a .atosy-object-create-error-v348a:not([hidden]) {
  display:block !important;
  color:#fff4f4 !important;
  background:#631e2c !important;
  border:1px solid #ff7186 !important;
  font-weight:700 !important;
}
