/* Compatibility controls deliberately outside the site/back-office design layers. */
.compat-bar{position:sticky;top:0;z-index:400;min-height:52px;padding:8px 18px;background:#193b34;color:#f7f8f1;display:flex;gap:9px;align-items:center;font:13px/1.4 'Segoe UI',Arial,sans-serif;direction:ltr;border-bottom:1px solid #4a6c61;box-sizing:border-box}.compat-bar strong{margin-right:auto;font-size:12px;white-space:nowrap}.compat-bar small{font-size:11px;max-width:320px}.compat-bar button{font:600 12px/1.4 'Segoe UI',Arial,sans-serif;cursor:pointer;min-height:36px;border:1px solid #829b83;background:transparent;color:#fff;border-radius:6px;padding:8px 13px;white-space:nowrap}.compat-bar button.active{color:#193b34;background:#dfeeae;border-color:#dfeeae}.compat-bar button:focus-visible{outline:3px solid #f1c66a;outline-offset:2px}body[data-compat-mode] .site-header,body[data-compat-mode] .topbar{top:52px}body[data-compat-mode] .sidebar{top:52px;height:calc(100dvh - 52px)}body[data-compat-mode] .login{min-height:calc(100dvh - 52px)}body[data-compat-mode] .modal{top:52px}.compat-shade{position:fixed;inset:0;z-index:100000;background:#11251ecc;display:flex;align-items:center;justify-content:center;padding:20px;direction:ltr}.compat-dialog{box-sizing:border-box;width:min(760px,100%);max-height:88dvh;overflow:auto;background:#fff;color:#153c35;border:1px solid #cbdccf;border-radius:14px;padding:28px;font:15px/1.6 'Segoe UI',Arial,sans-serif;box-shadow:0 25px 80px #0005;text-align:left}.compat-dialog h2{font:600 24px/1.3 'Segoe UI',Arial,sans-serif;letter-spacing:normal;margin:0 0 18px}.compat-dialog p{margin:10px 0 16px;overflow-wrap:anywhere;color:#334f46}.compat-dialog label{display:block;font-weight:600;margin-top:18px}.compat-dialog input,.compat-dialog textarea{box-sizing:border-box;width:100%;padding:12px;border:1px solid #b1c6b9;border-radius:5px;background:#f7faf6;color:#122e22;font:13px/1.5 Consolas,monospace;direction:ltr;min-width:0}.compat-dialog textarea{height:240px;resize:vertical}.compat-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.compat-actions button,.compat-actions a{box-sizing:border-box;cursor:pointer;border:1px solid #a6beaf;border-radius:6px;background:white;color:#193b34;padding:10px 16px;min-height:44px;font:600 13px/1.5 'Segoe UI',Arial,sans-serif;text-decoration:none}.compat-actions .compat-primary{background:#246457;color:white;border-color:#246457}.compat-dialog :focus-visible{outline:3px solid #bd843a;outline-offset:3px}#compat-boot-error{padding:16px;background:#fff0d7;color:#5b3316;border-bottom:1px solid #bd843a;font:14px/1.6 Arial,sans-serif}#compat-boot-error[hidden]{display:none}.compat-fallback{padding:30px;max-width:1000px;margin:auto}#compat-overlay:empty{display:none}@media(max-width:650px){.compat-bar{padding:6px 10px;gap:6px}.compat-bar small{display:none}.compat-bar button{padding:8px 9px;font-size:11px}.compat-bar strong{font-size:10px}.compat-dialog{padding:20px}.compat-shade{padding:10px}.compat-dialog h2{font-size:21px}.compat-dialog textarea{height:180px}}@media print{.compat-bar,#compat-overlay{display:none!important}}
