/* Screen-only application finish. No document/print renderer styles. */
@media screen {
body.jmg-polished{--jmg-line:#d7e3ef;--jmg-surface:#fff;--jmg-tint:#f3f8fd;--jmg-ink:#082c4c;--jmg-muted:#526b83}
body.jmg-polished .app main .page.jd:not(#jmg-unused) table.jd-table thead tr:first-child th{background:#063962!important;color:#fff!important;font-size:14px!important;height:44px;padding:10px 12px;text-transform:none!important;letter-spacing:normal!important}
body.jmg-polished .page button.jmg-delete-action,#dlg button.jmg-delete-action{color:#d60024!important;border-color:#f1cdd4!important}
body.jmg-polished #dlg .jmg-asset-dossier .jmg-record-card dl{display:block}
body.jmg-polished #dlg .jmg-asset-dossier .jmg-record-card dl>div{display:grid;grid-template-columns:minmax(115px,.7fr) minmax(0,1.3fr)}
@media(min-width:761px){body.jmg-polished #assets .jd-table td:last-child{min-width:170px;width:170px}body.jmg-polished #assets .jd-actions,body.jmg-polished #finance .jd-actions{flex-wrap:nowrap}body.jmg-polished #finance .jd-table td:last-child{min-width:210px}}
body.jmg-polished .app main #finance.page.jd table.jd-table thead tr.jmg-column-filters th{background:#eaf3fb!important;color:#082c4c!important;padding:8px}
html[data-jmg-theme=dark] body.jmg-polished .app main #finance.page.jd table.jd-table thead tr.jmg-column-filters th{background:#1c3148!important;color:#dbeaff!important}
.jmg-polished .page{min-width:0}.jmg-polished .jd-head{gap:20px;margin-bottom:18px}.jmg-polished .jd-head h1,.jmg-polished .fm-welcome h1{font-size:30px;line-height:1.2}.jmg-polished .jd-head p,.jmg-polished .fm-welcome p{font-size:16px;line-height:1.45;margin-top:5px}
.jmg-polished :is(.page,#dlg) :is(input:not([type=checkbox]):not([type=radio]),select){min-height:40px;border-radius:6px;padding:8px 10px;max-width:100%;box-sizing:border-box;font-size:14px;line-height:1.3}
.jmg-polished :is(.page,#dlg) textarea{border-radius:6px;padding:10px;line-height:1.45;min-height:78px}
.jmg-polished :is(.page,#dlg) .jd-btn{min-height:38px;border-radius:6px;gap:7px;padding:8px 12px;line-height:1.3;font-size:14px}.jmg-polished :is(.page,#dlg) label{font-size:14px;line-height:1.4;min-width:0}
.jmg-polished :is(.jd-kpis,.fm-kpis){gap:14px;margin:16px 0 20px}.jmg-polished .jd-kpi{padding:16px;gap:14px;min-height:100px;border-radius:7px}.jmg-polished .jd-kpi b{font-size:27px;line-height:1.2}.jmg-polished .jd-orb{width:52px;height:52px;min-width:52px}.jmg-polished .jd-orb svg{width:28px;height:28px}.jmg-polished .jd-kpi small{font-size:14px}.jmg-polished .jd-kpi em{font-size:13px;margin-top:4px}
.jmg-polished .jd-filters{gap:12px;align-items:end;margin:16px 0}.jmg-polished .jd-filters label{min-width:0}.jmg-polished .jd-period{gap:8px}.jmg-polished .jd-detail-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:12px 0 16px}
.jmg-polished .jd-tablewrap{border:1px solid var(--jmg-line);border-radius:7px;overflow:auto}.jmg-polished .jd-table{margin:0;width:100%;border-collapse:collapse;font-size:14px}.jmg-polished .jd-table thead tr:first-child th{background:#063962!important;color:#fff!important;height:44px;padding:10px 12px;vertical-align:middle;font-size:14px;font-weight:500;border-right:1px solid #ffffff24}.jmg-polished .jd-sort{color:inherit;min-height:24px;white-space:nowrap;font:inherit;display:inline-flex;gap:6px;align-items:center}.jmg-polished th[aria-sort=ascending],.jmg-polished th[aria-sort=descending]{box-shadow:inset 0 -3px 0 #65b5ff}
.jmg-polished .jd-table td{padding:11px 12px;vertical-align:middle;line-height:1.4;border-color:var(--jmg-line)}.jmg-polished .jd-table tbody tr:nth-child(even){background:var(--jmg-tint)}.jmg-polished .jd-table tbody tr:hover{background:#e9f3fd}.jmg-polished .jd-table .jd-empty{padding:30px 18px;color:var(--jmg-muted)}
.jmg-polished .jd-actions{display:inline-flex;gap:6px;align-items:center;flex-wrap:wrap}.jmg-polished .jd-table td:last-child{min-width:112px}.jmg-polished :is(.page,#dlg) button.jmg-icon-action{display:inline-flex;align-items:center;justify-content:center;width:36px;min-width:36px;height:36px;min-height:36px;padding:7px!important;margin:2px;border:1px solid var(--jmg-line);border-radius:6px;background:var(--jmg-surface);color:var(--jmg-ink);vertical-align:middle;cursor:pointer}.jmg-polished .jmg-icon-action svg{width:19px;height:19px;flex:none}.jmg-polished :is(.page,#dlg) .jmg-delete-action{color:#d60024;border-color:#f1cdd4}.jmg-polished .jmg-icon-action:hover{background:#e5effa!important;border-color:#80a8d1!important}.jmg-polished .jmg-delete-action:hover{background:#fff0f2!important;border-color:#d60024!important}.jmg-polished button:focus-visible{outline:3px solid #2c91ed;outline-offset:2px}.jmg-polished button:disabled{cursor:not-allowed;opacity:.55}
.jmg-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.jmg-polished #clients .jd-split{grid-template-columns:minmax(0,1fr) minmax(260px,300px);gap:18px}.jmg-polished #clients .jd-table{table-layout:auto;min-width:900px}.jmg-polished #clients .jd-table :is(th,td):first-child{min-width:170px;width:23%}.jmg-polished #clients .jd-table :is(th,td):nth-child(2){width:140px;min-width:140px;white-space:nowrap}.jmg-polished #clients .jd-table :is(th,td):nth-child(3){width:125px;min-width:125px;white-space:nowrap}.jmg-polished #clients .jd-table :is(th,td):nth-child(4){min-width:210px;white-space:nowrap;word-break:normal;overflow-wrap:normal}.jmg-polished #clients .jd-table td:nth-child(4){font-size:13px}.jmg-polished #clients .jd-table td:last-child{min-width:140px;white-space:nowrap}.jmg-polished #clients .jd-table :is(th,td):nth-child(6){width:70px;text-align:center}
.jmg-polished #assets .jd-table td:first-child,.jmg-polished #geo .jd-table td:first-child{white-space:nowrap;font-weight:600}.jmg-polished #assets .jd-table td:last-child{width:138px;white-space:nowrap}.jmg-polished #contracts .jd-table td:last-child,.jmg-polished #invoices .jd-table td:last-child{min-width:230px}
body.jmg-polished #finance .jd-table thead tr:first-child th{background:#063962!important;color:#fff!important;height:44px;padding:10px 12px;font-size:14px;font-weight:500}.jmg-polished #finance .jmg-column-filters th{padding:8px;background:#eaf3fb!important;border-color:var(--jmg-line);vertical-align:middle}.jmg-polished #finance .jmg-column-filters input{width:100%;min-width:92px!important;background:var(--jmg-surface)!important;color:var(--jmg-ink)!important}.jmg-polished #finance .jd-table td:nth-child(n+5):nth-child(-n+7){white-space:nowrap}.jmg-polished #finance .jd-table th:last-child{min-width:195px}.jmg-polished #finance .jd-table select{margin-top:5px}
.jmg-polished .jd-panel,.jmg-polished .fm-panel{border-radius:8px;border-color:var(--jmg-line)}.jmg-polished .jd-panel-title{padding:12px 15px;font-size:19px}.jmg-polished .jd-panel-body{padding:15px}.jmg-polished .jd-panel-body dl{grid-template-columns:minmax(85px,auto) minmax(0,1fr);gap:10px}.jmg-polished .jd-panel-body dd{overflow-wrap:anywhere}.jmg-polished .jd-pages{gap:12px;align-items:center;margin:16px 0 20px;flex-wrap:wrap;font-size:14px}
.jmg-polished #dlg .dh{padding:18px 22px}.jmg-polished #dlg .dh b{font-size:23px;line-height:1.25}.jmg-polished #dlg .db{padding:20px}.jmg-polished #dlg .df{padding:14px 20px}.jmg-polished #dlg .jd-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:18px}.jmg-polished #dlg .jd-tabs .jd-btn{padding:10px 13px}.jmg-polished #dlg .jd-tabs .primary{background:#e80023;color:white;border-color:#e80023}
.jmg-polished #dlg .jmg-asset-dossier .jd-kpi{min-height:96px;padding:14px}.jmg-polished #dlg .jmg-asset-dossier .jd-kpi b{font-size:22px;line-height:1.25;overflow-wrap:anywhere}.jmg-polished #dlg .jmg-asset-dossier .jd-orb{width:44px;height:44px;min-width:44px}.jmg-polished .jmg-record-grid{gap:16px}.jmg-polished .jmg-record-card{padding:18px;border-radius:8px;border-color:var(--jmg-line);background:var(--jmg-surface)}.jmg-polished .jmg-record-card h3{font-size:19px;margin:0 0 16px}.jmg-polished .jmg-record-card dl>div{grid-template-columns:minmax(115px,.7fr) minmax(0,1.3fr);padding:9px 10px;gap:12px}.jmg-polished .jmg-record-card dl>div:nth-child(odd){background:var(--jmg-tint);border-radius:5px}.jmg-polished .jmg-record-card dd{font-size:15px;line-height:1.45;overflow-wrap:anywhere}.jmg-polished .jmg-record-card dt{font-size:14px;line-height:1.45;color:var(--jmg-muted)}.jmg-polished .jmg-record-card>.jd-btn{margin-top:14px}.jmg-polished .jmg-dossier-map{height:310px;min-height:240px;border-radius:6px;overflow:hidden;background:var(--jmg-tint)}
.jmg-polished .jmg-site-search{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px;margin-bottom:14px;padding:14px;background:var(--jmg-tint);border:1px solid var(--jmg-line);border-radius:7px}.jmg-polished .jmg-site-search label{display:grid;gap:6px}.jmg-polished .jmg-site-search p{grid-column:1/-1;margin:0;font-size:13px}.jmg-polished #dlg .jd-item-editor select{min-width:0;width:100%}
.jmg-polished .fm-row-top,.jmg-polished .fm-row-bottom{gap:18px}.jmg-polished .fm-panel{padding:16px}.jmg-polished .fm-kpi{padding:18px;min-height:118px}.jmg-polished .fm-kpi strong{font-size:30px}.jmg-polished .fm-quick{gap:8px}.jmg-polished .jd-footer{margin-top:22px}
html[data-jmg-theme=dark] body.jmg-polished{--jmg-line:#34495d;--jmg-surface:#17283d;--jmg-tint:#132236;--jmg-ink:#dbeaff;--jmg-muted:#b3c7dd}html[data-jmg-theme=dark] .jmg-polished .jd-table tbody tr:hover{background:#203c58}html[data-jmg-theme=dark] .jmg-polished #finance .jmg-column-filters th{background:#1c3148!important}html[data-jmg-theme=dark] .jmg-polished .jmg-icon-action:hover{background:#284867!important}html[data-jmg-theme=dark] .jmg-polished .jmg-delete-action{color:#ff9bac;border-color:#76505b}html[data-jmg-theme=dark] .jmg-polished .jmg-delete-action:hover{background:#50242e!important}
@media(max-width:1200px){.jmg-polished #clients .jd-split{grid-template-columns:minmax(0,1fr)}.jmg-polished #clients .jd-details{max-width:none}.jmg-polished .jd-filters{flex-wrap:wrap}.jmg-polished .jd-filters label{flex:1 1 170px}}
@media(max-width:760px){.jmg-polished .jd-head h1,.jmg-polished .fm-welcome h1{font-size:25px}.jmg-polished .jd-head{gap:12px}.jmg-polished .jd-kpi{padding:12px;min-height:90px}.jmg-polished .jd-kpi b{font-size:23px}.jmg-polished .jd-kpi .jd-orb{width:38px;height:38px;min-width:38px}.jmg-polished #dlg .db{padding:14px}.jmg-polished #dlg .dh{padding:14px}.jmg-polished #dlg .dh b{font-size:20px}.jmg-polished #dlg .jd-tabs{gap:6px}.jmg-polished .jmg-record-grid{grid-template-columns:1fr}.jmg-polished .jmg-record-card{padding:14px}.jmg-polished .jmg-record-card dl>div{grid-template-columns:1fr;gap:4px}.jmg-polished .jmg-site-search{grid-template-columns:1fr}.jmg-polished #clients .jd-table{min-width:0}.jmg-polished #clients .jd-table :is(th,td){min-width:0!important;width:auto!important;white-space:normal!important}.jmg-polished #clients .jd-table td:nth-child(4){overflow-wrap:anywhere;word-break:break-word}.jmg-polished #assets .jd-table td:last-child{white-space:normal}.jmg-polished .jd-table td:last-child{min-width:0!important}.jmg-polished .jmg-dossier-map{height:260px}.jmg-polished :is(.page,#dlg) button.jmg-icon-action{width:40px;height:40px;min-width:40px}.jmg-polished .jd-pages{font-size:13px}.jmg-polished .jd-panel-body{padding:12px}}
@media(max-width:760px){
body.jmg-polished #dlg .jmg-asset-dossier .jd-kpis{grid-template-columns:minmax(0,1fr)}
body.jmg-polished #dlg .jmg-asset-dossier .jd-kpi{min-height:78px;padding:12px 14px}
body.jmg-polished #dlg .jmg-asset-dossier .jd-kpi b{font-size:21px;overflow-wrap:normal}
body.jmg-polished .app main .page.jd .jd-filters{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px;padding:12px}
body.jmg-polished .app main .page.jd .jd-filters label{width:100%!important;min-width:0!important;max-width:100%;flex:auto}
body.jmg-polished .app main .page.jd .jd-period{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;min-width:0}
body.jmg-polished .app main .page.jd .jd-period input{width:100%!important;min-width:0!important}
body.jmg-polished .app main .page.jd .jd-table tbody tr td:last-child{display:flex!important;flex-wrap:wrap!important;justify-content:flex-start;align-items:center;gap:4px;white-space:normal!important}
body.jmg-polished .app main .page.jd .jd-table tbody tr td:last-child::before{flex:0 0 100%;text-align:left}
body.jmg-polished .app main .page.jd .jd-table tbody tr td:last-child .jd-actions{display:contents!important}
body.jmg-polished .app main .page.jd .jd-table td::before{color:var(--jmg-muted)!important}
body.jmg-polished #dlg .jmg-asset-dossier .jmg-record-card dl>div{grid-template-columns:1fr}
}
html[data-jmg-theme=dark] body.jmg-polished .page button.jmg-delete-action,html[data-jmg-theme=dark] #dlg button.jmg-delete-action{color:#ff9bac!important;border-color:#76505b!important}
body.jmg-polished .fm-kpi{padding:18px 18px 18px 94px}
@media(min-width:761px){
body.jmg-polished .page .jd-filters label:has(.jd-period){flex:0 0 252px;min-width:252px}
body.jmg-polished .page .jd-filters .jd-period{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
body.jmg-polished .page .jd-filters .jd-period input{width:100%;min-width:0}
body.jmg-polished :is(#contracts,#invoices) .jd-table td:last-child{white-space:nowrap}
body.jmg-polished :is(#contracts,#invoices) .jd-table td:last-child .jd-actions{display:contents!important}
body.jmg-polished #contracts .jd-table td:last-child{min-width:310px}
}
}

/* Mobile review 2026-10-21: screen controls only; printed documents are isolated. */
@media screen and (max-width:800px),screen and (max-device-width:1024px){
 body.jmg-polished .app{display:block!important;}
 body.jmg-polished .app>main{margin:0!important;min-width:0!important;padding:0 12px!important;}
 body.jmg-polished .app>aside{display:block!important;position:fixed!important;left:0!important;top:0!important;bottom:0!important;width:250px!important;max-width:calc(100vw - 40px);height:100dvh!important;min-height:0!important;z-index:3000;overflow-y:auto;transform:translateX(-105%)!important;visibility:hidden;}
 body.jmg-polished.r-drawer .app>aside{transform:translateX(0)!important;visibility:visible;}
 body.jmg-polished .app nav{display:flex!important;flex-direction:column!important;}
 body.jmg-polished .fm-slogan{display:none!important;}
 body.jmg-polished .jmg-topbar .fm-menu{display:inline-flex!important;visibility:visible!important;}
 body.jmg-polished .page :is(.jd-split,.jd-map-grid,.jd-log-map-grid,.jd-config-grid,.jd-chart-grid){grid-template-columns:minmax(0,1fr)!important;}
 body.jmg-polished .page .jd-head{flex-wrap:wrap;}
 body.jmg-polished .page :is(.jd-kpis,.jd-kpis.five){grid-template-columns:repeat(2,minmax(0,1fr));}
 body.jmg-polished .page .jd-filters{display:grid!important;grid-template-columns:minmax(0,1fr);}
 body.jmg-polished .page .jd-filters label{min-width:0!important;width:100%;}
 body.jmg-polished .page .jd-date{display:none!important;}
 body.jmg-polished .page .jd-pages{flex-wrap:wrap;}
 body.jmg-polished .page .jd-footer{margin:0 -12px;flex-wrap:wrap;}
 body.jmg-polished .page .jd-footer .jd-contacts{display:grid;grid-template-columns:1fr;gap:12px;}
 body.jmg-polished .page .jd-company{clip-path:none;width:100%;}
 body.jmg-polished .page .jd-table{display:block!important;}
 body.jmg-polished .page .jd-table thead{display:none!important;}
 body.jmg-polished .page .jd-table tbody{display:grid;gap:10px;}
 body.jmg-polished .page .jd-table tr{display:block;border:1px solid var(--jmg-line);border-radius:6px;padding:8px;}
 body.jmg-polished .page .jd-table td{display:flex!important;justify-content:space-between;align-items:center;gap:12px;width:100%!important;box-sizing:border-box;overflow-wrap:anywhere;}
 body.jmg-polished .page .jd-table td::before{content:attr(data-label);flex:0 0 34%;font-weight:600;}
 body.jmg-polished #dash .fm-kpis{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;}
 body.jmg-polished #dash .fm-kpi{padding:14px 12px 14px 64px!important;min-width:0;min-height:112px;height:auto!important;overflow:visible;}
 body.jmg-polished #dash .fm-kpi .fm-orb{left:12px!important;width:38px!important;height:38px!important;}
 body.jmg-polished #dash .fm-kpi :is(small,strong,em){white-space:normal!important;overflow-wrap:anywhere;}
 body.jmg-polished #dash .fm-kpi strong{font-size:24px!important;line-height:1.3;}
 body.jmg-polished #dash .fm-kpi :is(small,em){font-size:14px!important;}
 body.jmg-polished #dash .fm-panel{min-width:0;overflow:visible!important;}
 body.jmg-polished #dash .fm-panel table.fm-table{display:block!important;min-width:0!important;width:100%!important;overflow:visible!important;}
 body.jmg-polished #dash .fm-table thead{display:none!important;}
 body.jmg-polished #dash .fm-table tbody{display:grid!important;gap:10px;}
 body.jmg-polished #dash .fm-table tr{display:block!important;height:auto!important;border:1px solid var(--jmg-line);border-radius:6px;padding:8px;}
 body.jmg-polished #dash .fm-table td{display:flex!important;justify-content:space-between;gap:10px;width:100%!important;height:auto!important;box-sizing:border-box;white-space:normal!important;overflow-wrap:anywhere;}
 body.jmg-polished #dash .fm-table td::before{content:attr(data-label);flex:0 0 34%;font-weight:600;color:var(--jmg-muted);}
 body.jmg-polished .app main .page.jd table.jd-table,
 body.jmg-polished #dlg table{overflow:visible!important;min-width:0!important;max-width:100%;width:100%;}
 body.jmg-polished .app main .page.jd table.jd-table tbody tr,
 body.jmg-polished #dlg table tbody tr{height:auto!important;max-height:none!important;overflow:visible!important;background:var(--jmg-surface,#fff)!important;}
 body.jmg-polished .app main .page.jd table.jd-table tbody tr td,
 body.jmg-polished #dlg table tbody tr td{height:auto!important;max-height:none!important;min-width:0!important;overflow:visible!important;white-space:normal!important;}
 body.jmg-polished .app main .page.jd table.jd-table tbody tr td:last-child{display:flex!important;flex-wrap:wrap!important;align-items:center;gap:8px;padding-bottom:12px!important;}
 body.jmg-polished .app main .page.jd table.jd-table tbody tr td:last-child::before{flex:0 0 100%;text-align:left;}
 body.jmg-polished .app main .page.jd table.jd-table tbody tr td:last-child .jd-actions{display:contents!important;}
 body.jmg-polished :is(.page,#dlg,.jmg-topbar,.gate) :is(input,select,textarea){font-size:16px!important;max-width:100%;}
 body.jmg-polished :is(.page,#dlg,.jmg-topbar,.gate) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select){min-height:44px!important;}
 body.jmg-polished :is(.page,#dlg,.jmg-topbar,.gate) button,
 body.jmg-polished :is(.page,#dlg) button.jmg-icon-action{min-height:44px!important;min-width:44px;touch-action:manipulation;}
 body.jmg-polished :is(.page,#dlg) button.jmg-icon-action{width:44px;height:44px;min-height:44px;}
 body.jmg-polished .jd-link{white-space:normal;text-align:inherit;overflow-wrap:anywhere;}
 body.jmg-polished .page .jd-pages button{min-width:44px!important;}
 body.jmg-polished .page .jd-detail-actions{align-items:end;}
 body.jmg-polished :is(.jd-kpi,.jd-kpi>div,.jd-kpi b,.jd-details,.jd-config-card,.jd-fields,.r-section,.jmg-summary){min-width:0;}
 body.jmg-polished .jd-kpi b{overflow-wrap:anywhere;}
 body.jmg-polished #dlg{position:fixed!important;left:0!important;right:0!important;top:calc(var(--jmg-mobile-vtop,0px) + 8px)!important;bottom:auto!important;margin:0 auto!important;width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important;max-height:calc(var(--jmg-mobile-vh,100dvh) - 16px)!important;overflow:hidden!important;}
 body.jmg-polished #dc{display:flex;flex-direction:column;max-height:calc(var(--jmg-mobile-vh,100dvh) - 16px)!important;min-height:0;}
 body.jmg-polished #dlg :is(.dh,.df){flex-shrink:0;position:relative!important;}
 body.jmg-polished #dlg .dh{gap:8px;padding:12px!important;}
 body.jmg-polished #dlg .dh b{font-size:18px;line-height:1.3;min-width:0;overflow-wrap:anywhere;}
 body.jmg-polished #dlg .dh button{flex-shrink:0;}
 body.jmg-polished #dlg .db{flex:1 1 auto;min-height:0;max-height:none!important;overflow:auto!important;overscroll-behavior:contain;padding:12px!important;scroll-padding-block:18px;}
 body.jmg-polished #dlg .df{gap:8px;padding:10px 12px!important;flex-wrap:wrap;}
 body.jmg-polished #dlg .df button{flex:1 1 110px;white-space:normal!important;line-height:1.3;}
 body.jmg-polished #dlg :is(fieldset,.r-section,.jd,.form,.jd-item-editor,.jd-tablewrap){min-inline-size:0;max-width:100%;box-sizing:border-box;}
 body.jmg-polished #dlg :is(input,select,textarea){box-sizing:border-box;min-width:0!important;}
 body.jmg-polished #dlg .detail{display:grid!important;grid-template-columns:minmax(0,1fr)!important;}
 body.jmg-polished #dlg .detail>div{min-width:0;overflow-wrap:anywhere;}
 body.jmg-polished #dlg .toolbar{display:flex;flex-wrap:wrap;gap:8px;}
 body.jmg-polished #dlg .jd-item-editor{overflow:visible;}
 body.jmg-polished .page .jd-tabs{display:flex!important;flex-wrap:wrap!important;overflow:visible!important;gap:8px;}
 body.jmg-polished .page .jd-tabs button{flex:1 1 110px;min-width:0!important;width:auto;white-space:normal!important;}
 body.jmg-polished .page .jd-config-grid .jd-fields{display:grid!important;grid-template-columns:minmax(0,1fr)!important;}
 body.jmg-polished .page .jd-config-grid .jd-fields>label{grid-column:auto!important;}
 body.jmg-polished .page .jd-table td:has(select){flex-wrap:wrap!important;}
 body.jmg-polished .page .jd-table td:has(select)::before{flex:0 0 100%!important;}
 body.jmg-polished #dlg .jd-item-editor table{min-width:0!important;width:100%!important;}
 body.jmg-polished #dlg table :is(tbody,tr,td){display:block!important;width:100%!important;box-sizing:border-box;}
 body.jmg-polished #dlg table thead{display:none!important;}
 body.jmg-polished #dlg table td{padding:8px!important;}
 body.jmg-polished #dlg table td::before{content:attr(data-label);display:block;flex:none;font-size:13px;font-weight:600;color:var(--jmg-muted,#526b83);margin-bottom:6px;}
 body.jmg-polished #dlg table td[data-label=""]::before{display:none;}
 body.jmg-polished #dlg .jmg-summary{gap:12px;padding:12px;}
 body.jmg-polished #dlg .jmg-summary span{min-width:0;flex-basis:130px;overflow-wrap:anywhere;}
 body.jmg-polished:has(#dlg[open]){overflow:hidden;}
 body.jmg-polished .jmg-topbar{height:auto!important;min-height:60px;display:flex!important;flex-wrap:wrap;gap:8px!important;padding:8px 12px!important;align-items:center;position:sticky!important;left:auto!important;top:0!important;margin:0 -12px 15px!important;}
 body.jmg-polished .jmg-topbar .jmg-profile{margin-left:auto;gap:6px;}
 body.jmg-polished .jmg-topbar .jmg-theme-control{font-size:0!important;margin:0;}
 body.jmg-polished .jmg-topbar #jmg-theme{width:110px;}
 body.jmg-polished .jmg-topbar .jmg-search{display:flex!important;order:5;flex:0 0 100%!important;width:100%;min-width:0;max-width:100%!important;height:44px!important;margin:0!important;}
 body.jmg-polished .jmg-topbar .jmg-search input{width:100%;min-width:0;}
 body.jmg-polished .fm-search-results{max-width:100%;max-height:50dvh;overflow:auto;}
 .jmg-mobile-backdrop{display:none;}
 body.jmg-polished.r-drawer .jmg-mobile-backdrop{display:block;position:fixed;inset:0;z-index:2999;border:0;background:#05274488;cursor:pointer;}
 body.jmg-polished.r-drawer{overflow:hidden;}
 body.jmg-polished .jmg-mobile-finance-sort{display:flex;gap:8px;align-items:end;margin:12px 0;}
 body.jmg-polished .jmg-mobile-finance-sort label{flex:1;min-width:0;}
 body.jmg-polished .jmg-mobile-finance-sort select{width:100%;}
}
@media screen and (min-width:801px) and (min-device-width:1025px){.jmg-mobile-backdrop,.jmg-mobile-finance-sort{display:none!important;}}
@media screen and (max-width:359px){body.jmg-polished .page :is(.jd-kpis,.jd-kpis.five){grid-template-columns:minmax(0,1fr)!important;}}
@media screen and (max-width:600px){body.jmg-polished #dash .fm-kpis{grid-template-columns:minmax(0,1fr)!important;}}
@media screen{html[data-jmg-theme=dark] body.jmg-polished #dlg :is(label,legend,h1,h2,h3,b,strong){color:#e5edf7!important;}html[data-jmg-theme=dark] body.jmg-polished #dlg .df button:not(#sv){background:#17283d!important;color:#e5edf7!important;border-color:#536a80!important;}}
@media screen{body.jmg-polished:has(#gate:not(.hide)) .app{display:none!important;}body.jmg-polished:has(#gate:not(.hide)) .jmg-mobile-backdrop{display:none!important;}}
@media screen and (max-width:800px),screen and (max-device-width:1024px){body.jmg-polished #gate{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:16px;overflow-y:auto;overscroll-behavior:contain;}body.jmg-polished #gate .box{margin:auto 0;flex:none;max-width:100%;}}

@media screen and (max-width:800px),screen and (max-device-width:1024px){body.jmg-polished #dash .fm-panelhead{flex-wrap:wrap;gap:8px;}body.jmg-polished #dash .fm-panelhead h2{min-width:0;overflow-wrap:anywhere;}body.jmg-polished #dash .fm-panelhead .fm-link{max-width:100%;white-space:normal!important;gap:8px;}}
