/* Identidade Mabex Group compartilhada com o Planner. Preferências do escritório continuam em appearance.js. */
html{color-scheme:light dark}
body{font-family:Inter,'Segoe UI',Arial,sans-serif;background:light-dark(#f3f6fb,#06101d);color:light-dark(#10243c,#e8f2fc)}
#mlaw-preview{
 --ml-bg:light-dark(#f3f6fb,#06101d);--ml-panel:light-dark(#fff,#0c1b2d);
 --ml-text:light-dark(#10243c,#e8f2fc);--ml-muted:light-dark(#5c7088,#9eb2ca);
 --ml-line:light-dark(#dce5f0,#20354c);--ml-accent:light-dark(#0560d9,#56c9ff);
 --ml-accent-ink:var(--ml-accent);--ml-on-accent:light-dark(#fff,#061221);
 --ml-soft:light-dark(#eaf3ff,#102e4c);--ml-gold:light-dark(#806029,#e6c480);
 --ml-danger:light-dark(#a83535,#ffb7b7);
 font-family:Inter,'Segoe UI',Arial,sans-serif;font-size:14px;line-height:1.5;
}
#mlaw-preview .ml-shell{grid-template-columns:218px minmax(0,1fr)}
#mlaw-preview .ml-sidebar{background:linear-gradient(175deg,#091c32 0%,#061221 65%,#082742 100%);border-right:1px solid #18324c;padding:24px 16px;gap:22px;color:#b0c3d9}
#mlaw-preview .mx-brand{margin-bottom:0}
#mlaw-preview .mx-logo-frame{display:block;height:82px;overflow:hidden;border-radius:6px;background:transparent}
#mlaw-preview .mx-logo-frame img{display:block;width:100%;height:100%;object-fit:contain}
#mlaw-preview .mx-product{display:flex;align-items:center;gap:9px;margin:10px 10px 0;font-size:12px;font-weight:600;letter-spacing:3px;text-transform:uppercase;color:#eaf5ff}
#mlaw-preview .mx-product:before{content:'';width:18px;height:2px;background:linear-gradient(90deg,#0063ff,#00d4f0)}
#mlaw-preview .ml-office-brand{border-top:1px solid #24415e;padding:14px 9px 0;gap:9px;min-width:0}
#mlaw-preview .ml-office-brand small{color:#b6cbe1;font-size:12px;line-height:1.5}
#mlaw-preview .ml-office-brand .ml-monogram{width:26px;height:26px;font:600 13px Inter,'Segoe UI',sans-serif;border-radius:6px;background:#12345a;color:#71d5ff}
#mlaw-preview .ml-office-brand .ml-brand-logo{width:34px;height:34px;background:#fff;border-radius:6px;padding:3px}
#mlaw-preview nav{gap:5px}
#mlaw-preview nav button{border-radius:7px;color:#b0c3d9;padding:10px 11px;font-size:13px;min-height:39px;line-height:1.4;transition:background .15s}
#mlaw-preview nav button:hover{background:#102b46;color:#fff}
#mlaw-preview nav button[aria-current=page]{background:linear-gradient(100deg,#123d6c,#102d4c);color:#fff;box-shadow:inset 3px 0 #24c7f1}
#mlaw-preview .ml-sidebar>.ml-actions{gap:8px}
#mlaw-preview .ml-sidebar>.ml-actions button{background:transparent;border-color:#33516f;color:#c1d7eb;font-size:12px;min-height:35px;padding:6px 10px}
#mlaw-preview .ml-sidebar>.ml-actions button:hover{background:#102b46}
#mlaw-preview .ml-signature{color:#d5e8f8;font:600 12px Inter,'Segoe UI',sans-serif;padding:16px 9px 0;border-top:1px solid #24415e}
#mlaw-preview .ml-signature small{color:#88a4c2;font:11px/1.6 Inter,'Segoe UI',sans-serif}
#mlaw-preview .ml-main{padding:0 26px 24px}
#mlaw-preview .mx-workspace{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;min-height:44px;align-items:center;margin:0 -26px 25px;padding:12px 26px;background:var(--ml-panel);color:var(--ml-muted);font-size:11px;border-bottom:1px solid var(--ml-line);border-top:2px solid transparent;border-image:linear-gradient(90deg,#0564f5,#11c9e8,transparent) 1}
#mlaw-preview h1,#mlaw-preview h2,#mlaw-preview h3{font-family:Inter,'Segoe UI',Arial,sans-serif}
#mlaw-preview h1{font-size:30px;line-height:1.25;letter-spacing:-.8px;font-weight:600}
#mlaw-preview h2{font-size:15px;font-weight:600;line-height:1.5;letter-spacing:0;margin-bottom:14px}
#mlaw-preview h3{font-size:13px;font-weight:600}
#mlaw-preview .ml-top{margin-bottom:22px}
#mlaw-preview .ml-eyebrow{color:var(--ml-accent);letter-spacing:1.7px;font-size:10px;font-weight:600;margin-bottom:7px}
#mlaw-preview button{border-radius:6px;padding:8px 11px;font-size:12px;min-height:36px}
#mlaw-preview button.ml-primary{box-shadow:0 3px 8px #0064e916}
#mlaw-preview button:focus-visible,#mlaw-preview input:focus-visible,#mlaw-preview textarea:focus-visible,#mlaw-preview select:focus-visible{outline:2px solid #0cbce8;outline-offset:3px}
#mlaw-preview .ml-panel,#mlaw-preview .ml-stat{border-radius:9px;box-shadow:0 2px 10px #00183804}
#mlaw-preview .ml-panel{padding:18px 20px;margin-bottom:16px}
#mlaw-preview .ml-stat{padding:18px 20px}
#mlaw-preview .ml-stat strong{font-size:26px;font-weight:600;letter-spacing:-.5px}
#mlaw-preview .ml-stat small{font-size:12px}
#mlaw-preview .ml-stats{gap:14px;margin-bottom:18px}
#mlaw-preview small,#mlaw-preview .ml-sub,#mlaw-preview .ml-history{font-size:12px}
#mlaw-preview .ml-record{padding:13px 0}
#mlaw-preview .ml-record strong{font-weight:500}
#mlaw-preview .ml-tag{border-radius:5px;font-size:11px}
#mlaw-preview .ml-fields{gap:14px}
#mlaw-preview .ml-fields label,#mlaw-preview .ml-filter-grid label{font-size:12px}
#mlaw-preview input,#mlaw-preview select,#mlaw-preview textarea{border-radius:6px;font-size:14px;padding:9px 10px}
#mlaw-preview .ml-tabs{gap:5px}
#mlaw-preview .ml-tabs button{border-color:transparent;background:transparent}
#mlaw-preview .ml-tabs button[aria-pressed=true]{background:var(--ml-soft);color:var(--ml-accent-ink);box-shadow:inset 0 -2px var(--ml-accent);border-radius:5px 5px 0 0}
#mlaw-preview .ml-searchbox{border-radius:6px}
#mlaw-preview .ml-notice{font-size:13px;border-radius:7px}
#mlaw-preview .ml-report-table table{font-size:12px}
#mlaw-preview .ml-report-table th{font-weight:600}
#mlaw-preview .ml-appearance-preview{border-radius:9px}
#mlaw-preview .ml-appearance-preview .ml-brand strong{font:600 19px/1.3 Inter,'Segoe UI',sans-serif}
#mlaw-preview .ml-extra-fields{border-radius:7px}
#mlaw-preview .ml-calendar-day{border-radius:6px}
#mlaw-preview .ml-calendar-event{font-size:11px}
#mlaw-preview .ml-footer{font-size:11px}
.law-auth{box-sizing:border-box;max-width:1030px;min-height:100vh;padding:40px 30px;gap:0}
.law-auth-brand{box-sizing:border-box;align-self:stretch;background:linear-gradient(160deg,#091c32,#061221 65%,#082742);color:#e8f2fc;border:1px solid #18324c;border-radius:12px 0 0 12px;display:flex;flex-direction:column;justify-content:center;padding:40px;min-width:0;margin:0}
.mx-auth-logo{max-width:260px;width:100%;border-radius:7px;overflow:hidden;background:transparent}
.mx-auth-logo img{width:100%;height:auto;display:block}
.law-auth-brand .mx-auth-product{font:600 14px Inter,'Segoe UI',sans-serif;letter-spacing:2px;text-transform:uppercase;color:#9fdfff;margin:24px 0 8px}
.law-auth-brand h1{font:600 36px/1.2 Inter,'Segoe UI',sans-serif;letter-spacing:-1px;margin:16px 0}
.law-auth-brand>p:last-child{font-size:14px;color:#b6cbe1;line-height:1.7}
.law-auth-card{align-self:stretch;display:flex;flex-direction:column;justify-content:center;box-sizing:border-box;min-width:0;border:1px solid light-dark(#dce5f0,#20354c);border-left:0;border-radius:0 12px 12px 0;padding:40px;background:light-dark(#fff,#0c1b2d)}
.law-auth-card h2{font-size:22px;font-weight:600;margin:0 0 8px}
.law-auth-card>p{font-size:13px;color:light-dark(#5c7088,#9eb2ca)}
.law-auth label{font-size:13px;color:light-dark(#5c7088,#9eb2ca)}
.law-auth input{background:light-dark(#fff,#0c1b2d);border-color:light-dark(#dce5f0,#20354c);border-radius:6px;font-size:16px}
.law-auth button{border-color:light-dark(#dce5f0,#20354c);border-radius:6px;font-size:14px;background:light-dark(#eaf3ff,#102e4c)}
.law-auth .law-primary{width:100%;background:#0764e9;border-color:#0764e9;color:#fff;font-weight:600}
.law-auth button#recover{border:0;background:transparent;color:light-dark(#0560d9,#56c9ff);align-self:flex-start;padding-left:0;font-size:12px}
@media(max-width:850px){#mlaw-preview .ml-shell{grid-template-columns:190px minmax(0,1fr)}#mlaw-preview .ml-sidebar{padding:20px 12px}#mlaw-preview .ml-main{padding:0 20px 20px}#mlaw-preview .mx-workspace{margin:0 -20px 22px;padding:12px 20px}#mlaw-preview nav button{font-size:12px}}
@media(max-width:700px){.law-auth{display:grid;grid-template-columns:minmax(0,1fr);min-height:100vh;padding:20px}.law-auth-brand{border-radius:10px 10px 0 0;padding:24px;min-height:0}.mx-auth-logo{max-width:180px}.law-auth-brand h1{font-size:30px}.law-auth-brand .mx-auth-product{margin-top:16px}.law-auth-card{border-left:1px solid light-dark(#dce5f0,#20354c);border-top:0;border-radius:0 0 10px 10px;padding:26px}}
@media(max-width:580px){#mlaw-preview .ml-shell{grid-template-columns:minmax(0,1fr)}#mlaw-preview .ml-sidebar{padding:16px;gap:12px;border-right:0}#mlaw-preview .mx-brand{display:flex;align-items:center;gap:18px}#mlaw-preview .mx-logo-frame{width:150px;height:66px;flex-shrink:0}#mlaw-preview .mx-product{margin:0}#mlaw-preview .ml-office-brand{padding:9px 0 0}#mlaw-preview .ml-sidebar nav{display:flex;flex-wrap:wrap;gap:4px}#mlaw-preview nav button{min-height:40px;padding:9px;font-size:12px}#mlaw-preview .ml-main{padding:0 16px 20px}#mlaw-preview .mx-workspace{margin:0 -16px 20px;padding:10px 16px;font-size:10px}#mlaw-preview .mx-workspace>span:last-child{display:none}#mlaw-preview h1{font-size:27px}#mlaw-preview .ml-panel{padding:16px}#mlaw-preview button{min-height:42px}#mlaw-preview input,#mlaw-preview select,#mlaw-preview textarea{font-size:16px}#mlaw-preview .ml-signature{display:none}}


/* Identidade transparente e menu com contraste próprio. */
#mlaw-preview .ml-sidebar{background:var(--ml-side-bg,linear-gradient(175deg,#091c32 0%,#061221 65%,#082742 100%));color:var(--ml-side-muted,#b0c3d9);border-color:var(--ml-side-line,#18324c)}
#mlaw-preview .mx-logo-frame,.mx-auth-logo{background:transparent}
#mlaw-preview .mx-product{color:var(--ml-side-ink,#eaf5ff)}
#mlaw-preview .ml-office-brand,#mlaw-preview .ml-signature{border-color:var(--ml-side-line,#24415e)}
#mlaw-preview .ml-office-brand small,#mlaw-preview .ml-signature small{color:var(--ml-side-muted,#b6cbe1)}
#mlaw-preview .ml-office-brand .ml-brand-logo{background:transparent;padding:0}
#mlaw-preview .ml-office-brand .ml-monogram{background:var(--ml-side-selected,#12345a);color:var(--ml-side-ink,#71d5ff)}
#mlaw-preview nav button{color:var(--ml-side-muted,#b0c3d9)}
#mlaw-preview nav button:hover,#mlaw-preview .ml-sidebar>.ml-actions button:hover{background:var(--ml-side-hover,#102b46);color:var(--ml-side-ink,#fff)}
#mlaw-preview nav button[aria-current=page]{background:var(--ml-side-selected,linear-gradient(100deg,#123d6c,#102d4c));color:var(--ml-side-ink,#fff);box-shadow:inset 3px 0 var(--ml-side-mark,#24c7f1)}
#mlaw-preview .ml-sidebar>.ml-actions button{border-color:var(--ml-side-line,#33516f);color:var(--ml-side-ink,#c1d7eb)}
#mlaw-preview .ml-signature{color:var(--ml-side-ink,#d5e8f8)}
#mlaw-preview .ml-nav-title{color:var(--ml-side-muted,#8bc8ef)}
#mlaw-preview .ml-sidebar-settings{border:1px solid var(--ml-line);border-radius:8px;padding:16px;margin:0;min-width:0}
#mlaw-preview .ml-sidebar-settings legend{font-weight:600;padding:0 6px}
#mlaw-preview .ml-sidebar-preview{border-radius:8px;padding:16px;margin-top:14px;background:var(--ml-side-bg,linear-gradient(175deg,#091c32,#061221 65%,#082742));color:var(--ml-side-ink,#eaf5ff);display:grid;gap:10px}
#mlaw-preview .ml-sidebar-preview img{object-fit:contain}
#mlaw-preview .ml-sidebar-preview span{display:block;padding:8px 10px;border-radius:6px}
#mlaw-preview .ml-sidebar-preview .selected{background:var(--ml-side-selected,#123d6c);box-shadow:inset 3px 0 var(--ml-side-mark,#24c7f1)}
