:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#10243b;background:#f3f6fa;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #60a5fa;outline-offset:3px}a{color:inherit}
[hidden]{display:none!important}
.mt-primary{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:12px;background:#0b63f6;color:#fff;padding:14px 20px;font-size:14px;font-weight:750;text-decoration:none;box-shadow:0 9px 22px #0b63f628}
.mt-primary:hover{background:#0756da}
.mt-secondary{border:1px solid #dce5f0;background:#fff;color:#1e3349;padding:11px 16px;border-radius:12px;font-weight:700}
.mt-error{color:#b42318;font-size:13px;min-height:18px}
.mt-login{display:grid;place-items:center;min-height:100dvh;padding:24px;background:linear-gradient(135deg,#051526,#0b2b48)}
.mt-login-card{display:grid;gap:15px;width:min(440px,100%);background:#fff;padding:36px;border-radius:22px;box-shadow:0 24px 80px #0003;text-align:left}
.mt-login-card .mt-brand-mark{margin:0 auto}.mt-login-card .mt-eyebrow,.mt-login-card h1,.mt-login-card>p{text-align:center}
.mt-login-card h1{font-size:29px;margin:0}.mt-login-card h1 span{color:#0b63f6}.mt-login-card>p{font-size:13px;line-height:1.55;color:#6b7a90;margin:0 0 8px}.mt-login-card .mt-eyebrow{font-size:10px;font-weight:900;letter-spacing:.15em;color:#0b63f6}
.mt-login-card label{display:grid;gap:6px;font-weight:750;color:#334155;font-size:13px}.mt-login-card input{height:46px;padding:0 13px;border:1px solid #d8e2ee;border-radius:11px;color:#122841;background:#fff}
.mt-brand-mark{width:44px;height:44px;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,#4296ff,#0755ed);font-weight:950;font-size:26px;border-radius:13px;box-shadow:0 9px 24px #0b63f633}
.mt-app{display:flex;min-height:100dvh}
.mt-sidebar{width:268px;flex:0 0 268px;background:linear-gradient(180deg,#061421 0%,#0a2235 100%);color:#d8e4f5;display:flex;flex-direction:column;min-height:100dvh;position:sticky;top:0;height:100dvh;padding:27px 17px 20px;overflow-y:auto;z-index:20}
.mt-brand{display:flex;align-items:center;gap:12px;margin:0 7px 37px}.mt-brand strong{display:block;font-size:19px;letter-spacing:-.7px;white-space:nowrap;color:white}.mt-brand strong span{color:#3884ff}.mt-brand small{display:block;font-size:10px;letter-spacing:.13em;font-weight:900;color:#7e9ab8;margin-top:4px}
.mt-sidebar-heading{font-size:10px;letter-spacing:.14em;color:#6f91ac;font-weight:900;margin:0 12px 10px}.mt-sidebar-heading.mt-group{margin-top:27px}
#mtNav{display:grid;gap:4px}#mtNav>button{border:0;background:transparent;color:#c4d6e8;width:100%;min-height:48px;text-align:left;padding:12px 13px;border-radius:12px;display:flex;align-items:center;gap:11px;font-size:14px;font-weight:650}
#mtNav>button:hover{background:#ffffff0f}#mtNav>button.active{background:#ffffff19;color:#fff;box-shadow:inset 3px 0 #3a92ff}
.mt-nav-ico{font-size:19px;flex:0 0 24px;text-align:center;color:#77a7dd}.mt-nav-tag{font-size:10px;color:#acd0f4;margin-left:auto;background:#ffffff14;padding:4px 6px;border-radius:20px}
.mt-sidebar-bottom{margin-top:auto;border-top:1px solid #ffffff17;display:grid;gap:6px;padding:20px 8px 0}.mt-sidebar-bottom a,.mt-sidebar-bottom button{color:#b5d1ec;background:transparent;border:0;text-align:left;text-decoration:none;font-size:12px;font-weight:700;padding:8px}
.mt-sidebar-bottom a:hover,.mt-sidebar-bottom button:hover{color:#fff}
.mt-workspace{flex:1;min-width:0}
.mt-topbar{min-height:90px;display:flex;align-items:center;gap:18px;justify-content:space-between;background:#fff;border-bottom:1px solid #e3eaf3;padding:18px clamp(18px,2.5vw,40px)}
.mt-topbar small{display:block;color:#075be1;letter-spacing:.13em;font-size:10px;font-weight:900}.mt-topbar h2{margin:5px 0 0;color:#101f35;font-size:24px;letter-spacing:-.035em}
.mt-header-actions{display:flex;align-items:center;gap:12px}.mt-user{font-size:12px;color:#60738a;font-weight:700;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mt-content{padding:24px clamp(18px,2.5vw,40px) 48px}
.mt-intro{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:8px 0 22px}.mt-intro small,.mt-section-head small,.mt-module-info>small{color:#0965ea;letter-spacing:.12em;font-size:10px;font-weight:900}
.mt-intro h1{margin:6px 0;font-size:28px;letter-spacing:-.045em}.mt-intro p,.mt-section-head p{margin:0;color:#6a7e95;font-size:13px;line-height:1.5}
.mt-chip{color:#0a62d6;background:#e6f0ff;padding:10px 14px;border-radius:999px;font-size:11px;font-weight:850;white-space:nowrap}
.mt-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:26px}
.mt-kpi{background:#fff;border:1px solid #dfe8f3;border-radius:16px;padding:20px 18px;box-shadow:0 8px 22px #193c6305;min-width:0}
.mt-kpi:nth-child(2),.mt-kpi:nth-child(4){background:#ecf9f3;border-color:#cfebdf}
.mt-kpi small{display:block;color:#627a93;font-size:10px;font-weight:850;letter-spacing:.06em;min-height:25px}.mt-kpi strong{display:block;font-size:25px;margin:5px 0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#102136}.mt-kpi:nth-child(2) strong,.mt-kpi:nth-child(4) strong{color:#047a54}.mt-kpi span{display:block;color:#6a7e95;font-size:11px}
.mt-section-head{margin:0 0 16px}.mt-section-head h2{font-size:20px;margin:5px 0}
.mt-product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.mt-product-card{text-align:left;background:#fff;border:1px solid #e0e8f2;border-radius:17px;padding:18px;display:flex;flex-direction:column;gap:11px;min-height:237px;box-shadow:0 8px 22px #193c6306;min-width:0}
.mt-product-card:hover{border-color:#8db9fb;box-shadow:0 14px 30px #163e7614}
.mt-product-open{display:flex;flex-direction:column;align-items:flex-start;gap:11px;text-align:left;width:100%;flex:1;background:transparent;border:0;border-radius:12px;padding:4px;color:inherit;cursor:pointer}
.mt-product-open:focus-visible,.mt-product-quicklinks a:focus-visible,.mt-product-links a:focus-visible{outline:3px solid #3088ff;outline-offset:2px}
.mt-product-open strong{font-size:17px}
.mt-product-open>span:not(.mt-product-icon){font-size:12px;color:#708298;line-height:1.55;min-height:38px}
.mt-product-open em{font-style:normal;color:#075de3;font-size:12px;font-weight:850;margin-top:auto}
.mt-product-quicklinks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;border-top:1px solid #e5edf5;padding-top:11px}
.mt-product-quicklinks a{display:flex;align-items:center;justify-content:center;text-align:center;text-decoration:none;border:1px solid #dce6f1;background:#f6f9fe;border-radius:10px;padding:9px 5px;min-height:36px;color:#294965;font-weight:800;font-size:11px;line-height:1.25}
.mt-product-quicklinks a:last-child{background:#e8f2ff;border-color:#cfe2ff;color:#125ecb}
.mt-product-quicklinks a:hover{filter:brightness(.97)}
.mt-product-links{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.mt-product-links[hidden]{display:none!important}
.mt-product-links a{font-size:12px;white-space:nowrap;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;min-height:35px;padding:9px 11px;border-radius:10px;font-weight:800}
.mt-product-links a.mt-primary{background:#1264df;color:#fff}
.mt-product-links a.mt-secondary{background:#f2f7fc;color:#224c71;border:1px solid #d9e5f1}
.mt-product-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:13px;font-size:23px}.mt-product-icon.blue{background:#e8f1ff;color:#095fed}.mt-product-icon.green{background:#dff9ec;color:#047e58}.mt-product-icon.slate{background:#e8eef5;color:#4b647f}
.mt-note{margin-top:22px;padding:16px 20px;border:1px solid #dce8f4;background:#fff;border-radius:13px;font-size:12px;color:#657993;line-height:1.55}.mt-note strong{color:#213b58}
.mt-frame-wrap{margin:-24px calc(-1 * clamp(18px,2.5vw,40px)) -48px;min-height:calc(100dvh - 90px)}.mt-frame-wrap iframe{display:block;width:100%;height:calc(100dvh - 90px);min-height:650px;border:0;background:#f4f7fb}
.mt-subnav{display:flex;gap:8px;flex-wrap:wrap;align-items:center;padding:11px 30px;background:#fff;border-bottom:1px solid #e3eaf3}
.mt-subnav button{border:0;padding:10px 14px;border-radius:10px;background:transparent;color:#546984;font-size:12px;font-weight:800}
.mt-subnav button.active{background:#e9f2ff;color:#0b63f6}.mt-subnav+main .mt-frame-wrap iframe{height:calc(100dvh - 139px)}
.mt-module-info{max-width:640px;margin:55px auto;padding:45px;text-align:center;background:#fff;border:1px solid #e1e9f1;border-radius:22px}
.mt-info-icon{font-size:46px;color:#0b63f6}.mt-module-info h1{font-size:27px;margin:10px 0}.mt-module-info p{color:#65768c;font-size:14px;line-height:1.7}.mt-module-info .mt-primary{margin-top:16px}
.mt-mobile-menu{display:none;border:0;background:#f1f6fd;border-radius:10px;color:#0b63f6;padding:10px 14px;font-size:19px}.mt-backdrop{display:none}
@media(max-width:1150px){.mt-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mt-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:820px){.mt-sidebar{position:fixed;left:0;transform:translateX(-105%);transition:transform .22s ease}.mt-sidebar.open{transform:translateX(0)}.mt-backdrop.open{display:block;position:fixed;inset:0;background:#04101d99;z-index:15;border:0}.mt-mobile-menu{display:inline-flex}.mt-workspace{width:100%}.mt-topbar{min-height:75px}.mt-topbar h2{font-size:20px}.mt-frame-wrap iframe{height:calc(100dvh - 75px)}.mt-subnav+main .mt-frame-wrap iframe{height:calc(100dvh - 125px)}}
@media(max-width:580px){.mt-login-card{padding:25px}.mt-header-actions .mt-user{display:none}.mt-header-actions .mt-secondary{font-size:12px;padding:10px}.mt-intro{align-items:flex-start}.mt-chip{display:none}.mt-kpi-grid,.mt-product-grid{grid-template-columns:1fr}.mt-kpi strong{font-size:23px}.mt-topbar{padding:14px}.mt-topbar small{font-size:9px}.mt-subnav{padding:8px 12px;gap:2px}.mt-subnav button{padding:9px 8px;font-size:11px}.mt-frame-wrap{margin:-24px -18px -48px}.mt-module-info{margin:20px auto;padding:30px 20px}}

/* V739: links dos sistemas permanecem usáveis em telas estreitas, sem sobrepor Master. */
@media(max-width:1250px){
  .mt-topbar{flex-wrap:wrap}
  .mt-header-actions{flex-wrap:wrap;justify-content:flex-end}
}
@media(max-width:650px){
  .mt-product-grid{grid-template-columns:1fr}
  .mt-product-card{min-height:210px}
  .mt-header-actions{width:100%;justify-content:space-between;gap:8px}
  .mt-product-links{order:2;width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .mt-product-links a{white-space:normal;text-align:center}
}

/* V743: sessao ADM real do Master, sem dependencia de cadastros de empresa. */
.mt-adm-badge{display:inline-flex;align-items:center;padding:7px 10px;border:1px solid #cbd5e1;background:#f1f5f9;color:#29465f;font-size:11px;letter-spacing:.02em;font-weight:850;border-radius:9px;white-space:nowrap}
.mt-adm-badge[hidden],.mt-adm-context[hidden]{display:none!important}
.mt-adm-context{display:flex;align-items:center;gap:10px;flex-wrap:wrap;border-bottom:1px solid #dbe5f1;background:#f8fbff;padding:12px clamp(18px,2.5vw,40px);color:#233d58;font-size:12px}
.mt-adm-context strong{color:#1c4d81;font-weight:850;white-space:nowrap}
.mt-adm-context span{font-weight:700}
.mt-adm-context small{flex-basis:100%;font-size:11px;color:#61758b}
@media(max-width:580px){.mt-adm-badge{font-size:10px;padding:7px 9px}.mt-adm-context{gap:6px;padding:10px 14px}}
