/* =========================================================
   360 APP.CSS LIMPO
   Login + Dashboard + ERP + Status
========================================================= */
:root{
  --bg:#f4f5f7;
  --text:#111827;
  --muted:#6b7280;
  --black:#050505;
  --panel:#fff;
  --line:rgba(17,24,39,.07);
  --shadow:0 8px 28px rgba(17,24,39,.05);
  --red:#ef4444;
  --red-dark:#dc2626;
}

*{box-sizing:border-box;}
html{width:100%;min-height:100%;-webkit-text-size-adjust:100%;}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Arial,sans-serif;}
a{-webkit-tap-highlight-color:transparent;}
.container{width:100%;max-width:none;margin:0;padding:0;}
body:not(.jh-login-body){min-height:100vh;background:var(--bg);color:var(--text);overflow-x:hidden;overflow-y:auto;}

/* =========================================================
   LOGIN
========================================================= */
html,body.jh-login-body{width:100%;height:100%;min-height:100%;overflow:hidden!important;}
body.jh-login-body{
  margin:0!important;
  background:radial-gradient(circle at 50% 22%,rgba(0,0,0,.055),transparent 30%),linear-gradient(180deg,#fff 0%,#f7f8fb 100%)!important;
  color:#111!important;
}
.jh-login-page{width:100%;height:100svh!important;min-height:100svh!important;max-height:100svh!important;overflow:hidden!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:24px!important;}
.jh-login-box{width:min(760px,100%);max-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;transform:translateY(-8px);}
.jh-login-logo{width:230px;margin:0 auto 42px;transition:all .65s cubic-bezier(.22,1,.36,1);}
.jh-login-logo img{width:100%;display:block;}
.jh-login-copy{transition:all .45s cubic-bezier(.22,1,.36,1);}
.jh-login-copy h1{max-width:720px;margin:0 auto;font-size:clamp(34px,4.8vw,58px);line-height:1.03;letter-spacing:-.062em;font-weight:850;}
.jh-login-copy p{max-width:680px;margin:22px auto 38px;color:#60646c;font-size:clamp(17px,1.8vw,23px);line-height:1.4;}
.jh-start-login{min-width:176px;height:52px;border:0;border-radius:999px;background:#050505;color:#fff;display:inline-flex;align-items:center;justify-content:center;gap:10px;font-size:16px;font-weight:750;cursor:pointer;box-shadow:0 16px 40px rgba(0,0,0,.16);transition:.25s ease;}
.jh-start-login:hover{transform:translateY(-2px);box-shadow:0 22px 54px rgba(0,0,0,.22);}
.jh-login-footer{margin-top:42px;color:#858b94;font-size:14px;font-weight:550;}
.jh-login-form-area{width:min(480px,100%);margin:0 auto;display:none;opacity:0;transform:translateY(16px);transition:all .45s cubic-bezier(.22,1,.36,1);}
.jh-login-page.is-login-open .jh-login-logo{width:112px;margin-bottom:30px;}
.jh-login-page.is-login-open .jh-login-copy{display:none;}
.jh-login-page.is-login-open .jh-login-form-area{display:block;opacity:1;transform:translateY(0);}
.jh-form-heading{text-align:center;margin-bottom:26px;}
.jh-form-heading h2{margin:0;font-size:34px;line-height:1.05;letter-spacing:-.045em;font-weight:850;}
.jh-form-heading p{margin:12px 0 0;color:#6b7280;font-size:17px;}
.jh-login-form{width:100%;}
.jh-login-step{display:none;animation:jhLoginStep .28s ease;}
.jh-login-step.is-active{display:block;}
@keyframes jhLoginStep{from{opacity:0;transform:translateY(8px);}to{opacity:1;transform:none;}}
.jh-input-button-wrap{position:relative;width:100%;}
.jh-input-button-wrap input{width:100%;height:58px;border:1.5px solid #b8bec8;border-radius:14px;background:#fff;color:#111;padding:0 58px 0 18px;font-size:17px;outline:none;box-shadow:0 1px 2px rgba(0,0,0,.02);transition:.2s ease;}
.jh-input-button-wrap input:focus{border-color:#111;box-shadow:0 0 0 4px rgba(0,0,0,.065);}
.jh-input-arrow{position:absolute;right:10px;top:50%;transform:translateY(-50%);width:38px;height:38px;min-width:38px;margin:0;padding:0;border-radius:999px;border:1.5px solid #aeb4bd;background:#fff;color:#6b7280;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:.2s ease;}
.jh-input-arrow:hover{background:#111;border-color:#111;color:#fff;}
.jh-back-button{margin:0 0 14px;padding:0;border:0;background:transparent;color:#1f6feb;display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:650;cursor:pointer;}
.jh-remember{margin:22px auto 0;display:flex;align-items:center;justify-content:center;gap:9px;color:#34343a;font-size:15px;font-weight:600;}
.jh-remember input{width:18px;height:18px;accent-color:#111;}
.jh-login-error{width:100%;margin:0 auto 20px;padding:14px 16px;border-radius:14px;background:#fff1f1;border:1px solid #ffd4d4;color:#b42318;display:flex;align-items:center;gap:10px;font-size:14px;font-weight:650;}
@media(max-width:720px){.jh-login-page{padding:22px 18px!important}.jh-login-box{transform:none}.jh-login-logo{width:170px;margin-bottom:36px}.jh-login-copy h1{font-size:36px}.jh-login-copy p{font-size:17px;margin-bottom:32px}.jh-login-page.is-login-open .jh-login-logo{width:88px;margin-bottom:26px}.jh-form-heading h2{font-size:30px}.jh-form-heading p{font-size:15px}}
@media(max-height:700px){.jh-login-logo{width:170px;margin-bottom:28px}.jh-login-copy h1{font-size:42px}.jh-login-copy p{margin:16px auto 26px;font-size:18px}.jh-login-footer{margin-top:26px}.jh-login-page.is-login-open .jh-login-logo{width:74px;margin-bottom:18px}.jh-form-heading{margin-bottom:18px}.jh-form-heading h2{font-size:28px}}

/* =========================================================
   HOME / DASHBOARD
========================================================= */
.jh-home-body,.jh-dashboard-body{margin:0;min-height:100vh;background:radial-gradient(circle at 50% 0%,rgba(0,0,0,.045),transparent 26%),linear-gradient(180deg,#fff 0%,#f7f8fb 100%);color:#111;}
.jh-home-clean,.jh-dashboard{width:min(1120px,calc(100% - 48px));margin:0 auto;padding:28px 0 64px;}
.jh-home-clean-top,.jh-dashboard-top{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:42px;}
.jh-home-clean-logo img,.jh-dashboard-brand img{width:96px;display:block;}
.jh-dashboard-brand{display:flex;align-items:center;gap:12px;color:#111;text-decoration:none;}
.jh-dashboard-brand span{color:#6b7280;font-weight:800;}
.jh-home-clean-actions,.jh-dashboard-actions{min-height:46px;padding:5px;border-radius:999px;background:rgba(255,255,255,.82);border:1px solid rgba(17,17,17,.08);box-shadow:0 14px 40px rgba(17,17,17,.06);display:flex;align-items:center;gap:6px;}
.jh-home-clean-actions span,.jh-home-clean-actions a,.jh-user-pill,.jh-logout{min-height:36px;padding:0 14px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;color:#111;text-decoration:none;font-size:14px;font-weight:750;border:0;background:transparent;}
.jh-home-clean-actions span,.jh-user-pill{color:#6b7280;}
.jh-home-clean-actions a,.jh-logout{background:#111;color:#fff;}
.jh-home-clean-head{text-align:center;margin:0 auto 30px;}
.jh-home-clean-head span{color:#6b7280;font-size:13px;font-weight:760;}
.jh-home-clean-head h1{margin:10px 0 8px;font-size:clamp(38px,5vw,58px);line-height:1;letter-spacing:-.065em;font-weight:850;}
.jh-home-clean-head p{margin:0;color:#6b7280;font-size:17px;}
.jh-home-clean-grid,.jh-module-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;}
.jh-home-clean-card,.jh-module-card{min-height:130px;border-radius:22px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);color:#111;text-decoration:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:18px;transition:.22s ease;}
.jh-home-clean-card:hover,.jh-module-card:hover{transform:translateY(-3px);box-shadow:0 18px 44px rgba(17,24,39,.09);}
.jh-home-clean-card i,.jh-module-card i{width:42px;height:42px;border-radius:15px;background:#111;color:#fff;display:grid;place-items:center;font-size:17px;}
.jh-home-clean-card strong,.jh-module-card strong{font-size:20px;line-height:1;letter-spacing:-.04em;font-weight:850;}
.jh-module-card small{max-width:190px;color:#6b7280;font-size:13px;line-height:1.35;text-align:center;}
@media(max-width:620px){.jh-home-clean,.jh-dashboard{width:calc(100% - 24px);padding:20px 0 44px}.jh-home-clean-top,.jh-dashboard-top{margin-bottom:32px}.jh-home-clean-logo img,.jh-dashboard-brand img{width:82px}.jh-home-clean-actions span,.jh-user-pill{display:none}.jh-home-clean-grid,.jh-module-grid{grid-template-columns:1fr}.jh-home-clean-card,.jh-module-card{min-height:92px;flex-direction:row;justify-content:flex-start}}

/* =========================================================
   ERP / MÓDULOS
========================================================= */
body.app-module-body,body.jh-module-body{margin:0;min-height:100vh;background:var(--bg);color:var(--text);overflow-x:hidden;overflow-y:auto;}
.module-shell{display:grid;grid-template-columns:250px minmax(0,1fr);width:100%;min-height:100vh;}
.module-main{min-width:0;width:100%;padding:18px;}
.mobile-module-burger,.module-mobile-close,.module-mobile-backdrop{display:none;}

/* MENU DESKTOP */
.module-side-menu{position:sticky;top:0;height:100vh;padding:16px;background:var(--black);color:#fff;overflow-y:auto;overflow-x:hidden;z-index:20;}
.module-side-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px;}
.module-side-title{min-width:0;}
.module-side-title strong{display:block;color:#fff;font-size:20px;line-height:1;font-weight:850;letter-spacing:-.035em;}
.module-side-title small{display:block;margin-top:4px;color:rgba(255,255,255,.48);font-size:12px;font-weight:650;}
.module-side-toggle{width:38px;height:38px;border:0;border-radius:12px;background:rgba(255,255,255,.08);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;cursor:pointer;flex:0 0 auto;}
.module-side-toggle span{width:15px;height:2px;border-radius:999px;background:#fff;}
.module-side-nav,.module-nav-group{display:flex;flex-direction:column;gap:6px;}
.module-side-link,.module-submenu a{width:100%;min-height:44px;padding:0 12px;border:0;border-radius:13px;background:transparent;color:rgba(255,255,255,.72);text-decoration:none;display:flex;align-items:center;justify-content:flex-start;gap:10px;font-size:13px;line-height:1;font-weight:720;cursor:pointer;transition:.18s ease;}
.module-side-link:hover,.module-submenu a:hover{background:rgba(255,255,255,.08);color:#fff;}
.module-side-link.active,.module-submenu a.active{background:#fff;color:#050505;}
.module-side-icon{width:26px;min-width:26px;height:26px;border-radius:9px;background:rgba(255,255,255,.10);color:#fff;display:grid;place-items:center;font-size:11px;line-height:1;font-weight:850;}
.module-side-link.active .module-side-icon,.module-submenu a.active .module-side-icon{background:#050505;color:#fff;}
.module-side-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.module-submenu-arrow{margin-left:auto;opacity:.62;font-size:12px;}
.module-submenu{display:none;flex-direction:column;gap:6px;margin:5px 0 5px 16px;padding-left:10px;border-left:1px solid rgba(255,255,255,.12);}
.module-nav-group.is-open .module-submenu{display:flex;}
@media(min-width:901px){.module-shell.menu-collapsed{grid-template-columns:74px minmax(0,1fr)}.module-shell.menu-collapsed .module-side-menu{padding:12px}.module-shell.menu-collapsed .module-side-title,.module-shell.menu-collapsed .module-side-text,.module-shell.menu-collapsed .module-submenu,.module-shell.menu-collapsed .module-submenu-arrow{display:none}.module-shell.menu-collapsed .module-side-head{justify-content:center}.module-shell.menu-collapsed .module-side-link{justify-content:center;padding:0}.module-shell.menu-collapsed .module-side-icon{margin:0}}

/* TOPBAR */
.jh-topbar{min-height:58px;height:58px;padding:0 14px;margin-bottom:14px;border-radius:18px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);display:flex;align-items:center;justify-content:space-between;gap:12px;}
.jh-topbar-left{display:flex;align-items:center;gap:12px;min-width:0;}
.jh-topbar-logo{width:72px;height:auto;display:block;flex:0 0 auto;}
.jh-topbar-title{min-width:0;}
.jh-topbar-title strong{display:block;color:#111827;font-size:15px;line-height:1.1;font-weight:820;white-space:nowrap;}
.jh-topbar-title span{display:block;color:#6b7280;font-size:12px;line-height:1.2;white-space:nowrap;}
.jh-topbar-actions{display:flex;align-items:center;gap:8px;margin-left:auto;}
.jh-topbar-user{height:36px;padding:0 12px;border-radius:999px;background:#f3f4f6;color:#374151;display:flex;align-items:center;font-size:13px;font-weight:750;white-space:nowrap;}
.jh-topbar-logout{width:38px;height:38px;min-width:38px;border-radius:13px;background:var(--red);color:#fff!important;display:grid;place-items:center;text-decoration:none;box-shadow:0 10px 22px rgba(239,68,68,.22);transition:.18s ease;}
.jh-topbar-logout i{color:#fff!important;font-size:15px;}
.jh-topbar-logout:hover{background:var(--red-dark);transform:translateY(-1px);}

/* STATUS */
.jh-status-page-head{padding:20px;margin-bottom:14px;border-radius:20px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);}
.jh-status-eyebrow{display:block;margin-bottom:6px;color:#6b7280;font-size:11px;line-height:1;font-weight:850;letter-spacing:.08em;text-transform:uppercase;}
.jh-status-page-head h1{margin:0 0 8px;color:#050505;font-size:34px;line-height:1;font-weight:880;letter-spacing:-.055em;}
.jh-status-page-head p{max-width:760px;margin:0;color:#6b7280;font-size:14px;line-height:1.45;}
.jh-status-summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-bottom:16px;}
.jh-status-summary-card{min-height:104px;padding:16px;border-radius:18px;background:#fff;border:1px solid var(--line);box-shadow:0 8px 26px rgba(17,24,39,.04);}
.jh-status-summary-card span{display:block;color:#6b7280;font-size:11px;line-height:1;font-weight:850;letter-spacing:.07em;text-transform:uppercase;}
.jh-status-summary-card strong{display:block;margin:9px 0 6px;color:#050505;font-size:32px;line-height:1;font-weight:880;letter-spacing:-.04em;}
.jh-status-summary-card small{color:#6b7280;font-size:13px;line-height:1.3;}
.jh-status-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin:4px 0 12px;}
.jh-status-section-head h2{margin:0;color:#050505;font-size:22px;line-height:1;font-weight:850;letter-spacing:-.04em;}
.jh-status-section-head p{margin:5px 0 0;color:#6b7280;font-size:13px;}
.jh-status-section-head a{height:36px;padding:0 12px;border-radius:999px;background:#fff;border:1px solid rgba(17,24,39,.08);color:#111827;text-decoration:none;display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:800;white-space:nowrap;}
.jh-status-services-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px;}
.jh-status-service-card,.jh-status-empty{padding:16px;border-radius:18px;background:#fff;border:1px solid var(--line);box-shadow:0 8px 26px rgba(17,24,39,.04);}
.jh-status-service-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;}
.jh-status-service-top h3,.jh-status-service-card h3{margin:0;color:#050505;font-size:17px;line-height:1.15;font-weight:820;letter-spacing:-.025em;}
.jh-status-service-top p,.jh-status-service-card p{margin:5px 0 0;color:#6b7280;font-size:12px;line-height:1.35;word-break:break-word;}
.jh-status-dot{width:10px;min-width:10px;height:10px;border-radius:50%;margin-top:4px;}
.jh-status-badges{display:flex;flex-wrap:wrap;gap:6px;margin:13px 0;}
.jh-status-badges span{min-height:24px;padding:4px 9px;border-radius:999px;background:#eef2f7;color:#374151;display:inline-flex;align-items:center;font-size:11px;font-weight:800;}
.jh-status-service-card footer{color:#6b7280;font-size:12px;line-height:1.35;}
.is-operational{background:#00FAAF!important;color:#065f46!important;}
.is-degraded{background:#f59e0b!important;color:#fff!important;}
.is-outage{background:#ef4444!important;color:#fff!important;}
.is-maintenance{background:#111827!important;color:#fff!important;}
.is-checking{background:#94a3b8!important;color:#fff!important;}

/* =========================================================
   MOBILE DO MÓDULO
========================================================= */
@media(max-width:900px){
  html,body{width:100%;overflow-x:hidden!important;}
  body.module-menu-is-open{overflow:hidden!important;touch-action:none;}
  .module-shell{display:block;min-height:100vh;}
  .module-main{width:100%;max-width:none;margin:0;padding:78px 10px 24px;}
  .mobile-module-burger{position:fixed;top:14px;left:10px;width:50px;height:50px;border:0;border-radius:16px;background:#050505;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;z-index:3000;box-shadow:0 14px 34px rgba(0,0,0,.18);}
  .mobile-module-burger span{width:19px;height:2px;border-radius:999px;background:#fff;}
  .module-shell.menu-open .mobile-module-burger{opacity:0;visibility:hidden;pointer-events:none;}
  .module-mobile-backdrop{display:none!important;}
  .module-side-menu{position:fixed;inset:0;width:100vw;max-width:100vw;height:100dvh;min-height:100dvh;margin:0;padding:28px 24px 34px;border:0;border-radius:0;background:#050505;color:#fff;transform:translate3d(-100vw,0,0);visibility:hidden;pointer-events:none;z-index:4000;overflow-y:auto;overflow-x:hidden;transition:transform .32s cubic-bezier(.22,1,.36,1),visibility 0s linear .32s;}
  .module-shell.menu-open .module-side-menu{transform:translate3d(0,0,0);visibility:visible;pointer-events:auto;transition:transform .32s cubic-bezier(.22,1,.36,1),visibility 0s;}
  .module-side-head{width:100%;margin:0 0 34px;padding:0;display:flex;align-items:flex-start;justify-content:space-between;gap:18px;}
  .module-side-title strong{font-size:40px;line-height:.95;font-weight:900;letter-spacing:-.065em;}
  .module-side-title small{margin-top:8px;font-size:16px;font-weight:750;}
  .module-side-toggle{display:none!important;}
  .module-mobile-close{display:flex;align-items:center;justify-content:center;min-width:88px;height:48px;border:0;border-radius:999px;background:rgba(255,255,255,.12);color:#fff;font-size:15px;font-weight:850;cursor:pointer;}
  .module-side-nav{width:100%;gap:12px;}
  .module-nav-group{width:100%;gap:10px;}
  .module-side-link,.module-submenu a{width:100%;min-height:60px;margin:0;padding:0 18px;border-radius:22px;background:rgba(255,255,255,.06);color:rgba(255,255,255,.84);gap:16px;font-size:19px;font-weight:850;}
  .module-side-link.active,.module-submenu a.active{background:#fff;color:#050505;}
  .module-side-icon{width:40px;height:40px;min-width:40px;border-radius:14px;font-size:16px;font-weight:900;}
  .module-side-text{display:block!important;opacity:1!important;visibility:visible!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;}
  .module-submenu-arrow{display:inline-flex!important;margin-left:auto;color:rgba(255,255,255,.55);font-size:18px;}
  .module-submenu{display:none;width:100%;margin:4px 0 8px;padding:0 0 0 18px;border-left:2px solid rgba(255,255,255,.14);gap:10px;}
  .module-nav-group.is-open .module-submenu{display:flex;}
  .module-submenu a{min-height:54px;font-size:17px;background:rgba(255,255,255,.045);}
  .jh-topbar{position:fixed;top:14px;left:70px;right:10px;width:auto;height:50px;min-height:50px;margin:0;padding:0 8px 0 12px;border-radius:16px;z-index:1000;}
  .jh-topbar-logo{width:56px;min-width:56px;}
  .jh-topbar-title strong{font-size:14px;line-height:1;white-space:nowrap;}
  .jh-topbar-title span,.jh-topbar-user{display:none;}
  .jh-topbar-logout{width:38px;min-width:38px;height:38px;}
  .jh-status-page-head{padding:15px;margin:0 0 10px;border-radius:18px;}
  .jh-status-eyebrow{font-size:10px;}
  .jh-status-page-head h1{font-size:29px;margin:5px 0 7px;}
  .jh-status-page-head p{font-size:13px;line-height:1.42;}
  .jh-status-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:14px;}
  .jh-status-summary-card{min-height:82px;padding:10px;border-radius:15px;}
  .jh-status-summary-card span{font-size:9px;line-height:1.1;}
  .jh-status-summary-card strong{font-size:25px;margin:7px 0 4px;}
  .jh-status-summary-card small{font-size:10.5px;}
  .jh-status-section-head{align-items:center;gap:10px;margin:2px 0 10px;}
  .jh-status-section-head h2{font-size:19px;}
  .jh-status-section-head p{display:none;}
  .jh-status-section-head a{height:32px;padding:0 10px;font-size:12px;}
  .jh-status-services-grid{grid-template-columns:1fr;gap:10px;}
  .jh-status-service-card,.jh-status-empty{padding:14px;border-radius:16px;}
}

/* =========================================================
   STATUS > SERVIÇOS
========================================================= */

.jh-alert-success{
  margin:0 0 14px;
  padding:12px 14px;
  border-radius:14px;
  background:#ecfdf5;
  color:#065f46;
  border:1px solid rgba(0,250,175,.35);
  font-size:13px;
  font-weight:750;
}

.jh-alert-error{
  width:100%;
  margin:0 0 18px;
  padding:14px 16px;
  border-radius:16px;
  background:rgba(239,68,68,.12);
  border:1px solid rgba(239,68,68,.22);
  color:#991b1b;
  font-size:14px;
  font-weight:700;
}

.jh-admin-form-card,
.jh-admin-list-card{
  margin-bottom:16px;
  padding:18px;
  border-radius:20px;
  background:#fff;
  border:1px solid rgba(17,24,39,.07);
  box-shadow:0 8px 26px rgba(17,24,39,.04);
}

.jh-admin-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:16px;
}

.jh-admin-card-head h2{
  margin:0;
  color:#050505;
  font-size:22px;
  line-height:1;
  font-weight:850;
  letter-spacing:-.04em;
}

.jh-admin-card-head p{
  margin:6px 0 0;
  color:#6b7280;
  font-size:13px;
}

.jh-admin-form{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.jh-form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.jh-form-group{
  display:flex;
  flex-direction:column;
  gap:7px;
}

.jh-form-group label{
  color:#374151;
  font-size:12px;
  font-weight:800;
}

.jh-form-group input,
.jh-form-group select,
.jh-filter-bar input,
.jh-filter-bar select{
  width:100%;
  height:42px;
  padding:0 12px;
  border-radius:13px;
  border:1px solid rgba(17,24,39,.12);
  background:#fff;
  color:#111827;
  font-size:13px;
  outline:none;
  box-sizing:border-box;
}

.jh-form-group input:focus,
.jh-form-group select:focus,
.jh-filter-bar input:focus,
.jh-filter-bar select:focus{
  border-color:#050505;
  box-shadow:0 0 0 3px rgba(0,0,0,.06);
}

.jh-check-row{
  min-height:42px;
  display:flex;
  align-items:center;
  gap:18px;
  padding:0 12px;
  border-radius:13px;
  background:#f3f4f6;
}

.jh-check-row label{
  display:flex;
  align-items:center;
  gap:8px;
  color:#374151;
  font-size:13px;
  font-weight:750;
}

.jh-check-row input{
  width:16px;
  height:16px;
  accent-color:#050505;
}

.jh-form-actions{
  display:flex;
  justify-content:flex-end;
}

.jh-primary-button,
.jh-soft-button{
  height:40px;
  padding:0 14px;
  border-radius:999px;
  border:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  text-decoration:none;
  font-size:13px;
  font-weight:850;
  cursor:pointer;
}

.jh-primary-button{
  background:#050505;
  color:#fff;
}

.jh-soft-button{
  background:#f3f4f6;
  color:#111827;
  border:1px solid rgba(17,24,39,.08);
}

.jh-filter-bar{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr auto;
  gap:10px;
  margin-bottom:14px;
}

.jh-services-table-wrap{
  width:100%;
  overflow-x:auto;
}

.jh-services-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  min-width:860px;
}

.jh-services-table th{
  padding:10px 12px;
  color:#6b7280;
  font-size:11px;
  font-weight:850;
  text-align:left;
  text-transform:uppercase;
  letter-spacing:.06em;
  border-bottom:1px solid rgba(17,24,39,.08);
}

.jh-services-table td{
  padding:12px;
  color:#374151;
  font-size:13px;
  border-bottom:1px solid rgba(17,24,39,.06);
  vertical-align:middle;
}

.jh-services-table td strong{
  display:block;
  color:#111827;
  font-size:13px;
  font-weight:850;
}

.jh-services-table td small{
  display:block;
  margin-top:4px;
  color:#6b7280;
  font-size:11px;
  word-break:break-word;
}

.jh-mini-badge{
  min-height:24px;
  padding:4px 9px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  font-size:11px;
  font-weight:850;
}

.jh-table-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
}

.jh-table-actions form{
  margin:0;
}

.jh-icon-button{
  width:34px;
  height:34px;
  border:0;
  border-radius:12px;
  background:#f3f4f6;
  color:#111827;
  display:grid;
  place-items:center;
  text-decoration:none;
  cursor:pointer;
}

.jh-icon-button.danger{
  background:#fff1f1;
  color:#ef4444;
}

.jh-empty-row{
  text-align:center;
  color:#6b7280 !important;
  padding:24px !important;
}

.jh-pagination{
  margin-top:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}

.jh-pagination a,
.jh-pagination span{
  height:34px;
  padding:0 12px;
  border-radius:999px;
  background:#f3f4f6;
  color:#111827;
  display:inline-flex;
  align-items:center;
  text-decoration:none;
  font-size:12px;
  font-weight:800;
}

/* MOBILE */
@media(max-width:900px){
  .jh-admin-form-card,
  .jh-admin-list-card{
    padding:14px;
    border-radius:18px;
  }

  .jh-admin-card-head{
    flex-direction:column;
    gap:10px;
  }

  .jh-form-grid,
  .jh-filter-bar{
    grid-template-columns:1fr;
  }

  .jh-form-actions{
    justify-content:stretch;
  }

  .jh-primary-button,
  .jh-soft-button{
    width:100%;
  }

  .jh-check-row{
    align-items:flex-start;
    flex-direction:column;
    justify-content:center;
    gap:10px;
    padding:12px;
  }

  .jh-services-table{
    min-width:780px;
  }
}

/* =========================================================
   STATUS ADMIN — FORMULÁRIOS, LISTAS E TABELAS
   Usado em:
   /status/services
   /status/maintenance
   /status/incidents
   /status/history
========================================================= */

.jh-alert-success{
  margin:0 0 14px;
  padding:12px 14px;
  border-radius:14px;
  background:#ecfdf5;
  color:#065f46;
  border:1px solid rgba(0,250,175,.35);
  font-size:13px;
  font-weight:750;
}

.jh-admin-form-card,
.jh-admin-list-card{
  margin-bottom:16px;
  padding:18px;
  border-radius:20px;
  background:#fff;
  border:1px solid rgba(17,24,39,.07);
  box-shadow:0 8px 26px rgba(17,24,39,.04);
}

.jh-admin-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:16px;
}

.jh-admin-card-head h2{
  margin:0;
  color:#050505;
  font-size:22px;
  line-height:1;
  font-weight:850;
  letter-spacing:-.04em;
}

.jh-admin-card-head p{
  margin:6px 0 0;
  color:#6b7280;
  font-size:13px;
}

.jh-admin-form{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.jh-form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.jh-form-group{
  display:flex;
  flex-direction:column;
  gap:7px;
}

.jh-form-group label{
  color:#374151;
  font-size:12px;
  font-weight:800;
}

.jh-form-group input,
.jh-form-group select,
.jh-form-group textarea,
.jh-filter-bar input,
.jh-filter-bar select{
  width:100%;
  border-radius:13px;
  border:1px solid rgba(17,24,39,.12);
  background:#fff;
  color:#111827;
  font-size:13px;
  font-family:inherit;
  outline:none;
  box-sizing:border-box;
}

.jh-form-group input,
.jh-form-group select,
.jh-filter-bar input,
.jh-filter-bar select{
  height:42px;
  padding:0 12px;
}

.jh-form-group textarea{
  min-height:96px;
  padding:12px;
  resize:vertical;
  line-height:1.45;
}

.jh-form-group input:focus,
.jh-form-group select:focus,
.jh-form-group textarea:focus,
.jh-filter-bar input:focus,
.jh-filter-bar select:focus{
  border-color:#050505;
  box-shadow:0 0 0 3px rgba(0,0,0,.06);
}

.jh-check-row{
  min-height:42px;
  display:flex;
  align-items:center;
  gap:18px;
  padding:0 12px;
  border-radius:13px;
  background:#f3f4f6;
}

.jh-check-row label{
  display:flex;
  align-items:center;
  gap:8px;
  color:#374151;
  font-size:13px;
  font-weight:750;
}

.jh-check-row input{
  width:16px;
  height:16px;
  accent-color:#050505;
}

.jh-form-actions{
  display:flex;
  justify-content:flex-end;
}

.jh-primary-button,
.jh-soft-button{
  min-height:40px;
  padding:0 14px;
  border-radius:999px;
  border:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  text-decoration:none;
  font-size:13px;
  font-weight:850;
  cursor:pointer;
  box-sizing:border-box;
  white-space:nowrap;
}

.jh-primary-button{
  background:#050505;
  color:#fff;
}

.jh-soft-button{
  background:#f3f4f6;
  color:#111827;
  border:1px solid rgba(17,24,39,.08);
}

.jh-soft-button:hover,
.jh-primary-button:hover{
  transform:translateY(-1px);
}

.jh-danger-button{
  margin-top:16px;
  background:#ef4444 !important;
  color:#fff !important;
}

.jh-filter-bar{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr auto;
  gap:10px;
  margin-bottom:14px;
}

.jh-filter-bar-wide{
  grid-template-columns:1.4fr .8fr .9fr .9fr 1fr .9fr auto;
}

.jh-filter-bar-history{
  grid-template-columns:1.4fr 1fr .9fr .8fr auto auto;
}

/* =========================================================
   TABELAS — SERVIÇOS E MANUTENÇÕES
========================================================= */

.jh-services-table-wrap{
  width:100%;
  overflow-x:auto;
}

.jh-services-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  min-width:860px;
}

.jh-services-table th{
  padding:10px 12px;
  color:#6b7280;
  font-size:11px;
  font-weight:850;
  text-align:left;
  text-transform:uppercase;
  letter-spacing:.06em;
  border-bottom:1px solid rgba(17,24,39,.08);
}

.jh-services-table td{
  padding:12px;
  color:#374151;
  font-size:13px;
  border-bottom:1px solid rgba(17,24,39,.06);
  vertical-align:middle;
}

.jh-services-table td strong{
  display:block;
  color:#111827;
  font-size:13px;
  font-weight:850;
}

.jh-services-table td small{
  display:block;
  margin-top:4px;
  color:#6b7280;
  font-size:11px;
  word-break:break-word;
}

.jh-empty-row{
  text-align:center;
  color:#6b7280 !important;
  padding:24px !important;
}

.jh-table-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
}

.jh-table-actions form{
  margin:0;
}

.jh-icon-button{
  width:34px;
  height:34px;
  border:0;
  border-radius:12px;
  background:#f3f4f6;
  color:#111827;
  display:grid;
  place-items:center;
  text-decoration:none;
  cursor:pointer;
}

.jh-icon-button.danger{
  background:#fff1f1;
  color:#ef4444;
}

/* =========================================================
   BADGES E PAGINAÇÃO
========================================================= */

.jh-mini-badge{
  min-height:24px;
  padding:4px 9px;
  border-radius:999px;
  background:#eef2f7;
  color:#374151;
  display:inline-flex;
  align-items:center;
  font-size:11px;
  font-weight:850;
  white-space:nowrap;
}

.jh-pagination{
  margin-top:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
}

.jh-pagination a,
.jh-pagination span{
  min-height:34px;
  padding:0 12px;
  border-radius:999px;
  background:#f3f4f6;
  color:#111827;
  display:inline-flex;
  align-items:center;
  text-decoration:none;
  font-size:12px;
  font-weight:800;
}

.jh-pagination a:hover,
.jh-pagination a.active{
  background:#050505;
  color:#fff;
}

.jh-muted{
  margin:0;
  color:#6b7280;
  font-size:13px;
}

/* =========================================================
   STATUS > INCIDENTES
========================================================= */

.jh-incident-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.jh-incident-card{
  padding:16px;
  border-radius:18px;
  background:#fff;
  border:1px solid rgba(17,24,39,.07);
  box-shadow:0 8px 26px rgba(17,24,39,.04);
}

.jh-incident-summary{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}

.jh-incident-summary strong{
  display:block;
  color:#050505;
  font-size:16px;
  line-height:1.2;
  font-weight:850;
}

.jh-incident-summary p{
  margin:6px 0 0;
  color:#6b7280;
  font-size:13px;
  line-height:1.4;
}

.jh-incident-badges{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:10px;
}

.jh-incident-details{
  margin-top:16px;
  padding-top:16px;
  border-top:1px solid rgba(17,24,39,.08);
}

.jh-incident-details > p{
  margin:0;
  color:#374151;
  font-size:13px;
  line-height:1.5;
}

.jh-incident-details h3{
  margin:18px 0 10px;
  color:#050505;
  font-size:18px;
  line-height:1;
  font-weight:850;
  letter-spacing:-.035em;
}

.jh-incident-update-form{
  margin-top:16px;
  padding:14px;
  border-radius:16px;
  background:#f8fafc;
  border:1px solid rgba(17,24,39,.06);
}

.jh-update-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.jh-update-card{
  padding:14px;
  border-radius:16px;
  background:#f8fafc;
  border:1px solid rgba(17,24,39,.06);
}

.jh-update-card form{
  margin-top:12px;
}

/* =========================================================
   STATUS > HISTÓRICO
========================================================= */

.jh-history-card .jh-incident-summary strong{
  font-size:15px;
}

.jh-history-details-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-top:14px;
}

.jh-history-detail-box,
.jh-history-error-box{
  padding:14px;
  border-radius:16px;
  background:#f8fafc;
  border:1px solid rgba(17,24,39,.06);
}

.jh-history-detail-box span,
.jh-history-error-box span{
  display:block;
  margin-bottom:7px;
  color:#6b7280;
  font-size:11px;
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.jh-history-detail-box strong{
  color:#050505;
  font-size:15px;
  font-weight:850;
}

.jh-history-error-box{
  margin-top:10px;
}

.jh-history-error-box p{
  margin:0;
  color:#374151;
  font-size:13px;
  line-height:1.5;
}

/* =========================================================
   CORES DE STATUS
========================================================= */

.is-operational{
  background:#00FAAF !important;
  color:#065f46 !important;
}

.is-degraded{
  background:#f59e0b !important;
  color:#fff !important;
}

.is-outage{
  background:#ef4444 !important;
  color:#fff !important;
}

.is-maintenance{
  background:#111827 !important;
  color:#fff !important;
}

.is-checking{
  background:#94a3b8 !important;
  color:#fff !important;
}

/* =========================================================
   MOBILE
========================================================= */

@media(max-width:900px){

  .jh-admin-form-card,
  .jh-admin-list-card{
    padding:14px;
    border-radius:18px;
  }

  .jh-admin-card-head{
    flex-direction:column;
    gap:10px;
  }

  .jh-form-grid,
  .jh-filter-bar,
  .jh-filter-bar-wide,
  .jh-filter-bar-history{
    grid-template-columns:1fr;
  }

  .jh-form-actions{
    justify-content:stretch;
  }

  .jh-primary-button,
  .jh-soft-button{
    width:100%;
  }

  .jh-check-row{
    align-items:flex-start;
    flex-direction:column;
    justify-content:center;
    gap:10px;
    padding:12px;
  }

  .jh-services-table{
    min-width:780px;
  }

  .jh-incident-summary{
    flex-direction:column;
  }

  .jh-incident-summary .jh-soft-button{
    width:100%;
  }

  .jh-history-details-grid{
    grid-template-columns:1fr;
  }
}


/* =========================================================
   ADMIN HOME - 360 - FIX FINAL
   Força o layout correto do /admin/
========================================================= */

body.app-admin-body{
  margin:0 !important;
  min-height:100vh !important;
  height:auto !important;
  overflow-x:hidden !important;
  overflow-y:auto !important;
  background:#f4f5f7 !important;
  color:#111827 !important;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Arial,sans-serif !important;
}

body.app-admin-body a{
  -webkit-tap-highlight-color:transparent;
}

body.app-admin-body .admin-home-shell{
  width:100% !important;
  min-height:100vh !important;
  padding:24px !important;
  box-sizing:border-box !important;
}

body.app-admin-body .admin-home-wrap{
  width:100% !important;
  max-width:1240px !important;
  margin:0 auto !important;
}

body.app-admin-body .admin-home-topbar{
  width:100% !important;
  min-height:72px !important;
  margin:0 0 22px !important;
  padding:14px 18px !important;
  box-sizing:border-box !important;

  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:18px !important;

  border-radius:24px !important;
  background:rgba(255,255,255,.94) !important;
  border:1px solid rgba(17,24,39,.07) !important;
  box-shadow:0 16px 45px rgba(17,24,39,.06) !important;

  backdrop-filter:blur(16px) !important;
  -webkit-backdrop-filter:blur(16px) !important;
}

body.app-admin-body .admin-brand{
  display:flex !important;
  align-items:center !important;
  gap:14px !important;
  color:#111827 !important;
  text-decoration:none !important;
  min-width:0 !important;
}

body.app-admin-body .admin-brand img{
  width:auto !important;
  height:34px !important;
  max-width:120px !important;
  max-height:34px !important;
  display:block !important;
  object-fit:contain !important;
}

body.app-admin-body .admin-brand-text{
  display:flex !important;
  flex-direction:column !important;
  line-height:1.15 !important;
}

body.app-admin-body .admin-brand-text strong{
  display:block !important;
  margin:0 !important;
  color:#111827 !important;
  font-size:17px !important;
  font-weight:850 !important;
  letter-spacing:-.03em !important;
  line-height:1.1 !important;
}

body.app-admin-body .admin-brand-text small{
  display:block !important;
  margin:3px 0 0 !important;
  color:#6b7280 !important;
  font-size:12px !important;
  font-weight:700 !important;
  line-height:1.2 !important;
}

body.app-admin-body .admin-home-actions{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:10px !important;
  flex-wrap:wrap !important;
}

body.app-admin-body .admin-user-pill,
body.app-admin-body .admin-action-button{
  min-height:42px !important;
  height:42px !important;
  padding:0 14px !important;
  border-radius:999px !important;
  border:1px solid rgba(17,24,39,.08) !important;

  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:9px !important;

  color:#111827 !important;
  text-decoration:none !important;
  font-size:13px !important;
  font-weight:850 !important;
  line-height:1 !important;
  white-space:nowrap !important;
  box-sizing:border-box !important;
}

body.app-admin-body .admin-user-pill{
  background:#f3f5f7 !important;
  color:#374151 !important;
}

body.app-admin-body .admin-action-button{
  background:#fff !important;
}

body.app-admin-body .admin-action-button.danger{
  background:#fff1f2 !important;
  color:#dc2626 !important;
  border-color:rgba(220,38,38,.14) !important;
}

body.app-admin-body .admin-hero{
  margin:0 0 20px !important;
  padding:28px !important;
  box-sizing:border-box !important;

  border-radius:30px !important;
  background:
    radial-gradient(circle at top left, rgba(0,250,175,.22), transparent 34%),
    radial-gradient(circle at top right, rgba(118,54,255,.18), transparent 32%),
    #fff !important;
  border:1px solid rgba(17,24,39,.07) !important;
  box-shadow:0 18px 50px rgba(17,24,39,.06) !important;
}

body.app-admin-body .admin-eyebrow{
  display:inline-flex !important;
  align-items:center !important;
  gap:8px !important;
  min-height:30px !important;
  padding:0 12px !important;
  border-radius:999px !important;
  background:#111827 !important;
  color:#00FAAF !important;
  font-size:12px !important;
  font-weight:900 !important;
  text-transform:uppercase !important;
  letter-spacing:.04em !important;
  line-height:1 !important;
}

body.app-admin-body .admin-hero h1{
  margin:16px 0 10px !important;
  color:#111827 !important;
  font-size:clamp(34px,5vw,58px) !important;
  line-height:.95 !important;
  font-weight:900 !important;
  letter-spacing:-.07em !important;
}

body.app-admin-body .admin-hero p{
  max-width:780px !important;
  margin:0 !important;
  color:#5f6673 !important;
  font-size:17px !important;
  line-height:1.55 !important;
}

body.app-admin-body .admin-stats-grid{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:14px !important;
  margin:0 0 20px !important;
}

body.app-admin-body .admin-stat-card{
  min-height:112px !important;
  padding:20px !important;
  box-sizing:border-box !important;
  border-radius:24px !important;
  background:#fff !important;
  border:1px solid rgba(17,24,39,.07) !important;
  box-shadow:0 12px 34px rgba(17,24,39,.045) !important;
}

body.app-admin-body .admin-stat-card span{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  color:#6b7280 !important;
  font-size:12px !important;
  font-weight:900 !important;
  text-transform:uppercase !important;
  letter-spacing:.04em !important;
}

body.app-admin-body .admin-stat-card strong{
  display:block !important;
  margin:12px 0 0 !important;
  color:#111827 !important;
  font-size:36px !important;
  line-height:1 !important;
  font-weight:900 !important;
  letter-spacing:-.05em !important;
}

body.app-admin-body .admin-section-head{
  display:flex !important;
  align-items:flex-end !important;
  justify-content:space-between !important;
  gap:14px !important;
  margin:0 0 14px !important;
}

body.app-admin-body .admin-section-head h2{
  margin:0 !important;
  color:#111827 !important;
  font-size:26px !important;
  line-height:1 !important;
  font-weight:900 !important;
  letter-spacing:-.05em !important;
}

body.app-admin-body .admin-section-head p{
  margin:6px 0 0 !important;
  color:#6b7280 !important;
  font-size:14px !important;
  line-height:1.4 !important;
}

body.app-admin-body .admin-modules-grid{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:16px !important;
  margin:0 0 20px !important;
}

body.app-admin-body .admin-module-card{
  min-height:180px !important;
  padding:22px !important;
  box-sizing:border-box !important;

  display:flex !important;
  flex-direction:column !important;
  justify-content:space-between !important;

  position:relative !important;
  overflow:hidden !important;

  border-radius:26px !important;
  background:#fff !important;
  border:1px solid rgba(17,24,39,.07) !important;
  box-shadow:0 14px 38px rgba(17,24,39,.045) !important;

  color:#111827 !important;
  text-decoration:none !important;
}

body.app-admin-body .admin-module-card:before{
  content:"" !important;
  position:absolute !important;
  right:-28px !important;
  bottom:-46px !important;
  width:120px !important;
  height:120px !important;
  border-radius:50% !important;
  background:rgba(118,54,255,.08) !important;
  pointer-events:none !important;
}

body.app-admin-body .admin-module-icon{
  width:48px !important;
  height:48px !important;
  border-radius:18px !important;
  background:#111827 !important;
  color:#00FAAF !important;
  display:grid !important;
  place-items:center !important;
  font-size:18px !important;
}

body.app-admin-body .admin-module-card h2{
  margin:18px 0 6px !important;
  color:#111827 !important;
  font-size:22px !important;
  line-height:1.1 !important;
  font-weight:900 !important;
  letter-spacing:-.04em !important;
  text-decoration:none !important;
}

body.app-admin-body .admin-module-card p{
  margin:0 !important;
  color:#6b7280 !important;
  font-size:14px !important;
  line-height:1.45 !important;
}

body.app-admin-body .admin-module-footer{
  margin:18px 0 0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;
  color:#7636FF !important;
  font-size:13px !important;
  font-weight:900 !important;
}

body.app-admin-body .admin-bottom-grid{
  display:grid !important;
  grid-template-columns:1.2fr .8fr !important;
  gap:16px !important;
}

body.app-admin-body .admin-panel{
  padding:22px !important;
  box-sizing:border-box !important;
  border-radius:26px !important;
  background:#fff !important;
  border:1px solid rgba(17,24,39,.07) !important;
  box-shadow:0 14px 38px rgba(17,24,39,.045) !important;
}

body.app-admin-body .admin-panel h2{
  margin:0 0 10px !important;
  color:#111827 !important;
  font-size:22px !important;
  line-height:1 !important;
  font-weight:900 !important;
  letter-spacing:-.04em !important;
}

body.app-admin-body .admin-panel p{
  margin:0 !important;
  color:#6b7280 !important;
  font-size:14px !important;
  line-height:1.5 !important;
}

body.app-admin-body .admin-quick-list{
  display:grid !important;
  gap:10px !important;
  margin:16px 0 0 !important;
}

body.app-admin-body .admin-quick-link{
  min-height:48px !important;
  padding:0 14px !important;
  border-radius:16px !important;
  background:#f6f7f9 !important;
  color:#111827 !important;
  text-decoration:none !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;
  font-size:14px !important;
  font-weight:850 !important;
}

body.app-admin-body .admin-note{
  border-radius:18px !important;
  background:#f3f5f7 !important;
  padding:16px !important;
  color:#6b7280 !important;
  font-size:14px !important;
  line-height:1.5 !important;
}

@media(max-width:900px){
  body.app-admin-body .admin-home-shell{
    padding:14px !important;
  }

  body.app-admin-body .admin-home-topbar{
    align-items:flex-start !important;
    flex-direction:column !important;
    border-radius:22px !important;
  }

  body.app-admin-body .admin-home-actions{
    width:100% !important;
    justify-content:flex-start !important;
  }

  body.app-admin-body .admin-user-pill,
  body.app-admin-body .admin-action-button{
    height:40px !important;
    min-height:40px !important;
    font-size:12px !important;
  }

  body.app-admin-body .admin-hero{
    padding:22px !important;
    border-radius:24px !important;
  }

  body.app-admin-body .admin-hero p{
    font-size:15px !important;
  }

  body.app-admin-body .admin-stats-grid,
  body.app-admin-body .admin-modules-grid,
  body.app-admin-body .admin-bottom-grid{
    grid-template-columns:1fr !important;
  }

  body.app-admin-body .admin-module-card{
    min-height:155px !important;
  }
}

/* =========================================================
   CORREÇÃO DE ROLAGEM GLOBAL
========================================================= */

html{
  min-height:100%;
  height:auto !important;
  overflow-y:auto !important;
}

body:not(.jh-login-body){
  min-height:100vh !important;
  height:auto !important;
  overflow-x:hidden !important;
  overflow-y:auto !important;
}

/* =========================================================
   AJUSTES ADMIN - LINKS E ROLAGEM
========================================================= */

html,
body{
  height:auto !important;
  min-height:100% !important;
  overflow-y:auto !important;
}

body.app-module-body{
  min-height:100vh !important;
  height:auto !important;
  overflow-x:hidden !important;
  overflow-y:auto !important;
}

.admin-area-link{
  color:inherit !important;
  text-decoration:none !important;
}

.admin-area-link:hover{
  color:inherit !important;
  text-decoration:none !important;
}

/* =========================================================
   MENU LATERAL FIXO DESKTOP - 360
   Não usar sticky. Menu fica fixo e a página rola.
========================================================= */

@media (min-width:901px){

  body.app-module-body .module-shell{
    display:block !important;
    width:100% !important;
    min-height:100vh !important;
    padding-left:250px !important;
    box-sizing:border-box !important;
    position:relative !important;
    overflow:visible !important;
  }

  body.app-module-body .module-side-menu{
    position:fixed !important;
    top:0 !important;
    left:0 !important;
    right:auto !important;
    bottom:0 !important;

    width:250px !important;
    height:100vh !important;
    min-height:100vh !important;
    max-height:100vh !important;

    margin:0 !important;
    padding:16px !important;
    box-sizing:border-box !important;

    background:#050505 !important;
    color:#fff !important;

    overflow-y:auto !important;
    overflow-x:hidden !important;

    z-index:100 !important;

    transform:none !important;
    visibility:visible !important;
    pointer-events:auto !important;
  }

  body.app-module-body .module-main{
    width:100% !important;
    min-width:0 !important;
    min-height:100vh !important;
    padding:18px !important;
    box-sizing:border-box !important;
  }

  body.app-module-body .mobile-module-burger,
  body.app-module-body .module-mobile-backdrop,
  body.app-module-body .module-mobile-close{
    display:none !important;
  }

  body.app-module-body .module-shell.menu-collapsed{
    padding-left:74px !important;
  }

  body.app-module-body .module-shell.menu-collapsed .module-side-menu{
    width:74px !important;
    padding:12px !important;
  }

}

/* =========================================================
   TOPBAR - ÍCONES SEM FUNDO: MÓDULOS E SAIR
========================================================= */

.topbar-modules-button,
.jh-topbar-logout{
  width:38px !important;
  height:38px !important;
  min-width:38px !important;
  margin:0 !important;
  padding:0 !important;

  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;

  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;

  text-decoration:none !important;
  border-radius:13px !important;
  transition:.18s ease !important;
}

.topbar-modules-button{
  color:#374151 !important;
  margin-right:8px !important;
}

.jh-topbar-logout{
  color:#ef4444 !important;
}

.topbar-modules-button:hover,
.jh-topbar-logout:hover{
  background:rgba(17,24,39,.05) !important;
  box-shadow:none !important;
  transform:translateY(-1px) !important;
}

.topbar-modules-button i,
.jh-topbar-logout i{
  color:inherit !important;
  font-size:17px !important;
  line-height:1 !important;
}

/* =========================================================
   HOME / CENTRAL 360
========================================================= */

body.jh-home-body{
  margin:0;
  min-height:100vh;
  height:auto;
  overflow-x:hidden;
  overflow-y:auto;
  background:
    radial-gradient(circle at top left, rgba(0,250,175,.10), transparent 34%),
    radial-gradient(circle at top right, rgba(118,54,255,.10), transparent 32%),
    #f4f7f8;
  color:#111827;
}

.jh-home-clean{
  width:100%;
  max-width:1180px;
  min-height:100vh;
  margin:0 auto;
  padding:38px 28px 70px;
  box-sizing:border-box;
}

.jh-home-clean-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:78px;
}

.jh-home-clean-logo{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
}

.jh-home-clean-logo img{
  width:118px;
  height:auto;
  display:block;
}

.jh-home-clean-actions{
  min-height:44px;
  padding:5px;
  border-radius:999px;
  background:rgba(255,255,255,.82);
  border:1px solid rgba(17,24,39,.07);
  box-shadow:0 14px 32px rgba(17,24,39,.06);
  display:flex;
  align-items:center;
  gap:6px;
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}

.jh-home-clean-actions span{
  padding:0 14px;
  color:#374151;
  font-size:13px;
  font-weight:850;
  white-space:nowrap;
}

.jh-home-clean-actions a{
  height:34px;
  padding:0 14px;
  border-radius:999px;
  background:#111827;
  color:#fff;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
  font-weight:850;
}

.jh-home-clean-head{
  text-align:center;
  margin-bottom:28px;
}

.jh-home-clean-head span{
  display:inline-flex;
  margin-bottom:10px;
  color:#6b7280;
  font-size:12px;
  font-weight:900;
  letter-spacing:.04em;
}

.jh-home-clean-head h1{
  margin:0;
  color:#050505;
  font-size:clamp(44px,7vw,76px);
  line-height:.9;
  font-weight:900;
  letter-spacing:-.08em;
}

.jh-home-clean-head p{
  margin:14px 0 0;
  color:#6b7280;
  font-size:18px;
  line-height:1.4;
}

.jh-home-clean-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}

.jh-home-clean-card{
  min-height:180px;
  padding:22px;
  border-radius:28px;
  background:rgba(255,255,255,.88);
  border:1px solid rgba(17,24,39,.07);
  box-shadow:0 16px 42px rgba(17,24,39,.055);
  color:#111827;
  text-decoration:none;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:22px;
  position:relative;
  overflow:hidden;
  transition:.18s ease;
}

.jh-home-clean-card::before{
  content:"";
  position:absolute;
  inset:auto -38px -54px auto;
  width:130px;
  height:130px;
  border-radius:999px;
  background:rgba(118,54,255,.075);
  pointer-events:none;
}

.jh-home-clean-card:hover{
  transform:translateY(-4px);
  box-shadow:0 24px 56px rgba(17,24,39,.09);
  color:#111827;
  text-decoration:none;
}

.jh-home-card-icon{
  width:48px;
  height:48px;
  border-radius:18px;
  background:#111827;
  color:#00FAAF;
  display:grid;
  place-items:center;
  font-size:18px;
  position:relative;
  z-index:1;
}

.jh-home-card-content{
  position:relative;
  z-index:1;
}

.jh-home-card-content strong{
  display:block;
  margin-bottom:8px;
  color:#050505;
  font-size:22px;
  line-height:1;
  font-weight:900;
  letter-spacing:-.04em;
}

.jh-home-card-content small{
  display:block;
  color:#6b7280;
  font-size:14px;
  line-height:1.42;
  font-weight:650;
}

.jh-home-card-arrow{
  width:34px;
  height:34px;
  border-radius:999px;
  background:#eef2f7;
  color:#374151;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
  margin-left:auto;
  position:relative;
  z-index:1;
}

@media(max-width:1000px){
  .jh-home-clean-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:700px){
  .jh-home-clean{
    padding:22px 18px 60px;
  }

  .jh-home-clean-top{
    margin-bottom:58px;
  }

  .jh-home-clean-logo img{
    width:98px;
  }

  .jh-home-clean-actions span{
    display:none;
  }

  .jh-home-clean-head{
    text-align:left;
  }

  .jh-home-clean-head h1{
    font-size:48px;
  }

  .jh-home-clean-head p{
    font-size:16px;
  }

  .jh-home-clean-grid{
    grid-template-columns:1fr;
    gap:14px;
  }

  .jh-home-clean-card{
    min-height:150px;
    border-radius:24px;
  }
}

/* =========================================================
   HOME / CENTRAL 360 - CARD MOBILE COM ÍCONE + TÍTULO
========================================================= */

@media(max-width:700px){

  .jh-home-clean-grid{
    gap:12px;
  }

  .jh-home-clean-card{
    min-height:auto;
    padding:18px;
    border-radius:24px;
    display:grid;
    grid-template-columns:44px 1fr 34px;
    grid-template-areas:
      "icon title arrow"
      "desc desc arrow";
    align-items:center;
    gap:10px 12px;
  }

  .jh-home-card-icon{
    grid-area:icon;
    width:42px;
    height:42px;
    border-radius:15px;
    font-size:15px;
  }

  .jh-home-card-content{
    display:contents;
  }

  .jh-home-card-content strong{
    grid-area:title;
    margin:0;
    font-size:21px;
    line-height:1.1;
  }

  .jh-home-card-content small{
    grid-area:desc;
    font-size:13.5px;
    line-height:1.35;
    max-width:100%;
  }

  .jh-home-card-arrow{
    grid-area:arrow;
    width:32px;
    height:32px;
    font-size:12px;
    margin-left:0;
    justify-self:end;
    align-self:center;
  }

  .jh-home-clean-card::before{
    width:92px;
    height:92px;
    right:-34px;
    bottom:-42px;
  }

}
/* =========================================================
   MÓDULO USUÁRIOS / MENU LATERAL
========================================================= */

.module-shell{
  width:100%;
  min-height:100vh;
  display:grid;
  grid-template-columns:260px minmax(0,1fr);
  gap:24px;
  padding:24px;
  box-sizing:border-box;
}

.module-sidebar{
  position:sticky;
  top:24px;
  align-self:start;
  min-height:calc(100vh - 48px);
  padding:22px;
  border-radius:28px;
  background:#050505;
  color:#fff;
  box-shadow:0 24px 70px rgba(0,0,0,.18);
}

.module-sidebar-title{
  font-size:24px;
  font-weight:950;
  letter-spacing:-.04em;
  margin-bottom:22px;
}

.module-menu{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.module-menu a{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:46px;
  padding:0 16px;
  border-radius:16px;
  color:rgba(255,255,255,.72);
  text-decoration:none;
  font-size:14px;
  font-weight:850;
  transition:.2s ease;
}

.module-menu a:hover{
  color:#fff;
  background:rgba(255,255,255,.09);
}

.module-menu a.active{
  color:#050505;
  background:#fff;
}

.module-main{
  min-width:0;
}

@media(max-width:960px){
  .module-shell{
    display:block;
    padding:14px;
  }

  .module-sidebar{
    position:relative;
    top:auto;
    min-height:auto;
    margin-bottom:16px;
    padding:16px;
    border-radius:22px;
  }

  .module-sidebar-title{
    font-size:20px;
    margin-bottom:14px;
  }

  .module-menu{
    flex-direction:row;
    overflow-x:auto;
    padding-bottom:2px;
  }

  .module-menu a{
    white-space:nowrap;
    min-height:42px;
  }
}

/* JH_MENU_SUBMENU_APPCSS_V16_START
   Correção aplicada no arquivo realmente carregado pelas telas: /assets/app.css
   Objetivo:
   - manter o menu atual;
   - trazer submenus mais para a esquerda;
   - deixar a pasta do submenu com altura/tamanho parecido ao item "Estoque";
   - reduzir corte de texto dentro da largura atual.
*/
@media (min-width: 761px){

  body.app-module-body .module-shell .module-side-menu{
    --jh-menu-sub-indent: 18px;
  }

  /* Recuo geral dos submenus: menos "para frente" */
  body.app-module-body .module-shell .module-side-menu .module-submenu{
    margin-left: var(--jh-menu-sub-indent) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: calc(100% - var(--jh-menu-sub-indent)) !important;
    max-width: calc(100% - var(--jh-menu-sub-indent)) !important;
    box-sizing: border-box !important;
  }

  /* Submenu dentro de submenu ainda menos recuado */
  body.app-module-body .module-shell .module-side-menu .module-submenu .module-submenu{
    margin-left: 12px !important;
    width: calc(100% - 12px) !important;
    max-width: calc(100% - 12px) !important;
  }

  /* Qualquer grupo dentro do submenu não pode criar cartão largo/alto demais */
  body.app-module-body .module-shell .module-side-menu .module-submenu .module-nav-group{
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  /* Pasta dentro do submenu, exemplo "Produto Comercial" */
  body.app-module-body .module-shell .module-side-menu .module-submenu .module-nav-group > .module-side-link,
  body.app-module-body .module-shell .module-side-menu .module-submenu > .module-side-link,
  body.app-module-body .module-shell .module-side-menu .module-submenu .module-side-link{
    width: 100% !important;
    max-width: 100% !important;
    min-height: 48px !important;
    height: auto !important;
    padding: 10px 12px !important;
    border-radius: 16px !important;
    gap: 10px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }

  /* Links simples do submenu */
  body.app-module-body .module-shell .module-side-menu .module-submenu a,
  body.app-module-body .module-shell .module-side-menu .module-submenu .module-side-child-link{
    width: 100% !important;
    max-width: 100% !important;
    min-height: 44px !important;
    height: auto !important;
    padding: 8px 10px !important;
    border-radius: 14px !important;
    gap: 10px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }

  /* Ícones menores no submenu para liberar espaço para o texto */
  body.app-module-body .module-shell .module-side-menu .module-submenu .module-side-icon{
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    flex: 0 0 28px !important;
    border-radius: 10px !important;
  }

  /* Texto do submenu: sem reticências forçadas */
  body.app-module-body .module-shell .module-side-menu .module-submenu .module-side-text,
  body.app-module-body .module-shell .module-side-menu .module-submenu .module-side-label,
  body.app-module-body .module-shell .module-side-menu .module-submenu .module-menu-label,
  body.app-module-body .module-shell .module-side-menu .module-submenu a span:not(.module-side-icon),
  body.app-module-body .module-shell .module-side-menu .module-submenu button span:not(.module-side-icon){
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    display: block !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    line-height: 1.15 !important;
  }

  /* A pasta do submenu tenta ficar em uma linha quando couber */
  body.app-module-body .module-shell .module-side-menu .module-submenu .module-nav-group > .module-side-link .module-side-text{
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    font-size: 14px !important;
    line-height: 1.1 !important;
  }

  /* Seta menor no submenu, sem roubar espaço */
  body.app-module-body .module-shell .module-side-menu .module-submenu .module-submenu-arrow,
  body.app-module-body .module-shell .module-side-menu .module-submenu .module-side-chevron,
  body.app-module-body .module-shell .module-side-menu .module-submenu .module-side-arrow{
    width: 14px !important;
    min-width: 14px !important;
    flex: 0 0 14px !important;
    margin-left: auto !important;
  }

  /* Ajuste fino para o item aberto/ativo dentro do submenu não ficar maior que Estoque */
  body.app-module-body .module-shell .module-side-menu .module-submenu .module-nav-group.is-open > .module-side-link,
  body.app-module-body .module-shell .module-side-menu .module-submenu .module-nav-group.active > .module-side-link,
  body.app-module-body .module-shell .module-side-menu .module-submenu .module-nav-group .module-side-link.active,
  body.app-module-body .module-shell .module-side-menu .module-submenu .module-side-link.active,
  body.app-module-body .module-shell .module-side-menu .module-submenu .module-side-link[aria-expanded="true"]{
    min-height: 48px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  /* Linhas verticais do submenu mais próximas, sem empurrar conteúdo */
  body.app-module-body .module-shell .module-side-menu .module-submenu::before{
    left: -8px !important;
  }
}

/* Mobile: mantém o comportamento atual, só reduz um pouco o recuo se o mesmo CSS for usado */
@media (max-width: 760px){
  body.app-module-body .module-shell .module-side-menu .module-submenu{
    margin-left: 16px !important;
    padding-left: 0 !important;
    width: calc(100% - 16px) !important;
    max-width: calc(100% - 16px) !important;
  }
}
/* JH_MENU_SUBMENU_APPCSS_V16_END */
