/* Shell do webapp: login, página inicial e barra superior dos painéis. Paleta dos painéis RD
   (navy #0E1A2B, teal #0E7C70, canvas #DCE4EC). */
.sh-bar { font-family: 'Montserrat', system-ui, sans-serif; background: #0E1A2B; color: #DCE4EC; font-size: 13px;
  display: flex; align-items: center; gap: 14px; padding: 8px 22px; border-bottom: 1px solid rgba(255,255,255,.12); }
.sh-bar a, .sh-bar button { font: inherit; color: inherit; background: transparent; border: 1px solid rgba(255,255,255,.28);
  border-radius: 6px; padding: 5px 11px; cursor: pointer; text-decoration: none; }
.sh-bar a:hover, .sh-bar button:hover { background: rgba(255,255,255,.1); }
.sh-bar .sh-title { font-weight: 600; letter-spacing: .02em; }
.sh-bar .sh-sp { flex: 1; }
.sh-bar .sh-chip { font-size: 12px; opacity: .85; }
.sh-bar .sh-chip.warn { color: #F6C66B; }
.sh-bar .sh-upd { border-color: #0E7C70; background: #0E7C70; color: #fff; }
.sh-bar .sh-upd:hover { background: #0b6a60; }
.sh-bar .sh-upd[disabled] { opacity: .6; cursor: default; }

/* ---- login / início ---- */
body.sh-home { margin: 0; background: #DCE4EC; font-family: 'Montserrat', system-ui, sans-serif; color: #16212E; }
.sh-login-bg { position: fixed; inset: 0; background: #0E1A2B; display: none; align-items: center; justify-content: center; z-index: 50; }
.sh-login-bg.open { display: flex; }
.sh-card { background: #fff; border: 1px solid #C6D2DE; border-radius: 14px; padding: 28px 30px; width: min(420px, 92vw); box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.sh-card .eyebrow { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #0E7C70; font-weight: 700; }
.sh-card h1 { font-size: 22px; margin: 6px 0 4px; color: #0E1A2B; }
.sh-card p { margin: 0 0 16px; color: #4A5A6C; font-size: 13px; line-height: 1.5; }
.sh-card input { width: 100%; box-sizing: border-box; font: inherit; padding: 11px 12px; border: 1px solid #C6D2DE; border-radius: 8px; margin-bottom: 10px; }
.sh-card button { width: 100%; font: inherit; font-weight: 600; padding: 11px; border: 0; border-radius: 8px; background: #0E7C70; color: #fff; cursor: pointer; }
.sh-card .err { color: #C6394A; font-size: 13px; min-height: 18px; margin-top: 8px; }
.sh-home-wrap { max-width: 980px; margin: 0 auto; padding: 36px 22px; }
.sh-home-head { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.sh-home-head .brands { display: flex; align-items: center; gap: 14px; background: #0E1A2B; padding: 10px 16px; border-radius: 12px; }
.sh-home-head img { height: 34px; }
.sh-home-head .rule { width: 1px; height: 30px; background: rgba(255,255,255,.3); }
.sh-home-head h1 { font-size: 24px; margin: 0; color: #0E1A2B; }
.sh-home-head p { margin: 2px 0 0; color: #4A5A6C; font-size: 13px; }
.sh-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.sh-tile { display: block; background: #fff; border: 1px solid #C6D2DE; border-radius: 14px; padding: 22px 24px; text-decoration: none; color: inherit;
  transition: transform .12s, box-shadow .12s; }
.sh-tile:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(14,26,43,.12); }
.sh-tile b { display: block; font-size: 17px; color: #0E1A2B; margin-bottom: 6px; }
.sh-tile span { color: #4A5A6C; font-size: 13px; line-height: 1.5; }
.sh-tile .go { display: block; margin-top: 12px; color: #0E7C70; font-weight: 600; }
.sh-meta { margin-top: 24px; background: #fff; border: 1px solid #C6D2DE; border-radius: 14px; padding: 16px 20px; font-size: 13px; color: #4A5A6C; }
.sh-meta b { color: #0E1A2B; }
.sh-meta ul { margin: 8px 0 0; padding-left: 18px; }
.sh-meta .warn { color: #B9740A; }
.sh-meta .err { color: #C6394A; }

/* ---- modal Atualizar dados ---- */
.sh-modal-bg { position: fixed; inset: 0; background: rgba(14,26,43,.55); display: none; align-items: flex-start; justify-content: center; padding: 40px 12px; z-index: 60; overflow: auto; }
.sh-modal-bg.open { display: flex; }
.sh-modal { background: #fff; color: #16212E; border-radius: 14px; width: min(760px, 100%); padding: 22px 26px; font-family: 'Montserrat', system-ui, sans-serif; font-size: 13px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.sh-modal h2 { margin: 0 0 4px; font-size: 18px; color: #0E1A2B; }
.sh-modal .meta { color: #4A5A6C; margin-bottom: 14px; line-height: 1.5; }
.sh-modal .mhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sh-modal .xbtn { font: inherit; background: transparent; border: 1px solid #C6D2DE; border-radius: 6px; padding: 5px 10px; cursor: pointer; }
.sh-modal input[type=password] { width: 100%; box-sizing: border-box; font: inherit; padding: 10px 12px; border: 1px solid #C6D2DE; border-radius: 8px; margin-bottom: 10px; }
.sh-modal .etapas { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-bottom: 12px; }
.sh-modal .etapas label { display: flex; gap: 8px; align-items: flex-start; line-height: 1.35; }
.sh-modal .go { font: inherit; font-weight: 600; padding: 10px 16px; border: 0; border-radius: 8px; background: #0E7C70; color: #fff; cursor: pointer; }
.sh-modal .go[disabled] { opacity: .6; cursor: default; }
.sh-modal .status { margin-top: 12px; }
.sh-modal .ok { color: #1E9E5A; font-weight: 600; }
.sh-modal .err { color: #C6394A; font-weight: 600; }
.sh-modal .run { color: #0E7C70; font-weight: 600; }
.sh-modal pre { background: #0E1A2B; color: #DCE4EC; padding: 10px 12px; border-radius: 8px; font-size: 11px; max-height: 240px; overflow: auto; white-space: pre-wrap; }
.sh-modal h3 { font-size: 14px; margin: 18px 0 6px; color: #0E1A2B; }
.sh-modal table { width: 100%; border-collapse: collapse; font-size: 12px; }
.sh-modal th, .sh-modal td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #EEF2F6; vertical-align: top; }
.sh-modal th { color: #4A5A6C; font-weight: 600; }
.sh-modal td.sim { color: #1E9E5A; font-weight: 600; }
.sh-modal td.nao { color: #C6394A; font-weight: 600; }
.sh-modal select { font: inherit; padding: 3px 6px; border: 1px solid #C6D2DE; border-radius: 6px; }
.sh-modal .hint { color: #4A5A6C; font-size: 12px; margin-top: 10px; line-height: 1.5; }
.sh-modal .avisos li { margin-bottom: 4px; }

/* celular: a barra quebra em duas linhas e o título some (o masthead do painel já diz qual é) */
@media (max-width: 640px) {
  .sh-bar { flex-wrap: wrap; gap: 8px; padding: 8px 12px; }
  .sh-bar .sh-title { display: none; }
  .sh-bar .sh-chip { order: 5; flex-basis: 100%; }
  .sh-home-head { flex-wrap: wrap; }
}
