:root {
  --azul: #243881;
  --azul-escuro: #1c2e6e;
  --cinza: #d6d9e0;
  --cinza-claro: #f4f6fb;
}

/* Manusis OM status hero */
.hrsxa-status-hero {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #e1e5eb;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 8px 0 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.hrsxa-status-hero-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}
.hrsxa-status-hero-value {
  font-size: 16px;
  font-weight: 800;
  color: #243881;
  text-transform: uppercase;
}
.hrsxa-status-hero-sub {
  font-size: 12px;
  color: #065f46;
  font-weight: 600;
}
.hrsxa-status-hero.is-closed {
  border-color: rgba(5, 150, 105, 0.35);
  background: #ecfdf5;
}
.hrsxa-status-hero.is-closed .hrsxa-status-hero-value {
  color: #059669;
}
.hrsxa-closed-alert {
  background: #ecfdf5;
  border: 1px solid rgba(5, 150, 105, 0.35);
  color: #065f46;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}
.hrsxa-acc-trigger[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background-color: #f5f7fa;
  color: #1a1a1a;
  margin: 0;
}

body.menu-open {
  background-color: var(--azul);
}

a {
  color: inherit;
  text-decoration: none;
}

/* ========= NAVBAR ========= */
.navbar {
  width: 100%;
  background-color: #1e398e;
  color: #fff;
  padding: 10px 14px;
}

.navbar-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.logo-left,
.logo-right {
  height: 40px;
}

.menu-center {
  display: flex;
  align-items: center;
  gap: 18px;
}

.menu-center .dropbtn {
  color: #fff;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 10px;
}

.menu-center .dropbtn:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ========= HAMBURGER MENU ========= */
.menu-btn {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top, 0px));
  left: calc(12px + env(safe-area-inset-left, 0px));
  z-index: 1400;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: transform 200ms ease;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 260ms cubic-bezier(0.2, 0.9, 0.2, 1), opacity 180ms ease, background 260ms ease;
  transform-origin: center;
}

body.menu-open .menu-btn span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.menu-open .menu-btn span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.2);
}

body.menu-open .menu-btn span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .menu-btn {
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(36, 56, 129, 0.35);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 0ms linear 220ms;
  z-index: 1300;
}

.menu-overlay[hidden] {
  display: none;
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .menu-overlay {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}

body.menu-open .menu-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 220ms ease;
}

.menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 90vw;
  min-width: 260px;
  background: rgba(248, 250, 252, 0.96);
  border-top-right-radius: 18px;
  border-bottom-right-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  transform: translateX(-104%);
  opacity: 0.98;
  transition: transform 320ms cubic-bezier(0.2, 0.9, 0.2, 1);
  padding: calc(14px + env(safe-area-inset-top, 0px)) 14px calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 1350;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  pointer-events: none;
}

.menu-drawer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.08));
  opacity: 0.35;
  border-top-right-radius: 18px;
  border-bottom-right-radius: 18px;
}

body.menu-open .menu-drawer {
  transform: translateX(0);
  pointer-events: auto;
}

.menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 4px 10px;
  position: relative;
  z-index: 1;
}

.menu-brand {
  flex: 1;
  min-width: 0;
  font-weight: 800;
  font-size: 14px;
  color: #0f172a;
  letter-spacing: 0.2px;
  padding-left: calc(52px + env(safe-area-inset-left, 0px));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-close {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 0;
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
  font-size: 18px;
  cursor: pointer;
}

.menu-section {
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.06);

  padding: 12px;
  margin-top: 12px;
  position: relative;
  z-index: 1;
}

.menu-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--azul);
}

.menu-link {
  display: block;
  padding: 12px 12px;
  margin-top: 8px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #0f172a;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.menu-link:active {
  transform: scale(0.98);
}

.menu-link:hover {
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1);
  border-color: rgba(36, 56, 129, 0.2);
}

/* ========= LAYOUT HELPERS ========= */
.navbar-badge-pwa {
  display: flex;
  align-items: center;
  margin-left: 12px;
}

/* ========= RESPONSIVE ========= */
@media (max-width: 900px) {
  .menu-center {
    display: none;
  }
}

@media (max-width: 768px) {
  .logo-left,
  .logo-right {
    height: 34px;
  }
  .navbar {
    padding: 10px;
  }
  .navbar-line {
    gap: 12px;
  }
}
