/* CRM 2.74.60: shared owner for cabinet popup geometry and mobile actions.
   Keep the existing CRM colours/components; never shrink text to fit a window. */
html body {--er-ui-surface:#fff;--er-ui-text:#17263c;--er-ui-muted:#52617b;--er-ui-border:#d7e1ee;}
html[data-er-theme="dark"] body {--er-ui-surface:#142238;--er-ui-text:#e5edf9;--er-ui-muted:#b6c5d9;--er-ui-border:#526681;}
html body :is([data-er-drawer="backdrop"],[data-er-modal="actions"]) {font:14px/1.45 system-ui,"Segoe UI",sans-serif;}
html body :is(.er-drawer,.er-modal,.er-tg-modal) {font-family:system-ui,"Segoe UI",sans-serif!important;font-size:14px!important;line-height:1.45!important;}
html body .er-toast {font:14px/1.45 system-ui,"Segoe UI",sans-serif;color:var(--er-ui-text)!important;background:var(--er-ui-surface)!important;}
html body .er-toast :is(.er-toast-msg,.er-toast-title,.er-toast-content) {color:var(--er-ui-text)!important;}
html body dialog.er-tg-modal {max-width:calc(100vw - 24px)!important;max-height:calc(100vh - 24px)!important;max-height:calc(100dvh - 24px)!important;padding:16px!important;background:var(--er-ui-surface)!important;color:var(--er-ui-text)!important;overscroll-behavior:contain;scroll-padding-block:70px 90px;}
html body dialog.er-tg-modal :is(h3,label,.er-hint) {color:var(--er-ui-text)!important;}
html body dialog.er-tg-modal :is(button,input,select) {box-sizing:border-box!important;min-height:44px!important;font-size:14px!important;}
html body dialog.er-tg-modal input {color:var(--er-ui-text)!important;background:var(--er-ui-surface)!important;border:1px solid var(--er-ui-border)!important;padding:8px!important;}
html body dialog.er-tg-modal .er-ui-dialog-head {display:flex;align-items:flex-start;justify-content:space-between;gap:12px;}
html body dialog.er-tg-modal .er-ui-dialog-head h3 {margin:0 0 12px;font-size:20px;}
html body dialog.er-tg-modal .er-ui-dialog-actions {position:sticky;bottom:-16px;display:flex;flex-wrap:wrap;gap:8px;z-index:2;padding:12px 0;background:var(--er-ui-surface);border-top:1px solid var(--er-ui-border);}
html body dialog.er-tg-modal .er-btn-ghost {color:var(--er-ui-text)!important;}
html body .er-drawer-backdrop[data-er-drawer="backdrop"] .er-drawer :is(.er-btn,.er-drawer-head button),
html body .er-modal-backdrop[data-er-modal="actions"] .er-modal .er-btn {min-height:44px!important;height:auto!important;font-size:14px!important;line-height:1.35!important;}
html body :is([data-er-drawer="backdrop"],[data-er-modal="actions"]) *,
html body :is([data-er-drawer="backdrop"],[data-er-modal="actions"]) *::before,
html body :is([data-er-drawer="backdrop"],[data-er-modal="actions"]) *::after {box-sizing:border-box;}
html[data-er-theme] body .er-drawer-backdrop[data-er-drawer="backdrop"] .er-drawer :is(label,h2,h3,h4,summary,.er-emp-card-title,.er-section-title,.er-emp-ecp-title,.er-k,.er-v,.er-record-modal-tab) {color:var(--er-ui-text)!important;}
html[data-er-theme] body .er-drawer-backdrop[data-er-drawer="backdrop"] .er-drawer :is(.er-hint,.er-muted,.er-emp-card-sub,.er-section-sub,.er-emp-ecp-count) {color:var(--er-ui-muted)!important;}
html[data-er-theme] body .er-drawer-backdrop[data-er-drawer="backdrop"] .er-drawer :is(.er-btn-ghost,.er-btn-secondary,.er-drawer-head button) {color:var(--er-ui-text)!important;}
html body [data-er-drawer="backdrop"] .er-drawer-head button {background:var(--er-ui-surface)!important;border:1px solid var(--er-ui-border)!important;border-radius:10px;padding:8px 12px!important;}
html body [data-er-drawer="backdrop"] :is(input,select,textarea,button) {font-family:inherit!important;}
html[data-er-theme="dark"] body .er-drawer-backdrop[data-er-drawer="backdrop"] .er-drawer .er-field.er-empty .er-hint {color:#fca5a5!important;}
html body [data-er-drawer="backdrop"] :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]),select) {box-sizing:border-box!important;min-width:0!important;max-width:100%!important;height:44px!important;min-height:44px!important;padding:8px 12px!important;}
html body [data-er-drawer="backdrop"] textarea {box-sizing:border-box!important;min-width:0!important;max-width:100%!important;}
html body [data-er-drawer="backdrop"],
html body [data-er-modal="actions"] {
  position:fixed!important;inset:0!important;box-sizing:border-box!important;
  padding:16px!important;align-items:center!important;justify-content:center!important;
  overflow:hidden!important;max-height:none!important;
}
html body [data-er-drawer="backdrop"] > .er-drawer,
html body [data-er-modal="actions"] > .er-modal {
  position:relative!important;inset:auto!important;margin:0!important;transform:none!important;
  display:flex!important;flex-direction:column!important;min-width:0!important;min-height:0!important;
  max-width:100%!important;max-height:calc(100vh - 32px)!important;max-height:calc(100dvh - 32px)!important;
  height:auto!important;overflow:hidden!important;background:var(--er-ui-surface)!important;color:var(--er-ui-text)!important;
}
html body [data-er-drawer="backdrop"] .er-drawer-head,
html body [data-er-modal="actions"] .er-modal-head {
  zoom:1!important;transform:none!important;width:auto!important;flex:0 0 auto!important;
  padding:12px 16px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;
}
html body [data-er-drawer="backdrop"] .er-drawer-title,
html body [data-er-modal="actions"] .er-modal-title {font-size:18px!important;line-height:1.3!important;color:var(--er-ui-text)!important;min-width:0;overflow-wrap:anywhere;}
html body [data-er-drawer="backdrop"] .er-drawer-body,
html body [data-er-modal="actions"] .er-modal-body {
  zoom:1!important;transform:none!important;width:auto!important;max-height:none!important;
  flex:1 1 auto!important;min-height:0!important;overflow:auto!important;overscroll-behavior:contain;
  padding:12px 16px!important;scroll-padding-block:16px 90px;background:var(--er-ui-surface)!important;color:var(--er-ui-text)!important;
}
html body [data-er-drawer="backdrop"] :is(.er-drawer-body > .er-actions,form > .er-actions,.er-emp-actions,.er-agent-editor-footer,.er-record-modal-actions),
html body [data-er-modal="actions"] .er-actions {
  position:sticky!important;bottom:0!important;z-index:5!important;display:flex!important;flex-wrap:wrap!important;
  width:100%!important;max-width:none!important;box-sizing:border-box!important;gap:8px!important;
  margin:12px 0 0!important;padding:12px 0!important;background:var(--er-ui-surface)!important;border-top:1px solid var(--er-ui-border)!important;
}
html body .er-ui-fold {grid-column:1/-1;min-width:0;margin:8px 0;padding:0!important;border:1px solid var(--er-ui-border)!important;border-radius:12px;background:var(--er-ui-surface)!important;}
html body .er-ui-fold > summary {cursor:pointer;min-height:44px;box-sizing:border-box;padding:12px 14px;color:var(--er-ui-text);font-weight:750;}
html body .er-ui-fold > summary :is(.er-section-head,.er-emp-card-head) {display:inline-block;margin:0!important;}
html body .er-ui-fold > .er-ui-fold-body {padding:0 14px 14px;}
html body .er-ui-fold .er-ui-fold {margin-inline:0;}
html body .er-app[data-er-role] .er-field > label.er-ui-required-label::after,
html body .er-drawer .er-field > label.er-ui-required-label::after {content:" *"!important;color:inherit!important;}
/* Required does not mean invalid before the first interaction. */
html body .er-app[data-er-role] .er-record-create-form .er-field.er-critical:not(.er-field-touched):not(.is-filled),
html body .er-app[data-er-role] .er-record-create-form .er-field-required:not(.er-field-touched):not(.is-filled) {background:var(--er-ui-surface)!important;border-color:var(--er-ui-border)!important;}
html body .er-app[data-er-role] .er-record-create-form .er-field.er-critical:not(.er-field-touched):not(.is-filled) :is(input,select,textarea),
html body .er-app[data-er-role] .er-record-create-form .er-field-required:not(.er-field-touched):not(.is-filled) :is(input,select,textarea) {
  background:var(--er-ui-surface)!important;color:var(--er-ui-text)!important;border-color:var(--er-ui-border)!important;box-shadow:none!important;
}
html body .er-app[data-er-role] .er-record-create-form .er-field:not(.er-field-touched):not(.is-filled) > label {color:var(--er-ui-text)!important;}
@media(max-width:1024px){
  html body .er-app[data-er-role] :is(.er-employee-shift-layout,.er-employee-shift-head,.er-employee-shift-intro,.er-employee-shift-content,.er-employee-shift-panel) {width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;}
  html body .er-app[data-er-role] :is(.er-employee-shift-head,.er-employee-shift-content) {display:grid!important;grid-template-columns:minmax(0,1fr)!important;}
  html body .er-app[data-er-role] .er-employee-shift-layout :is(.er-shift-month,.er-shift-month-grid,.er-shift-month-weekdays) {width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;}
  html body .er-app[data-er-role] .er-employee-shift-layout :is(.er-shift-month-grid,.er-shift-month-weekdays) {display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;}
  html body .er-app[data-er-role] .er-employee-shift-layout .er-shift-month-cell {min-width:0!important;overflow-wrap:anywhere;}
  html body .er-app[data-er-role] .er-audit-head-actions {display:flex!important;flex-wrap:wrap!important;flex:1 1 auto!important;min-width:0!important;gap:8px!important;}
  html body .er-app[data-er-role] .er-audit-head-actions > * {max-width:100%!important;min-width:0!important;box-sizing:border-box;white-space:normal!important;overflow-wrap:anywhere;}
  html body .er-app[data-er-role] :is(.er-audit-ranges,.er-audit-tabs) {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;width:100%!important;overflow:visible!important;}
  html body .er-app[data-er-role] :is(.er-audit-ranges,.er-audit-tabs) button {width:100%!important;min-width:0!important;min-height:44px!important;white-space:normal!important;}
  html body .er-app[data-er-role] :is(.er-employee-shift-actions,.er-shift-week-actions) {display:flex!important;flex-wrap:wrap!important;min-width:0!important;width:100%!important;gap:8px!important;}
  html body .er-app[data-er-role] :is(.er-employee-shift-actions,.er-shift-week-actions) > button {flex:1 1 140px!important;min-width:0!important;max-width:100%!important;width:auto!important;min-height:44px!important;white-space:normal!important;}
  html body :is(.er-app,.er-drawer,.er-modal,.er-tg-dialog) :is(button.er-btn,a.er-btn,button.er-btn-sm,.er-record-modal-tab,.er-pager button) {min-height:44px!important;line-height:1.3!important;white-space:normal!important;}
  html body :is(.er-drawer,.er-modal,.er-tg-dialog) :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=color]),select) {min-height:44px!important;font-size:16px!important;}
  html body .er-app[data-er-role] .er-record-create-form :is(.er-field,.er-card) {padding:10px!important;border-radius:12px!important;}
  html body .er-app[data-er-role] .er-record-create-form .er-grid {gap:10px!important;}
}
@media(max-width:700px){
  html body dialog.er-tg-modal input {font-size:16px!important;}
  html body dialog.er-tg-modal .er-ui-dialog-actions > button {flex:1 1 140px;width:auto;max-width:100%;}
  html body [data-er-drawer="backdrop"],html body [data-er-modal="actions"] {padding:0!important;}
  html body [data-er-drawer="backdrop"] > .er-drawer,
  html body [data-er-modal="actions"] > .er-modal {width:100%!important;max-width:100%!important;max-height:100vh!important;max-height:100dvh!important;border-radius:0!important;}
  html body [data-er-drawer="backdrop"] .er-drawer-head,html body [data-er-modal="actions"] .er-modal-head {flex-direction:row!important;}
  html body [data-er-drawer="backdrop"] .er-drawer-head button {width:auto!important;min-height:44px!important;flex:0 0 auto!important;}
  html body [data-er-drawer="backdrop"] :is(.er-drawer-body > .er-actions,form > .er-actions,.er-emp-actions,.er-agent-editor-footer,.er-record-modal-actions) > :is(button,a.er-btn) {flex:1 1 140px!important;width:auto!important;max-width:none!important;min-height:44px!important;margin:0!important;}
  html body .er-app[data-er-role] .er-audit-head-actions > button {flex:1 1 140px!important;min-height:44px!important;}
  html body .er-app[data-er-role] .er-audit-export-period {flex-basis:100%!important;}
}










/* 2.74.62 — one control scale and spacing rhythm across all cabinet roles.
   Cards, calendar cells, switches and navigation remain separate components. */
html body {--er-control-h:40px;--er-control-radius:10px;--er-control-gap:8px;--er-section-gap:16px;}
html body .er-app[data-er-role],html body .er-drawer,html body .er-modal,html body dialog.er-tg-modal {font-family:system-ui,"Segoe UI",sans-serif!important;}
html body .er-app[data-er-role] .er-view[data-er-view] .er-ui-action,
html body .er-app[data-er-role] .er-topbar .er-ui-action,
html body .er-drawer-backdrop[data-er-drawer="backdrop"] .er-drawer .er-ui-action,
html body .er-modal-backdrop[data-er-modal="actions"] .er-modal .er-ui-action,
html body dialog.er-tg-modal .er-ui-action,
html body .er-mobile-filter-sheet .er-ui-action,
html body .er-task-modal .er-ui-action {
  appearance:none!important;box-sizing:border-box!important;display:inline-flex!important;
  align-items:center!important;justify-content:center!important;vertical-align:middle!important;
  height:auto!important;min-height:var(--er-control-h)!important;max-width:100%!important;min-width:0!important;
  padding:9px 14px!important;margin:0!important;border-width:1px!important;border-style:solid!important;
  border-radius:var(--er-control-radius)!important;font:600 14px/20px system-ui,"Segoe UI",sans-serif!important;
  letter-spacing:normal!important;text-transform:none!important;text-decoration:none!important;
  text-align:center!important;gap:6px!important;box-shadow:none!important;white-space:normal!important;
  transform:none!important;cursor:pointer;
}
html body .er-app[data-er-role] .er-view[data-er-view] .er-ui-action::before,
html body .er-app[data-er-role] .er-view[data-er-view] .er-ui-action::after {border-radius:inherit;}
html body .er-app[data-er-role] .er-view[data-er-view] .er-ui-action[disabled],html body .er-drawer .er-ui-action[disabled] {cursor:default;opacity:.55!important;}
html body .er-app[data-er-role] .er-view[data-er-view] .er-ui-action:focus-visible,
html body .er-drawer .er-ui-action:focus-visible,html body dialog.er-tg-modal .er-ui-action:focus-visible {outline:3px solid #60a5fa!important;outline-offset:2px!important;}
html body .er-app[data-er-role] .er-view[data-er-view] .er-ui-icon,
html body .er-app[data-er-role] .er-topbar .er-ui-icon,
html body .er-drawer .er-ui-icon {width:var(--er-control-h)!important;height:var(--er-control-h)!important;min-width:var(--er-control-h)!important;padding:0!important;flex:0 0 var(--er-control-h)!important;}
html body .er-app[data-er-role] .er-view[data-er-view] .er-ui-action-row,
html body .er-app[data-er-role] .er-topbar .er-ui-action-row,
html body .er-drawer .er-ui-action-row,
html body dialog.er-tg-modal .er-ui-action-row {gap:var(--er-control-gap)!important;align-items:center!important;flex-wrap:wrap!important;}
html body .er-app[data-er-role] .er-view[data-er-view] :is(.er-toolbar-row,.er-tg-actions,.er-actions,.er-actions-inline,.er-pager,.er-filters-right,.er-docs-home-topline) {gap:8px!important;}
html body .er-app[data-er-role] .er-view[data-er-view] :is(.er-block-head,.er-tg-heading,.er-confirmed-agents-head__title) {gap:12px!important;align-items:center!important;}
html body .er-app[data-er-role] .er-view[data-er-view] :is(.er-grid,.er-filters-left,.er-confirmed-agents-filters) {gap:12px!important;}
html body .er-app[data-er-role] .er-view[data-er-view] > .er-card + .er-card {margin-top:16px!important;}
html body .er-app[data-er-role] .er-view[data-er-view] .er-field {margin-bottom:0!important;}
html body .er-app[data-er-role] .er-view[data-er-view] .er-field > label {display:block!important;margin:0 0 6px!important;font-size:13px!important;line-height:18px!important;letter-spacing:normal!important;text-transform:none!important;font-weight:600!important;}
html body .er-app[data-er-role] .er-view[data-er-view] :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]),select) {
  box-sizing:border-box!important;min-height:40px!important;height:40px!important;padding:8px 12px!important;
  border-radius:10px!important;font:400 14px/20px system-ui,"Segoe UI",sans-serif!important;
}
html body .er-app[data-er-role] .er-view[data-er-view] .er-record-create-form .er-field {background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;}
html body .er-app[data-er-role] .er-view[data-er-view] .er-record-create-form :is(.er-field-topline,.er-field-attn,.er-field-required) {background:transparent!important;}
html body .er-app[data-er-role] .er-view[data-er-view] .er-record-create-form .er-record-create-topline-spacer:empty {display:none!important;}

/* Compact, readable application header: identity left, equal notification cards right. */
html body .er-app[data-er-role] .er-topbar {display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;padding:10px 16px!important;min-height:76px!important;height:auto!important;}
html body .er-app[data-er-role] .er-topbar-left {flex:1 1 240px!important;min-width:160px!important;}
html body .er-app[data-er-role] .er-topbar-title {min-width:0!important;}
html body .er-app[data-er-role] .er-topbar-h {font:650 20px/26px system-ui,"Segoe UI",sans-serif!important;letter-spacing:-.25px!important;margin:0!important;}
html body .er-app[data-er-role] .er-login-identity {display:block!important;width:100%!important;max-width:none!important;margin:3px 0 0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;font:400 12px/18px system-ui,"Segoe UI",sans-serif!important;color:var(--er-ui-muted)!important;white-space:normal!important;overflow:visible!important;}
html body .er-app[data-er-role] .er-login-identity b {font-weight:600!important;}
html body .er-app[data-er-role] .er-topbar-sub {display:none!important;}
html body .er-app[data-er-role] .er-topbar-actions {display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-end!important;flex:0 1 auto!important;flex-wrap:nowrap!important;gap:8px!important;min-width:0!important;max-width:none!important;margin:0!important;}
html body .er-app[data-er-role] .er-topbar :is(.er-top-tasks,.er-top-news) {display:flex!important;align-items:center!important;width:190px!important;min-width:0!important;max-width:190px!important;margin:0!important;flex:0 1 190px!important;}
html body .er-app[data-er-role] .er-topbar :is(.er-top-tasks-card,.er-top-news-card) {box-sizing:border-box!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:center!important;width:100%!important;min-width:0!important;max-width:100%!important;height:52px!important;min-height:52px!important;padding:6px 10px!important;margin:0!important;border:1px solid var(--er-ui-border)!important;border-radius:10px!important;background:var(--er-ui-surface)!important;color:var(--er-ui-text)!important;box-shadow:none!important;text-align:left!important;gap:2px!important;cursor:pointer;}
html body .er-app[data-er-role] .er-topbar :is(.er-top-tasks-title,.er-top-news-title) {display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;margin:0!important;color:var(--er-ui-muted)!important;font:600 12px/16px system-ui,"Segoe UI",sans-serif!important;letter-spacing:normal!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
html body .er-app[data-er-role] .er-topbar :is(.er-top-tasks-message,.er-top-news-message) {display:block!important;min-width:0!important;margin:0!important;color:var(--er-ui-text)!important;font:500 13px/18px system-ui,"Segoe UI",sans-serif!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;-webkit-line-clamp:unset!important;}
html body .er-app[data-er-role] .er-topbar .er-top-tasks-meta {display:none!important;}
html body .er-app[data-er-role] .er-topbar .er-top-tasks-badge {display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;min-width:22px!important;height:20px!important;padding:0 6px!important;border-radius:6px!important;background:#dbeafe!important;color:#1d4ed8!important;font:600 12px/20px system-ui!important;}
html body .er-app[data-er-role] .er-topbar :is(.er-top-tasks-card,.er-top-news-card).is-empty {display:none!important;}
html body .er-app[data-er-role] .er-topbar :is(.er-top-tasks,.er-top-news):has(> .is-empty) {display:none!important;}
html body .er-app[data-er-role] .er-topbar .er-top-leader-card {box-sizing:border-box!important;min-width:0!important;width:160px!important;max-width:160px!important;height:52px!important;min-height:52px!important;padding:6px 10px!important;border-radius:10px!important;font-size:12px!important;box-shadow:none!important;}
html body .er-app[data-er-role] .er-topbar .er-employee-branch-cash {min-width:150px!important;max-width:190px!important;padding:6px 10px!important;border-radius:10px!important;box-shadow:none!important;}
html body .er-app[data-er-role] .er-topbar .er-employee-branch-cash__amount {font-size:18px!important;line-height:22px!important;}
html body .er-app[data-er-role] .er-topbar .er-employee-branch-cash :is(.er-employee-branch-cash__branch,.er-employee-branch-cash__sub,.er-employee-branch-cash__meta) {display:none!important;}
html body .er-app[data-er-role] .er-view[data-er-view] .er-block-head {text-align:left!important;justify-content:space-between!important;}
html body .er-app[data-er-role] .er-view[data-er-view] .er-block-head :is(h2,h3,h4,p) {text-align:left!important;margin-inline:0!important;}
@media(max-width:1180px){
  html body .er-app[data-er-role] .er-topbar {flex-wrap:wrap!important;gap:8px 12px!important;}
  html body .er-app[data-er-role] .er-topbar-left {flex:1 1 240px!important;}
  html body .er-app[data-er-role] .er-topbar-actions {flex:1 1 100%!important;justify-content:flex-start!important;flex-wrap:wrap!important;}
  html body .er-app[data-er-role] .er-topbar :is(.er-top-tasks,.er-top-news) {width:auto!important;max-width:none!important;flex:1 1 190px!important;}
}
@media(max-width:1024px){
  html body {--er-control-h:44px;}
  html body .er-app[data-er-role] .er-view[data-er-view] :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]),select) {height:44px!important;min-height:44px!important;font-size:16px!important;}
}
@media(max-width:700px){
  html body .er-app[data-er-role] .er-topbar {padding:10px 12px!important;gap:8px!important;}
  html body .er-app[data-er-role] .er-topbar-h {font-size:18px!important;line-height:24px!important;}
  html body .er-app[data-er-role] .er-topbar-left {flex-basis:100%!important;min-width:0!important;}
  html body .er-app[data-er-role] .er-topbar-actions {display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px!important;gap:8px!important;width:100%!important;}
  html body .er-app[data-er-role] .er-topbar :is(.er-top-tasks,.er-top-news) {width:100%!important;max-width:100%!important;}
  html body .er-app[data-er-role] .er-topbar :is(.er-top-tasks-card,.er-top-news-card) {height:48px!important;min-height:48px!important;padding:5px 8px!important;}
  html body .er-app[data-er-role] .er-topbar .er-top-leader {display:none!important;}
  html body .er-app[data-er-role] .er-topbar .er-topbar-actions > a.er-btn[href*="logout"] {display:none!important;}
  html body .er-app[data-er-role] .er-topbar .er-topbar-actions > .er-employee-branch-cash {grid-column:1/-1;flex-direction:row!important;max-width:none!important;min-width:0!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;padding:6px 10px!important;min-height:36px!important;height:auto!important;}
  html body .er-app[data-er-role] .er-topbar .er-employee-branch-cash__top {margin:0!important;}
  html body .er-app[data-er-role] .er-view[data-er-view] :is(.er-toolbar-row,.er-tg-actions,.er-actions,.er-actions-inline) {display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px!important;}
  html body .er-app[data-er-role] .er-view[data-er-view] .er-block-head {align-items:flex-start!important;text-align:left!important;}
}


html body dialog.er-tg-modal .er-ui-action {min-height:44px!important;}
html body .er-app[data-er-role] .er-nav-item {text-decoration:none!important;}
html body .er-app[data-er-role] .er-view[data-er-view] textarea {font:400 14px/20px system-ui,"Segoe UI",sans-serif!important;padding:10px 12px!important;border-radius:10px!important;}
html body .er-app[data-er-role] .er-topbar .er-top-leader-card {overflow:hidden!important;}
html body .er-app[data-er-role] .er-topbar .er-top-leader-card :is(.er-top-leader-title,.er-top-leader-name,.er-top-leader-metric) {display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;max-width:100%!important;margin:0!important;font:500 12px/16px system-ui,"Segoe UI",sans-serif!important;}
html body .er-app[data-er-role] .er-topbar .er-top-leader-card .er-top-leader-sub {display:none!important;}
html body .er-app[data-er-role] .er-topbar .er-top-leader:has(.is-empty) {display:none!important;}
@media(max-width:1024px){html body .er-app[data-er-role] .er-view[data-er-view] textarea {font-size:16px!important;}}
html body .er-drawer :is(input,select,textarea,label,table,summary),html body .er-modal :is(input,select,textarea,label,table,summary) {font-family:system-ui,"Segoe UI",sans-serif!important;}
html body .er-app[data-er-role] .er-topbar {background:var(--er-ui-surface)!important;color:var(--er-ui-text)!important;border-color:var(--er-ui-border)!important;}
html body .er-app[data-er-role] .er-topbar .er-topbar-h {color:var(--er-ui-text)!important;}

/* 2.74.66: availability must win over shared button geometry. */
html body .er-app[data-er-role] .er-view[data-er-view] [data-er-record-contract-open]:not(.is-visible),
html body .er-app[data-er-role] .er-view[data-er-view] [data-er-record-contract-open][hidden],
html body .er-app[data-er-role] .er-view[data-er-view] .er-record-contract-button-field[hidden] {display:none!important;}
/* 2.74.67 — full-size directory tables and aligned working forms, no viewport zoom. */
.er-directory-meta {display:block;margin-top:4px;font-size:12px;line-height:18px;color:var(--er-ui-muted,#52617b);overflow-wrap:anywhere;}
.er-directory-status {display:flex;flex-direction:column;align-items:flex-start;gap:5px;}
@media(min-width:981px){
 html body .er-app[data-er-role] .er-view[data-er-view] :is(#er-directory-agents,#er-directory-employees) {width:100%!important;min-width:960px!important;max-width:none!important;table-layout:fixed!important;zoom:1!important;font-size:13px!important;}
 html body .er-app[data-er-role] .er-view[data-er-view] :is(#er-directory-agents,#er-directory-employees) :is(th,td) {display:table-cell!important;position:static!important;inset:auto!important;z-index:auto!important;min-width:0!important;max-width:none!important;width:auto!important;padding:10px 8px!important;white-space:normal!important;overflow-wrap:anywhere!important;vertical-align:top!important;box-sizing:border-box!important;font-size:13px!important;line-height:19px!important;}
 html body .er-app[data-er-role] .er-view[data-er-view] :is(#er-directory-agents,#er-directory-employees) .er-impersonation-actions {display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important;align-content:start!important;justify-content:stretch!important;width:100%!important;min-width:0!important;padding:0!important;margin:0!important;}
 html body .er-app[data-er-role] .er-view[data-er-view] :is(#er-directory-agents,#er-directory-employees) .er-impersonation-actions > :is(button,a) {display:flex!important;align-items:center!important;justify-content:center!important;min-width:0!important;width:100%!important;height:40px!important;min-height:40px!important;margin:0!important;padding:8px!important;white-space:nowrap!important;font:600 13px/20px system-ui,"Segoe UI",sans-serif!important;box-sizing:border-box!important;border-radius:10px!important;}
 html body .er-app[data-er-role] :is(#er-directory-agents,#er-directory-employees) [data-er-impersonate-link]::before {display:none!important;}
 html body .er-app[data-er-role] .er-view[data-er-view] :is(#er-directory-agents,#er-directory-employees) .er-table-sort-btn {display:inline-flex!important;align-items:center!important;gap:4px!important;width:auto!important;min-width:0!important;min-height:24px!important;height:auto!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;font:600 12px/18px system-ui,"Segoe UI",sans-serif!important;text-align:left!important;white-space:normal!important;}
 html body .er-app[data-er-role] .er-view[data-er-view] :is(#er-directory-agents,#er-directory-employees) .er-badge {max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;font-size:11px!important;line-height:16px!important;}
 html body .er-app[data-er-role] .er-view[data-er-view] :is(.er-confirmed-agents-table-wrap,.er-table-wrap:has(:is(#er-directory-agents,#er-directory-employees))) {width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:auto!important;}
 html body .er-app[data-er-role] .er-topbar {flex-wrap:nowrap!important;}
 html body .er-app[data-er-role] .er-topbar-actions {flex:0 1 auto!important;flex-wrap:nowrap!important;width:auto!important;}
 html body .er-app[data-er-role] .er-topbar-left {flex:1 1 180px!important;min-width:0!important;}
}
@media(min-width:981px) and (max-width:1200px){
 html body .er-app[data-er-role] .er-topbar :is(.er-top-tasks,.er-top-news) {width:150px!important;max-width:150px!important;flex:0 1 150px!important;}
}
html body .er-app[data-er-role] .er-view[data-er-view] .er-record-create-form :is(.er-grid,.er-critical-grid) {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;align-items:start!important;gap:16px!important;}
html body .er-app[data-er-role] .er-view[data-er-view] .er-record-create-form .er-field {display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;min-width:0!important;margin:0!important;}
html body .er-app[data-er-role] .er-view[data-er-view] .er-record-create-form .er-field-wide {grid-column:1/-1!important;}
html body .er-app[data-er-role] .er-view[data-er-view] .er-record-create-form .er-field > label {margin:0 0 6px!important;min-height:20px!important;line-height:20px!important;}
html body .er-app[data-er-role] .er-view[data-er-view] .er-record-create-form .er-field :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]),select) {height:44px!important;min-height:44px!important;margin:0!important;width:100%!important;}
html body .er-app[data-er-role] .er-view[data-er-view] .er-record-create-form .er-record-create-topline {display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;margin-bottom:16px!important;}
html body .er-app[data-er-role] .er-view[data-er-view] .er-record-create-form .er-record-create-topline-fields {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important;width:100%!important;max-width:none!important;}
html body .er-app[data-er-role] .er-view[data-er-view] .er-record-create-form :is(.er-record-contract-button-field,.er-record-contract-alert-slot):not(:has(.is-visible)) {display:none!important;}
html body .er-app[data-er-role] .er-view[data-er-view] .er-record-create-form .er-actions {display:flex!important;justify-content:flex-start!important;align-items:center!important;flex-wrap:wrap!important;gap:8px!important;margin:16px 0 0!important;padding:12px 0!important;border-top:1px solid var(--er-ui-border)!important;position:sticky!important;bottom:0!important;z-index:3!important;background:var(--er-ui-surface)!important;}
html body .er-app[data-er-role] .er-view[data-er-view] .er-record-create-form .er-actions > button {height:44px!important;min-height:44px!important;width:auto!important;flex:0 0 auto!important;min-width:150px!important;margin:0!important;font-size:14px!important;}
html body .er-app[data-er-role] .er-view[data-er-view] .er-record-create-form button[type=submit] {background:#2454e8!important;color:#fff!important;border-color:#2454e8!important;}
html body .er-modal-backdrop[data-er-modal="actions"] .er-modal :is(.er-template-modal-form,.er-form) .er-grid {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:start!important;gap:16px!important;}
html body .er-modal-backdrop[data-er-modal="actions"] .er-modal :is(.er-template-modal-form,.er-form) .er-field {display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;min-width:0!important;margin:0!important;padding:0!important;}
html body .er-modal-backdrop[data-er-modal="actions"] .er-modal .er-field-wide {grid-column:1/-1!important;}
html body .er-modal-backdrop[data-er-modal="actions"] .er-modal .er-field > label {margin:0 0 6px!important;padding:0!important;min-height:20px!important;line-height:20px!important;font-size:13px!important;}
html body .er-modal-backdrop[data-er-modal="actions"] .er-modal .er-field > :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]),select) {box-sizing:border-box!important;width:100%!important;min-width:0!important;height:44px!important;min-height:44px!important;margin:0!important;padding:10px 12px!important;font:400 14px/22px system-ui,"Segoe UI",sans-serif!important;border-radius:10px!important;}
html body .er-modal-backdrop[data-er-modal="actions"] .er-modal .er-field > textarea {box-sizing:border-box!important;width:100%!important;min-height:88px!important;height:88px!important;margin:0!important;padding:10px 12px!important;font:400 14px/22px system-ui,"Segoe UI",sans-serif!important;border-radius:10px!important;}
html body .er-modal-backdrop[data-er-modal="actions"] .er-modal form .er-actions {display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;flex-wrap:wrap!important;width:100%!important;margin:16px 0 0!important;padding:12px 0!important;border-top:1px solid var(--er-ui-border)!important;position:sticky!important;bottom:0!important;z-index:4!important;background:var(--er-ui-surface)!important;}
html body .er-modal-backdrop[data-er-modal="actions"] .er-modal form .er-actions > button {height:44px!important;min-height:44px!important;min-width:140px!important;width:auto!important;flex:0 0 auto!important;margin:0!important;font:600 14px/20px system-ui,"Segoe UI",sans-serif!important;}
html body .er-modal-backdrop[data-er-modal="actions"] .er-modal form .er-actions > button[type=submit] {background:#2454e8!important;color:#fff!important;border-color:#2454e8!important;}
html body .er-modal-backdrop[data-er-modal="actions"] .er-modal form .er-actions > button[type=button] {background:var(--er-ui-surface)!important;color:var(--er-ui-text)!important;border:1px solid var(--er-ui-border)!important;}
html body .er-modal-backdrop[data-er-modal="actions"] .er-modal .er-template-modal-preview {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;padding:0!important;background:transparent!important;}
html body .er-modal-backdrop[data-er-modal="actions"] .er-modal .er-template-modal-preview__row {padding:10px 12px!important;min-width:0!important;margin:0!important;}
html body .er-app[data-er-role] .er-sortbar-records-only .er-filters-row {display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;align-items:start!important;}
html body .er-app[data-er-role] .er-sortbar-records-only .er-filters-row > .er-field {width:auto!important;min-width:0!important;max-width:none!important;margin:0!important;}
html body .er-app[data-er-role] .er-sortbar-records-only .er-period-presets {grid-column:span 2!important;display:flex!important;flex-wrap:wrap!important;gap:8px!important;align-self:end!important;}
html body .er-app[data-er-role] .er-sortbar-records-only .er-records-filter-search {grid-column:span 3!important;}
html body .er-app[data-er-role] .er-sortbar-records-only .er-records-filter-advanced-grid {grid-column:1/-1!important;gap:12px!important;}
html body .er-app[data-er-role] .er-sortbar-records-only:not(.is-er-records-advanced-collapsed) .er-records-filter-advanced-grid {display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;}
@media(max-width:1100px){html body .er-app[data-er-role] .er-view[data-er-view] .er-record-create-form :is(.er-grid,.er-critical-grid) {grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
@media(max-width:760px){
 html body .er-app[data-er-role] .er-view[data-er-view] :is(#er-directory-agents,#er-directory-employees) td.er-col-actions {position:static!important;display:block!important;width:100%!important;min-width:0!important;}
 html body .er-app[data-er-role] .er-view[data-er-view] :is(#er-directory-agents,#er-directory-employees) .er-impersonation-actions {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important;gap:8px!important;}
 html body .er-app[data-er-role] .er-view[data-er-view] :is(#er-directory-agents,#er-directory-employees) .er-impersonation-actions > :is(button,a) {width:100%!important;height:44px!important;min-height:44px!important;margin:0!important;font-size:13px!important;}
 html body .er-app[data-er-role] .er-view[data-er-view] .er-record-create-form :is(.er-grid,.er-critical-grid,.er-record-create-topline-fields) {grid-template-columns:minmax(0,1fr)!important;}
 html body .er-app[data-er-role] .er-view[data-er-view] .er-record-create-form .er-actions > button {flex:1 1 140px!important;min-width:0!important;}
 html body .er-modal-backdrop[data-er-modal="actions"] .er-modal :is(.er-template-modal-form,.er-form) .er-grid {grid-template-columns:minmax(0,1fr)!important;}
 html body .er-modal-backdrop[data-er-modal="actions"] .er-modal .er-template-modal-preview {grid-template-columns:minmax(0,1fr)!important;}
 html body .er-modal-backdrop[data-er-modal="actions"] .er-modal form .er-actions > button {flex:1 1 140px!important;min-width:0!important;}
 html body .er-app[data-er-role] .er-sortbar-records-only .er-filters-row {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
 html body .er-app[data-er-role] .er-sortbar-records-only :is(.er-period-presets,.er-records-filter-search) {grid-column:1/-1!important;}
 html body .er-app[data-er-role] .er-sortbar-records-only:not(.is-er-records-advanced-collapsed) .er-records-filter-advanced-grid {grid-template-columns:minmax(0,1fr)!important;}
}
html body .er-app[data-er-role] [data-er-record-agent-schema][hidden] {display:none!important;}
html body .er-app[data-er-role] .er-view[data-er-view] .er-sortbar.er-sortbar-records.er-sortbar-records-only[data-er-filters] > .er-records-bulk-card {display:block!important;min-width:0!important;width:100%!important;max-width:100%!important;padding:12px 0!important;}
html body .er-app[data-er-role] .er-view[data-er-view] .er-sortbar.er-sortbar-records.er-sortbar-records-only[data-er-filters] .er-records-bulk-card__head {display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;margin:0 0 12px!important;}
html body .er-app[data-er-role] .er-view[data-er-view] .er-sortbar.er-sortbar-records.er-sortbar-records-only[data-er-filters] .er-records-bulk-card__titlebox {min-width:0!important;}
html body .er-app[data-er-role] .er-view[data-er-view] .er-sortbar.er-sortbar-records.er-sortbar-records-only[data-er-filters] .er-records-bulk-card__body {display:flex!important;flex-direction:column!important;gap:12px!important;min-width:0!important;width:100%!important;}
html body .er-app[data-er-role] .er-view[data-er-view] .er-sortbar.er-sortbar-records.er-sortbar-records-only[data-er-filters] :is(.er-records-bulk-card__toolbar,.er-records-bulk-card__form) {display:flex!important;flex-wrap:wrap!important;gap:8px!important;align-items:flex-end!important;min-width:0!important;width:100%!important;}
html body .er-app[data-er-role] .er-view[data-er-view] .er-sortbar.er-sortbar-records.er-sortbar-records-only[data-er-filters] .er-records-bulk-card__field {flex:1 1 190px!important;width:auto!important;min-width:0!important;max-width:100%!important;}
html body .er-app[data-er-role] .er-view[data-er-view] .er-sortbar.er-sortbar-records.er-sortbar-records-only[data-er-filters] .er-records-bulk-card__label {font:600 13px/20px system-ui,"Segoe UI",sans-serif!important;margin:0 0 6px!important;}
html body .er-app[data-er-role] .er-view[data-er-view] .er-sortbar.er-sortbar-records.er-sortbar-records-only[data-er-filters] .er-records-bulk-card :is(input:not([type=hidden]),select) {width:100%!important;min-width:0!important;height:44px!important;min-height:44px!important;font-size:14px!important;}
html body .er-app[data-er-role] .er-view[data-er-view] .er-sortbar.er-sortbar-records.er-sortbar-records-only[data-er-filters] .er-records-bulk-card .er-btn {width:auto!important;min-width:0!important;min-height:40px!important;flex:0 1 auto!important;font-size:14px!important;}
@media(max-width:980px){
 html body .er-app[data-er-role] .er-view[data-er-view] table:is(#er-directory-agents,#er-directory-employees) {display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;table-layout:auto!important;}
 html body .er-app[data-er-role] .er-view[data-er-view] :is(#er-directory-agents,#er-directory-employees) :is(colgroup,thead) {display:none!important;}
 html body .er-app[data-er-role] .er-view[data-er-view] :is(#er-directory-agents,#er-directory-employees) tbody {display:block!important;width:100%!important;min-width:0!important;}
 html body .er-app[data-er-role] .er-view[data-er-view] :is(#er-directory-agents,#er-directory-employees) tbody tr {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;min-width:0!important;width:100%!important;box-sizing:border-box!important;padding:12px!important;margin:0 0 12px!important;background:var(--er-ui-surface)!important;border:1px solid var(--er-ui-border)!important;border-radius:12px!important;}
 html body .er-app[data-er-role] .er-view[data-er-view] :is(#er-directory-agents,#er-directory-employees) tbody td {display:block!important;position:static!important;inset:auto!important;min-width:0!important;max-width:100%!important;width:auto!important;padding:0!important;border:0!important;background:transparent!important;white-space:normal!important;overflow-wrap:anywhere!important;box-sizing:border-box!important;}
 html body .er-app[data-er-role] .er-view[data-er-view] :is(#er-directory-agents,#er-directory-employees) tbody td::before {content:attr(data-label)!important;display:block!important;position:static!important;width:auto!important;padding:0!important;margin-bottom:4px!important;font:600 12px/18px system-ui,"Segoe UI",sans-serif!important;color:var(--er-ui-muted)!important;}
 html body .er-app[data-er-role] .er-view[data-er-view] :is(#er-directory-agents,#er-directory-employees) tbody td:is(:first-child,:nth-child(2),:last-child),html body .er-app[data-er-role] .er-view[data-er-view] :is(#er-directory-agents,#er-directory-employees)[data-er-directory-table="agents"] tbody td:nth-last-child(2) {grid-column:1/-1!important;}
 html body .er-app[data-er-role] .er-view[data-er-view] :is(#er-directory-agents,#er-directory-employees) .er-impersonation-actions {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;width:100%!important;min-width:0!important;}
 html body .er-app[data-er-role] .er-view[data-er-view] :is(#er-directory-agents,#er-directory-employees) .er-impersonation-actions > :is(button,a) {box-sizing:border-box!important;min-width:0!important;width:100%!important;height:44px!important;min-height:44px!important;padding:8px!important;margin:0!important;font:600 13px/20px system-ui,"Segoe UI",sans-serif!important;white-space:normal!important;}
 html body .er-app[data-er-role] .er-view[data-er-view] :is(#er-directory-agents,#er-directory-employees) [data-er-impersonate-link]::before {display:none!important;}
}
html body .er-app[data-er-role] .er-view[data-er-view] :is(#er-directory-agents,#er-directory-employees) .er-impersonation-actions {max-width:none!important;}
html body .er-app[data-er-role] .er-view[data-er-view] :is(#er-directory-agents,#er-directory-employees) .er-impersonation-actions > :is(button,a) {max-width:none!important;justify-self:stretch!important;align-self:stretch!important;}
html body .er-modal-backdrop[data-er-modal="actions"] .er-modal :is(.er-field > label,.er-template-modal-preview__row strong,.er-template-modal-history__head) {color:var(--er-ui-text)!important;}
html body .er-modal-backdrop[data-er-modal="actions"] .er-modal :is(.er-template-modal-preview__row span,.er-template-modal-history__sub,.er-template-modal-history__body,.er-template-modal-history__empty) {color:var(--er-ui-muted)!important;}
html body .er-app[data-er-role] .er-sortbar-records-only {background:var(--er-ui-surface)!important;color:var(--er-ui-text)!important;border-color:var(--er-ui-border)!important;}
