/* DROPS PRO 2.37.8 — identidade no card, Minha Conta e demonstração em duas áreas */

.operational-header {
  display: flex;
  align-items: center;
  min-height: 92px;
  margin: calc(-22px - env(safe-area-inset-top)) -18px 0;
  padding: calc(18px + env(safe-area-inset-top)) 24px 18px;
  background: linear-gradient(135deg, #001f3b, #002d54);
}

.operational-menu-button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: transparent;
  font-size: 31px;
  line-height: 1;
  cursor: pointer;
}

.operational-menu-button:active { background: rgba(255, 255, 255, .12); }

.app-welcome {
  position: relative;
  display: block;
  min-height: 330px;
  margin-top: 44px;
  padding: 28px 28px 30px;
  isolation: isolate;
  border-top: 5px solid var(--active-company-primary);
}

.company-brand-watermark {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: grid;
  place-items: end center;
  overflow: hidden;
  padding: 0 18px 24px;
  opacity: .075;
  pointer-events: none;
}

.company-logo-watermark {
  display: block;
  width: min(82%, 560px);
  max-height: 185px;
  object-fit: contain;
  filter: grayscale(.2);
  transform: scale(1.12) rotate(-5deg);
}

.company-watermark-fallback {
  color: var(--active-company-primary);
  font-size: clamp(42px, 9vw, 82px);
  font-weight: 950;
  letter-spacing: -.04em;
  transform: rotate(-5deg);
}

.company-brand-hero {
  display: grid;
  place-items: center;
  min-height: 104px;
  margin-bottom: 18px;
}

.company-brand-hero .company-logo {
  display: block;
  width: min(76%, 520px);
  height: 94px;
  max-width: none;
  padding: 0;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 40, 80, .12));
}

.company-brand-hero .company-logo-fallback {
  display: block;
  width: auto;
  height: auto;
  padding: 0;
  color: var(--active-company-primary);
  background: transparent;
  font-size: clamp(28px, 7vw, 54px);
  line-height: 1;
  letter-spacing: .03em;
  text-align: center;
}

.app-welcome .profile-summary {
  position: relative;
  z-index: 1;
  width: min(100%, 650px);
  margin: 0 auto;
  padding-top: 18px;
  border-top: 1px solid #dce7f4;
}

.app-welcome .profile-avatar {
  width: 74px;
  height: 74px;
  font-size: 27px;
}

.app-welcome h2 { font-size: clamp(22px, 4.8vw, 34px); }
.app-welcome p { max-width: 100%; font-size: 14px; }

.bottom-nav {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  width: min(calc(100% - 24px), 720px) !important;
  min-height: 76px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom)) !important;
}

.bottom-nav button {
  position: relative;
  justify-content: center;
  min-height: 57px;
  padding: 5px 2px;
}

.bottom-nav .bottom-nav-primary {
  overflow: visible;
  color: #075fc7;
  background: transparent;
}

.bottom-nav .bottom-nav-primary > span {
  display: grid;
  place-items: center;
  width: 55px;
  height: 55px;
  margin-top: -29px;
  border: 5px solid #f7fbff;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #0879e2, #0752ae);
  box-shadow: 0 9px 22px rgba(7, 95, 199, .32);
  font-size: 31px;
}

.bottom-nav .bottom-nav-primary > small {
  margin-top: 2px;
  color: #075fc7;
  white-space: nowrap;
}

.app-menu-drawer {
  position: fixed;
  inset: 0;
  z-index: 100150;
  display: flex;
  align-items: stretch;
  background: rgba(0, 24, 48, .72);
  backdrop-filter: blur(7px);
}

.app-menu-sheet {
  width: min(84vw, 340px);
  min-height: 100%;
  padding: calc(20px + env(safe-area-inset-top)) 17px calc(20px + env(safe-area-inset-bottom));
  background: #fff;
  box-shadow: 20px 0 55px rgba(0, 18, 38, .3);
}

.app-menu-sheet > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 18px;
  border-bottom: 1px solid #dce7f4;
}

.app-menu-sheet > header small,
.app-menu-sheet > header h2 { display: block; }
.app-menu-sheet > header small { color: #0871db; font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.app-menu-sheet > header h2 { margin: 3px 0 0; color: #173252; }
.app-menu-sheet > header button { width: 40px; height: 40px; border: 0; border-radius: 12px; color: #075fc7; background: #edf5fd; font-size: 25px; }

.app-menu-list { display: grid; gap: 8px; padding-top: 16px; }
.app-menu-list button { display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 10px; min-height: 52px; padding: 8px 11px; border: 0; border-radius: 13px; color: #173252; background: #f5f9fe; text-align: left; cursor: pointer; }
.app-menu-list button > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #075fc7; background: #e4f1ff; font-size: 18px; }

.settings-modal-card {
  grid-template-rows: auto minmax(0, 1fr);
  width: min(980px, 100%);
  max-height: min(91dvh, 900px);
}

.settings-modal-content {
  padding: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.settings-modal-content::-webkit-scrollbar { display: none; }

.settings-account-layout {
  display: grid;
  grid-template-columns: minmax(210px, .65fr) minmax(0, 1.65fr);
  min-height: 570px;
}

.settings-account-sidebar {
  padding: 26px 20px;
  border-right: 1px solid #dce7f4;
  background: #fbfdff;
}

.settings-account-photo {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 0 auto 14px;
}

.settings-account-photo .settings-avatar {
  width: 112px;
  height: 112px;
  border: 1px solid #c9d9e9;
  background-color: #fff;
  box-shadow: none;
}

.settings-photo-badge {
  position: absolute;
  right: 0;
  bottom: 4px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 4px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #0871db;
  font-size: 17px;
}

.settings-photo-button {
  width: 100%;
  min-height: 44px;
  border: 1px solid #0871db;
  border-radius: 11px;
  color: #075fc7;
  background: #fff;
  font-weight: 900;
  cursor: pointer;
}

.settings-account-nav { display: grid; gap: 7px; margin-top: 20px; }
.settings-account-nav button { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 8px; min-height: 48px; padding: 8px 11px; border: 0; border-radius: 11px; color: #50647b; background: transparent; text-align: left; cursor: pointer; }
.settings-account-nav button > span { font-size: 18px; text-align: center; }
.settings-account-nav button.active { color: #075fc7; background: #eaf3ff; font-weight: 900; }
.settings-account-nav .settings-side-logout { margin-top: 8px; color: #c52424; border-top: 1px solid #dce7f4; border-radius: 0; }

.settings-account-main { min-width: 0; padding: 28px; }
.settings-account-section.hidden { display: none !important; }
.settings-section-eyebrow { margin: 0 0 13px; color: #075fc7; font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }

.settings-user-table { overflow: hidden; border: 1px solid #dce7f4; border-radius: 15px; background: #fff; }
.settings-user-row { display: grid; grid-template-columns: minmax(155px, .75fr) minmax(0, 1.25fr); gap: 12px; align-items: center; min-height: 50px; padding: 10px 13px; border-bottom: 1px solid #e2eaf2; }
.settings-user-row:last-child { border-bottom: 0; }
.settings-user-row dt { display: flex; align-items: center; gap: 8px; min-width: 0; color: #253a54; font-size: 12px; font-weight: 900; }
.settings-user-row dt span { color: #5d7189; font-size: 16px; }
.settings-user-row dd { min-width: 0; margin: 0; color: #253a54; font-size: 13px; overflow-wrap: anywhere; }
.settings-registration-status { display: inline-flex; padding: 5px 10px; border-radius: 999px; color: #087636; background: #ddf8e7; font-size: 11px; font-weight: 900; }
.settings-registration-status.inactive { color: #a5232a; background: #ffe7e8; }
.settings-password-expiry strong,
.settings-password-expiry small { display: block; }
.settings-password-expiry small { margin-top: 3px; color: #6c7c90; }
.settings-password-expiry.is-expired strong,
.settings-password-expiry.is-expired small { color: #b4232b; }

.settings-quick-actions { margin-top: 18px; padding: 15px; border: 1px solid #dce7f4; border-radius: 15px; background: #fbfdff; }
.settings-quick-actions h3 { margin: 0 0 12px; color: #075fc7; font-size: 13px; text-transform: uppercase; }
.settings-quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.settings-quick-button { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 8px; min-height: 60px; padding: 10px; border: 1px solid #bdd3e8; border-radius: 12px; color: #075fc7; background: #fff; text-align: left; cursor: pointer; }
.settings-quick-button > span { grid-row: 1 / span 2; font-size: 19px; text-align: center; }
.settings-quick-button strong,
.settings-quick-button small { display: block; }
.settings-quick-button small { margin-top: 2px; color: #65788e; }

.settings-logout-action {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 64px;
  margin-top: 13px;
  padding: 10px 13px;
  border: 1px solid #e34a4a;
  border-radius: 12px;
  color: #c52424;
  background: #fff7f7;
  text-align: left;
  cursor: pointer;
}
.settings-logout-action > span { grid-row: 1 / span 2; font-size: 24px; text-align: center; }
.settings-logout-action strong,
.settings-logout-action small { display: block; }
.settings-logout-action small { margin-top: 2px; color: #7c6262; }

.settings-edit-card { max-width: 560px; }
.settings-edit-card h3 { margin: 0 0 6px; color: #173252; }
.settings-edit-card > p { margin: 0 0 18px; color: #65788e; font-size: 12px; line-height: 1.5; }
.settings-edit-card .primary-button { margin-top: 18px; }
.settings-edit-back { margin-top: 10px; width: 100%; min-height: 44px; border: 0; border-radius: 12px; color: #075fc7; background: #edf5fd; font-weight: 900; }
.settings-account-message { min-height: 20px; margin: 12px 0 0; text-align: center; font-size: 12px; font-weight: 800; }
.settings-account-message.success { color: #087636; }
.settings-account-message.error { color: #a52727; }
.settings-demo-lock { margin-bottom: 13px; padding: 11px 12px; border-radius: 11px; color: #6f4b00; background: #fff2cf; font-size: 12px; }

@media (max-width: 780px) {
  .operational-header { margin: calc(-14px - env(safe-area-inset-top)) -12px 0; }
  .settings-modal { align-items: end; padding: 0; }
  .settings-modal-card { width: 100%; max-height: 96dvh; border-radius: 24px 24px 0 0; }
  .settings-account-layout { grid-template-columns: 1fr; min-height: 0; }
  .settings-account-sidebar { padding: 18px; border-right: 0; border-bottom: 1px solid #dce7f4; }
  .settings-account-photo { width: 84px; height: 84px; }
  .settings-account-photo .settings-avatar { width: 84px; height: 84px; }
  .settings-photo-badge { width: 32px; height: 32px; border-width: 3px; }
  .settings-photo-button { width: min(100%, 300px); margin: 0 auto; display: block; }
  .settings-account-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-account-nav button { grid-template-columns: 26px 1fr; }
  .settings-account-nav .settings-side-logout { margin: 0; border: 0; border-radius: 11px; background: #fff2f2; }
  .settings-account-main { padding: 20px 18px calc(22px + env(safe-area-inset-bottom)); }
}

@media (max-width: 520px) {
  .operational-header { min-height: 82px; }
  .operational-menu-button { width: 44px; height: 44px; }
  .app-welcome { min-height: 310px; padding: 22px 20px 25px; }
  .company-brand-hero { min-height: 86px; margin-bottom: 12px; }
  .company-brand-hero .company-logo { width: 84%; height: 80px; }
  .app-welcome .profile-summary { align-items: center; }
  .app-welcome .profile-avatar { width: 64px; height: 64px; }
  .bottom-nav { width: calc(100% - 14px) !important; border-radius: 22px; }
  .bottom-nav button small { font-size: 8px; }
  .bottom-nav .bottom-nav-primary > span { width: 50px; height: 50px; margin-top: -25px; font-size: 28px; }
  .settings-user-row { grid-template-columns: 1fr; gap: 4px; }
  .settings-quick-grid { grid-template-columns: 1fr; }
}

@media (max-width: 370px) {
  .bottom-nav button span { font-size: 17px; }
  .bottom-nav button small { font-size: 7px; }
  .settings-account-nav { grid-template-columns: 1fr; }
}
