/* Functional layout bindings for the final prototype. No theme selectors outside the dedicated page. */
html:has(body.jcc-office-page) {
  margin-top: 0 !important;
  color-scheme: light;
}
body.jcc-office-page {
  margin: 0;
  padding: 0;
  background: #f4edf1;
}
body.jcc-office-page > #jcc-office {
  min-height: 100dvh;
}
#jcc-office.jcc-op {
  display: block;
  padding: 0;
  margin: 0;
  max-width: none;
  min-height: 715px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 14px;
  --op-red: #a30000;
  --op-ink: #1a1218;
  --op-muted: #5c5466;
  --op-line: #e9dfe5;
  color-scheme: light;
}
#jcc-office .op-shell {
  isolation: isolate;
}
.jcc-office-page #jcc-office .op-layout {
  min-height: 100dvh;
}
#jcc-office .op-sidebar {
  position: relative;
  top: auto;
  align-self: stretch;
  min-height: 0;
  border-radius: 0;
}
#jcc-office .op-main {
  display: block;
  gap: 0;
}
#jcc-office .op-top {
  border-left: 1px solid white;
}
#jcc-office .op-top > .op-avatar {
  width: 43px;
  height: 43px;
  font-size: 12px;
  display: grid;
}
#jcc-office .op-top > .op-session-identity {
  display: block;
  overflow-wrap: anywhere;
}
#jcc-office .op-top .op-session-identity strong {
  font-size: 18px;
}
#jcc-office .op-top .op-session-identity span {
  font-size: 11px;
}
#jcc-office .op-top .op-session-identity small {
  font-size: 11px;
}
#jcc-office .op-top .op-badge {
  border: 0;
}
#jcc-office .op-sidebar-foot {
  padding: 0 7px;
  font-size: 12px;
}
#jcc-office .op-person strong {
  font-size: 12px;
}
#jcc-office .op-nav button {
  transform: none;
  min-height: 43px;
  line-height: 1.5;
}
#jcc-office .op-nav button[aria-current="page"] {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 13px;
  box-shadow:
    0 4px 14px rgba(85, 40, 65, 0.09),
    inset 0 1px 0 white;
  color: #a30000;
}
#jcc-office .op-nav button:not([aria-current="page"]) {
  border: 1px solid transparent;
}
#jcc-office .op-brand-custom img {
  max-width: 100%;
  object-fit: contain;
  height: auto;
  max-height: 110px;
}
#jcc-office .op-logo-placeholder {
  font-family: "DM Serif Display", Georgia, serif;
  color: #a30000;
}
#jcc-office .op-button {
  font-size: 13px;
  line-height: 1.5;
  min-height: 42px;
}
#jcc-office .op-button:not(.op-secondary) {
  background: linear-gradient(180deg, #b81000, #a30000);
  color: white;
  border-color: transparent;
  box-shadow:
    inset 0 1px 0 #fff3,
    0 2px 8px #a300002e;
}
#jcc-office .op-button.op-secondary {
  background: rgba(255, 255, 255, 0.63);
  color: #a30000;
  border: 1px solid #dbb7b8;
}
#jcc-office .op-searchbox {
  z-index: 3;
}
#jcc-office .op-searchfield input {
  outline: none;
  box-shadow: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 15px;
  font-weight: 400;
  padding: 13px 0;
  min-height: 50px;
}
#jcc-office .op-searchfield:focus-within {
  outline: 2px solid #a30000;
  outline-offset: 3px;
}
#jcc-office .op-searchhint {
  color: var(--so-sub);
  font-size: 12px;
  min-height: 18px;
}
#jcc-office #op-index-status {
  margin: -10px 3px 18px;
}
#jcc-office #op-suggestions:empty {
  display: none;
}
#jcc-office #op-suggestions:not(:empty) {
  position: absolute;
  top: 58px;
  left: 0;
  right: 0;
  z-index: 5;
  padding: 8px;
  border: 1px solid #e9dfe5;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 14px 36px #10233c24;
  max-height: 360px;
  overflow-y: auto;
}
#jcc-office #op-suggestions button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
  padding: 12px;
  text-align: left;
  background: transparent;
  color: var(--so-text);
  border: 0;
  border-radius: 8px;
}
#jcc-office #op-suggestions button:hover,
#jcc-office #op-suggestions button:focus-visible {
  background: #faf6f8;
}
#jcc-office #op-suggestions button strong {
  font-size: 14px;
}
#jcc-office #op-suggestions button span {
  font-size: 12px;
}
#jcc-office .op-member {
  display: block;
  border-left: 1px solid var(--so-glass-edge);
}
#jcc-office .op-member > .op-member-head {
  display: flex;
}
#jcc-office .op-member strong {
  font-size: inherit;
}
#jcc-office .op-member h2 {
  font-size: 24px;
}
#jcc-office .op-member .op-avatar {
  font-size: 15px;
}
#jcc-office .op-member-head .op-actions {
  margin-left: auto;
}
#jcc-office .op-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 16px;
}
#jcc-office .op-card > h3 {
  margin-bottom: 14px;
}
#jcc-office .op-card > p {
  margin-bottom: 14px;
}
#jcc-office .op-details > div {
  gap: 16px;
  padding: 11px 14px;
}
#jcc-office .op-heading {
  margin: 0 0 18px;
}
#jcc-office .op-heading h2 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 24px;
  font-weight: 400;
}
#jcc-office .op-empty {
  margin: 0;
  padding: 35px 18px;
}
#jcc-office .op-empty h2 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 25px;
  font-weight: 400;
}
#jcc-office .op-empty p {
  margin: 0;
}
#jcc-office .op-empty-icon {
  margin: 0;
  font-size: 36px;
}
#jcc-office .op-list-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.8fr auto;
  gap: 15px;
}
#jcc-office .op-notice {
  font-size: 13px;
  padding: 12px 14px;
  margin: 0 0 18px;
}
#jcc-office .op-inbox {
  display: block;
}
#jcc-office .op-inbox-row {
  grid-template-columns: 49px minmax(0, 1fr) auto;
  min-height: 110px;
  background: transparent;
  box-shadow: none;
}
#jcc-office .op-inbox-row .op-inbox-name {
  font-weight: 500;
}
#jcc-office .op-inbox-row .op-inbox-tags small {
  white-space: normal;
}
#jcc-office .op-inbox-head .op-filters {
  margin: 0;
}
#jcc-office .op-inbox-head .op-filters button {
  font-size: 12px;
  min-height: 36px;
  padding: 7px 11px;
}
#jcc-office .op-inbox-summary {
  font-size: 11px;
}
#jcc-office .op-inbox-row .op-inbox-side {
  justify-content: space-between;
}
#jcc-office .op-inbox-row .op-inbox-time {
  font-size: 11px;
}
#jcc-office .op-inbox-state {
  line-height: 1.4;
}
#jcc-office .op-pagination {
  margin: 16px 0;
}
#jcc-office dialog.op-dialog {
  position: fixed;
  inset: 0;
  padding: 0;
  margin: auto;
  width: min(720px, calc(100% - 32px));
  max-width: 720px;
  max-height: calc(100dvh - 40px);
  color: var(--so-text);
  overflow-y: auto;
}
#jcc-office dialog::backdrop {
  background: rgba(56, 34, 51, 0.28);
  backdrop-filter: blur(5px);
}
#jcc-office .op-dialog-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
#jcc-office .op-dialog-head h2 {
  font-size: 25px;
  margin: 0;
}
#jcc-office #op-close {
  width: 35px;
  min-width: 35px;
  height: 35px;
  min-height: 35px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
  border: 0;
}
#jcc-office #op-dialog-body {
  padding: 21px 23px;
}
#jcc-office #op-dialog-body p {
  margin-bottom: 14px;
}
#jcc-office #op-dialog-body h3 {
  margin: 18px 0 12px;
}
#jcc-office #op-dialog-error:not(:empty) {
  margin: 0 23px 20px;
}
#jcc-office .op-field {
  margin-bottom: 16px;
}
#jcc-office .op-check input {
  min-width: 18px;
}
#jcc-office .op-footer {
  margin-top: 24px;
}
#jcc-office.op-private {
  visibility: hidden;
}
#jcc-office.op-private::after {
  visibility: visible;
}
.jcc-op.op-gate {
  display: block;
  max-width: 600px;
  min-height: 0;
  margin: 10vh auto;
  padding: 32px;
  font-family: "DM Sans", system-ui, sans-serif;
}
.jcc-op.op-gate h2 {
  font-family: "DM Serif Display", Georgia, serif;
}
@media (max-width: 850px) {
  #jcc-office .op-grid {
    grid-template-columns: 1fr;
  }
  #jcc-office .op-list-row {
    grid-template-columns: 1fr 1fr;
  }
  #jcc-office .op-inbox-row {
    grid-template-columns: 43px minmax(0, 1fr) auto;
  }
}
@media (max-width: 650px) {
  #jcc-office .op-layout {
    min-height: 100dvh;
  }
  #jcc-office .op-sidebar {
    min-height: 0;
  }
  #jcc-office .op-nav {
    display: flex;
    flex-wrap: wrap;
  }
  #jcc-office .op-main {
    padding: 20px 16px;
  }
  #jcc-office .op-grid {
    grid-template-columns: 1fr;
  }
  #jcc-office .op-member-head .op-actions {
    margin-left: 0;
    width: 100%;
  }
  #jcc-office .op-member-head > div:not(.op-actions) {
    flex: 1;
    min-width: 0;
  }
  #jcc-office .op-searchfield input {
    font-size: 16px;
  }
  #jcc-office .op-inbox-row {
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }
  #jcc-office .op-inbox-row > time {
    grid-column: auto;
  }
  #jcc-office .op-inbox-title h2 {
    font-size: 19px;
  }
  #jcc-office .op-inbox-head .op-filters button {
    min-height: 42px;
    padding: 7px 9px;
    font-size: 11px;
  }
  #jcc-office .op-details > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  #jcc-office #op-dialog-body {
    padding: 17px;
  }
  #jcc-office .op-dialog-head {
    padding: 17px;
  }
  #jcc-office .op-footer {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #jcc-office *,
  #jcc-office *::before,
  #jcc-office *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Keep legacy functional CSS from changing the prototype's compact mobile rows. */
#jcc-office .op-nav {
  grid-template-columns: 1fr;
}
#jcc-office .op-sidebar {
  margin-bottom: 0;
}
#jcc-office .op-inbox-row > .op-inbox-side {
  display: flex;
}
#jcc-office .op-inbox-row .op-inbox-time {
  position: static;
  max-width: none;
}
#jcc-office .op-inbox-text {
  padding-top: 0;
}
@media (max-width: 650px) {
  #jcc-office .op-top .op-button {
    max-width: none;
    width: 100%;
  }
  #jcc-office .op-inbox-row .op-inbox-name {
    font-size: 13px;
  }
}

#jcc-office .op-order-row {
  grid-template-columns:
    minmax(0, 2.2fr) minmax(95px, 0.7fr) minmax(100px, 0.7fr)
    auto;
}
#jcc-office .op-order-identity {
  display: grid;
  min-width: 0;
  gap: 5px;
}
#jcc-office .op-order-item {
  display: block;
  font-weight: 600;
  font-size: 14px;
  overflow-wrap: anywhere;
}
#jcc-office .op-order-context {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
}
@media (max-width: 850px) {
  #jcc-office .op-order-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  #jcc-office .op-order-row .op-order-identity {
    grid-column: 1 / -1;
  }
}

#jcc-office .op-profile-section {
  border-top: 1px solid rgba(95, 80, 100, 0.18);
  padding: 16px 0;
}
#jcc-office .op-profile-section summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 12px;
}
#jcc-office .op-profile-section summary small {
  font-weight: 400;
  margin-left: 10px;
}
#jcc-office .op-review-list {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}
#jcc-office .op-review-change {
  border: 1px solid rgba(95, 80, 100, 0.18);
  border-radius: 14px;
  padding: 16px;
  display: grid;
  gap: 8px;
  overflow-wrap: anywhere;
}
#jcc-office .op-review-change div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
}
#jcc-office .op-field input[readonly] {
  opacity: 0.75;
  background: rgba(100, 90, 110, 0.05);
}
