/* Adapter for frozen Messenger V1 geometry; business controllers are not loaded. */
body { font: 14px/1.5 Arial, Helvetica, sans-serif; letter-spacing: 0; }
[hidden] { display: none !important; }
body:has(#workspace:not([hidden])) > .staff-entry-main { display: none; }
#workspace { width: 100%; height: 100dvh; background: #fafbfc; --line: #e4e8eb; --muted: #63717b; --green: #0d7049; --surface: #fff; --surface-soft: #f5f7f8; --green-soft: #eaf5ef; }
#workspace button { width: auto; margin: 0; } #workspace h1 { font-size: 24px; }
.staff-topbar { display: flex; justify-content: space-between; align-items: center; background: white; border-bottom: 1px solid #e4e8eb; }
.staff-brand { display: flex; align-items: center; }
.staff-brand span,.profile-shortcut span { display: flex; flex-direction: column; }
.staff-brand small,.profile-shortcut small { color: #63717b; font-size: 12px; }
.profile-shortcut { display: flex; align-items: center; gap: 10px; background: transparent; border: 0; text-align: left; padding: 0; min-width: 0; max-width: 40%; }
.profile-shortcut > span:not(.avatar) { min-width: 0; }.profile-shortcut strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.profile-shortcut .avatar { flex: 0 0 36px; }
.avatar { width: 36px; height: 36px; border-radius: 6px; background: #eaf5ef; color: #0d7049; align-items: center; justify-content: center; font-weight: 600; }
#crmApp { height: calc(100dvh - 64px); }
.crm-v1-work { background: white; }
.crm-nav__item { display: flex; align-items: center; width: 100%; background: transparent; text-align: left; color: #3d454b; }
.crm-nav__item .icon { flex: 0 0 20px; }
.nav-label-mobile { display: none; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-button { width: 36px; min-width: 36px; height: 36px; min-height: 36px; display: inline-grid; place-items: center; padding: 6px; background: white; border: 1px solid #e4e8eb; }
.rotated { transform: rotate(180deg); }
.sidebar-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding: 16px; border-top: 1px solid #e4e8eb; color: #63717b; font-size: 12px; }
#admin-main { flex: 1; overflow-y: auto; min-height: 0; padding: 24px 32px; }
.view-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.view-heading p { font-size: 11px; color: #63717b; margin: 0 0 4px; }
.view-heading h1 { font-size: 24px; line-height: 32px; margin: 0; }
#admin-notice { color: #63717b; min-height: 21px; margin: 8px 0 16px; }
#admin-notice.is-error { color: #a12631; }
#admin-content { min-width: 0; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 24px 0 12px; }
h2 { font-size: 16px; margin: 0; } h3 { font-size: 14px; margin: 0 0 8px; }
.summary-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-top: 1px solid #e4e8eb; border-bottom: 1px solid #e4e8eb; margin-top: 20px; }
.summary-item { padding: 20px 16px; border-right: 1px solid #e4e8eb; }
.summary-item:last-child { border: 0; }.summary-item strong { display: block; font-size: 28px; line-height: 36px; }.summary-item span { color: #63717b; font-size: 12px; }
.data-list { border-top: 1px solid #e4e8eb; }
.staff-row { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr) 140px 36px; gap: 16px; align-items: center; min-height: 72px; padding: 14px 0; border-bottom: 1px solid #e4e8eb; }
.identity { display: flex; gap: 12px; align-items: center; min-width: 0; }.identity div { min-width: 0; }.identity strong { display: block; }.identity small { color: #63717b; overflow-wrap: anywhere; }.identity .avatar { flex: 0 0 36px; }
.status { color: #255c85; font-size: 12px; }.status.ACTIVE { color: #0d7049; }.status.BLOCKED,.status.DEACTIVATED { color: #a12631; }
.toolbar { display: flex; gap: 8px; margin: 20px 0 12px; }.toolbar input { flex: 1; min-width: 0; }
input,select { font: 16px Arial,sans-serif; min-height: 44px; border: 1px solid #e4e8eb; border-radius: 6px; padding: 8px 12px; background: white; color: #17191b; width: 100%; }
.primary-button { background: #0d7049; color: white; padding: 10px 16px; border-color: #0d7049; }.text-button { padding: 8px 12px; background: white; min-height: 40px; }
#workspace .primary-button { background: #0d7049; color: white; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
#workspace .primary-button > .icon { display: inline-block; }
.audit-row { display: grid; grid-template-columns: minmax(0,1fr) 140px 140px; gap: 16px; padding: 14px 0; border-bottom: 1px solid #e4e8eb; }.audit-row small { display: block; color: #63717b; font-size: 12px; }.audit-row strong { overflow-wrap: anywhere; }
.audit-row > span { overflow-wrap: anywhere; }.audit-detail { grid-column: 1 / -1; min-width: 0; }
.technical-details { margin-top: 12px; color: #63717b; font-size: 12px; overflow-wrap: anywhere; }.technical-details summary { cursor: pointer; min-height: 32px; display: list-item; }.technical-details .definition { margin: 8px 0; }.technical-details dd { color: #17191b; }
.role-copy { overflow-wrap: anywhere; }
.definition { display: grid; grid-template-columns: minmax(120px,1fr) minmax(0,2fr); gap: 0 24px; margin: 20px 0; }.definition dt,.definition dd { border-bottom: 1px solid #e4e8eb; margin: 0; padding: 12px 0; overflow-wrap: anywhere; }.definition dt { color: #63717b; }
.permission-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }.permission-list li { background: #f5f7f8; padding: 4px 8px; font-size: 12px; border-radius: 4px; }
.security-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.unavailable { color: #63717b; padding: 16px 0; border-bottom: 1px solid #e4e8eb; }
.unavailable strong,.unavailable span { display: block; }.unavailable strong { color: #17191b; font-weight: 400; }.unavailable span { font-size: 12px; }
dialog { width: min(480px,calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 24px; border: 1px solid #e4e8eb; border-radius: 8px; overflow-y: auto; color: #17191b; } dialog::backdrop { background: #17191b55; }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
#action-form,.field { display: flex; flex-direction: column; gap: 8px; }#action-form { gap: 16px; }.field { font-size: 13px; }#action-fields { display: grid; gap: 16px; }
#reauth-fields { display: grid; gap: 16px; }#reauth-username { color: #63717b; background: #f5f7f8; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }.empty { padding: 24px 0; color: #63717b; }
:is(button,input,select):focus-visible { outline: 2px solid #0d7049; outline-offset: 3px; }
@media(min-width:901px) { #workspace #crmApp { display: grid; grid-template-columns: 320px minmax(0,1fr); height: calc(100dvh - 64px); } }
@media(max-width:900px) {
 body.mobile-v1-shell { position: static; overflow: auto; height: auto; }
 #workspace .staff-topbar { display: flex; height: 60px; padding: 8px 16px; } .staff-brand { gap: 8px; }.staff-brand img { width: 70px; height: 36px; }.staff-brand span { display: none; }.profile-shortcut { min-height: 44px; font-size: 12px; max-width: calc(100% - 86px); }
 #workspace #crmApp { display: flex; flex-direction: column; height: calc(100dvh - 60px); }
 #workspace .crm-v1-sidebar { order: 2; flex: 0 0 auto; border: 0; }.sidebar-footer { display: none; }
 #workspace .crm-nav { display: flex; gap: 0; border-top: 1px solid #e4e8eb; padding: 4px 0 calc(4px + env(safe-area-inset-bottom)); background: white; }
 #workspace .crm-nav__item { flex: 1; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; min-height: 56px; border: 0; font-size: 10px; padding: 6px 2px; border-radius: 6px; }
 .nav-label-desktop { display: none; }.nav-label-mobile { display: inline; }
 #workspace .crm-nav__item .nav-label,#workspace .crm-nav__item .nav-label-mobile { white-space: nowrap; font-size: 9px; }
 .crm-nav__item[aria-current=page] { color: #0d7049; background: #eaf5ef; }#workspace .crm-v1-work { flex: 1; min-height: 0; display: flex; flex-direction: column; }
 #workspace .staff-calendar__toolbar { height: 40px; min-height: 40px; font-size: 12px; padding: 0; }
 #workspace .staff-calendar__week { height: 60px; padding: 0 8px; grid-template-columns: repeat(7,minmax(0,1fr)); }
 #workspace .staff-calendar__day { height: 60px; min-height: 60px; }.staff-calendar__day strong { font-size: 14px; }
 #admin-main { padding: 16px; }.view-heading h1 { font-size: 22px; }.summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.summary-item { padding: 12px; }.summary-item:nth-child(2) { border: 0; }.summary-item:nth-child(-n+2) { border-bottom: 1px solid #e4e8eb; }.summary-item strong { font-size: 24px; }
 .staff-row { grid-template-columns: minmax(0,1fr) 36px; gap: 8px; }.staff-row .role-copy,.staff-row .status { grid-column: 1; font-size: 12px; padding-left: 48px; }.staff-row .icon-button { grid-column: 2; grid-row: 1 / span 3; }.audit-row { grid-template-columns: minmax(0,1fr); gap: 4px; }.definition { grid-template-columns: 1fr; }.definition dt { border: 0; padding-bottom: 0; }.definition dd { padding-top: 4px; }.toolbar { flex-wrap: wrap; }.toolbar input { flex-basis: 100%; }#workspace .toolbar .primary-button { width: 100%; }
}
