/* ============================
 * Intranet — estilo principal
 * Paleta principal: Azul institucional INPUTEC
 * ============================ */

:root {
  --inputec-blue: #0d2a4e;
  --inputec-blue-dark: #082042;
  --inputec-blue-mid: #4163ac;
  --inputec-teal: #3fbc9e;
  --inputec-teal-dark: #2a6b5b;
  --inputec-accent: #f7a800;
  --inputec-light: #f0f3f8;
  --inputec-success: #198754;
  --inputec-danger: #dc3545;
  --sidebar-width: 268px;
  --sidebar-collapsed-width: 84px;
  --topbar-height: 68px;
  --app-radius: 0.875rem;
  --app-shadow: 0 4px 24px rgba(13, 42, 78, 0.06);
}

body {
  background-color: var(--inputec-light);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #1f2937;
}

/* ============================
 * Shell — sidebar + topbar
 * ============================ */
.app-body {
  min-height: 100vh;
  overflow-x: hidden;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.app-sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--inputec-blue-dark);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1040;
  box-shadow: 4px 0 24px rgba(8, 32, 66, 0.22);
  transition: transform .25s ease, width .25s ease;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 1.15rem 1rem .85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 72px;
}

.sidebar-brand-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  min-width: 0;
  width: 100%;
}

.sidebar-logo {
  height: 38px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  object-position: center center;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
}

.sidebar-close-btn {
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: .65rem;
  top: 50%;
  transform: translateY(-50%);
}

.sidebar-search {
  padding: .65rem .85rem .5rem;
}

.sidebar-search-wrap {
  position: relative;
}

.sidebar-search-wrap i {
  position: absolute;
  left: .85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
  font-size: .85rem;
}

.sidebar-search-input {
  width: 100%;
  border: none;
  border-radius: 999px;
  background: #fff;
  color: #1f2937;
  font-size: .84rem;
  padding: .55rem .85rem .55rem 2.35rem;
  min-height: 38px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.sidebar-search-input::placeholder {
  color: #94a3b8;
}

.sidebar-search-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(63, 188, 158, 0.35);
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: .35rem .65rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.sidebar-link,
.sidebar-group-toggle {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: 100%;
  padding: .58rem .8rem;
  border-radius: .45rem;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: .86rem;
  font-weight: 500;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.sidebar-link:hover,
.sidebar-group-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.sidebar-link.active,
.sidebar-group.has-active > .sidebar-group-toggle {
  background: var(--inputec-blue-mid);
  color: #fff;
}

.sidebar-sublink {
  padding: .48rem .8rem .48rem 2.35rem;
  font-size: .82rem;
  border-radius: .35rem;
}

.sidebar-sublink.active {
  background: rgba(65, 99, 172, 0.55);
  box-shadow: none;
}

.sidebar-group.is-open .sidebar-subnav {
  display: block;
}

.sidebar-subnav {
  display: none;
  margin: .15rem 0 .35rem;
  padding: .35rem .25rem;
  border-radius: .45rem;
  background: rgba(65, 99, 172, 0.28);
}

.sidebar-group-chevron {
  margin-left: auto;
  font-size: .72rem;
  opacity: .75;
  transition: transform .2s ease;
}

.sidebar-group.is-open .sidebar-group-chevron {
  transform: rotate(180deg);
}

.sidebar-link-chevron {
  display: none;
}

.sidebar-link-icon {
  width: 1.35rem;
  text-align: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.sidebar-link-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.sidebar-chat-badge {
  flex-shrink: 0;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 .35rem;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.25rem;
  text-align: center;
  box-shadow: 0 0 0 2px rgba(15, 35, 68, 0.85);
}

.app-shell.sidebar-collapsed .sidebar-chat-badge {
  position: absolute;
  top: .35rem;
  right: .35rem;
  min-width: .55rem;
  width: .55rem;
  height: .55rem;
  padding: 0;
  font-size: 0;
  line-height: 0;
}

.app-shell.sidebar-collapsed [data-nav-chat] {
  position: relative;
}

.inputec-chat-popup {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1090;
  max-width: min(340px, calc(100vw - 2rem));
  padding: .85rem 1rem;
  border: none;
  border-radius: 12px;
  text-align: left;
  background: linear-gradient(145deg, #0f2a4e, #1a3d6b);
  color: #fff;
  box-shadow: 0 14px 36px rgba(13, 42, 78, 0.28);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease;
}

.inputec-chat-popup.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.inputec-chat-popup-kicker {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  opacity: .82;
  margin-bottom: .2rem;
}

.inputec-chat-popup-autor {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: .15rem;
}

.inputec-chat-popup-corpo {
  display: block;
  font-size: .82rem;
  opacity: .92;
  line-height: 1.35;
}

@media (max-width: 575.98px) {
  .inputec-chat-popup {
    left: 1rem;
    right: 1rem;
    max-width: none;
  }
}

.sidebar-footer {
  padding: .85rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.app-main {
  flex: 1;
  min-width: 0;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left .25s ease;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  min-height: var(--topbar-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(13, 42, 78, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem 1.25rem;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.topbar-center {
  flex: 1;
  max-width: 420px;
}

.topbar-titles {
  min-width: 0;
}

.topbar-page-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--inputec-blue);
  margin: 0;
  line-height: 1.2;
}

.topbar-page-sub {
  margin: 0;
  font-size: .78rem;
  color: #6b7280;
}

.topbar-search-wrap {
  position: relative;
}

.topbar-search-wrap i {
  position: absolute;
  left: .85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}

.topbar-search-wrap .form-control {
  border-radius: 999px;
  border: 1px solid rgba(13, 42, 78, 0.1);
  background: #f8fafc;
  padding-left: 2.35rem;
  min-height: 42px;
  box-shadow: none;
}

.topbar-search-wrap .form-control:focus {
  border-color: var(--inputec-teal);
  box-shadow: 0 0 0 .2rem rgba(63, 188, 158, 0.18);
}

.topbar-date {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: #6b7280;
  font-size: .85rem;
  padding: .45rem .75rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid rgba(13, 42, 78, 0.06);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(13, 42, 78, 0.1);
  background: #fff;
  color: var(--inputec-blue);
}

.btn-icon:hover {
  background: #f8fafc;
  color: var(--inputec-blue-dark);
}

.topbar-user-btn {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  border: 1px solid rgba(13, 42, 78, 0.08);
  background: #fff;
  border-radius: 999px;
  padding: .35rem .55rem .35rem .35rem;
  box-shadow: 0 2px 8px rgba(13, 42, 78, 0.04);
}

.topbar-user-btn::after {
  margin-left: .15rem;
}

.topbar-avatar,
.topbar-avatar-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
}

.topbar-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--inputec-blue-mid), var(--inputec-teal));
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
}

.topbar-avatar-img {
  object-fit: cover;
}

.topbar-user-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  text-align: left;
}

.topbar-user-meta strong {
  font-size: .86rem;
  color: var(--inputec-blue-dark);
}

.topbar-user-meta small {
  color: #6b7280;
  font-size: .74rem;
}

.app-content {
  flex: 1;
  padding: 1.25rem 1.25rem 1.5rem;
}

.app-footer {
  padding: .85rem 1.25rem 1.1rem;
  color: #9ca3af;
  font-size: .8rem;
  border-top: 1px solid rgba(13, 42, 78, 0.06);
  background: rgba(255, 255, 255, 0.65);
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 32, 66, 0.45);
  z-index: 1035;
}

.app-shell.sidebar-collapsed .app-sidebar {
  width: var(--sidebar-collapsed-width);
}

.app-shell.sidebar-collapsed .sidebar-brand-text,
.app-shell.sidebar-collapsed .sidebar-link-text,
.app-shell.sidebar-collapsed .sidebar-group-chevron,
.app-shell.sidebar-collapsed .sidebar-search,
.app-shell.sidebar-collapsed .sidebar-subnav,
.app-shell.sidebar-collapsed .sidebar-footer {
  display: none;
}

.app-shell.sidebar-collapsed .sidebar-group-toggle {
  justify-content: center;
  padding-inline: .55rem;
}

.app-shell.sidebar-collapsed .sidebar-brand {
  justify-content: center;
  padding-inline: .5rem;
}

.app-shell.sidebar-collapsed .sidebar-brand-link {
  justify-content: center;
}

.app-shell.sidebar-collapsed .sidebar-logo {
  max-width: 42px;
}

.app-shell.sidebar-collapsed .sidebar-link {
  justify-content: center;
  padding-inline: .55rem;
}

.app-shell.sidebar-collapsed .app-main {
  margin-left: var(--sidebar-collapsed-width);
}

.sidebar-link.is-hidden,
.sidebar-group.is-hidden {
  display: none !important;
}

@media (max-width: 991.98px) {
  .app-sidebar {
    transform: translateX(-100%);
    visibility: hidden;
    pointer-events: none;
    width: min(88vw, var(--sidebar-width));
    max-width: 320px;
  }

  .app-shell.sidebar-open .app-sidebar {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .sidebar-backdrop {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
  }

  .app-shell.sidebar-open .sidebar-backdrop {
    display: block !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .app-main {
    margin-left: 0;
  }

  .app-shell.sidebar-collapsed .app-main {
    margin-left: 0;
  }

  body.sidebar-mobile-open {
    overflow: hidden;
  }

  body.sidebar-mobile-open .app-main {
    touch-action: none;
    pointer-events: none;
  }

  body.sidebar-mobile-open .app-sidebar,
  body.sidebar-mobile-open .sidebar-backdrop {
    touch-action: manipulation;
  }

  .sidebar-toggle.btn-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .sidebar-link {
    min-height: 46px;
    padding: .75rem .9rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
  }

  .sidebar-close-btn {
    width: 44px;
    height: 44px;
    touch-action: manipulation;
  }

  .sidebar-nav {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  /* Abas internas (BI, Tarefas, Financeiro…) — rolagem horizontal no celular */
  .nav-tabs,
  .nav-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    gap: .25rem;
    padding-bottom: .35rem;
    margin-bottom: 1rem !important;
  }

  .nav-tabs .nav-item,
  .nav-pills .nav-item {
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  .nav-tabs .nav-link,
  .nav-pills .nav-link {
    white-space: nowrap;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: .55rem .95rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .app-content {
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  }

  body:has(.pwa-install-banner) .app-content {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
  }
}

/* Navbar legado (páginas externas) */
.bg-inputec {
  background-color: var(--inputec-blue) !important;
}
.navbar-dark .navbar-brand {
  letter-spacing: .5px;
}
.navbar-dark .nav-link {
  color: rgba(255,255,255,0.85);
}
.navbar-dark .nav-link:hover,
.navbar-dark .nav-link.active {
  color: var(--inputec-accent);
}

/* Vídeos YouTube nos módulos */
.video-youtube {
  border-radius: .75rem;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(13, 42, 78, 0.12);
}

/* Cards */
.card {
  border: 1px solid rgba(13, 42, 78, 0.06);
  border-radius: var(--app-radius);
  box-shadow: var(--app-shadow);
  background: #fff;
}
.card-header {
  background-color: #fff;
  border-bottom: 1px solid rgba(13, 42, 78, 0.08);
  font-weight: 600;
  color: var(--inputec-blue);
  border-top-left-radius: var(--app-radius);
  border-top-right-radius: var(--app-radius);
}

/* Botões */
.btn-primary {
  background-color: var(--inputec-blue);
  border-color: var(--inputec-blue);
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--inputec-blue-dark);
  border-color: var(--inputec-blue-dark);
}
.btn-accent {
  background-color: var(--inputec-accent);
  border-color: var(--inputec-accent);
  color: #fff;
}
.btn-accent:hover {
  background-color: #d99000;
  color: #fff;
}

/* Login — identidade INPUTEC (inputec.com.br) */
.login-page {
  min-height: 100vh;
  display: flex;
  flex-wrap: wrap;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}
.login-brand-panel {
  flex: 1 1 320px;
  min-height: 220px;
  min-height: 100vh;
  background:
    linear-gradient(145deg, var(--inputec-blue-dark) 0%, var(--inputec-blue) 45%, var(--inputec-blue-mid) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
}
.login-brand-panel::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 188, 158, 0.35) 0%, transparent 70%);
  top: -120px;
  right: -80px;
  pointer-events: none;
}
.login-brand-panel::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(65, 99, 172, 0.4) 0%, transparent 70%);
  bottom: -60px;
  left: -40px;
  pointer-events: none;
}
.login-brand-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 380px;
}
.login-brand-inner img.login-logo {
  width: min(100%, 300px);
  height: 52px;
  object-fit: cover;
  object-position: top center;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}
.login-brand-inner .login-tagline {
  color: var(--inputec-teal);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.5;
  margin: 0 0 0.5rem;
}
.login-brand-inner .login-sub {
  font-size: 0.85rem;
  opacity: 0.75;
  margin: 0;
}
.login-form-panel {
  flex: 1 1 360px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: var(--inputec-light);
}
.login-card {
  max-width: 420px;
  width: 100%;
  background: #fff;
  border-radius: 1rem;
  padding: 2rem 2rem 1.75rem;
  box-shadow: 0 20px 40px -12px rgba(13, 42, 78, 0.15);
  border: 1px solid rgba(13, 42, 78, 0.06);
}
.login-card h2.login-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--inputec-blue);
  margin: 0 0 0.25rem;
}
.login-card .login-title-sub {
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.login-card .form-label {
  font-weight: 600;
  color: var(--inputec-blue-dark);
  font-size: 0.875rem;
}
.login-card .input-group-text {
  background: var(--inputec-light);
  border-color: #dee2e6;
  color: var(--inputec-blue-mid);
}
.login-card .form-control:focus {
  border-color: var(--inputec-teal);
  box-shadow: 0 0 0 0.2rem rgba(63, 188, 158, 0.25);
}
.login-card .btn-login-submit {
  background: linear-gradient(90deg, var(--inputec-blue-mid), var(--inputec-teal));
  border: none;
  font-weight: 600;
  padding: 0.65rem 1rem;
}
.login-card .btn-login-submit:hover {
  background: linear-gradient(90deg, var(--inputec-blue), var(--inputec-teal-dark));
  color: #fff;
}
.login-card .login-footer-note {
  font-size: 0.8rem;
  color: #9ca3af;
}
@media (max-width: 767.98px) {
  .login-brand-panel {
    min-height: auto;
    padding: 2rem 1.5rem 1.75rem;
  }
  .login-form-panel {
    min-height: auto;
  }
}

/* Chamado público — layout alinhado ao login */
.chamado-publico-page .login-form-panel {
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  min-height: 100vh;
}

.chamado-publico-card {
  max-width: 520px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  transform: translateY(clamp(1.5rem, 5vh, 3.5rem));
}

.chamado-publico-card .login-title-sub {
  margin-bottom: 1.25rem;
}

.chamado-publico-steps {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.chamado-publico-step {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--inputec-blue-mid);
  background: var(--inputec-light);
  border: 1px solid rgba(13, 42, 78, 0.08);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  text-align: center;
}

.chamado-publico-section {
  margin-bottom: 1.25rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px dashed rgba(13, 42, 78, 0.1);
}

.chamado-publico-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.chamado-publico-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--inputec-blue-mid);
  margin: 0 0 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.chamado-publico-section-title i {
  font-size: 0.95rem;
  color: var(--inputec-teal);
}

.chamado-publico-card .form-text {
  font-size: 0.78rem;
}

.chamado-publico-empresa {
  display: none;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.65rem;
  background: rgba(63, 188, 158, 0.12);
  border: 1px solid rgba(63, 188, 158, 0.35);
  color: var(--inputec-teal-dark);
  font-size: 0.85rem;
  font-weight: 500;
}

.chamado-publico-empresa.visivel {
  display: flex;
}

.chamado-publico-empresa i {
  color: var(--inputec-teal);
  flex-shrink: 0;
}

.chamado-publico-spinner {
  display: none;
}

.chamado-publico-spinner.ativo {
  display: inline-block;
}

.chamado-publico-success-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(63, 188, 158, 0.15);
  color: var(--inputec-teal-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.chamado-publico-protocolo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--inputec-blue);
  letter-spacing: 0.02em;
  margin: 0.75rem 0;
  padding: 0.65rem 1rem;
  background: var(--inputec-light);
  border-radius: 0.65rem;
  border: 1px dashed rgba(65, 99, 172, 0.25);
}

.chamado-publico-lgpd {
  padding: 0.75rem 0.85rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
}

.chamado-publico-lgpd .form-check-label a {
  font-weight: 600;
}

.chamado-publico-footer {
  font-size: 0.82rem;
  color: #6b7280;
  text-align: center;
  margin-top: 1.25rem;
}

.chamado-publico-footer a {
  color: var(--inputec-blue-mid);
  font-weight: 600;
  text-decoration: none;
}

.chamado-publico-footer a:hover {
  color: var(--inputec-teal-dark);
  text-decoration: underline;
}

@media (max-width: 767.98px) {
  .chamado-publico-page .login-form-panel {
    min-height: auto;
    padding: 1.75rem 1.25rem 2rem;
  }

  .chamado-publico-card {
    transform: translateY(1rem);
  }
}

/* Tutorial chamado público */
.chamado-tutorial-page .login-form-panel {
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1.5rem 2.5rem;
}

.chamado-tutorial-card {
  max-width: 680px;
  transform: translateY(clamp(0.75rem, 3vh, 2rem));
}

.chamado-tutorial-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(13, 42, 78, 0.08);
}

.chamado-tutorial-body {
  font-size: 0.92rem;
  color: #374151;
  line-height: 1.55;
}

.chamado-tutorial-lead {
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.chamado-tutorial-link-inline {
  word-break: break-all;
  color: var(--inputec-blue-mid);
  font-weight: 600;
}

.chamado-tutorial-section {
  margin-bottom: 1.35rem;
}

.chamado-tutorial-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--inputec-blue);
  margin: 0 0 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.chamado-tutorial-section h3 i {
  color: var(--inputec-teal);
}

.chamado-tutorial-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--inputec-blue-mid), var(--inputec-teal));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}

.chamado-tutorial-note {
  margin: 0.65rem 0 0;
  padding: 0.55rem 0.75rem;
  border-radius: 0.55rem;
  background: rgba(65, 99, 172, 0.08);
  border: 1px solid rgba(65, 99, 172, 0.15);
  font-size: 0.85rem;
  color: #475569;
}

.chamado-tutorial-note.is-success {
  background: rgba(63, 188, 158, 0.12);
  border-color: rgba(63, 188, 158, 0.35);
  color: var(--inputec-teal-dark);
}

.chamado-tutorial-url-box {
  padding: 0.65rem 0.85rem;
  background: var(--inputec-light);
  border: 1px dashed rgba(65, 99, 172, 0.25);
  border-radius: 0.55rem;
  word-break: break-all;
  margin-bottom: 0.65rem;
}

.chamado-tutorial-url-box a {
  color: var(--inputec-blue-mid);
  font-weight: 600;
  text-decoration: none;
}

.chamado-tutorial-table {
  font-size: 0.85rem;
  margin-bottom: 0;
}

.chamado-tutorial-table th {
  background: var(--inputec-light);
  color: var(--inputec-blue-dark);
}

.chamado-tutorial-resumo {
  background: var(--inputec-light);
  border-radius: 0.75rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(13, 42, 78, 0.06);
}

.chamado-tutorial-print-head {
  text-align: center;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--inputec-blue-mid);
}

.chamado-tutorial-print-logo {
  height: 40px;
  width: auto;
  margin-bottom: 0.75rem;
}

.chamado-tutorial-print-head h1 {
  font-size: 1.35rem;
  color: var(--inputec-blue);
  margin: 0 0 0.35rem;
}

@media print {
  .chamado-tutorial-print-hide {
    display: none !important;
  }

  .chamado-tutorial-print-head {
    display: block !important;
  }

  body.chamado-tutorial-page {
    background: #fff !important;
  }

  .chamado-tutorial-page .login-form-panel {
    min-height: auto;
    padding: 0;
    width: 100%;
    flex: 1 1 100%;
  }

  .chamado-tutorial-card {
    max-width: none;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0.5rem 0;
  }

  .chamado-tutorial-section {
    break-inside: avoid;
  }

  .chamado-tutorial-resumo .btn {
    display: none;
  }
}

/* Documentações / base de conhecimento */
.doc-conteudo {
  line-height: 1.65;
  word-break: break-word;
}
.doc-galeria img {
  max-height: 220px;
  width: 100%;
  object-fit: contain;
  background: #f8f9fa;
  cursor: zoom-in;
}

/* Legado */
.login-wrapper {
  min-height: 100vh;
  background: var(--inputec-light);
}

/* Módulos */
.modulo-card {
  transition: transform .15s ease, box-shadow .15s ease;
  height: 100%;
}
.modulo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(13,42,78,.12);
}
.modulo-status {
  font-size: .85rem;
  font-weight: 600;
  padding: .25rem .6rem;
  border-radius: 12px;
}
.status-nao_iniciado { background:#e5e7eb;color:#374151; }
.status-em_andamento { background:#fef3c7;color:#92400e; }
.status-concluido    { background:#d1fae5;color:#065f46; }

/* Conteúdo dos módulos */
.modulo-conteudo h2 { color: var(--inputec-blue); margin-top: 1.5rem; }
.modulo-conteudo h3 { color: var(--inputec-blue-dark); margin-top: 1.2rem; }
.modulo-conteudo blockquote {
  border-left: 4px solid var(--inputec-accent);
  background: #fffaf0;
  padding: .75rem 1rem;
  margin: 1rem 0;
  border-radius: 4px;
}
.modulo-conteudo table {
  width: 100%;
  margin: 1rem 0;
}
.modulo-conteudo table th {
  background-color: var(--inputec-blue);
  color: #fff;
}
.modulo-conteudo code {
  background: #1f2937;
  color: #e5e7eb;
  padding: 2px 6px;
  border-radius: 4px;
}
.modulo-conteudo pre {
  background: #1f2937;
  color: #e5e7eb;
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
}

/* Prova */
.prova-questao {
  background: #fff;
  border-radius: .75rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-left: 5px solid var(--inputec-blue);
}
.prova-questao .num {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--inputec-blue);
  margin-bottom: .5rem;
}

/* Dashboard cards */
.stat-card {
  background: #fff;
  border-radius: var(--app-radius);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--app-shadow);
  border: 1px solid rgba(13, 42, 78, 0.05);
}
.stat-card .icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
}
.stat-card .icon.b1 { background: var(--inputec-blue); }
.stat-card .icon.b2 { background: var(--inputec-accent); }
.stat-card .icon.b3 { background: var(--inputec-success); }
.stat-card .icon.b4 { background: var(--inputec-danger); }
.stat-card .value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--inputec-blue);
}
.stat-card .label {
  color: #6b7280;
  font-size: .85rem;
}

/* Tabelas */
.table {
  --bs-table-bg: #fff;
}
.table thead th {
  background-color: #f8fafc;
  color: var(--inputec-blue-dark);
  border-bottom: 1px solid rgba(13, 42, 78, 0.1);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-weight: 600;
}
.table-hover > tbody > tr:hover > * {
  background-color: rgba(63, 188, 158, 0.06);
}

/* Certificado */
.cert-wrapper {
  background: #fff;
  border: 8px solid var(--inputec-blue);
  padding: 60px 50px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  font-family: Georgia, "Times New Roman", serif;
}
.cert-wrapper:before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px solid var(--inputec-accent);
  pointer-events: none;
}
.cert-titulo {
  font-size: 2.5rem;
  text-align: center;
  color: var(--inputec-blue);
  letter-spacing: 4px;
  margin-bottom: .25rem;
}
.cert-subtitulo {
  text-align: center;
  color: var(--inputec-accent);
  letter-spacing: 2px;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
}
.cert-corpo {
  font-size: 1.15rem;
  line-height: 1.8;
  text-align: center;
  color: #1f2937;
}
.cert-nome {
  font-size: 2rem;
  text-align: center;
  color: var(--inputec-blue);
  font-weight: 700;
  margin: 1rem 0;
  border-bottom: 2px solid #ccc;
  padding-bottom: .5rem;
}

/* ============================
 * Dashboard moderno
 * ============================ */
.dash-page {
  max-width: 1440px;
}

.dash-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.dash-toolbar-lead {
  color: #6b7280;
  font-size: .92rem;
}

.dash-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.dash-kpi {
  background: #fff;
  border: 1px solid rgba(13, 42, 78, 0.06);
  border-radius: var(--app-radius);
  padding: 1.15rem 1.2rem 1rem;
  box-shadow: var(--app-shadow);
  height: 100%;
}

.dash-kpi-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: .75rem;
}

.dash-kpi-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.15rem;
}

.dash-kpi-icon-blue { background: linear-gradient(135deg, var(--inputec-blue-mid), var(--inputec-blue)); }
.dash-kpi-icon-teal { background: linear-gradient(135deg, var(--inputec-teal), #2d9f84); }
.dash-kpi-icon-gold { background: linear-gradient(135deg, var(--inputec-accent), #d99000); }
.dash-kpi-icon-navy { background: linear-gradient(135deg, var(--inputec-blue), var(--inputec-blue-dark)); }

.dash-spark {
  opacity: .95;
}

.dash-kpi-value {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--inputec-blue-dark);
  line-height: 1.1;
}

.dash-kpi-label {
  color: #6b7280;
  font-size: .86rem;
  margin-top: .2rem;
  margin-bottom: .55rem;
}

.dash-kpi-trend {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  font-size: .78rem;
  font-weight: 600;
  border-radius: 999px;
  padding: .2rem .55rem;
}

.dash-kpi-trend-up {
  color: #0f766e;
  background: rgba(63, 188, 158, 0.12);
}

.dash-kpi-trend-down {
  color: #b42318;
  background: rgba(220, 53, 69, 0.1);
}

.dash-kpi-trend-neutral {
  color: #6b7280;
  background: #f3f4f6;
}

.dash-kpi-trend-label {
  font-weight: 500;
  color: #6b7280;
}

.dash-panel {
  background: #fff;
  border: 1px solid rgba(13, 42, 78, 0.06);
  border-radius: var(--app-radius);
  box-shadow: var(--app-shadow);
  overflow: hidden;
}

.dash-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .75rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(13, 42, 78, 0.06);
}

.dash-panel-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--inputec-blue-dark);
  margin: 0;
}

.dash-panel-sub,
.dash-panel-kicker {
  color: #6b7280;
  font-size: .82rem;
}

.dash-panel-kicker {
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 600;
}

.dash-panel-body {
  padding: 1rem 1.15rem 1.15rem;
}

.dash-link-sm {
  font-size: .82rem;
  font-weight: 600;
  color: var(--inputec-blue-mid);
  text-decoration: none;
  white-space: nowrap;
}

.dash-link-sm:hover {
  color: var(--inputec-blue);
}

.dash-chart-legend {
  display: flex;
  gap: 1rem;
  font-size: .8rem;
  color: #6b7280;
}

.dash-legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: .35rem;
  vertical-align: middle;
}

.dash-legend-aprovado { background: var(--inputec-blue); }
.dash-legend-reprovado { background: var(--inputec-blue-mid); }
.dash-legend-online { background: #3fbc9e; }
.dash-legend-offline { background: #dc3545; }

.dash-kpi-alert {
  box-shadow: inset 0 0 0 1px rgba(220, 53, 69, 0.22);
}

.monitoramento-dash .dash-kpi {
  transition: transform .15s ease, box-shadow .15s ease;
}

.monitoramento-dash a:hover .dash-kpi {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 42, 78, 0.1);
}

.dash-chart-wrap {
  min-height: 220px;
}

.dash-progress {
  height: 12px;
  border-radius: 999px;
  background: #eef2f7;
}

.dash-progress .progress-bar {
  background: linear-gradient(90deg, var(--inputec-teal), var(--inputec-blue-mid));
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 600;
}

.dash-activity-list {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  max-height: 360px;
  overflow-y: auto;
}

.dash-activity-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .7rem;
  align-items: start;
  padding: .7rem .15rem;
  border-bottom: 1px solid rgba(13, 42, 78, 0.05);
}

.dash-activity-item:last-child {
  border-bottom: 0;
}

.dash-activity-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: .45rem;
}

.dash-activity-dot-success { background: var(--inputec-teal); }
.dash-activity-dot-danger { background: var(--inputec-danger); }
.dash-activity-dot-info { background: var(--inputec-blue-mid); }
.dash-activity-dot-muted { background: #9ca3af; }

.dash-activity-title {
  font-weight: 600;
  font-size: .88rem;
  color: var(--inputec-blue-dark);
}

.dash-activity-sub {
  font-size: .78rem;
  color: #6b7280;
}

.dash-activity-time {
  font-size: .76rem;
  color: #6b7280;
  white-space: nowrap;
}

.dash-activity-ref {
  font-size: .72rem;
  color: #9ca3af;
}

.dash-panel-money {
  padding: 1.15rem;
}

.dash-panel-money .dash-panel-header {
  padding: 0;
  margin-bottom: .35rem;
}

.dash-money-value {
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: .25rem;
}

.dash-panel-warning {
  border-color: rgba(247, 168, 0, 0.35);
  background: linear-gradient(180deg, #fffdf8 0%, #fff 100%);
}

.dash-mini-stat {
  background: #fff;
  border: 1px solid rgba(13, 42, 78, 0.06);
  border-radius: var(--app-radius);
  padding: 1rem;
  text-align: center;
  box-shadow: var(--app-shadow);
  height: 100%;
}

.dash-mini-value {
  font-size: 1.6rem;
  font-weight: 700;
}

.dash-mini-label {
  color: #6b7280;
  font-size: .82rem;
}

.dash-course-card {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  padding: .9rem;
  border: 1px solid rgba(13, 42, 78, 0.06);
  border-radius: .75rem;
  background: #fafbfd;
  height: 100%;
}

.dash-course-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--curso-cor, var(--inputec-blue-mid));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.dash-course-title {
  font-size: .95rem;
  font-weight: 700;
  margin: 0 0 .25rem;
  color: var(--inputec-blue-dark);
}

.dash-course-desc {
  font-size: .82rem;
  color: #6b7280;
  margin-bottom: .6rem;
}

.dash-table thead th {
  background: #f8fafc;
  border-bottom: 1px solid rgba(13, 42, 78, 0.08);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.dash-table-user {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.dash-table-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--inputec-blue-mid), var(--inputec-teal));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.text-inputec {
  color: var(--inputec-blue-dark) !important;
}

.dash-section .card {
  border-radius: var(--app-radius);
  overflow: hidden;
}

/* Acesso Rápido — cards + Lucide (estilo Faved / bookmark managers modernos) */
.fav-app {
  max-width: 1200px;
}

.fav-app-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
}

.fav-app-intro {
  display: flex;
  align-items: center;
  gap: .85rem;
}

.fav-app-intro-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--inputec-blue-mid), var(--inputec-teal));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(65, 99, 172, 0.28);
}

.fav-app-intro-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.fav-app-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--inputec-blue-dark);
  margin: 0 0 .1rem;
}

.fav-app-sub {
  margin: 0;
  font-size: .82rem;
  color: #6b7280;
}

.fav-app-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
}

.fav-app-search {
  position: relative;
  min-width: 220px;
}

.fav-app-search-icon {
  position: absolute;
  left: .75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #9ca3af;
  pointer-events: none;
}

.fav-app-search input {
  width: 100%;
  min-width: 220px;
  padding: .5rem .75rem .5rem 2.25rem;
  border: 1px solid rgba(13, 42, 78, 0.1);
  border-radius: 10px;
  background: #f8fafc;
  font-size: .88rem;
}

.fav-app-search input:focus {
  border-color: var(--inputec-teal);
  box-shadow: 0 0 0 .2rem rgba(63, 188, 158, 0.15);
  outline: none;
  background: #fff;
}

.fav-view-toggle {
  display: inline-flex;
  background: #f0f3f8;
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}

.fav-view-btn {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
}

.fav-view-btn svg {
  width: 16px;
  height: 16px;
}

.fav-view-btn.is-active {
  background: #fff;
  color: var(--inputec-blue);
  box-shadow: 0 1px 4px rgba(13, 42, 78, 0.08);
}

.fav-btn-new {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border-radius: 10px;
  font-weight: 600;
}

.fav-btn-new svg {
  width: 16px;
  height: 16px;
}

.fav-app-empty {
  text-align: center;
  padding: 3rem 1.5rem;
}

.fav-app-empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(65, 99, 172, 0.1), rgba(63, 188, 158, 0.15));
  color: var(--inputec-blue-mid);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fav-app-empty-icon svg {
  width: 32px;
  height: 32px;
}

.fav-app-empty h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--inputec-blue-dark);
}

.fav-app-empty p {
  color: #6b7280;
  max-width: 400px;
  margin: 0 auto 1.25rem;
}

.fav-cards {
  display: grid;
  gap: 1rem;
  overflow: visible;
}

.fav-cards.fav-view-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.fav-cards.fav-view-list {
  grid-template-columns: 1fr;
}

.fav-card {
  background: #fff;
  border: 1px solid rgba(13, 42, 78, 0.07);
  border-radius: var(--app-radius);
  box-shadow: var(--app-shadow);
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  overflow: visible;
  position: relative;
}

.fav-card-menu-btn.is-active {
  background: #f3f4f6;
  color: var(--inputec-blue);
}

.fav-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(13, 42, 78, 0.1);
  border-color: rgba(63, 188, 158, 0.3);
}

.fav-card.is-hidden {
  display: none;
}

.fav-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem 1rem .25rem;
}

.fav-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #f3f6fb;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(13, 42, 78, 0.05);
}

.fav-card-favicon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
}

.fav-card-favicon.is-hidden {
  display: none;
}

.fav-card-letter {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--fav-cor, var(--inputec-blue-mid)), var(--inputec-teal));
}

.fav-card-letter.is-visible {
  display: flex;
}

.fav-card-menu-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #9ca3af;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
}

.fav-card-menu-btn:hover {
  background: #f3f4f6;
  color: var(--inputec-blue);
}

.fav-card-menu-btn svg {
  width: 18px;
  height: 18px;
}

.fav-floating-menu {
  position: fixed;
  z-index: 1100;
  min-width: 11.5rem;
  background: #fff;
  border: 1px solid rgba(13, 42, 78, 0.1);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(13, 42, 78, 0.18);
  padding: .35rem 0;
}

.fav-floating-menu[hidden] {
  display: none !important;
}

.fav-floating-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: .55rem 1rem;
  border: none;
  background: transparent;
  font-size: .88rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
}

.fav-floating-item:hover,
.fav-floating-item:focus-visible {
  background: #f3f4f6;
  color: #111827;
  outline: none;
}

.fav-floating-item.text-danger {
  color: #dc3545;
}

.fav-floating-item.text-danger:hover,
.fav-floating-item.text-danger:focus-visible {
  background: #fef2f2;
  color: #b91c1c;
}

.fav-floating-divider {
  margin: .3rem 0;
  border: 0;
  border-top: 1px solid rgba(13, 42, 78, 0.08);
}

.fav-dd-icon {
  width: 15px;
  height: 15px;
  margin-right: .45rem;
  vertical-align: -2px;
}

.fav-card-body {
  flex: 1;
  padding: 0 1rem .5rem;
  text-decoration: none !important;
  color: inherit !important;
}

.fav-card-body:hover {
  text-decoration: none !important;
}

.fav-card-name {
  font-size: .95rem;
  font-weight: 600;
  color: var(--inputec-blue-dark);
  margin: 0 0 .35rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fav-card-domain {
  margin: 0;
  font-size: .78rem;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: .3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fav-card-domain-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.fav-card-footer {
  padding: .65rem 1rem;
  border-top: 1px solid rgba(13, 42, 78, 0.06);
  background: #fafbfd;
}

.fav-card-open {
  font-size: .82rem;
  font-weight: 600;
  color: var(--inputec-blue-mid);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}

.fav-card-open:hover {
  color: var(--inputec-blue);
}

.fav-card-open svg {
  width: 14px;
  height: 14px;
}

.fav-card-add {
  border: 2px dashed rgba(13, 42, 78, 0.14);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: none;
  cursor: pointer;
  min-height: 180px;
  padding: 0;
}

.fav-card-add:hover {
  border-color: var(--inputec-teal);
  background: rgba(63, 188, 158, 0.04);
  transform: none;
  box-shadow: none;
}

.fav-card-add-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  color: #6b7280;
  padding: 1rem;
}

.fav-card-add-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f0f3f8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fav-card-add-icon svg {
  width: 20px;
  height: 20px;
}

.fav-card-add-text {
  font-size: .86rem;
  font-weight: 600;
}

.fav-cards.fav-view-list .fav-card:not(.fav-card-add) {
  flex-direction: row;
  align-items: center;
  min-height: auto;
}

.fav-cards.fav-view-list .fav-card-top {
  padding: .85rem 0 .85rem 1rem;
  flex-shrink: 0;
}

.fav-cards.fav-view-list .fav-card-icon {
  width: 40px;
  height: 40px;
}

.fav-cards.fav-view-list .fav-card-favicon {
  width: 24px;
  height: 24px;
}

.fav-cards.fav-view-list .fav-card-body {
  flex: 1;
  padding: .85rem .5rem;
  min-width: 0;
}

.fav-cards.fav-view-list .fav-card-name {
  margin-bottom: .15rem;
  -webkit-line-clamp: 1;
}

.fav-cards.fav-view-list .fav-card-footer {
  border-top: none;
  background: transparent;
  padding: .85rem 1rem .85rem 0;
  flex-shrink: 0;
}

.fav-modal {
  border: none;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(13, 42, 78, 0.18);
}

.fav-modal-icon {
  width: 20px;
  height: 20px;
  color: var(--inputec-blue-mid);
}

@media (max-width: 767.98px) {
  .fav-app-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .fav-app-toolbar-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .fav-app-search,
  .fav-app-search input {
    min-width: 0;
    width: 100%;
  }

  .fav-view-toggle {
    align-self: flex-start;
  }
}

@media print {
  body { background: #fff; }
  .app-sidebar, .app-topbar, .app-footer, .navbar, .footer, .no-print { display: none !important; }
  .app-main { margin-left: 0 !important; }
  .app-content, main.container { max-width: 100%; padding: 0; }
}

/* PWA — banner instalar app */
.pwa-install-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1080;
  background: linear-gradient(135deg, #0d2a4e 0%, #4163ac 100%);
  color: #fff;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
}

.pwa-install-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 720px;
  margin: 0 auto;
}

.pwa-install-inner > i {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.pwa-install-inner > div {
  flex: 1;
  min-width: 0;
  line-height: 1.25;
}

.pwa-install-inner small {
  opacity: 0.85;
}

.dash-panel-overflow-visible {
  overflow: visible;
}

.backup-drive-atual {
  background: #f8fafc;
  border: 1px solid rgba(13, 42, 78, 0.08);
}

.backup-drive-picker {
  max-width: 100%;
}

.backup-drive-picker .form-select {
  max-width: 100%;
}

