/* Baseado no shell do projeto Sirius (Comex) — variáveis e layout principal */
:root {
  --comex-blue: #0d47a1;
  --comex-blue-soft: #1e88e5;
  --comex-green-soft: #c8f3dd;
  --comex-bg: #f5f9ff;
  --comex-white: #ffffff;
  --comex-text: #13334c;
  --sirius-teal: #26a69a;
  --sirius-teal-hover: #2eb8aa;
  --sirius-teal-muted: rgba(38, 166, 154, 0.22);
  --sirius-sidebar-bg: #eceff1;
  --sirius-page-bg: #f8f9fa;
  --sirius-rail-collapsed: 3.5rem;
  /* Largura ao expandir (hover desktop) / gaveta mobile */
  --sirius-rail-expanded: 19.5rem;
  /* Título (h1) da página */
  --auditmed-title-color: #374151;
  --auditmed-title-color-hover: #2a3240;
  /* Marca AuditMed (topbar/login), botão Entrar e FABs — mesmo verde */
  --auditmed-accent: #00897b;
  --auditmed-accent-hover: #00796b;
  /* Item ativo do menu — alinhado ao verde da marca */
  --auditmed-nav-active-bg: var(--sirius-teal-muted);
  --auditmed-nav-active-fg: #00695c;
  /* Menu lateral */
  --auditmed-sidebar-bg: linear-gradient(175deg, #f0faf8 0%, #e8eef2 48%, #e3e8ec 100%);
  --auditmed-sidebar-edge: rgba(0, 105, 92, 0.14);
  --auditmed-sidebar-hover: rgba(0, 137, 123, 0.09);
  --auditmed-sidebar-active-bar: #00897b;
}

body {
  min-height: 100vh;
  background: var(--sirius-page-bg);
  color: var(--comex-text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
}

.app-layout {
  display: flex;
  flex-wrap: nowrap;
  /* Evita que a lateral estique até a altura do main (isso gerava scroll na página inteira). */
  align-items: flex-start;
  min-height: 100vh;
  width: 100%;
}

.app-main {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  background: var(--sirius-page-bg);
}

/* Topbar com faixa colorida (identidade CRM / AuditMed) */
.app-topbar {
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  padding: 0;
  border-bottom: none;
  background: transparent;
  box-shadow: 0 4px 20px rgba(0, 77, 64, 0.22);
}

.app-topbar__gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(118deg, #003d33 0%, #004d40 18%, #00695c 45%, #00897b 72%, #26a69a 100%);
}

.app-topbar__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.5rem;
  padding: 0.5rem 1rem;
}

@media (min-width: 992px) {
  .app-topbar__inner {
    padding: 0.55rem 1.25rem 0.55rem 1rem;
  }
}

.app-topbar__brand-block {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

@media (min-width: 576px) {
  .app-topbar__brand-block {
    flex-direction: row;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
  }
}

.app-topbar__brand {
  font-size: 1.35rem;
  font-weight: 700;
  font-style: italic;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.app-topbar__tagline {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Login — mesma cor do logo (topbar) */
.login-brand {
  font-size: 1.35rem;
  font-weight: 700;
  font-style: italic;
  color: var(--auditmed-accent);
  letter-spacing: 0.02em;
}

.btn-auditmed-primary {
  background-color: var(--auditmed-accent);
  border-color: var(--auditmed-accent);
  color: #fff;
}

.btn-auditmed-primary:hover {
  background-color: var(--auditmed-accent-hover);
  border-color: var(--auditmed-accent-hover);
  color: #fff;
}

.app-topbar__clock {
  flex: 1;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  min-width: 0;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
}

.app-topbar__actions {
  flex-shrink: 0;
}

.app-topbar__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.35rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0.55rem;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.app-topbar__icon-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.4);
}

.app-topbar__icon-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}

.app-topbar__badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2em 0.45em;
  line-height: 1;
  background: #ff5252 !important;
  color: #fff;
  border: 2px solid rgba(0, 61, 51, 0.95);
  min-width: 1.1rem;
}

.app-topbar__notif-panel {
  min-width: min(22rem, calc(100vw - 1.5rem));
  max-width: 22rem;
  border: none;
  border-radius: 0.75rem;
  overflow: hidden;
  margin-top: 0.35rem !important;
}

.app-topbar__notif-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(90deg, #005046, #00796b);
  color: #fff;
  font-size: 0.9rem;
}

.app-topbar__notif-body {
  max-height: min(320px, 50vh);
  overflow-y: auto;
  background: #fff;
}

.app-topbar__notif-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-bottom: 1px solid #eef1f4 !important;
  transition: background-color 0.12s ease;
}

.app-topbar__notif-item:hover,
.app-topbar__notif-item:focus {
  background: rgba(0, 137, 123, 0.06);
}

.app-topbar__notif-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--auditmed-accent);
  flex-shrink: 0;
  margin-top: 0.4rem;
}

.app-topbar__notif-dot--warning {
  background: #ff9800;
}

.app-topbar__notif-dot--danger {
  background: #e53935;
}

.app-topbar__notif-dot--success {
  background: #43a047;
}

.app-topbar__notif-empty {
  background: #fafbfc;
}

.app-topbar__user .dropdown-menu {
  border-radius: 0.65rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.app-topbar__user-btn {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2rem;
  padding: 0.2rem 0.65rem 0.2rem 0.3rem;
  font-size: 0.9rem;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.app-topbar__user-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
}

.app-topbar__user-btn::after {
  margin-left: 0.25rem;
  opacity: 0.9;
}

.app-topbar__avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.app-topbar__user-name {
  color: #fff;
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-rail__open-mobile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  border-radius: 0.5rem;
}

.sidebar-rail {
  --bs-offcanvas-width: min(20rem, 92vw);
  background: var(--auditmed-sidebar-bg);
  color: #3d4f5f;
  border: 0;
  border-right: 1px solid var(--auditmed-sidebar-edge);
  box-shadow: 4px 0 24px rgba(0, 61, 51, 0.06);
}

.sidebar-rail .offcanvas-header {
  padding: 0.75rem 1rem;
}

.sidebar-rail__drawer-head {
  background: linear-gradient(118deg, #004d40 0%, #00695c 50%, #00897b 100%);
  border-bottom: none !important;
  color: #fff;
}

.sidebar-rail__drawer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.18);
  font-size: 1.1rem;
}

.sidebar-rail__drawer-title {
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.03em;
}

.sidebar-rail .offcanvas-body {
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-rail__body {
  padding: 0.85rem 0.5rem 1.125rem;
  min-height: 0;
}

.sidebar-rail__brand {
  padding: 0.35rem 0.5rem 0.6rem;
  margin-bottom: 0.35rem !important;
  border-bottom: 1px solid rgba(0, 105, 92, 0.1);
}

.sidebar-rail__brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  background: linear-gradient(145deg, rgba(0, 137, 123, 0.2), rgba(38, 166, 154, 0.12));
  color: var(--auditmed-accent);
  font-size: 1.05rem;
}

.sidebar-rail__brand-text {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5c6c7d;
}

.sidebar-rail__hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 0.85rem;
  padding: 0;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: #495057;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.sidebar-rail__hamburger:hover {
  background: rgba(0, 0, 0, 0.06);
}

.sidebar-rail__nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: stretch;
  width: 100%;
}

.sidebar-rail__icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 0.55rem;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(0, 105, 92, 0.1);
  color: #546e7a;
  font-size: 1.1rem;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.sidebar-rail__link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  min-height: 2.65rem;
  padding: 0.4rem 0.6rem;
  border-radius: 0.65rem;
  color: #4a5d6c;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  border: 1px solid transparent;
}

.sidebar-rail__link:hover {
  background: var(--auditmed-sidebar-hover);
  color: #263238;
  border-color: rgba(0, 137, 123, 0.12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.sidebar-rail__link:hover .sidebar-rail__icon-wrap {
  background: #fff;
  border-color: rgba(0, 137, 123, 0.2);
  color: var(--auditmed-accent);
}

.sidebar-rail__link.active {
  background: rgba(0, 137, 123, 0.12);
  color: var(--auditmed-nav-active-fg);
  border-color: rgba(0, 137, 123, 0.2);
  box-shadow: inset 3px 0 0 var(--auditmed-sidebar-active-bar);
}

.sidebar-rail__link.active .sidebar-rail__icon-wrap {
  background: rgba(0, 137, 123, 0.18);
  border-color: rgba(0, 137, 123, 0.28);
  color: var(--auditmed-accent);
}

.sidebar-rail__link--parent {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.45);
}

.sidebar-rail__link--parent:hover {
  background: rgba(255, 255, 255, 0.75);
}

.sidebar-rail__link:focus-visible {
  outline: 2px solid rgba(0, 137, 123, 0.4);
  outline-offset: 2px;
}

.sidebar-submenu-link:focus-visible {
  outline: 2px solid rgba(0, 137, 123, 0.35);
  outline-offset: 1px;
}

.sidebar-rail__chevron {
  flex-shrink: 0;
  opacity: 0.65;
  transition: transform 0.22s ease;
}

.sidebar-rail__link--parent[aria-expanded="false"] .sidebar-rail__chevron {
  transform: rotate(-90deg);
}

.sidebar-rail__group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.35rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(0, 105, 92, 0.08);
}

.sidebar-rail__subnav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.25rem 0 0.15rem 0;
  margin-top: 0.15rem;
  border-left: 2px solid rgba(0, 137, 123, 0.15);
  margin-left: 0.6rem;
  padding-left: 0.5rem;
}

.sidebar-submenu-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  border-radius: 0.5rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: #546e7a;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
  border: 1px solid transparent;
}

.sidebar-submenu-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.4rem;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.7);
  color: #78909c;
  flex-shrink: 0;
  transition: inherit;
}

.sidebar-submenu-link:hover {
  background: var(--auditmed-sidebar-hover);
  color: #263238;
  border-color: rgba(0, 137, 123, 0.1);
}

.sidebar-submenu-link:hover .sidebar-submenu-link__icon {
  background: #fff;
  color: var(--auditmed-accent);
}

.sidebar-submenu-link.active {
  background: rgba(0, 137, 123, 0.14);
  color: var(--auditmed-nav-active-fg);
  font-weight: 600;
  border-color: rgba(0, 137, 123, 0.18);
  box-shadow: inset 2px 0 0 var(--auditmed-sidebar-active-bar);
}

.sidebar-submenu-link.active .sidebar-submenu-link__icon {
  background: rgba(0, 137, 123, 0.2);
  color: var(--auditmed-accent);
}

/* Desktop: barra estreita; ao passar o mouse expande e ao sair recolhe (substitui o clique no hambúrguer). */
@media (min-width: 992px) {
  .sidebar-rail {
    --bs-offcanvas-width: var(--sirius-rail-collapsed);
    transition: flex-basis 0.22s ease, width 0.22s ease, min-width 0.22s ease, max-width 0.22s ease;
  }

  .sidebar-rail:hover {
    --bs-offcanvas-width: var(--sirius-rail-expanded);
  }

  .sidebar-rail .offcanvas-body {
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }

  .sidebar-rail:not(:hover) .sidebar-rail__brand {
    display: none !important;
  }

  .sidebar-rail:not(:hover) .sidebar-rail__chevron {
    display: none !important;
  }

  .sidebar-rail:not(:hover) .sidebar-rail__group {
    padding: 0.15rem;
    background: transparent;
    border: none;
  }

  .sidebar-rail:not(:hover) .sidebar-rail__link,
  .sidebar-rail:not(:hover) .sidebar-rail__group > button.sidebar-rail__link {
    position: relative;
    justify-content: center;
    padding: 0.4rem;
  }

  .sidebar-rail:not(:hover) .sidebar-rail__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  .sidebar-rail:not(:hover) .sidebar-rail__subnav {
    display: none;
  }

  .sidebar-rail:hover .sidebar-rail__group {
    padding: 0.35rem;
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(0, 105, 92, 0.08);
  }

  .sidebar-rail:hover .sidebar-rail__link,
  .sidebar-rail:hover .sidebar-rail__group > button.sidebar-rail__link {
    justify-content: flex-start;
    padding: 0.4rem 0.6rem;
  }

  .app-layout > aside.sidebar-rail.offcanvas-lg {
    position: sticky;
    top: 0;
    align-self: flex-start;
    transform: none !important;
    visibility: visible !important;
    display: flex !important;
    flex-direction: column;
    flex: 0 0 var(--bs-offcanvas-width);
    width: var(--bs-offcanvas-width);
    max-width: var(--bs-offcanvas-width);
    min-width: var(--bs-offcanvas-width);
    /* Altura fixa à viewport: o menu não alonga o documento; só o <nav> rola. */
    height: 100vh;
    max-height: 100vh;
    min-height: 0;
    overflow: hidden;
    z-index: 2;
  }

  @supports (height: 100dvh) {
    .app-layout > aside.sidebar-rail.offcanvas-lg {
      height: 100dvh;
      max-height: 100dvh;
    }
  }

  .app-layout > aside.sidebar-rail.offcanvas-lg .offcanvas-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    /* Área útil abaixo do header mobile (oculto no lg): só o nav abaixo rola. */
    overflow: hidden;
  }

  .app-layout > aside.sidebar-rail.offcanvas-lg .sidebar-rail__nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 105, 92, 0.35) rgba(0, 105, 92, 0.08);
  }

  .app-layout > aside.sidebar-rail.offcanvas-lg .sidebar-rail__nav::-webkit-scrollbar {
    width: 6px;
  }

  .app-layout > aside.sidebar-rail.offcanvas-lg .sidebar-rail__nav::-webkit-scrollbar-thumb {
    background: rgba(0, 105, 92, 0.28);
    border-radius: 999px;
  }

  .app-layout > aside.sidebar-rail.offcanvas-lg .sidebar-rail__nav::-webkit-scrollbar-track {
    background: rgba(0, 105, 92, 0.06);
    border-radius: 999px;
  }

  .sidebar-rail:not(:hover) .sidebar-rail__body {
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }
}

.main-content {
  flex: 1 1 auto;
  min-height: 0;
  background: linear-gradient(180deg, #f3f6f8 0%, var(--sirius-page-bg) 28%, var(--sirius-page-bg) 100%);
}

.top-card {
  background: var(--comex-white);
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1.25rem rgba(0, 40, 120, 0.08);
}

.page-title-outside {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--auditmed-title-color);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  margin-top: 0;
}

.listing-shell-card {
  background: var(--comex-white);
  border-radius: 0.85rem;
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.07);
  border: 1px solid rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

/* Abas (Bootstrap nav-tabs) — verde AuditMed, sem azul padrão */
.auditmed-tabs .auditmed-tabs__nav {
  border-bottom: none;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.75rem 0.85rem 0.5rem;
  margin-bottom: 0;
  background: linear-gradient(180deg, #eef5f3 0%, #e8ecef 100%);
}

.auditmed-tabs .auditmed-tabs__nav .nav-item {
  margin-bottom: 0;
}

.auditmed-tabs .auditmed-tabs__nav .nav-link {
  margin-bottom: 0;
  border: none !important;
  border-radius: 0.5rem;
  color: #546e7a;
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 0.45rem 0.8rem;
  background: transparent;
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.auditmed-tabs .auditmed-tabs__nav .nav-link:hover {
  color: var(--auditmed-nav-active-fg);
  background: rgba(255, 255, 255, 0.82);
}

.auditmed-tabs .auditmed-tabs__nav .nav-link.active,
.auditmed-tabs .auditmed-tabs__nav .nav-link.active:hover,
.auditmed-tabs .auditmed-tabs__nav .nav-link.active:focus,
.auditmed-tabs .auditmed-tabs__nav .nav-item.show .nav-link {
  color: #fff !important;
  background: linear-gradient(145deg, #00897b, #00695c) !important;
  box-shadow: 0 2px 10px rgba(0, 105, 92, 0.28);
}

.auditmed-tabs .auditmed-tabs__nav .nav-link:focus-visible {
  outline: 2px solid rgba(0, 137, 123, 0.45);
  outline-offset: 2px;
}

/* Abas secundárias bloqueadas até existir registro gravado (PK) */
.auditmed-tabs .auditmed-tabs__nav .nav-link:disabled,
.auditmed-tabs .auditmed-tabs__nav button.nav-link.disabled {
  cursor: not-allowed !important;
  opacity: 0.48;
  color: #90a4ae !important;
  background: rgba(0, 0, 0, 0.04) !important;
  box-shadow: none !important;
}

.auditmed-tabs .auditmed-tabs__nav .nav-link:disabled:hover,
.auditmed-tabs .auditmed-tabs__nav button.nav-link.disabled:hover {
  color: #90a4ae !important;
  background: rgba(0, 0, 0, 0.04) !important;
}

.auditmed-tabs .auditmed-tabs__panel {
  border: 1px solid rgba(0, 105, 92, 0.12);
  border-radius: 0 0 0.75rem 0.75rem;
  background: #fff;
}

.listing-card-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 1.125rem 1.5rem;
  border-bottom: 1px solid #e8eaed;
}

.listing-card-title {
  font-weight: 700;
  font-size: 1.0625rem;
  color: #1f2937;
  margin: 0;
}

/* Botões flutuantes — canto inferior direito */
.auditmed-fab-stack {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  pointer-events: none;
}

.auditmed-fab-stack > * {
  pointer-events: auto;
}

.auditmed-fab {
  width: 3.35rem;
  height: 3.35rem;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.22);
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.auditmed-fab:hover:not(:disabled):not(.auditmed-fab--disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.28);
  color: inherit;
}

.auditmed-fab:focus-visible {
  outline: 2px solid var(--comex-blue-soft);
  outline-offset: 3px;
}

.auditmed-fab--novo,
.auditmed-fab--gravar {
  background: var(--auditmed-accent);
  color: #fff;
}

.auditmed-fab--novo:hover:not(:disabled):not(.auditmed-fab--disabled),
.auditmed-fab--gravar:hover:not(:disabled):not(.auditmed-fab--disabled) {
  background: var(--auditmed-accent-hover);
  color: #fff;
}

/* Voltar — contorno no verde da marca */
.auditmed-fab--voltar {
  background: #fff;
  color: var(--auditmed-accent);
  border: 2px solid var(--auditmed-accent);
  box-shadow: 0 4px 14px rgba(0, 137, 123, 0.12);
}

.auditmed-fab--voltar:hover {
  background: rgba(0, 137, 123, 0.08);
  color: var(--auditmed-accent-hover);
  border-color: var(--auditmed-accent-hover);
}

.auditmed-fab:disabled,
.auditmed-fab--disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

.page-with-fab {
  padding-bottom: 12rem;
}
