/* Shared Praetor typography for interface elements. Document layouts keep their own fonts. */
@media screen {
 :root{--jm-ui-font:"Nunito Sans","Segoe UI",Arial,sans-serif;--font-sans:var(--jm-ui-font);--font-title:var(--jm-ui-font);--font-serif:var(--jm-ui-font)}
 body,.agreements-page,.modal-backdrop{--agreement-font:var(--jm-ui-font)!important;--font-sans:var(--jm-ui-font)!important;font-family:var(--jm-ui-font)}
 @scope (body) to (:is(#printable-receipt-area,#printable-discharge-area,#printable-notification-area,#charge-memory,.notification-doc-sheet,.discharge-doc-sheet,#discharge-certificate-render-root)) {
  :scope :is(#app-view,#login-view,#maintenance-view,.modal-backdrop) :is(h1,h2,h3,h4,h5,h6,p,span,small,strong,b,em,dt,dd,table,thead,tbody,tr,th,td,label,input,select,textarea,button,a,legend){font-family:var(--jm-ui-font)!important}
  :is(.page-title,.page-title-luxury){font-size:22px;font-weight:700;line-height:1.3}
  :is(.page-subtitle,.page-subtitle-luxury){font-size:13px;font-weight:400;line-height:1.5}
  :is(.modal-title,.modal-header h3,.pwd-header h3){font-size:21px;font-weight:700;line-height:1.3}
  :scope :is(#app-view,.modal-backdrop) :is(.custom-table,table) th{font-size:13px!important;font-weight:700!important;line-height:1.35}
  :scope :is(#app-view,.modal-backdrop) :is(.custom-table,table) td{font-size:13px!important;font-weight:400;line-height:1.4}
  :scope :is(#app-view,.modal-backdrop) :is(.jm-button,button,a[class*="btn-"]):not(.modal-close-btn,.pwd-close,.maint-close,.pwd-eye,.btn-mobile-hamburger,.btn-sidebar-close-mobile,.nav-item,.jm-account-name,.jm-debtor-name,.jm-corner-close,[data-jm-action="create"]){font-size:13px!important;font-weight:600!important}
  :is(.input-label,.form-label,label){font-size:13px}
  :is(.form-input,input,select,textarea){font-size:13px}
 }
 .sidebar .sidebar-nav .nav-item,.sidebar .sidebar-nav .nav-item>span:last-child{font-family:var(--jm-ui-font)!important;font-size:16px!important;font-weight:400!important;line-height:1.35}
 .sidebar .sidebar-nav .nav-item{min-height:46px}
 #app-view .debtor-card-name,#app-view .custom-table .agreement-debtor-link,#app-view .custom-table .agreement-debtor-link strong,#app-view .custom-table td[onclick*="goToDebtorDossier"] strong,#app-view .custom-table [onclick*="selectDebtorForDossier"] strong{font-weight:700!important;text-decoration:none!important}
 #app-view .custom-table .agreement-debtor-link:is(:hover,:focus-visible),#app-view .custom-table .agreement-debtor-link:is(:hover,:focus-visible) strong,#app-view .custom-table td[onclick*="goToDebtorDossier"]:hover strong,#app-view .debtor-card-item:hover .debtor-card-name{ text-decoration:underline!important;text-underline-offset:3px}
 #app-view .debtor-card-bottom .debtor-card-debt{margin-left:auto}
 #user-info-pill{position:relative;overflow:visible}
 #current-user-name.jm-account-name{font:600 14px/1.3 var(--jm-ui-font)!important;background:transparent;border:0;box-shadow:none;padding:6px 3px;color:inherit;cursor:pointer!important;text-align:left;min-width:0}
 #current-user-name.jm-account-name::after{content:"▾";margin-left:8px;color:#6a7d8a;font-size:11px}
 #current-user-name.jm-account-name:focus-visible{outline:2px solid #a98748;outline-offset:3px}
 .jm-account-menu[hidden],#user-view-mode-menu[hidden]{display:none!important}
 .jm-account-menu{position:absolute;right:0;top:calc(100% + 10px);width:310px;max-width:calc(100vw - 28px);z-index:1200;padding:8px;background:#fff;border:1px solid #bac8d2;border-radius:2px;box-shadow:0 12px 30px #17293626;color:#294251;text-align:left}
 .jm-account-profile-link{width:100%;display:block;border:0;background:#fff;color:#294251;padding:11px 12px;text-align:left;font:600 14px/1.3 var(--jm-ui-font);border-radius:2px;cursor:pointer}
 .jm-account-profile-link:hover,.jm-account-profile-link:focus-visible{background:#edf3f7;outline:none}
 #user-view-mode-menu{margin:8px 0 0;padding:12px 4px 4px;border:0;border-top:1px solid #dae2e8;min-width:0}
 #user-view-mode-menu legend{font:700 13px/1.3 var(--jm-ui-font);padding:0 8px;color:#294251}
 #user-view-mode-menu>p{font:400 12px/1.4 var(--jm-ui-font);margin:0 8px 8px;color:#5c7180}
 #dev-view-role-options{display:grid;gap:4px}
 #dev-view-role-options label{display:flex;align-items:center;gap:10px;padding:10px 8px;border:1px solid transparent;border-radius:2px;cursor:pointer}
 #dev-view-role-options label:hover{background:#f2f6f8}
 #dev-view-role-options label:has(input:checked){background:#eef3f6;border-color:#bdcbd5}
 #dev-view-role-options input{width:16px;height:16px;flex:none;accent-color:#82652e;margin:0}
 #dev-view-role-options strong{display:block;font:600 13px/1.4 var(--jm-ui-font)}
 #dev-view-role-options small{display:block;font:400 12px/1.4 var(--jm-ui-font);color:#5c7180}
 #modal-user-profile .jm-profile-window{display:flex;flex-direction:column;width:min(680px,100%);max-width:680px;max-height:calc(100dvh - 40px);padding:0;overflow:hidden;border:1px solid #bac8d2;border-radius:2px;background:#fff;box-shadow:0 24px 70px #17293633}
 #modal-user-profile .jm-profile-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:22px 24px;flex:none;background:#223442;border-bottom:2px solid #b79a62;color:#fff}
 #modal-user-profile .jm-profile-kicker{display:block;font-size:11px;font-weight:600;color:#e0c58d;letter-spacing:.7px;margin-bottom:7px}
 #modal-user-profile h3{margin:0;font-size:23px;font-weight:700;line-height:1.25;color:#fff}
 #modal-user-profile .jm-profile-header p{margin:8px 0 0;font-size:13px;line-height:1.45;color:#dce5eb}
 #modal-user-profile .modal-close-btn{flex:none;width:32px;height:32px;min-width:32px;padding:0;border:1px solid #748693;border-radius:2px;background:transparent;color:#fff}
 #modal-user-profile .modal-close-btn:hover{background:#9d3947;border-color:#9d3947}
 #modal-user-profile .jm-profile-body{padding:24px;overflow-y:auto;min-height:0}
 .jm-profile-identity{display:flex;align-items:center;gap:16px;padding:18px;border:1px solid #d6e0e7;border-radius:2px;background:#f3f6f8;margin-bottom:24px}
 #user-profile-avatar{display:grid;place-items:center;flex:none;width:48px;height:48px;border:1px solid #b7c7d2;border-radius:2px;background:#223442;color:#fff;font-size:23px;font-weight:600}
 .jm-profile-identity-copy{min-width:0}
 #user-profile-name{margin:0;font-size:19px;line-height:1.35;font-weight:700;color:#253c4b;overflow-wrap:anywhere}
 #user-profile-username{margin:3px 0 9px;font-size:13px;color:#5c7180;overflow-wrap:anywhere}
 #user-profile-active-mode-badge{display:inline-block;padding:4px 8px;font-size:12px;font-weight:600;border:1px solid #b8cbd7;border-radius:2px;background:#fff;color:#294b60}
 #modal-user-profile .jm-profile-section-title{font-size:14px;font-weight:700;color:#294251;margin:0 0 12px}
 .jm-profile-details{display:grid;grid-template-columns:1fr 1fr;gap:0 24px;margin:0}
 .jm-profile-details>div{padding:13px 0;border-bottom:1px solid #e0e7ec;min-width:0}
 .jm-profile-details dt{font-size:12px;font-weight:400;color:#5c7180;margin-bottom:5px}
 .jm-profile-details dd{font-size:14px;font-weight:600;line-height:1.5;color:#294251;margin:0;overflow-wrap:anywhere}
 #modal-user-profile .jm-profile-footer{flex:none;display:flex;justify-content:flex-end;padding:14px 24px;border-top:1px solid #d8e1e8;background:#f8fafb}
 @media(max-width:600px){#modal-user-profile .jm-profile-header,#modal-user-profile .jm-profile-body{padding:18px}.jm-profile-details{grid-template-columns:1fr}.jm-profile-identity{padding:14px;gap:12px}.jm-profile-header h3{font-size:21px}.jm-account-menu{width:290px}}
}

@media screen {
 @scope (body) to (:is(#printable-receipt-area,#printable-discharge-area,#printable-notification-area,#charge-memory,.notification-doc-sheet,.discharge-doc-sheet,#discharge-certificate-render-root)) {
  :scope :is(#app-view,.modal-backdrop) .table-card{border-color:#9eafbd!important}
  :scope :is(#app-view,.modal-backdrop) :is(.custom-table,table) :is(th,td){border-right:1px solid #9eafbd!important;border-bottom:1px solid #9eafbd!important}
  :scope :is(#app-view,.modal-backdrop) :is(.custom-table,table) th{border-bottom-color:#899dab!important}
  :scope :is(#app-view,.modal-backdrop) :is(.custom-table,table) :is(th,td):last-child{border-right:0!important}
 }
 .sidebar .sidebar-nav .nav-icon{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;min-width:22px;flex:0 0 22px}
 .sidebar .sidebar-nav .nav-icon svg{width:22px!important;height:22px!important;max-width:none;flex:none}
 .sidebar .sidebar-nav .nav-item{gap:12px;align-items:center}
}


/* JusMidas interface components. Business states and printed documents keep their own rules. */
@media screen {
 :root {
  --jm-ink:#263e4f; --jm-muted:#526574; --jm-frame:#9eafbd;
  --jm-paper:#fff; --jm-header:#eef2f5; --jm-gold:#b79a60;
  --jm-danger:#b43b4c; --jm-success:#23764c; --jm-edit:#e2ae35;
  --radius-xs:2px; --radius-sm:2px; --radius-md:2px; --radius-lg:2px;
 }
 @scope (body) to (:is(#printable-receipt-area,#printable-discharge-area,#printable-notification-area,#charge-memory,.notification-doc-sheet,.discharge-doc-sheet,#discharge-certificate-render-root)) {
  :is(.table-card,.table-card-luxury,.kpi-card,.dossier-block,.form-input,.select-input,.modal,.modal-content,.modal-inst-content,.standard-modal-content){border-radius:2px}
  :is(.custom-table,table) th {background:var(--jm-header);color:var(--jm-ink);text-align:center;font-weight:700}
  :is(.custom-table,table) td {text-align:center;color:var(--jm-ink);vertical-align:middle}
  :is(.custom-table,table) :is(th,td){padding:11px 12px;line-height:1.4}
  :is(input,select,textarea):focus-visible{outline:2px solid #b79a6066;outline-offset:1px;border-color:var(--jm-gold)}
  :is(.page-subtitle,.page-subtitle-luxury,.text-muted){color:var(--jm-muted)}
  :is(.modal-header,.modal-inst-header,.standard-modal-header,.pwd-header){background:#223442;color:#fff;border-bottom:2px solid #b79a60}
  :is(.modal-header,.modal-inst-header,.standard-modal-header,.pwd-header) :is(h2,h3,.modal-title){color:#fff!important}
  :is(.modal-header,.modal-inst-header,.standard-modal-header,.pwd-header) :is(p,.modal-subtitle){color:#dce5ec!important}
  :is(.modal-footer,.modal-inst-footer,.standard-modal-footer){background:#f6f8fa;border-top:1px solid #bac8d2}
  .status-toggle-container .btn-status-pill{background:#edf0f2!important;color:#75818b!important;border-color:#ccd3d9!important;box-shadow:none!important}
  .status-toggle-container .btn-status-pill.active.ativo{background:#23764c!important;color:#fff!important;border-color:#23764c!important}
  .status-toggle-container .btn-status-pill.active.inativo{background:#b43b4c!important;color:#fff!important;border-color:#b43b4c!important}
  #modal-user .modal-footer > button{height:46px;min-height:46px;box-sizing:border-box;align-self:center;padding:8px 16px;line-height:1.25}
  .modal-header .jm-modal-heading-icon{color:#e1c68e;background:#ffffff12;border-color:#e1c68e66}
  /* A single action component owns color and effects; modules only own dimensions. */
  [data-jm-action] {
   --button-fill:var(--jm-ink);--button-ink:var(--jm-ink);--button-border:var(--jm-ink);--button-hover-ink:#fff;
   position:relative;isolation:isolate;display:inline-flex;align-items:center;justify-content:center;gap:8px;
   min-height:36px;padding:8px 14px;overflow:hidden;
   border:1px solid var(--button-border)!important;border-radius:2px !important;
   background:#fff!important;background-image:none!important;color:var(--button-ink)!important;
   font:600 13px/1.3 var(--jm-ui-font);letter-spacing:0;text-transform:none;text-shadow:none;
   box-shadow:0 2px 5px #2234420c!important;transform:none!important;filter:none!important;
   text-decoration:none!important;cursor:pointer;
   transition:background-color .2s ease,color .2s ease,border-color .2s ease,box-shadow .2s ease;
  }
  [data-jm-action="danger"]{--button-fill:var(--jm-danger);--button-ink:var(--jm-danger);--button-border:#c46a77}
  [data-jm-action="success"]{--button-fill:var(--jm-success);--button-ink:var(--jm-success);--button-border:#5c9476}
  [data-jm-action="edit"]{--button-fill:var(--jm-edit);--button-ink:#795919;--button-border:#c99a30;--button-hover-ink:#263442}
  [data-jm-action]::before,[data-jm-action]::after{content:none;display:none}
  [data-jm-action]:is(:hover,:focus-visible):not(:disabled):not([aria-disabled="true"]){background:var(--button-fill)!important;color:var(--button-hover-ink)!important;border-color:var(--button-fill)!important;box-shadow:0 3px 9px #22344224!important}
  [data-jm-action]:focus-visible{outline:2px solid var(--button-border);outline-offset:3px}
  [data-jm-action]:is(:disabled,[aria-disabled="true"]){opacity:.5;cursor:not-allowed;box-shadow:none!important}
  [data-jm-action] svg{width:15px;height:15px;flex:none;color:currentColor;transform:none!important}
  /* Approved Elaborar Proposta finish, shared by every creation action. */
  [data-jm-action="create"] {
   --button-fill:#263e4f;--button-ink:#354b5a;--button-border:#b79a60;--button-hover-ink:#fff4dd;
   min-height:42px;padding:0 20px;background:#fffaf1!important;
   font-size:14px!important;line-height:1.2;box-shadow:0 2px 5px #22344212!important;
  }
  [data-jm-action="create"] svg{width:16px;height:16px}
  [data-jm-action="create"]::after{
   content:"";display:block;position:absolute;inset:-100% 0;width:100%;
   background:linear-gradient(100deg,transparent 10%,#fff5d814 30%,#ffffff52 50%,#fff5d814 70%,transparent 90%);
   opacity:0;transform:translateX(-140%) skewX(-15deg);pointer-events:none;z-index:1;
  }
  [data-jm-action="create"]:is(:hover,:focus-visible):not(:disabled):not([aria-disabled="true"]){border-color:#d4b77c!important;box-shadow:0 0 0 1px #d4b77c26,0 0 16px #c6a56830,0 4px 10px #17293626!important}
  [data-jm-action="create"]:hover:not(:disabled):not([aria-disabled="true"])::after{animation:jm-proposal-sheen .85s ease-in-out 1}
  [data-jm-action="create"]:active:not(:disabled){background:#1d3342!important;box-shadow:0 1px 3px #17293626!important}
  #btn-add-agreement{height:42px}
 }
 @keyframes jm-proposal-sheen{0%{opacity:0;transform:translateX(-140%) skewX(-15deg)}20%,80%{opacity:1}100%{opacity:0;transform:translateX(140%) skewX(-15deg)}}
 .jm-debtors-ledger{background:#fff;border:1px solid var(--jm-frame);border-radius:2px;min-width:0}
 .jm-ledger-caption{display:flex;justify-content:space-between;gap:12px;padding:13px 16px;background:#f7f9fa;border-bottom:1px solid var(--jm-frame);font-size:13px;color:var(--jm-muted)}
 .jm-ledger-caption>span:first-child{font-weight:600;color:var(--jm-ink)}
 .jm-ledger-scroll{overflow-x:auto;max-width:100%}
 #tab-debtors .jm-debtors-table{width:100%;min-width:1000px;border-collapse:separate;border-spacing:0}
 #tab-debtors .jm-debtors-table :is(th,td){padding:12px 14px;border-right:1px solid var(--jm-frame)!important;border-bottom:1px solid var(--jm-frame)!important;text-align:center;vertical-align:middle}
 #tab-debtors .jm-debtors-table th{background:var(--jm-header);font-weight:700;color:var(--jm-ink)}
 #tab-debtors .jm-debtors-table :is(th,td):last-child{border-right:0!important}
 #tab-debtors .jm-debtors-table tr:last-child td{border-bottom:0!important}
 .jm-debtors-table tbody tr{height:60px}
 .jm-debtors-table :is(th,td):nth-child(2){min-width:190px}
 .jm-debtors-table :is(th,td):nth-child(3){min-width:155px}
 .jm-debtors-table tbody tr:nth-child(even){background:#f6f8fa}
 .jm-debtors-table tbody tr:hover{background:#eef3f7}
 .jm-debtors-table tbody tr.jm-debtor-overdue{background:#fff0f0}
 .jm-debtors-table tbody tr.jm-debtor-overdue:hover{background:#fbe5e5}
 #tab-debtors .jm-debtor-name{border:0;background:transparent;color:var(--jm-ink);font:700 13px/1.4 var(--jm-ui-font)!important;text-transform:none;text-decoration:none;padding:3px;cursor:pointer;box-shadow:none;white-space:normal;max-width:300px}
 #tab-debtors .jm-debtor-name:is(:hover,:focus-visible){text-decoration:underline;text-underline-offset:3px}
 #tab-debtors .jm-debtor-name:focus-visible{outline:2px solid var(--jm-gold);outline-offset:3px}
 .jm-money{font-variant-numeric:tabular-nums;white-space:nowrap}
 .jm-ledger-empty{text-align:center;padding:32px 20px;color:var(--jm-muted)}
 #modal-debtor-dossier{z-index:9999998!important}
 .jm-dossier-window{display:flex;flex-direction:column;width:min(1180px,100%);max-height:calc(100dvh - 48px);border:1px solid #9eafbd;border-radius:2px;background:#fff;overflow:hidden;box-shadow:0 24px 70px #17293640}
 .jm-dossier-modal-header{display:flex;justify-content:space-between;gap:20px;align-items:center;flex:none;padding:20px 24px;background:#223442;border-bottom:2px solid #b79a60;color:#fff}
 .jm-dossier-modal-header h2{margin:5px 0 0;color:#fff;font-size:22px;font-weight:700}
 .jm-dossier-kicker{font-size:12px;color:#e1c68e}
 .jm-dossier-modal-header .modal-close-btn{width:34px;height:34px;padding:0;min-height:34px;font-size:25px!important;background:#fff!important}
 .jm-dossier-scroll{overflow-y:auto;min-height:0;overscroll-behavior:contain}
 .jm-dossier-modal-footer{display:flex;justify-content:flex-end;flex:none;gap:10px;padding:13px 24px;background:#f6f8fa;border-top:1px solid #bac8d2}
 #modal-debtor-dossier .dossier-header{padding:22px 24px;background:#f4f7f9;border-bottom:1px solid #bac8d2}
 #modal-debtor-dossier .dossier-client-name{font-size:22px;line-height:1.4;color:var(--jm-ink)}
 #modal-debtor-dossier .dossier-client-meta{font-size:13px;line-height:1.5;gap:8px;color:var(--jm-muted);flex-wrap:wrap}
 #modal-debtor-dossier .dossier-actions-bar{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
 #modal-debtor-dossier .dossier-actions-bar button{min-height:36px;font-size:13px;padding:8px 13px}
 #modal-debtor-dossier .dossier-body{padding:24px;background:#fff}
 #modal-debtor-dossier .dossier-section-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:18px}
 #modal-debtor-dossier .dossier-block{border:1px solid #bac8d2;border-radius:2px;padding:18px;min-width:0}
 #modal-debtor-dossier .dossier-block-title{font-size:14px;font-weight:700;letter-spacing:0;text-transform:none;color:var(--jm-ink);padding-bottom:12px;border-bottom:1px solid #c7d1da}
 #modal-debtor-dossier .dossier-data-row{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid #e0e6ea;align-items:flex-start}
 #modal-debtor-dossier .dossier-data-label{font-size:13px;color:var(--jm-muted);flex:0 0 40%}
 #modal-debtor-dossier .dossier-data-value{font-size:13px!important;line-height:1.5;overflow-wrap:anywhere;max-width:60%!important;color:var(--jm-ink)}
 #modal-debtor-dossier .dossier-doc-item{border-color:#c7d1da;background:#f8fafb;padding:10px;flex-wrap:wrap}
 #modal-debtor-dossier .dossier-doc-name{font-size:13px;overflow-wrap:anywhere}
 #modal-debtor-dossier .dossier-timeline-meta{flex-wrap:wrap}
 #modal-debtor-dossier .dossier-block-title>span:empty{display:none}
 @media(max-width:800px){.jm-ledger-caption{flex-direction:column;gap:5px}#modal-debtor-dossier{padding:12px}.jm-dossier-window{max-height:calc(100dvh - 24px)}#modal-debtor-dossier .dossier-section-grid{grid-template-columns:1fr}.jm-dossier-modal-header,#modal-debtor-dossier .dossier-header,#modal-debtor-dossier .dossier-body{padding:18px}.jm-dossier-modal-header h2{font-size:20px}}
 @media(prefers-reduced-motion:reduce){[data-jm-action]{transition:none}[data-jm-action="create"]::after{display:none;animation:none}}
}

/* Minimal interface: straight/2px corners, named controls and detached title bars. */
@media screen {
 :root{--jm-corner:2px;--jm-control-height:42px}
 button[data-jm-action="status-active"]{--button-fill:#23764c;--button-ink:#23764c;--button-border:#5c9476}
 button[data-jm-action="status-inactive"]{--button-fill:#b43b4c;--button-ink:#b43b4c;--button-border:#c46a77}
 :is(.modal-backdrop,dialog,.top-header,.sidebar) .jm-text-control{width:auto!important;min-width:62px!important;max-width:none!important;height:34px!important;min-height:34px!important;padding:6px 10px!important;font-size:13px!important;line-height:20px!important;letter-spacing:0!important;white-space:nowrap}
 .jm-text-control:is(.pwd-eye,.user-pwd-change-icon){font:400 12px/1.3 var(--jm-ui-font)!important;width:auto;min-width:58px;padding:5px 8px;cursor:pointer}
 .form-group:has(.pwd-eye) input{padding-right:82px}
 .jusmidas-input-wrapper:has(.pwd-eye) input{padding-right:82px}
 .jusmidas-input-wrapper input{padding-left:14px}
 .sidebar .nav-item{gap:0}
 .sidebar .nav-item>span:last-child{margin-left:0}
 .jm-account-name::after{content:none!important}
 #app-view .agreements-page{background:transparent;border:0;box-shadow:none;overflow:visible}
 #app-view .jm-page-heading{
  display:flex;align-items:center;gap:20px;width:100%;min-height:144px;padding:23px 32px;margin:0 0 23px;
  background:#fff;border:1px solid #adbac7;border-radius:2px;box-shadow:none;float:none;clear:both;box-sizing:border-box;
 }
 #app-view .jm-page-heading-copy{padding:0;margin:0;min-width:0;flex:1}
 #app-view .jm-page-heading-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex:none;margin-left:auto}
 #app-view .jm-page-heading-actions>[hidden]{display:none!important}
 #app-view .jm-page-heading-actions>button{white-space:nowrap;margin:0}

 #app-view .jm-page-icon{display:flex;align-items:center;justify-content:center;flex:none;width:56px;height:56px;border:1px solid #adbac7;color:#b17b25;background:#fff}
 #app-view .jm-page-icon svg{display:block;width:25px;height:25px}
 #app-view .jm-page-eyebrow{display:block;margin:0 0 6px;color:#ad7528;font:600 11px/1.3 var(--jm-ui-font);letter-spacing:1.3px;text-transform:uppercase}
 #app-view .jm-page-title{display:table;width:auto;max-width:100%;padding:0 0 8px;margin:0 0 10px;border-bottom:2px solid #ad7528;color:#223442;font:700 28px/1.2 var(--jm-ui-font);letter-spacing:0}
 #app-view .jm-page-subtitle{display:block;margin:0;padding:0;color:#617585;font:400 13px/1.5 var(--jm-ui-font)}
 @media(max-width:700px){#app-view .jm-page-heading{padding:20px 18px;gap:14px;flex-wrap:wrap}#app-view .jm-page-heading-copy{flex-basis:calc(100% - 72px)}#app-view .jm-page-heading-actions{max-width:100%;flex-wrap:wrap}#app-view .jm-page-icon{width:44px;height:44px}#app-view .jm-page-title{font-size:24px}}
 #app-view .jm-page-description{display:block;clear:both;margin:0 0 18px;padding:0;color:#526574;font:400 13px/1.5 var(--jm-ui-font)}
 #app-view .jm-page-tools{display:flex;justify-content:flex-end;align-items:flex-end;flex-wrap:wrap;gap:12px;margin:0 0 18px;min-width:0}
 #app-view .jm-page-tools:empty{display:none}
 #app-view .jm-page-tools>div{min-width:0}
 #app-view .jm-detached-navigation{display:flex;gap:0;flex-wrap:wrap;margin:0 0 18px;padding:5px;background:#fff;border:1px solid #9eafbd;border-radius:2px;box-shadow:none}
 #app-view .jm-detached-navigation .agreement-section-button{min-height:42px;padding:10px 24px;border:0;border-radius:2px!important;background:#fff;color:#263e4f;font:600 14px/1.3 var(--jm-ui-font)}
 #app-view .jm-detached-navigation .agreement-section-button:hover{background:#edf2f5;color:#263e4f}
 #app-view .jm-detached-navigation .agreement-section-button.active{background:#263e4f;color:#fff}
 #app-view .agreements-page-content{padding:20px;background:#fff;border:1px solid #bac8d2;border-radius:2px;min-width:0}
 #app-view .controls-bar .jm-search-field{max-width:none}
 #app-view .controls-bar :is(.search-box,select.select-input,select.form-input){height:42px;min-height:42px;box-sizing:border-box}
 @media(max-width:700px){#app-view .jm-page-heading{padding:20px 18px}#app-view .jm-page-tools{justify-content:stretch}#app-view .jm-page-tools>button{flex:1}#app-view .jm-detached-navigation .agreement-section-button{flex:1;padding:10px 12px}#app-view .agreements-page-content{padding:14px}}
}


/* Receivables dialogs: complete ledger, contained scrolling and independent footer. */
@media screen {
 .modal-backdrop :is(.modal-close-btn,.pwd-close,.maint-close,.btn-close-inst-modal){width:34px!important;min-width:34px!important;max-width:34px!important;height:34px!important;min-height:34px!important;padding:0!important;font-size:23px!important;line-height:30px!important;flex:none}
 :is(.user-pwd-change-icon,.pwd-eye) svg{width:18px;height:18px;display:block}
 :is(.kpi-icon,.ruler-stage-icon,.dossier-empty-icon,.inst-icon,.inst-contact-icon) svg{width:24px;height:24px}
 button[data-jm-action="navigation"]{--button-fill:#2566a3;--button-ink:#205a90;--button-border:#729bc1}
 :is(#modal-overdue-details,#modal-due-today-details){padding:24px}
 :is(#modal-overdue-details,#modal-due-today-details)>.jm-installments-window{display:flex;flex-direction:column;position:relative;width:min(1360px,100%);max-width:1360px;max-height:calc(100dvh - 48px);min-width:0;margin:auto;padding:0;overflow:hidden;border:1px solid #9eafbd;border-radius:2px;background:#fff;box-shadow:0 22px 70px #17293640}
 :is(#modal-overdue-details,#modal-due-today-details) .jm-installments-header{position:static;display:flex;align-items:center;justify-content:space-between;gap:20px;flex:none;padding:20px 24px;background:#223442;border-bottom:1px solid #9eafbd}
 .jm-installments-kicker{display:block;margin-bottom:6px;color:#d2e0eb;font-size:12px}
 :is(#modal-overdue-details,#modal-due-today-details) .modal-title{margin:0;color:#fff;font-size:23px;line-height:1.3}
 :is(#modal-overdue-details,#modal-due-today-details) .modal-close-btn{width:auto;min-width:68px;height:36px;padding:7px 12px;font-size:13px}
 :is(#modal-overdue-details,#modal-due-today-details) .jm-installments-body{display:flex;flex-direction:column;min-height:0;overflow:auto;padding:20px 24px 24px}
 .jm-installments-description{flex:none;margin:0 0 18px;max-width:100%;font-size:13px;line-height:1.6;color:#526574}
 .jm-installments-scroll{width:100%;max-width:100%;min-height:0;overflow:auto;border:1px solid #9eafbd;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:thin}
 .jm-installments-scroll:focus-visible{outline:2px solid #2566a3;outline-offset:3px}
 :is(#modal-overdue-details,#modal-due-today-details) .jm-installments-table{table-layout:fixed;width:100%;min-width:1000px;margin:0;border-collapse:separate;border-spacing:0}
 .jm-col-debtor{width:22%}.jm-col-creditor{width:14%}.jm-col-installment{width:12%}.jm-col-due{width:14%}.jm-col-amount{width:22%}.jm-col-actions{width:16%}
 :is(#modal-overdue-details,#modal-due-today-details) .jm-installments-table :is(th,td){padding:12px 10px!important;white-space:normal!important;overflow-wrap:anywhere;text-align:center!important;vertical-align:middle;line-height:1.5}
 :is(#modal-overdue-details,#modal-due-today-details) .jm-installments-table th{position:sticky;top:0;z-index:1;background:#eef2f5;font-size:13px;font-weight:700;text-transform:none}
 :is(#modal-overdue-details,#modal-due-today-details) .jm-installments-table td:first-child strong{font-size:14px!important;line-height:1.4!important}
 :is(#modal-overdue-details,#modal-due-today-details) .jm-installments-table td:nth-child(5) :is(span,small,div){white-space:normal!important;overflow-wrap:anywhere;line-height:1.5}
 :is(#modal-overdue-details,#modal-due-today-details) .jm-installments-table td:nth-child(5) strong{display:block;font-size:16px!important;line-height:1.5}
 :is(#modal-overdue-details,#modal-due-today-details) .jm-installments-table td:nth-child(5) small{font-size:12px!important}
 :is(#modal-overdue-details,#modal-due-today-details) .jm-installments-table td:last-child button{display:flex;width:100%;min-width:0;max-width:100%;min-height:36px;margin:4px 0;padding:7px 8px!important;white-space:normal;line-height:1.3;font-size:13px!important}
 :is(#modal-overdue-details,#modal-due-today-details) .jm-installments-footer{position:static;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;flex:none;padding:16px 24px;border-top:1px solid #bac8d2;background:#f6f8fa}
 .jm-installments-total{min-width:0;flex:1 1 260px;font-size:14px;line-height:1.6;color:#263e4f}
 .jm-installments-footer-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;min-width:0}
 .jm-installments-footer-actions button{min-height:38px;white-space:normal}
 @media(max-width:700px){:is(#modal-overdue-details,#modal-due-today-details){padding:12px}:is(#modal-overdue-details,#modal-due-today-details)>.jm-installments-window{max-height:calc(100dvh - 24px)}:is(#modal-overdue-details,#modal-due-today-details) :is(.jm-installments-header,.jm-installments-body,.jm-installments-footer){padding:16px}:is(#modal-overdue-details,#modal-due-today-details) .modal-title{font-size:20px}.jm-installments-footer-actions{width:100%}.jm-installments-footer-actions button{flex:1}.jm-installments-total{flex-basis:100%}}
}

@media screen {
 #modal-charge-calculation .charge-modal{width:min(960px,calc(100vw - 24px));max-width:960px;max-height:none;overflow:visible;border-radius:2px}
 #modal-charge-calculation .modal-header{padding:14px 20px;min-height:62px}
 #modal-charge-calculation .modal-body{padding:14px 20px;overflow:visible;max-height:none}
 #modal-charge-calculation .charge-toolbar{display:flex;align-items:center;gap:12px;margin:0 0 12px;padding:0}
 #modal-charge-calculation .charge-toolbar input{width:155px;height:36px;min-height:36px}
 #modal-charge-calculation .charge-toolbar button{min-height:36px}
 #modal-charge-calculation [hidden]{display:none!important}
 .charge-compact-tabs{display:flex;gap:5px;margin-bottom:12px;border-bottom:1px solid #91a6b5;padding-bottom:8px}
 .charge-compact-tabs button{padding:7px 12px;min-height:34px}
 .charge-compact-tabs button.active{background:#263e4f!important;color:#fff!important}
 .charge-identity{display:flex;justify-content:space-between;gap:10px;margin-bottom:12px;font-size:14px}
 .charge-compact-dates{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:0 0 12px}
 .charge-compact-dates dt{font-size:12px;color:#526779}.charge-compact-dates dd{margin:3px 0 0;font-weight:700;font-size:14px}
 .charge-compact-totals{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid #a9b9c6}
 .charge-compact-totals>div{padding:9px 12px;border-right:1px solid #a9b9c6;display:flex;flex-direction:column;gap:5px;font-size:13px}
 .charge-compact-totals .charge-compact-total{grid-column:1/-1;flex-direction:row;justify-content:space-between;background:#edf2f5;border-top:1px solid #a9b9c6;border-right:0;font-size:16px}
 .charge-compact-note{font-size:12px;line-height:1.5;margin:10px 0 0}
 #modal-charge-calculation .charge-footer{padding:12px 20px;gap:8px;flex-wrap:wrap}
 #modal-charge-calculation .charge-footer button{padding:8px 12px;min-height:36px;margin:0;font-size:13px}
 #modal-charge-calculation .charge-compact-table{margin:0;width:100%;table-layout:fixed}
 #modal-charge-calculation .charge-compact-table :is(td,th){padding:8px 6px;font-size:12px;overflow-wrap:anywhere}
 .charge-pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:12px;font-size:12px}
 .charge-pagination button{padding:6px 12px;min-height:32px}
 .charge-compact-history{display:grid;gap:8px}.charge-compact-history button{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;text-align:left;white-space:normal;min-height:44px}
 .charge-compact-history span{font-size:12px}.charge-compact-criteria p{font-size:13px;line-height:1.5;margin:0 0 10px;overflow-wrap:anywhere}
 :is(#app-view,.modal-backdrop) button.jm-overdue-amount{padding:3px 0!important;min-height:0!important;border:0!important;background:transparent!important;box-shadow:none!important;color:#b91c1c!important;font:700 14px/1.4 var(--jm-ui-font)!important;cursor:pointer;text-decoration:none!important}
 :is(#app-view,.modal-backdrop) button.jm-overdue-amount:hover{text-decoration:underline!important;color:#991b1b!important}
 .jm-overdue-value{color:#b91c1c!important}
 @media(max-width:600px){
  #modal-charge-calculation .modal-body{padding:12px}.charge-compact-tabs{gap:3px;flex-wrap:wrap}.charge-compact-tabs button{padding:6px 8px;font-size:12px}
  .charge-compact-dates{grid-template-columns:repeat(2,1fr)}.charge-compact-totals{grid-template-columns:repeat(2,1fr)}
  .charge-compact-history button{flex-direction:column;gap:3px}
  #modal-charge-calculation .charge-footer{padding:10px 12px;gap:6px}
 }
 #modal-activate-maintenance .maint-timer-row{padding:12px 16px;gap:20px;min-height:54px;box-sizing:border-box}
 #modal-activate-maintenance .maint-extension{margin:18px 0 0;padding-top:16px;border-top:1px solid #cbd5de}
 #modal-activate-maintenance .maint-extension[hidden]{display:none!important}
 #modal-activate-maintenance .maint-extension-buttons{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
 #modal-activate-maintenance .maint-extension-buttons button{min-height:36px;flex:1}
 #modal-activate-maintenance .maint-subtitle[hidden]{display:none!important}
 @scope (body) to (:is(#printable-receipt-area,#printable-discharge-area,#printable-notification-area,#charge-memory,.notification-doc-sheet,.discharge-doc-sheet,#discharge-certificate-render-root)) {
  :scope :is(#app-view,.modal-backdrop,dialog) button.jm-corner-close{display:inline-flex;align-items:center;justify-content:center;width:34px!important;min-width:34px!important;max-width:34px!important;height:34px!important;min-height:34px!important;padding:0!important;font:600 23px/30px var(--jm-ui-font)!important;border:1px solid #c46a77!important;border-radius:2px!important;background:#fff!important;color:#b43b4c!important;box-shadow:0 2px 5px #2234420c!important;cursor:pointer;transition:background-color .2s,color .2s,box-shadow .2s}
  :scope :is(#app-view,.modal-backdrop,dialog) button.jm-corner-close:hover{background:#b43b4c!important;color:#fff!important;border-color:#b43b4c!important;box-shadow:0 3px 9px #22344224!important}
  :scope :is(#app-view,.modal-backdrop,dialog) button.jm-corner-close:focus-visible{outline:2px solid #c46a77;outline-offset:3px}
 }
 .jm-installment-actions{display:inline-block;min-width:94px;max-width:100%;text-align:left;vertical-align:middle;margin:4px}
 .jm-installment-actions summary{display:flex;align-items:center;justify-content:center;gap:8px;min-height:34px;padding:6px 12px;border:1px solid #729bc1;border-radius:2px;background:#fff;color:#205a90;font:600 13px/1.3 var(--jm-ui-font);cursor:pointer;list-style:none;user-select:none}
 .jm-installment-actions summary::-webkit-details-marker{display:none}
 .jm-installment-actions summary::after{content:'▾';font-size:12px}
 .jm-installment-actions[open] summary::after{content:'▴'}
 .jm-installment-actions summary:is(:hover,:focus-visible){background:#2566a3;color:#fff;outline-offset:3px}
 .jm-installment-actions-panel{display:grid;gap:6px;padding:8px 0 0;min-width:160px;max-width:100%}
 .jm-installment-actions-panel button{width:100%;min-height:34px;white-space:normal!important;margin:0!important}
 #table-installments-body td:last-child>.btn-installment-pay,#table-installments-body td:last-child>.btn-installment-pending{min-height:34px;margin:4px;vertical-align:middle}
}

/* Payment authorization: date, charges and receipt totals form one compact flow. */
@media screen {
 #modal-confirm-password .jm-payment-window{width:min(640px,calc(100vw - 24px));max-width:640px;border-radius:2px;overflow:hidden}
 #modal-confirm-password .jm-payment-header{display:flex;align-items:center;gap:12px;padding:17px 22px}
 #modal-confirm-password .jm-payment-header h3{flex:1;min-width:0;margin:0;font-size:21px;line-height:1.3}
 #modal-confirm-password .jm-payment-header .jm-modal-heading-icon{margin:0;flex:none}
 #modal-confirm-password .jm-payment-body{display:grid;gap:12px;padding:16px 22px}
 #modal-confirm-password #confirm-password-desc-text{margin:0;font-size:14px;line-height:1.5;color:#4f6372}
 #modal-confirm-password .form-group{margin:0}
 #modal-confirm-password .input-label{display:block;margin:0 0 6px;font-weight:700;line-height:1.35}
 #modal-confirm-password .jm-payment-date>label{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
 #modal-confirm-password .jm-payment-date small{font-size:12px;font-weight:400;color:#617585}
 #modal-confirm-password .jm-payment-date-controls{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:center}
 #modal-confirm-password .form-input{height:42px;min-height:42px;margin:0;box-sizing:border-box;border-radius:2px;background:#fff}
 #modal-confirm-password .form-input[readonly]{background:#f0f4f6}
 #modal-confirm-password .jm-payment-date-controls button{height:42px;min-height:42px;padding:0 14px;margin:0}
 #modal-confirm-password .jm-payment-charges{margin:0;border:1px solid #b7c5cf;border-radius:2px;background:#fff}
 #modal-confirm-password .jm-payment-charges-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 14px;border-bottom:1px solid #d9bfc2;background:#fbf0f0;color:#a52b36;font-size:13px;line-height:1.4}
 #modal-confirm-password .jm-payment-charges-heading>span{font-size:12px}
 #modal-confirm-password .jm-payment-values{display:grid;grid-template-columns:1fr 1fr;align-items:end;gap:16px;padding:12px 14px}
 #modal-confirm-password .jm-payment-base{height:42px;display:flex;align-items:center;font-size:17px;font-weight:700;color:#263e4f}
 #modal-confirm-password .jm-payment-summary{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:11px 14px;border-top:1px solid #b7c5cf;background:#edf3f6}
 #modal-confirm-password .jm-payment-summary>div{display:flex;flex-direction:column;gap:5px}
 #modal-confirm-password .jm-payment-summary span{font-size:12px;color:#4f6372}
 #modal-confirm-password .jm-payment-summary strong{font-size:17px;line-height:1.3;color:#263e4f}
 #modal-confirm-password .jm-payment-summary .jm-payment-total{text-align:right}
 #modal-confirm-password .jm-payment-summary .jm-payment-total strong{font-size:20px;color:#17613d}
 #modal-confirm-password .jm-payment-charges-note{margin:0;padding:8px 14px;font-size:11px;line-height:1.45;color:#617585;border-top:1px solid #d9e2e8}
 #modal-confirm-password .jm-payment-password input{letter-spacing:normal}
 #modal-confirm-password .jm-payment-footer{display:flex;justify-content:flex-end;gap:10px;padding:13px 22px}
 #modal-confirm-password .jm-payment-footer button{min-height:40px;padding:8px 16px;margin:0}
 @media(max-width:500px){
  #modal-confirm-password .jm-payment-header{padding:14px;gap:9px}
  #modal-confirm-password .jm-payment-header h3{font-size:18px}
  #modal-confirm-password .jm-payment-body{padding:14px;gap:13px}
  #modal-confirm-password .jm-payment-date-controls{gap:6px}
  #modal-confirm-password .jm-payment-date-controls button{padding:0 9px}
  #modal-confirm-password .jm-payment-charges-heading{align-items:flex-start;flex-direction:column;gap:2px}
  #modal-confirm-password .jm-payment-values{gap:10px;padding:10px}
  #modal-confirm-password .jm-payment-charges-note{padding:7px 10px}
  #modal-confirm-password .jm-payment-footer{padding:12px 14px}
 }
}

@media screen {#user-pwd-change-icon svg.jm-account-lock{width:18px;height:20px;display:block;pointer-events:none;filter:drop-shadow(0 1px 1px #22344226)}}

@media screen {#modal-change-password .pwd-eye{display:flex;align-items:center;justify-content:center}#modal-change-password .pwd-eye svg{width:20px;height:20px;flex:none;pointer-events:none}}

@media screen {
 #modal-confirm-password #payment-auto-charge-details{grid-column:1/-1;margin:0;color:#526b7c;font-size:12px;line-height:1.5}
 #modal-creditor-summary .jm-creditor-window{width:min(760px,calc(100vw - 24px));max-width:760px;border-radius:2px}
 #modal-creditor-summary .modal-body{padding:20px 24px}
 .jm-creditor-name{border:0;background:none;padding:0;color:#233e51;font:700 14px/1.4 var(--jm-ui-font);cursor:pointer;text-decoration:none}
 #app-view .jm-creditor-name{font-weight:700!important}.jm-creditor-name:is(:hover,:focus-visible){text-decoration:underline;text-underline-offset:3px}
 .jm-creditor-identity{display:grid;grid-template-columns:1fr auto;gap:5px 14px;margin:0 0 18px}
 .jm-creditor-identity h4{grid-column:1;margin:0;font-size:19px;color:#263e4f}.jm-creditor-identity p{grid-column:1;margin:0;color:#617585;font-size:13px}
 .jm-creditor-identity .status-pill{grid-column:2;grid-row:1/3;align-self:center}
 .jm-creditor-counts{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid #acbdca;margin-bottom:18px}
 .jm-creditor-counts>div{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;border-right:1px solid #acbdca;font-size:13px}
 .jm-creditor-counts>div:last-child{border:0}.jm-creditor-counts strong{font-size:21px;color:#263e4f}
 .jm-creditor-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px 24px;margin:0}
 .jm-creditor-fields>div{border-bottom:1px solid #dae2e8;padding-bottom:10px;min-width:0}.jm-creditor-fields>div:last-child{grid-column:1/-1}
 .jm-creditor-fields dt{font-size:12px;color:#617585;margin-bottom:4px}.jm-creditor-fields dd{margin:0;font-size:14px;color:#263e4f;overflow-wrap:anywhere}
 .jm-installment-actions-panel.jm-floating-installment-actions{position:fixed;z-index:20000;display:grid;gap:6px;padding:9px;width:238px;max-height:calc(100dvh - 24px);overflow:auto;background:#fff;border:1px solid #a6b9c8;border-radius:2px;box-shadow:0 12px 30px #17293630;margin:0}
 @media(max-width:560px){.jm-creditor-fields{grid-template-columns:1fr}.jm-creditor-counts>div{flex-direction:column;align-items:flex-start;gap:5px;padding:10px}#modal-creditor-summary .modal-body{padding:16px}}
}

/* Settings: visible information cards and a section-based institutional editor. */
@media screen {
 :is(#settings-pane-telemetry,#settings-pane-institutional) .jm-settings-card{background:#fff;border:1px solid #adbdca;border-radius:2px;box-shadow:none;min-width:0}
 :is(#settings-pane-telemetry,#settings-pane-institutional) .jm-settings-card-heading{padding:18px 20px;border-bottom:1px solid #d2dce4}
 :is(#settings-pane-telemetry,#settings-pane-institutional) .jm-settings-card-heading h4{margin:0 0 5px;font-size:17px;font-weight:700;color:#263e4f}
 :is(#settings-pane-telemetry,#settings-pane-institutional) .jm-settings-card-heading p{margin:0;font-size:13px;line-height:1.5;color:#617585}
 #settings-pane-telemetry .jm-audit-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0 0 20px}
 #settings-pane-telemetry .jm-audit-metric{display:flex;flex-direction:column;gap:7px;padding:20px}
 #settings-pane-telemetry .jm-audit-metric-label{color:#526879;font-size:12px;font-weight:700;letter-spacing:.45px;text-transform:uppercase}
 #settings-pane-telemetry .jm-audit-metric strong{font-size:27px;line-height:1.25;color:#263e4f;font-weight:700}
 #settings-pane-telemetry .jm-audit-metric small{font-size:12px;color:#617585}
 #settings-pane-telemetry .jm-audit-filters{margin-bottom:20px}
 #settings-pane-telemetry .jm-audit-filter-grid{display:grid;grid-template-columns:repeat(2,minmax(150px,1fr)) repeat(2,minmax(130px,.75fr)) minmax(180px,1.2fr);gap:14px;padding:20px;align-items:end}
 #settings-pane-telemetry .jm-audit-filter-grid>div{min-width:0}
 #settings-pane-telemetry .jm-audit-filter-grid label{display:block;margin-bottom:7px;font-size:12px;font-weight:600;color:#526879}
 #settings-pane-telemetry .jm-audit-filter-grid .form-input{width:100%;height:42px;min-height:42px;padding:8px 10px;box-sizing:border-box}
 #settings-pane-telemetry .jm-audit-filter-actions{display:flex;justify-content:flex-end;gap:8px;grid-column:1/-1}
 #settings-pane-telemetry .jm-audit-filter-actions button{min-height:40px}
 #settings-pane-telemetry .jm-audit-records{overflow:hidden}
 #settings-pane-telemetry .jm-audit-table-scroll{overflow-x:auto}
 #settings-pane-telemetry .jm-audit-table-scroll table{margin:0;min-width:880px}
 #settings-pane-telemetry .jm-audit-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:16px 20px;border-top:1px solid #c6d2dc;font-size:13px;color:#526879}
 #settings-pane-institutional .jm-portal-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:20px;align-items:start}
 #settings-pane-institutional .jm-portal-sections{display:grid;gap:16px;min-width:0}
 #settings-pane-institutional .jm-portal-menu{padding:18px 12px 12px}
 #settings-pane-institutional .jm-portal-menu>h4{margin:0 8px 14px;font-size:15px;color:#263e4f}
 #settings-pane-institutional .jm-portal-navigation{display:grid;gap:6px}
 #settings-pane-institutional .inst-subtab-btn{display:flex;align-items:center;gap:12px;min-width:0;width:100%;padding:14px 12px;border:1px solid transparent;background:#fff;color:#263e4f;text-align:left;border-radius:2px;box-shadow:none;cursor:pointer;transition:background .18s,color .18s,border-color .18s}
 #settings-pane-institutional .inst-subtab-btn svg{width:22px;height:22px;flex:none}
 #settings-pane-institutional .inst-subtab-btn>span{display:grid;gap:4px;min-width:0}
 #settings-pane-institutional .inst-subtab-btn strong{font-size:14px;font-weight:700;line-height:1.35}
 #settings-pane-institutional .inst-subtab-btn small{font-size:12px;font-weight:400;line-height:1.45;color:#617585}
 #settings-pane-institutional .inst-subtab-btn:hover{background:#edf2f5;border-color:#adbdca}
 #settings-pane-institutional .inst-subtab-btn.active{background:#263e4f;border-color:#263e4f;color:#fff}
 #settings-pane-institutional .inst-subtab-btn.active small{color:#e1e8ed}
 #settings-pane-institutional .jm-portal-publishing{padding:18px 20px}
 #settings-pane-institutional .jm-portal-publishing h4{margin:0 0 8px;font-size:14px;color:#263e4f}
 #settings-pane-institutional .jm-portal-publishing p{margin:0;color:#617585;font-size:12px;line-height:1.6}
 #form-institutional-admin{min-width:0;margin:0}
 #settings-pane-institutional .jm-portal-editor{padding:0 24px 24px}
 #settings-pane-institutional .jm-portal-editor-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 -24px 22px;padding:20px 24px}
 #settings-pane-institutional .jm-portal-editor-heading>div{display:flex;align-items:center;gap:0;min-width:0}
 #settings-pane-institutional .jm-portal-editor-heading>div>span{display:none}
 #settings-pane-institutional .jm-portal-editor-heading .modal-inst-badge{flex:none;padding:5px 8px;border:1px solid #c6d2dc;color:#617585;background:#f5f7f9;font-size:10px;letter-spacing:.4px}
 #settings-pane-institutional .jm-portal-editor .form-group{margin:0 0 20px;min-width:0}
 #settings-pane-institutional .jm-portal-editor .input-label{display:block;margin-bottom:8px;color:#526879;font-size:13px;font-weight:600}
 #settings-pane-institutional .jm-portal-editor .form-input{width:100%;box-sizing:border-box}
 #settings-pane-institutional .jm-portal-editor input.form-input{height:44px;font-size:14px;font-weight:400}
 #settings-pane-institutional .jm-portal-editor textarea.form-input{min-height:220px;resize:vertical;line-height:1.7;font-size:14px;font-weight:400}
 #settings-pane-institutional .jm-portal-contact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
 #settings-pane-institutional .jm-portal-save-actions{display:flex;justify-content:flex-end;padding-top:18px;border-top:1px solid #d2dce4}
 #settings-pane-institutional .jm-portal-save-actions button{min-height:42px}
 @media(max-width:1100px){#settings-pane-telemetry .jm-audit-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#settings-pane-telemetry .jm-audit-filter-grid>div:nth-child(5){grid-column:1/-1}#settings-pane-institutional .jm-portal-layout{grid-template-columns:220px minmax(0,1fr)}}
 @media(max-width:760px){#settings-pane-telemetry .jm-audit-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}#settings-pane-institutional .jm-portal-layout{grid-template-columns:1fr}#settings-pane-institutional .jm-portal-navigation{grid-template-columns:repeat(2,minmax(0,1fr))}#settings-pane-institutional .jm-portal-publishing{display:none}#settings-pane-institutional .jm-portal-contact-grid{grid-template-columns:1fr}#settings-pane-institutional .jm-portal-editor-heading{align-items:flex-start;flex-wrap:wrap}}
 @media(max-width:480px){#settings-pane-telemetry .jm-audit-filter-grid{grid-template-columns:1fr}#settings-pane-telemetry .jm-audit-pagination>div{flex-wrap:wrap}#settings-pane-institutional .jm-portal-navigation{grid-template-columns:1fr}#settings-pane-institutional .jm-portal-editor{padding:0 16px 16px}#settings-pane-institutional .jm-portal-editor-heading{margin:0 -16px 18px;padding:18px 16px}#settings-pane-institutional .jm-portal-save-actions button{width:100%}}
}

@media screen {
 .jm-audit-details-link{display:inline!important;min-height:0!important;padding:0!important;border:0!important;background:transparent!important;color:#245c88!important;font:inherit!important;line-height:inherit!important;text-align:left;box-shadow:none!important;text-decoration:underline!important;text-underline-offset:3px;cursor:pointer}
 .jm-audit-details-link:hover{color:#183f60!important}
 .jm-audit-details-link::before,.jm-audit-details-link::after,.jm-audit-details-link svg{display:none!important}
 .jm-audit-origin{display:block;color:#647889;font-size:12px;margin-top:4px}
 .jm-record-audit-modal{width:min(1000px,calc(100vw - 32px));max-width:1000px;max-height:calc(100dvh - 40px);display:flex;flex-direction:column;border-radius:2px}
 .jm-record-audit-modal>.modal-header,.jm-record-audit-modal>.modal-footer{flex:none}
 #record-audit-content{overflow-y:auto;padding:22px 26px;min-height:0}
 .jm-audit-event-summary{font-size:15px;line-height:1.5;margin:0 0 18px;color:#263e4f}
 .jm-audit-metadata{display:grid;grid-template-columns:1fr 1fr;gap:14px 24px;padding:16px;margin:0 0 18px;border:1px solid #b8c6d1;background:#f3f6f8}
 .jm-audit-metadata dt{font-size:13px;color:#566c7b;margin-bottom:4px}.jm-audit-metadata dd{font-size:14px;color:#263e4f;margin:0;overflow-wrap:anywhere}.jm-audit-wide{grid-column:1/-1}
 .jm-audit-comparison{overflow-x:auto}.jm-audit-comparison table{width:100%;table-layout:fixed}.jm-audit-comparison :is(th,td){overflow-wrap:anywhere;white-space:pre-wrap}
 .jm-audit-note{font-size:13px;color:#526574;line-height:1.6;margin:15px 0 0}
 @media(max-width:620px){.jm-audit-metadata{grid-template-columns:1fr}#record-audit-content{padding:16px}.jm-audit-comparison table{min-width:520px}}
}
