/* The independent live slice uses the established preview shell and control scale. */
.live-relationship-state {
  margin-bottom: 12px;
}
.drawer .live-relationship-checks {
  margin: 16px 0;
  border: 1px solid #dde5f0;
  border-radius: 6px;
  overflow: hidden;
}
.drawer .live-relationship-checks > div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 16px;
  border-bottom: 0;
}
.live-relationship-checks > div + div {
  border-top: 1px solid #e7ecf3;
}
.drawer .live-relationship-checks dt,
.drawer .live-relationship-checks dd {
  font-size: 14px;
  line-height: 21px;
  font-weight: 400;
  margin: 0;
}
.drawer .live-relationship-checks dt {
  color: #526780;
}
.drawer .live-relationship-checks dd {
  color: #258366;
  white-space: nowrap;
}
.drawer .live-relationship-checks .needs-check {
  color: #a06d25;
}
.live-environment {
  font-size: 13px;
  color: #718198;
  margin-left: 16px;
  white-space: nowrap;
}
#work-page {
  max-width: 1540px;
  margin: auto;
  padding: 26px 28px 40px;
  min-height: calc(100vh - 74px);
}
#enterprise-tabs {
  overflow: auto;
}
.tabs {
  gap: 8px;
}
.tabs .org-role-tools {
  margin-left: auto;
}
.rail .profile {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 8px;
  color: #536780;
}
.rail .profile small {
  font-size: 13px;
}
.work-heading h1 {
  font-size: 20px;
  font-weight: 500;
}
.work-heading-main {
  flex-wrap: wrap;
}
.work-heading .work-tools {
  flex-wrap: wrap;
}
.work-company {
  font-size: 14px;
  color: #718198;
}
.btn,
.work-table .btn {
  height: 36px;
  font-size: 14px;
  font-weight: 400;
  border-radius: 6px;
  line-height: 20px;
}
.btn.primary,
.btn.primary:hover {
  color: white;
}
.btn:disabled {
  opacity: 0.55;
  cursor: wait;
}
.work-table {
  font-size: 14px;
}
.work-table th {
  font-size: 14px;
  font-weight: 400;
  color: #63748c;
}
.work-table td {
  color: #405875;
}
#work-page .work-table td {
  padding: 10px 16px;
  height: 53px;
}
#work-page .work-table td .btn {
  height: 32px;
}
.work-table th:last-child {
  text-align: right;
}
.work-badge {
  font-size: 13px;
  font-weight: 400;
}
.work-toolbar h2,
.org-inset h2,
.live-adjustments h2 {
  font-size: 16px;
  font-weight: 500;
}
.org-subtitle,
.live-caption {
  font-size: 14px;
  color: #718198;
}
.live-caption {
  margin: 14px 0;
}
.live-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid #e0e7f1;
  border-radius: 8px;
  background: #fff;
  margin-bottom: 20px;
  padding: 18px 0;
}
.live-summary > div {
  padding: 0 22px;
  border-right: 1px solid #e4eaf3;
}
.live-summary > div:last-child {
  border: 0;
}
.live-summary span {
  display: block;
  font-size: 13px;
  color: #718198;
  margin-bottom: 5px;
}
.live-summary strong {
  font-size: 22px;
  font-weight: 500;
  color: #2b466b;
}
.live-summary small {
  font-size: 13px;
  font-weight: 400;
  color: #718198;
}
.live-loading {
  padding: 40px;
  color: #718198;
  text-align: center;
  font-size: 14px;
}
.live-alert {
  border: 1px solid #e7cfa9;
  background: #fff8ed;
  border-radius: 7px;
  padding: 13px 16px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  color: #946124;
  margin-bottom: 18px;
  font-size: 14px;
}
.org-confirm::backdrop {
  background: #21355055;
}
.org-record-overlay .drawer {
  width: 640px;
  height: auto;
}
#live-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 16px;
  color: #596f8e;
}
#live-form .form-row {
  gap: 14px;
}
#live-form input:not([type='checkbox']):not([type='radio']):not([type='hidden']),
#live-form textarea {
  width: 100%;
  font-size: 14px;
  line-height: 22px;
  border: 1px solid #d8e1ec;
  border-radius: 6px;
  padding: 8px 11px;
  color: #2e4768;
  background: #fff;
}
#live-form input:not([type='checkbox']):not([type='radio']):not([type='hidden']) {
  height: 38px;
}
#live-form input[type='checkbox'],
#live-form input[type='radio'] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #3267e9;
  padding: 0;
  flex: none;
}
#live-form input[type='number']::-webkit-inner-spin-button {
  appearance: none;
}
#live-form fieldset {
  padding: 16px 0 0;
  margin: 0 0 16px;
  border: 0;
  border-top: 1px solid #e5eaf2;
}
#live-form legend {
  font-size: 14px;
  font-weight: 500;
  padding: 0 8px 0 0;
  color: #425a7a;
}
#live-form .org-options label,
#live-form .org-check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
}
#live-form .live-unit-options {
  margin-top: 13px;
}
#live-form .org-select {
  font-size: 14px;
  height: 38px;
  width: 100%;
}
#live-form textarea {
  min-height: 80px;
  resize: vertical;
}
.drawer #drawer-title {
  font-size: 16px;
  font-weight: 500;
}
.drawer .eyebrow {
  font-size: 13px;
}
.drawer dl > div {
  font-size: 14px;
}
.drawer .btn {
  font-size: 14px;
  font-weight: 400;
}
.drawer .org-form-error {
  font-size: 14px;
  line-height: 1.5;
  color: #b04444;
  margin: 12px 0 0;
}
.live-detail-section {
  border-top: 1px solid #e1e7ef;
  padding-top: 18px;
  margin-top: 20px;
}
.live-detail-section h3 {
  font-size: 14px;
  margin: 0;
  font-weight: 500;
}
.live-detail-section .title-line {
  justify-content: space-between;
  gap: 12px;
}
.live-detail-section .work-muted {
  font-size: 13px;
  line-height: 1.6;
}
.live-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
}
.live-file > div {
  display: flex;
  gap: 10px;
  align-items: center;
}
.live-file img {
  width: 24px;
  height: 24px;
}
.live-file span {
  font-size: 14px;
  color: #425a7a;
}
.live-file small {
  display: block;
  font-size: 13px;
  color: #718198;
  margin-top: 3px;
}
.org-trace > div {
  grid-template-columns: 7px 90px minmax(0, 1fr);
}
.org-trace time {
  grid-column: 3;
  font-size: 13px;
}
.org-trace strong {
  font-size: 14px;
  font-weight: 500;
}
.org-trace small {
  display: block;
  font-size: 13px;
  color: #718198;
  margin-top: 4px;
}
.live-confirm-copy {
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: #526a88 !important;
}
.live-member-name {
  font-size: 16px !important;
  font-weight: 500;
  margin: 0 0 18px !important;
  color: #425a7a !important;
}
.live-note {
  font-size: 14px;
  color: #526a88;
}
.live-note > span {
  font-size: 13px;
  color: #718198;
}
.live-note p {
  margin: 5px 0 0;
  font-size: 14px;
}
.live-adjustments {
  padding-top: 18px;
  border-top: 1px solid #e1e7f0;
}
.live-adjustments h2 {
  margin: 0 20px 15px;
}
.org-explainer .org-three {
  margin-top: 0;
}
.popover {
  z-index: 40;
  min-width: 195px;
}
.popover > button {
  font-size: 14px;
  padding: 10px 13px;
  text-align: left;
  width: 100%;
  white-space: nowrap;
}
.popover[hidden],
#overlay[hidden] {
  display: none !important;
}
button[hidden] {
  display: none !important;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #3267e9;
  outline-offset: 2px;
}
@media (max-width: 1200px) {
  .live-environment {
    display: none;
  }
  #work-page {
    padding: 22px;
  }
  .work-heading {
    align-items: flex-start;
  }
  .work-company {
    display: block;
    border-left: 0;
    padding: 0;
  }
  .work-heading-main {
    gap: 8px;
  }
  .org-three {
    gap: 15px;
  }
}
.live-capability-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid #edf0f5;
}
#live-form .live-capability-row > label {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 9px;
  margin: 0;
  color: #425a7a;
}
.live-capability-trigger {
  min-width: 200px;
  justify-content: space-between;
  display: flex;
}
.live-capability-menu {
  right: 0;
  left: auto;
  padding: 14px;
  background: #fff;
  min-width: 245px;
}
#live-form .live-capability-menu label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 9px 0;
  font-size: 14px;
  cursor: pointer;
}
.live-capability-menu > div {
  border-top: 1px solid #e0e6ef;
  margin-top: 7px;
  padding-top: 7px;
}
#live-form .live-capability-menu input:disabled + span {
  color: #9ca9ba;
}
.live-creator {
  font-size: 13px !important;
  color: #718198 !important;
}

.drawer .live-relationship-caption {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 20px;
  color: #718198;
}

.live-capability-enterprise {
  font-size: 13px;
  color: #718198;
  padding: 8px 12px;
}
#work-page.live-payroll-page {
  max-width: none;
  padding: 20px 24px 32px;
}
.live-payroll-capabilities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}
.live-payroll-capabilities .live-capability-row {
  border: 0;
  min-height: 40px;
}

/* Institution collaboration shares the original organization page and form controls. */
.institution-id {
  display: block;
  margin-top: 4px;
  color: #718198;
  font-size: 13px;
  line-height: 20px;
  overflow-wrap: anywhere;
}
.institution-members {
  margin-top: 20px;
}
.institution-members .work-toolbar {
  flex-wrap: wrap;
}
.institution-members .work-muted {
  line-height: 1.5;
}
.institution-panel .work-table td:nth-child(2) {
  min-width: 260px;
  max-width: 540px;
  white-space: normal;
  line-height: 1.5;
}
.institution-panel .work-table td:first-child {
  white-space: normal;
  min-width: 180px;
  max-width: 300px;
}

.scope-module { border-bottom:1px solid #e5e9ed; padding:10px 0; }
.scope-module summary {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  min-height:36px; padding:8px 12px; border:1px solid #dfe4eb; border-radius:5px;
  background:#fff; color:#344054; font:inherit; font-weight:500; cursor:pointer;
  list-style:none;
}
.scope-module summary::-webkit-details-marker { display:none; }
.scope-module summary::marker { content:''; }
.scope-module summary::after {
  content:''; width:7px; height:7px; margin:0 3px 3px 0;
  border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor;
  transform:rotate(45deg); flex-shrink:0;
}
.scope-module[open] summary { background:#f5f8ff; border-color:#cddbf3; color:#245bdb; }
.scope-module[open] summary::after { transform:rotate(225deg); margin-bottom:-3px; }
.scope-module summary:hover { background:#f7f9fc; }
.scope-module summary:focus-visible { outline:2px solid #3b70df; outline-offset:2px; }
.scope-module fieldset { border:0; padding:4px 0; margin:0; }
.scope-module .live-capability-row { min-height:44px; }
.live-operations-page { padding:0 !important; overflow:auto; }
.live-operations-page .cpp-enterprise-desk { min-height:calc(100vh - 58px); }

.scope-module legend.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

#work-page.live-operations-page {
  max-width: none;
  margin: 0;
  width: 100%;
}

#work-page.live-accounting-page {
  max-width: none;
  margin: 0;
  width: 100%;
  padding: 0;
  overflow: auto;
}

.live-tax-invoice-page {padding:20px 24px;max-width:none;}
.live-tax-invoice-page #tax-invoice-root {width:100%;min-width:0;}
