* {
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  margin: 0;
  background: #f4f6f8;
  color: #2f3640;
}

.login-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background:
    linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)),
    url("fachada.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.login-card {
  width: 95%;
  max-width: 430px;
  background: #ffffff;
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}

.brand {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 20px;
}

.brand-icon, .logo {
  background: #d4af37;
  color: #202020;
  font-weight: bold;
  width: 55px;
  height: 55px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand h1 {
  margin: 0;
  font-size: 24px;
}

.brand p {
  margin: 4px 0 0;
  color: #666;
}

.notice {
  background: #fff8df;
  border-left: 4px solid #d4af37;
  padding: 12px;
  margin: 20px 0;
  border-radius: 8px;
  font-size: 14px;
}

.error {
  background: #ffe6e6;
  border-left: 4px solid #c0392b;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 15px;
}

label {
  font-weight: bold;
  display: block;
  margin: 14px 0 6px;
}

input, select {
  width: 100%;
  padding: 13px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background: white;
}

button, .button-link {
  border: 0;
  background: #d4af37;
  color: #202020;
  font-weight: bold;
  padding: 12px 18px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

form button {
  width: 100%;
  margin-top: 20px;
}

.demo-users {
  margin-top: 18px;
  font-size: 13px;
  color: #555;
}

.demo-users span {
  display: inline-block;
  margin: 6px 6px 0 0;
  padding: 6px 8px;
  border-radius: 8px;
  background: #eee;
}

.sidebar {
  width: 260px;
  height: 100vh;
  background: #2d3436;
  color: white;
  position: fixed;
  padding: 25px;
}

.sidebar h2 {
  font-size: 20px;
}

.sidebar nav {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar a {
  color: white;
  text-decoration: none;
  padding: 12px;
  border-radius: 10px;
}

.sidebar a:hover {
  background: rgba(255,255,255,.1);
}

.logout {
  position: absolute;
  bottom: 25px;
  left: 25px;
  right: 25px;
  background: #d4af37;
  color: #202020 !important;
  text-align: center;
  font-weight: bold;
}

.content {
  margin-left: 260px;
  padding: 30px;
}

.topbar {
  background: white;
  border-radius: 16px;
  padding: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.status, .tag {
  background: #fff8df;
  color: #8a6d00;
  padding: 10px 14px;
  border-radius: 30px;
  font-size: 13px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card, .document, .profile, .form-card, .empty, .admin-box {
  background: white;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 10px 25px rgba(0,0,0,.05);
}

.card {
  cursor: pointer;
  color: #2f3640;
  text-decoration: none;
}

.card span {
  font-size: 35px;
}

.document {
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.document p {
  color: #666;
  margin-bottom: 0;
}

.form-card, .admin-box {
  margin-bottom: 25px;
}

.admin-box {
  margin-top: 25px;
}

.admin-box .button-link {
  margin-right: 8px;
  margin-bottom: 8px;
}

@media (max-width: 760px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
  }
  .logout {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 20px;
    width: 100%;
  }
  .content {
    margin-left: 0;
    padding: 18px;
  }
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .document {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== Drag and Drop Upload ===== */

.drop-zone {
  border: 2px dashed #d4af37;
  border-radius: 16px;
  background: #fffdf4;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: 0.2s ease;
  margin-bottom: 18px;
}

.drop-zone:hover {
  background: #fff8df;
  transform: translateY(-1px);
}

.drop-zone.dragover {
  background: #fff1b8;
  border-color: #b8941f;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.18);
}

.drop-zone.has-file {
  background: #f1fff1;
  border-color: #27ae60;
}

.drop-zone .drop-icon {
  font-size: 42px;
  margin-bottom: 8px;
}

.drop-zone strong {
  display: block;
  font-size: 18px;
  color: #2f3640;
  margin-bottom: 6px;
}

.drop-zone p {
  margin: 0 0 12px;
  color: #666;
}

.drop-zone span {
  display: inline-block;
  background: #f0f0f0;
  color: #333;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
}

.hidden-file-input {
  display: none;
}

/* ===== Notificações ===== */

.notification-bell {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: #ffffff;
  text-decoration: none;
  padding: 12px;
  border-radius: 12px;
  margin: 18px 0 6px;
}

.notification-bell .bell-icon {
  font-size: 20px;
  filter: grayscale(1);
}

.notification-bell.has-notification {
  background: rgba(212, 175, 55, .18);
  border-color: #d4af37;
}

.notification-bell.has-notification .bell-icon {
  filter: none;
}

.notification-bell strong {
  margin-left: auto;
  background: #c0392b;
  color: white;
  min-width: 24px;
  height: 24px;
  padding: 2px 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.notification-item {
  border-left: 5px solid #d4af37;
}

.field-hint {
  display: block;
  color: #666;
  margin-top: 6px;
  font-size: 12px;
}

.email-preview {
  background: #edf7ff;
  border-left: 4px solid #2980b9;
  color: #234;
  padding: 12px;
  margin: 20px 0;
  border-radius: 8px;
  font-size: 14px;
}

/* ===== Botão de exclusão ===== */

.button-link.danger {
  background: #c0392b;
  color: #ffffff;
}

.button-link.danger:hover {
  opacity: .9;
}

/* ===== Gestão de Funcionários v2 ===== */

.employee-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,.05);
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
}

.employee-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #d4af37;
  color: #202020;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 22px;
}

.employee-info strong {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
}

.employee-info p {
  margin: 4px 0;
  color: #555;
}

.employee-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.button-link.secondary {
  background: #4d4d4d;
  color: #ffffff;
}

.button-link.danger {
  background: #c0392b;
  color: #ffffff;
}

.button-link.secondary:hover,
.button-link.danger:hover {
  opacity: .9;
}

@media (max-width: 760px) {
  .employee-card {
    grid-template-columns: 1fr;
  }

  .employee-actions {
    justify-content: flex-start;
  }
}

/* ===== Gerenciar Documentos ===== */

.admin-document-item {
  border-left: 5px solid #d4af37;
}

.filter-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 16px;
  align-items: end;
}

.filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

@media (max-width: 760px) {
  .filter-form {
    grid-template-columns: 1fr;
  }

  .filter-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-actions .button-link,
  .filter-actions button {
    width: 100%;
    text-align: center;
  }
}

/* ===== Visualizar e Baixar documentos ===== */

.document .actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .document .actions {
    width: 100%;
    justify-content: flex-start;
  }

  .document .actions .button-link {
    width: 100%;
    text-align: center;
  }
}

.login-card .brand {
  flex-direction: column;
  text-align: center;
  gap: 10px;
}

.login-logo {
    width: 110px;
    height: 110px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 25px;
}

.login-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 25px;
    display: block;
}

/* ===== Ícone do menu lateral - Portal do Colaborador ===== */

.sidebar .logo {
  width: 72px;
  height: 72px;
  padding: 0;
  margin-bottom: 16px;
  background: transparent;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar .logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}



/* =========================================================
   VISUAL MODERNO V2 - PORTAL DO COLABORADOR
   ========================================================= */

:root {
  --gold: #d4af37;
  --gold-soft: #fff4cc;
  --dark: #101820;
  --dark-2: #1f2a2d;
  --muted: #667085;
  --page: #f7f8fa;
  --card: #ffffff;
  --shadow: 0 14px 40px rgba(16, 24, 40, .08);
  --radius: 18px;
}

body {
  background: var(--page);
  color: #101828;
}

.sidebar {
  width: 300px;
  height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(212,175,55,.12), transparent 30%),
    linear-gradient(180deg, #101820 0%, #172224 100%);
  color: white;
  position: fixed;
  padding: 30px 22px;
  box-shadow: 14px 0 40px rgba(0,0,0,.12);
  overflow-y: auto;
}

.sidebar h2 {
  display: none !important;
}

.sidebar-brand {
  width: 190px;
  height: 190px;
  margin: 0 auto 24px;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sidebar .logo {
  display: none !important;
}

.sidebar-divider {
  height: 1px;
  background: rgba(255,255,255,.18);
  margin: 22px 0;
}

.sidebar-divider.compact {
  margin: 20px 0 12px;
}

.sidebar nav {
  margin-top: 0;
  gap: 6px;
}

.sidebar a {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 48px;
  color: rgba(255,255,255,.92);
  font-size: 16px;
  font-weight: 700;
  border-radius: 14px;
  padding: 12px 14px;
  transition: .18s ease;
}

.sidebar a:hover {
  transform: translateX(2px);
  background: rgba(212,175,55,.14);
}

.sidebar a.active {
  background: linear-gradient(90deg, rgba(212,175,55,.38), rgba(212,175,55,.18));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(212,175,55,.25);
}

.nav-icon {
  width: 26px;
  display: inline-flex;
  justify-content: center;
  font-size: 20px;
  flex: 0 0 26px;
}

.nav-icon.admin {
  color: var(--gold);
}

.logout {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  margin-top: 26px;
  background: transparent !important;
  color: white !important;
  border-top: 1px solid rgba(255,255,255,.18);
  border-radius: 0 !important;
  padding-top: 18px !important;
  text-align: left;
}

.notification-bell {
  margin: 0 0 10px;
  min-height: 52px;
  background: rgba(212,175,55,.18);
  border-color: rgba(212,175,55,.35);
}

.notification-bell strong {
  background: #d94a4a;
}

.content {
  margin-left: 300px;
  padding: 34px 42px 42px;
}

.app-header {
  height: 68px;
  margin: -34px -42px 32px;
  padding: 0 42px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 4px 24px rgba(16,24,40,.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-button {
  width: auto;
  margin: 0;
  padding: 6px 8px;
  background: transparent;
  color: #101828;
  font-size: 28px;
  border-radius: 10px;
}

.app-header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.user-chip {
  font-weight: 800;
  color: #101828;
}

.top-notification {
  position: relative;
  color: #101828 !important;
  text-decoration: none;
  font-size: 24px;
}

.top-notification strong {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--gold);
  color: #101828;
  font-size: 11px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.topbar,
.card,
.document,
.profile,
.form-card,
.empty,
.admin-box,
.employee-card {
  border-radius: 22px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(16,24,40,.04);
}

.dashboard-hero {
  min-height: 150px;
  padding: 38px 42px;
}

.topbar h1 {
  font-size: 32px;
  letter-spacing: -0.8px;
  margin: 0 0 10px;
}

.topbar p {
  font-size: 18px;
  color: var(--muted);
  margin: 0;
}

.secure-status {
  color: #6b520f;
  font-size: 16px;
  padding: 16px 22px;
}

.dashboard-grid {
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 22px;
}

.dashboard-card {
  min-height: 210px;
  padding: 32px 30px;
  display: grid;
  grid-template-columns: 72px 1fr 32px;
  align-items: center;
  gap: 22px;
  position: relative;
  overflow: hidden;
}

.dashboard-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 50px rgba(16,24,40,.11);
}

.dashboard-card h3 {
  font-size: 24px;
  line-height: 1.12;
  margin: 0 0 26px;
  color: #101828;
}

.dashboard-card p {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
}

.dashboard-card p strong {
  font-size: 34px;
  line-height: 1;
  margin-right: 8px;
}

.card-icon {
  width: 74px;
  height: 74px;
  border-radius: 999px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 34px !important;
}

.card-arrow {
  font-size: 34px;
  color: #111;
  justify-self: end;
}

.card-blue .card-icon { background: #e7f0fb; }
.card-blue p strong { color: #2b78c6; }
.card-green .card-icon { background: #e7f7e9; }
.card-green p strong { color: #1f9d50; }
.card-orange .card-icon { background: #fdebdc; }
.card-orange p strong { color: #df7418; }
.card-purple .card-icon { background: #efe5fb; }
.card-purple p strong { color: #7136b8; }
.card-gold .card-icon { background: #fff2cc; }
.card-gold p strong { color: #d4a600; }
.card-user .card-icon { background: #e9f2fb; }

.admin-panel-modern {
  margin-top: 26px;
  padding: 32px;
}

.admin-panel-title {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.admin-panel-title > span {
  width: 70px;
  height: 70px;
  border-radius: 999px;
  background: var(--gold-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
}

.admin-panel-title h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.admin-panel-title p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.admin-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.soft-action {
  background: linear-gradient(180deg, #fff8df, #fff0bd) !important;
  color: #101828 !important;
  text-align: center;
  padding: 18px !important;
  font-size: 16px;
}

button, .button-link {
  border-radius: 14px;
}

input, select {
  border-radius: 14px;
  border-color: #d0d5dd;
}

.login-card {
  border-radius: 24px;
}

.login-logo {
  width: 108px;
  height: 108px;
  border-radius: 24px;
}

.document {
  padding: 24px;
}

.document strong {
  font-size: 17px;
}

.document p {
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .admin-actions-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 24px;
  }

  .sidebar-brand {
    width: 150px;
    height: 150px;
  }

  .content {
    margin-left: 0;
    padding: 22px;
  }

  .app-header {
    margin: -22px -22px 22px;
    padding: 0 22px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-card {
    grid-template-columns: 64px 1fr 26px;
    min-height: 160px;
    padding: 24px;
  }

  .dashboard-card h3 {
    font-size: 21px;
    margin-bottom: 16px;
  }

  .card-icon {
    width: 62px;
    height: 62px;
    font-size: 28px !important;
  }
}



/* =========================================================
   MENU LATERAL EM GAVETA
   ========================================================= */

.sidebar-toggle {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: rgba(255,255,255,.10);
  color: #ffffff;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-toggle:hover {
  background: rgba(212,175,55,.25);
}

body.sidebar-collapsed .sidebar {
  width: 86px;
  padding: 76px 14px 24px;
}

body.sidebar-collapsed .content {
  margin-left: 86px;
}

body.sidebar-collapsed .sidebar-brand {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  margin-bottom: 18px;
}

body.sidebar-collapsed .sidebar-divider {
  margin: 16px 0;
}

body.sidebar-collapsed .sidebar a {
  justify-content: center;
  padding: 12px;
  gap: 0;
}

body.sidebar-collapsed .sidebar a span:not(.nav-icon),
body.sidebar-collapsed .notification-bell span:not(.nav-icon),
body.sidebar-collapsed .notification-bell strong {
  display: none;
}

body.sidebar-collapsed .nav-icon {
  margin: 0;
}

body.sidebar-collapsed .logout {
  text-align: center;
}

.sidebar,
.content,
.sidebar-brand,
.sidebar a {
  transition: .22s ease;
}

@media (max-width: 760px) {
  .sidebar-toggle {
    top: 16px;
    right: 16px;
  }

  body.sidebar-collapsed .sidebar {
    width: 100%;
    height: 78px;
    overflow: hidden;
    padding: 14px 20px;
  }

  body.sidebar-collapsed .sidebar-brand {
    width: 50px;
    height: 50px;
    margin: 0;
  }

  body.sidebar-collapsed .sidebar-divider,
  body.sidebar-collapsed .sidebar nav,
  body.sidebar-collapsed .notification-bell,
  body.sidebar-collapsed .logout {
    display: none;
  }

  body.sidebar-collapsed .content {
    margin-left: 0;
  }
}



/* =========================================================
   MENU GAVETA FINAL - CORREÇÃO DEFINITIVA
   ========================================================= */

.menu-button {
  display: none !important;
}

.sidebar-floating-toggle {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 1200;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #101820;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.sidebar-floating-toggle:hover {
  background: #d4af37;
  color: #101820;
}

.sidebar-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 0;
  background: rgba(255,255,255,.10);
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-close:hover {
  background: rgba(212,175,55,.25);
}

body:not(.sidebar-collapsed) .sidebar-floating-toggle {
  left: 318px;
}

body.sidebar-collapsed .sidebar {
  transform: translateX(-100%) !important;
}

body.sidebar-collapsed .content {
  margin-left: 0 !important;
}

.sidebar {
  transform: translateX(0);
  transition: transform .25s ease !important;
}

.content {
  transition: margin-left .25s ease !important;
}

.sidebar-overlay {
  display: none;
}

@media (max-width: 760px) {
  .sidebar {
    position: fixed !important;
    width: 300px !important;
    height: 100vh !important;
    left: 0;
    top: 0;
    z-index: 1100;
  }

  .content {
    margin-left: 0 !important;
  }

  body:not(.sidebar-collapsed) .sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 1000;
  }

  body:not(.sidebar-collapsed) .sidebar-floating-toggle {
    display: none;
  }

  body.sidebar-collapsed .sidebar-floating-toggle {
    left: 18px;
  }
}


/* AJUSTE FINAL MENU */
.sidebar-close{display:none !important;}
.app-header-right{margin-left:90px !important;}
@media (max-width:760px){.app-header-right{margin-left:70px !important;}}


/* ===== Validação inteligente de PDF ===== */

.pdf-validation-box {
  border-radius: 16px;
  padding: 16px 18px;
  margin: 16px 0 18px;
  border-left: 5px solid #d4af37;
  background: #fff8df;
  color: #2f3640;
}

.pdf-validation-box strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

.pdf-validation-box p {
  margin: 0;
  color: #555;
  line-height: 1.45;
}

.pdf-validation-box.neutral {
  border-left-color: #d4af37;
  background: #fff8df;
}

.pdf-validation-box.success {
  border-left-color: #27ae60;
  background: #ecfff1;
}

.pdf-validation-box.warning {
  border-left-color: #f39c12;
  background: #fff7e6;
}

.pdf-validation-box.danger {
  border-left-color: #c0392b;
  background: #ffecec;
}


/* ===== Modal de confirmação da validação PDF ===== */

.validation-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, .55);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.validation-modal.show {
  display: flex;
}

.validation-modal-card {
  width: min(520px, 95vw);
  background: #ffffff;
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
  border-top: 6px solid #d4af37;
}

.validation-modal-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
  color: #101828;
}

.validation-modal-card p {
  margin: 0;
  line-height: 1.55;
  color: #344054;
  font-size: 16px;
}

.validation-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.validation-modal-actions button {
  width: auto;
  margin-top: 0;
}

@media (max-width: 560px) {
  .validation-modal-actions {
    flex-direction: column-reverse;
  }

  .validation-modal-actions button {
    width: 100%;
  }
}


/* ===== Login em duas etapas ===== */

.code-input {
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 8px;
}

.secondary-login-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  font-size: 14px;
}

.secondary-login-actions a {
  color: #4d4d4d;
  text-decoration: none;
  font-weight: bold;
}

.secondary-login-actions a:hover {
  text-decoration: underline;
}



/* =========================================================
   MOBILE APP + PWA - AJUSTE RESPONSIVO FINAL
   Mantém desktop praticamente intacto.
   ========================================================= */

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Redução leve da caixa de login no desktop */
@media (min-width: 761px) {
  .login-card {
    max-width: 390px !important;
    padding: 26px !important;
  }

  .login-logo {
    width: 92px !important;
    height: 92px !important;
  }

  .login-title h1 {
    font-size: 23px !important;
  }
}

/* Ajustes exclusivos para celular */
@media (max-width: 760px) {
  html {
    font-size: 15px;
  }

  body {
    width: 100%;
    overflow-x: hidden !important;
    -webkit-text-size-adjust: 100%;
  }

  .login-page {
    min-height: 100svh;
    padding: 18px;
    align-items: center;
    justify-content: center;
    background-position: center;
  }

  .login-card {
    width: 100%;
    max-width: 360px !important;
    padding: 22px !important;
    border-radius: 22px;
  }

  .login-logo {
    width: 82px !important;
    height: 82px !important;
    border-radius: 20px !important;
  }

  .login-title h1 {
    font-size: 22px !important;
    line-height: 1.15;
  }

  .login-title p {
    font-size: 14px;
  }

  .notice,
  .error,
  .email-preview,
  .pdf-validation-box {
    font-size: 13px;
    padding: 11px 12px;
  }

  label {
    margin: 12px 0 6px;
    font-size: 14px;
  }

  input, select, textarea {
    min-height: 46px;
    padding: 11px 12px;
    font-size: 15px;
  }

  button, .button-link {
    min-height: 46px;
    padding: 12px 14px;
    font-size: 14px;
  }

  /* Menu lateral como gaveta real no celular */
  .sidebar {
    position: fixed !important;
    width: min(82vw, 285px) !important;
    height: 100dvh !important;
    top: 0;
    left: 0;
    z-index: 1100;
    padding: 22px 18px !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(0);
  }

  body.sidebar-collapsed .sidebar {
    transform: translateX(-105%) !important;
    width: min(82vw, 285px) !important;
    padding: 22px 18px !important;
  }

  .sidebar-brand {
    width: 118px !important;
    height: 118px !important;
    border-radius: 24px !important;
    margin: 0 auto 18px !important;
  }

  body.sidebar-collapsed .sidebar-brand {
    width: 118px !important;
    height: 118px !important;
    margin: 0 auto 18px !important;
  }

  .sidebar-divider {
    margin: 16px 0 !important;
  }

  .sidebar nav {
    gap: 4px !important;
  }

  .sidebar a,
  .notification-bell {
    min-height: 44px !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
    gap: 10px !important;
    border-radius: 13px !important;
    justify-content: flex-start !important;
  }

  .nav-icon {
    width: 24px !important;
    flex: 0 0 24px !important;
    font-size: 18px !important;
  }

  body.sidebar-collapsed .sidebar a span:not(.nav-icon),
  body.sidebar-collapsed .notification-bell span:not(.nav-icon),
  body.sidebar-collapsed .notification-bell strong {
    display: inline-flex !important;
  }

  .logout {
    margin-top: 18px !important;
    padding-top: 14px !important;
  }

  body:not(.sidebar-collapsed) .sidebar-overlay {
    display: block !important;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.48);
    z-index: 1000;
  }

  .sidebar-floating-toggle {
    top: 14px !important;
    left: 14px !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 13px !important;
    font-size: 24px !important;
    z-index: 1201 !important;
  }

  body:not(.sidebar-collapsed) .sidebar-floating-toggle {
    left: calc(min(82vw, 285px) + 10px) !important;
    display: flex !important;
  }

  body.sidebar-collapsed .sidebar-floating-toggle {
    left: 14px !important;
  }

  .sidebar-close {
    display: none !important;
  }

  /* Conteúdo estilo app */
  .content {
    margin-left: 0 !important;
    padding: 76px 14px 18px !important;
    width: 100% !important;
  }

  .app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px !important;
    margin: 0 !important;
    padding: 0 14px 0 70px !important;
    z-index: 900;
    background: rgba(255,255,255,.96);
  }

  .app-header-right {
    margin-left: 0 !important;
    width: 100%;
    justify-content: flex-end;
    gap: 8px !important;
  }

  .user-chip {
    font-size: 13px;
    max-width: 155px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .top-notification {
    font-size: 20px !important;
  }

  .topbar,
  .dashboard-hero {
    min-height: auto !important;
    padding: 20px !important;
    border-radius: 18px !important;
    margin-bottom: 16px !important;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .topbar h1 {
    font-size: 22px !important;
    line-height: 1.15;
    margin-bottom: 6px !important;
  }

  .topbar p {
    font-size: 14px !important;
    line-height: 1.35;
  }

  .status, .tag, .secure-status {
    font-size: 12px !important;
    padding: 8px 11px !important;
  }

  .grid,
  .dashboard-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .dashboard-card,
  .card {
    min-height: auto !important;
    padding: 16px !important;
    border-radius: 18px !important;
  }

  .dashboard-card {
    grid-template-columns: 54px 1fr 22px !important;
    gap: 12px !important;
  }

  .card-icon {
    width: 52px !important;
    height: 52px !important;
    font-size: 24px !important;
  }

  .dashboard-card h3,
  .card h3 {
    font-size: 18px !important;
    line-height: 1.15;
    margin: 0 0 8px !important;
  }

  .dashboard-card p,
  .card p {
    font-size: 13px !important;
    line-height: 1.35;
  }

  .dashboard-card p strong {
    font-size: 24px !important;
  }

  .card-arrow {
    font-size: 24px !important;
  }

  .admin-panel-modern,
  .admin-box,
  .form-card,
  .profile,
  .document,
  .employee-card,
  .empty {
    border-radius: 18px !important;
    padding: 16px !important;
    margin-bottom: 12px !important;
  }

  .admin-panel-title {
    gap: 12px !important;
    align-items: flex-start !important;
  }

  .admin-panel-title > span {
    width: 52px !important;
    height: 52px !important;
    font-size: 24px !important;
    flex: 0 0 52px;
  }

  .admin-panel-title h2 {
    font-size: 20px !important;
  }

  .admin-panel-title p {
    font-size: 13px !important;
  }

  .admin-actions-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .soft-action {
    padding: 13px !important;
    font-size: 14px !important;
  }

  .document {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .document strong {
    font-size: 15px !important;
  }

  .document p {
    font-size: 12.5px !important;
  }

  .document .actions,
  .actions,
  .employee-actions,
  .filter-actions {
    width: 100% !important;
    justify-content: stretch !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .document .actions .button-link,
  .actions .button-link,
  .employee-actions .button-link,
  .filter-actions .button-link,
  .filter-actions button {
    width: 100% !important;
    text-align: center !important;
  }

  .employee-card {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .employee-avatar {
    width: 48px !important;
    height: 48px !important;
    border-radius: 14px !important;
    font-size: 18px !important;
  }

  .filter-form {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .drop-zone {
    padding: 24px 12px !important;
    border-radius: 16px !important;
  }

  .drop-zone .drop-icon {
    font-size: 32px !important;
  }

  .drop-zone strong {
    font-size: 16px !important;
  }

  .drop-zone p,
  .drop-zone span {
    font-size: 12px !important;
  }

  .code-input {
    font-size: 24px !important;
    letter-spacing: 6px !important;
  }

  .secondary-login-actions {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .validation-modal-card {
    padding: 20px !important;
    border-radius: 18px !important;
  }

  .validation-modal-card h2 {
    font-size: 20px !important;
  }

  .validation-modal-card p {
    font-size: 14px !important;
  }
}

/* Tela muito pequena */
@media (max-width: 380px) {
  .sidebar {
    width: 86vw !important;
  }

  body:not(.sidebar-collapsed) .sidebar-floating-toggle {
    left: calc(86vw + 8px) !important;
  }

  .content {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .dashboard-card {
    grid-template-columns: 48px 1fr 18px !important;
  }

  .card-icon {
    width: 46px !important;
    height: 46px !important;
  }
}


/* ===== Recuperação de senha ===== */

.secondary-login-actions.single-action {
  justify-content: center;
}



/* =========================================================
   TELA DE LOGIN - AJUSTE VISUAL FINAL
   ========================================================= */

.login-card .notice {
  display: none !important;
}

.login-page .login-card {
  text-align: center;
}

.login-page .brand {
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  text-align: center !important;
}

.login-page .login-logo {
  width: 160px !important;
  height: 160px !important;
  border-radius: 32px !important;
  margin: 0 auto 4px !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.login-page .login-logo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 32px !important;
}

.login-page .login-title h1 {
  font-size: 31px !important;
  line-height: 1.12 !important;
  margin: 4px 0 6px !important;
  color: #101828 !important;
  letter-spacing: -0.7px !important;
}

.login-page .login-title p {
  font-size: 18px !important;
  line-height: 1.25 !important;
  color: #4d5562 !important;
  margin: 0 0 22px !important;
}

.login-page form {
  text-align: left !important;
}

.login-page label {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #101828 !important;
}

.login-page input {
  min-height: 52px !important;
  font-size: 16px !important;
  border-radius: 16px !important;
}

.login-page button[type="submit"] {
  min-height: 52px !important;
  border-radius: 16px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}

.login-page .secondary-login-actions {
  justify-content: center !important;
  text-align: center !important;
  font-size: 16px !important;
}

@media (min-width: 761px) {
  .login-page .login-card {
    max-width: 430px !important;
    padding: 34px 34px 30px !important;
  }
}

@media (max-width: 760px) {
  .login-page .login-card {
    max-width: 370px !important;
    padding: 26px 22px !important;
  }

  .login-page .login-logo {
    width: 128px !important;
    height: 128px !important;
    border-radius: 28px !important;
  }

  .login-page .login-logo img {
    border-radius: 28px !important;
  }

  .login-page .login-title h1 {
    font-size: 28px !important;
  }

  .login-page .login-title p {
    font-size: 16px !important;
    margin-bottom: 20px !important;
  }
}


/* ===== Avisos de documentos por e-mail ===== */

.inline-action-form {
  display: inline-flex;
  margin: 0;
}

.inline-action-form button {
  width: auto;
  margin-top: 0;
}

.button-link.email-toggle.on {
  background: #27ae60;
  color: #ffffff;
}

.button-link.email-toggle.off {
  background: #7f8c8d;
  color: #ffffff;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  margin-top: 16px;
}

.checkbox-line input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: auto;
}

@media (max-width: 760px) {
  .inline-action-form,
  .inline-action-form button {
    width: 100%;
  }
}



/* =========================================================
   ENVIO EM MASSA DE DOCUMENTOS
   ========================================================= */

.bulk-advance-button {
  width: 100%;
  margin-top: 12px;
  text-align: center;
  background: #101820 !important;
  color: #ffffff !important;
}

.bulk-summary {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.bulk-summary p {
  margin: 0;
}

.bulk-upload-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 24px;
}

.bulk-user-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(16,24,40,.07);
  border: 1px solid rgba(16,24,40,.06);
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
  align-items: center;
}

.bulk-user-info strong {
  display: block;
  font-size: 17px;
  color: #101828;
  margin-bottom: 6px;
}

.bulk-user-info span {
  color: #667085;
  font-size: 14px;
}

.bulk-drop-zone {
  border: 2px dashed #cfd4dc;
  border-radius: 18px;
  min-height: 135px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  background: #f9fafb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: .2s ease;
}

.bulk-drop-zone.dragover,
.bulk-drop-zone.checking {
  background: #fff8df;
  border-color: #d4af37;
}

.bulk-drop-zone.success {
  background: #ecfff1;
  border-color: #27ae60;
}

.bulk-drop-zone.danger {
  background: #ffecec;
  border-color: #c0392b;
}

.bulk-drop-zone .drop-icon {
  font-size: 34px;
  margin-bottom: 6px;
}

.bulk-drop-zone strong {
  color: #101828;
}

.bulk-drop-zone p {
  margin: 3px 0;
  color: #667085;
}

.bulk-file-name {
  font-size: 13px;
  color: #667085;
}

.bulk-file-input {
  display: none;
}

.bulk-validation-message {
  grid-column: 2;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
}

.bulk-validation-message.neutral {
  background: #f2f4f7;
  color: #667085;
}

.bulk-validation-message.success {
  background: #ecfff1;
  color: #137a3a;
}

.bulk-validation-message.danger {
  background: #ffecec;
  color: #a93226;
}

.bulk-submit-button {
  width: 100%;
}

@media (max-width: 760px) {
  .bulk-summary {
    display: block;
  }

  .bulk-summary p {
    margin-bottom: 8px;
  }

  .bulk-user-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .bulk-validation-message {
    grid-column: auto;
  }

  .bulk-drop-zone {
    min-height: 120px;
  }
}


/* =========================================================
   MODAL PROFISSIONAL - VALIDAÇÃO DO ENVIO EM MASSA
   ========================================================= */

.portal-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(16, 24, 32, .62);
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.portal-modal.show {
  display: flex;
}

.portal-modal-card {
  width: min(620px, 96vw);
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(16, 24, 40, .35);
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, .35);
}

.portal-modal-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  background: linear-gradient(135deg, #d4af37, #f5d76e);
  color: #101820;
}

.portal-modal-header > span {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #101820;
  color: #d4af37;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 24px;
  flex: 0 0 42px;
}

.portal-modal-header h2 {
  margin: 0 0 6px;
  font-size: 24px;
  color: #101820;
}

.portal-modal-header p {
  margin: 0;
  color: #26313b;
  line-height: 1.35;
}

.portal-modal-body {
  padding: 24px;
}

.portal-modal-body p {
  margin: 0 0 18px;
  color: #344054;
  line-height: 1.45;
}

.portal-modal-section {
  background: #f8fafc;
  border-left: 5px solid #d4af37;
  border-radius: 14px;
  padding: 15px 16px;
  margin-top: 12px;
}

.portal-modal-section.danger {
  background: #fff1f1;
  border-left-color: #c0392b;
}

.portal-modal-section strong {
  display: block;
  margin-bottom: 10px;
  color: #101828;
}

.portal-modal-section ul {
  margin: 0;
  padding-left: 20px;
  color: #344054;
}

.portal-modal-section li {
  margin: 5px 0;
}

.portal-modal-actions {
  padding: 0 24px 24px;
  display: flex;
  justify-content: flex-end;
}

.portal-modal-actions .button-link {
  width: auto;
  min-width: 190px;
  text-align: center;
}

@media (max-width: 760px) {
  .portal-modal {
    padding: 14px;
  }

  .portal-modal-header,
  .portal-modal-body {
    padding: 18px;
  }

  .portal-modal-header h2 {
    font-size: 20px;
  }

  .portal-modal-actions {
    padding: 0 18px 18px;
  }

  .portal-modal-actions .button-link {
    width: 100%;
  }
}


/* =========================================================
   ENVIO EM MASSA - ENVIO PARCIAL E ESPAÇAMENTO
   ========================================================= */

.bulk-instruction-box {
  background: #fff8df;
  border-left: 5px solid #d4af37;
  border-radius: 16px;
  padding: 14px 16px;
  margin: 0 0 18px;
  color: #101820;
}

.bulk-instruction-box strong {
  display: block;
  margin-bottom: 5px;
}

.bulk-instruction-box p {
  margin: 0;
  color: #4d5562;
  line-height: 1.4;
}

.bulk-submit-button {
  margin-bottom: 18px !important;
}

#bulkUploadForm > a.button-link.secondary {
  display: inline-flex;
  margin-top: 6px !important;
}

@media (max-width: 760px) {
  .bulk-submit-button {
    margin-bottom: 16px !important;
  }

  #bulkUploadForm > a.button-link.secondary {
    width: 100%;
    justify-content: center;
  }
}


/* =========================================================
   ENVIO EM MASSA - MENSAGEM LIMPA
   ========================================================= */

.bulk-instruction-box {
  display: none !important;
}

.topbar p {
  color: #101820;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  font-weight: 500;
}


/* =========================================================
   AVISOS ESCRITOS NO PORTAL
   ========================================================= */

.notice-message-box textarea {
  width: 100%;
  resize: vertical;
  min-height: 150px;
  border: 1px solid #d0d5dd;
  border-radius: 14px;
  padding: 14px;
  font-size: 15px;
  font-family: inherit;
  line-height: 1.5;
}

.notice-view-page {
  min-height: 100vh;
  background: #f7f8fa;
  padding: 28px;
}

.notice-view-card {
  max-width: 820px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 14px 40px rgba(16, 24, 40, .08);
  overflow: hidden;
  border: 1px solid rgba(16,24,40,.06);
}

.notice-view-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 26px;
  background: linear-gradient(135deg, #d4af37, #f5d76e);
  color: #101820;
}

.notice-view-header > span {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #101820;
  color: #d4af37;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex: 0 0 52px;
}

.notice-view-header h1 {
  margin: 0 0 8px;
  font-size: 26px;
  color: #101820;
}

.notice-view-header p {
  margin: 0;
  color: #26313b;
}

.notice-view-body {
  padding: 28px;
  font-size: 17px;
  line-height: 1.65;
  color: #101828;
  white-space: normal;
}

@media (max-width: 760px) {
  .notice-view-page {
    padding: 14px;
  }

  .notice-view-header {
    padding: 20px;
  }

  .notice-view-header h1 {
    font-size: 21px;
  }

  .notice-view-body {
    padding: 20px;
    font-size: 15px;
  }
}


/* =========================================================
   ATUALIZAÇÃO FUNCIONÁRIOS, COMPETÊNCIA E BOTÕES SWITCH
   ========================================================= */

.switch-action {
  appearance: none;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 999px;
  font-weight: 800;
  color: #101820;
  min-height: auto;
  margin: 0;
}

.switch-action span {
  width: 50px;
  height: 28px;
  border-radius: 999px;
  position: relative;
  display: inline-block;
  transition: .2s ease;
  box-shadow: inset 0 0 0 2px rgba(16,24,40,.10);
}

.switch-action span::after {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(16,24,40,.25);
  transition: .2s ease;
}

.switch-action.is-on span {
  background: #d4af37;
}

.switch-action.is-on span::after {
  transform: translateX(22px);
}

.switch-action.is-off span {
  background: #d0d5dd;
}

.switch-action em {
  font-style: normal;
  font-size: 13px;
}

.employee-card.inactive-user {
  opacity: .72;
  border-left: 5px solid #98a2b3;
}

.button-link.danger.soft-danger {
  background: #a94442 !important;
  color: #ffffff !important;
  border: 1px solid rgba(80, 20, 20, .12);
}

.button-link.danger.soft-danger:hover {
  filter: brightness(.95);
}

.notice-message-box {
  margin-top: 14px;
}

.notice-message-box textarea {
  width: 100%;
  resize: vertical;
  min-height: 150px;
  border: 1px solid #d0d5dd;
  border-radius: 14px;
  padding: 14px;
  font-size: 15px;
  font-family: inherit;
  line-height: 1.5;
}

.notice-view-attachment {
  padding: 0 28px 28px;
}

input[type="month"] {
  min-height: 46px;
}

@media (max-width: 760px) {
  .switch-action {
    justify-content: space-between;
    width: 100%;
  }

  .notice-view-attachment {
    padding: 0 20px 20px;
  }
}


/* =========================================================
   AJUSTES FINAIS - GERENCIAR FUNCIONÁRIOS
   ========================================================= */

.employee-actions.aligned-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-width: 155px;
}

.employee-actions.aligned-actions > *,
.employee-actions.aligned-actions form,
.employee-actions.aligned-actions a,
.employee-actions.aligned-actions button {
  width: 100%;
  max-width: 155px;
  box-sizing: border-box;
}

.employee-actions.aligned-actions .tag {
  text-align: center;
  justify-content: center;
}

.employee-actions.aligned-actions .switch-action {
  height: 46px;
  justify-content: space-between;
  padding: 8px 11px;
  background: #ffffff;
  border: 1px solid rgba(16, 24, 40, .08);
}

.employee-actions.aligned-actions .button-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.user-filter-card .filter-form {
  align-items: end;
}

@media (max-width: 760px) {
  .employee-actions.aligned-actions {
    min-width: 100%;
  }

  .employee-actions.aligned-actions > *,
  .employee-actions.aligned-actions form,
  .employee-actions.aligned-actions a,
  .employee-actions.aligned-actions button {
    max-width: 100%;
  }
}


/* =========================================================
   LIMPEZA VISUAL E SWITCHES SEM RECARGA
   ========================================================= */

/* Remove etiquetas laterais desnecessárias nos cabeçalhos */
.topbar > .status {
  display: none !important;
}

/* Notificações: sem destaque fixo; destaque apenas no hover */
.notification-bell,
.notification-bell.has-notification {
  background: rgba(255,255,255,.08) !important;
  border-color: rgba(255,255,255,.12) !important;
}

.notification-bell:hover,
.notification-bell.has-notification:hover {
  background: rgba(212, 175, 55, .18) !important;
  border-color: #d4af37 !important;
}

/* Evita exibição de tags de perfil/role em inglês */
.employee-actions.aligned-actions > .tag:first-child {
  display: none !important;
}

/* Controles gerais */
.bulk-control-card p {
  margin-top: 0;
  color: #667085;
}

.bulk-control-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.global-switch {
  min-width: 170px;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid rgba(16,24,40,.08);
  min-height: 48px;
}

/* Botões alinhados no gerenciamento */
.employee-actions.aligned-actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 10px !important;
  min-width: 160px !important;
}

.employee-actions.aligned-actions form,
.employee-actions.aligned-actions a,
.employee-actions.aligned-actions button,
.employee-actions.aligned-actions .tag {
  width: 100% !important;
  max-width: 160px !important;
  box-sizing: border-box !important;
}

.employee-actions.aligned-actions .switch-action,
.employee-actions.aligned-actions .button-link {
  min-height: 46px !important;
  justify-content: space-between;
}

.employee-actions.aligned-actions .button-link {
  justify-content: center !important;
}

/* Feedback visual enquanto salva */
.switch-action:disabled {
  opacity: .65;
  cursor: wait;
}

@media (max-width: 760px) {
  .bulk-control-actions,
  .bulk-control-actions form,
  .global-switch,
  .employee-actions.aligned-actions,
  .employee-actions.aligned-actions form,
  .employee-actions.aligned-actions a,
  .employee-actions.aligned-actions button {
    width: 100% !important;
    max-width: 100% !important;
  }
}


/* =========================================================
   CORREÇÃO AJAX E POSIÇÃO DOS CONTROLES GERAIS
   ========================================================= */

.bulk-control-card {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.bulk-control-card h2 {
  margin: 0;
}

.bulk-control-card p {
  display: none !important;
}

.bulk-control-actions {
  margin-left: auto;
  justify-content: flex-end;
}

.ajax-toast {
  position: fixed;
  right: 24px;
  top: 24px;
  z-index: 9999;
  background: #101820;
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(16,24,40,.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: .2s ease;
  font-weight: 700;
}

.ajax-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.ajax-toast.error {
  background: #7a2f2f;
}

@media (max-width: 760px) {
  .bulk-control-card {
    display: block;
  }

  .bulk-control-actions {
    margin-top: 14px;
    justify-content: stretch;
  }

  .ajax-toast {
    right: 12px;
    left: 12px;
    top: 12px;
    text-align: center;
  }
}


/* =========================================================
   CORES DA CAIXA DE ENVIO POR VALIDAÇÃO
   ========================================================= */

.drop-zone,
.drop-zone.state-neutral {
  background: #fff8df !important;
  border-color: #d4af37 !important;
}

.drop-zone.state-neutral:hover {
  background: #fff1b8 !important;
}

.drop-zone.state-success,
.drop-zone.has-file.state-success {
  background: #ecfff1 !important;
  border-color: #27ae60 !important;
  box-shadow: 0 0 0 4px rgba(39, 174, 96, .12);
}

.drop-zone.state-danger,
.drop-zone.has-file.state-danger {
  background: #ffecec !important;
  border-color: #c0392b !important;
  box-shadow: 0 0 0 4px rgba(192, 57, 43, .12);
}

.drop-zone.state-success span {
  background: #dff8e8;
  color: #137a3a;
  font-weight: 700;
}

.drop-zone.state-danger span {
  background: #ffe0df;
  color: #a93226;
  font-weight: 700;
}

.drop-zone.state-neutral span {
  background: #fff3c4;
  color: #8a6d00;
  font-weight: 700;
}


/* =========================================================
   SISTEMA DE LICENÇA
   ========================================================= */

.license-page {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(135deg, #101820, #1d2935);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.license-card {
  width: min(560px, 96vw);
  background: #ffffff;
  border-radius: 28px;
  padding: 34px;
  box-shadow: 0 28px 90px rgba(0,0,0,.35);
}

.license-logo {
  text-align: center;
  margin-bottom: 18px;
}

.license-logo img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  border-radius: 24px;
}

.license-card h1 {
  margin: 0 0 8px;
  text-align: center;
  color: #101820;
}

.license-subtitle {
  margin: 0 0 22px;
  text-align: center;
  color: #667085;
}

.license-card textarea,
.license-admin-card textarea {
  width: 100%;
  border: 1px solid #d0d5dd;
  border-radius: 16px;
  padding: 14px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
}

.license-alert {
  padding: 14px 16px;
  border-radius: 16px;
  margin-bottom: 18px;
  font-weight: 700;
}

.license-alert.error {
  background: #ffecec;
  color: #9b2c24;
  border-left: 5px solid #c0392b;
}

.license-alert.success {
  background: #ecfff1;
  color: #137a3a;
  border-left: 5px solid #27ae60;
}

.license-help {
  margin-top: 18px;
  padding: 14px;
  border-radius: 16px;
  background: #fff8df;
  color: #101820;
}

.license-help strong,
.license-help span {
  display: block;
}

.license-help span {
  margin-top: 5px;
  font-size: 13px;
  color: #667085;
  word-break: break-all;
}

.license-status-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #edf0f3;
}

.license-status-row span {
  text-align: right;
}

.license-ok {
  color: #137a3a;
  font-weight: 900;
}

.license-error {
  color: #c0392b;
  font-weight: 900;
}

@media (max-width: 760px) {
  .license-card {
    padding: 24px;
  }

  .license-status-row {
    display: block;
  }

  .license-status-row span {
    display: block;
    text-align: left;
    margin-top: 5px;
  }
}


/* =========================================================
   LIMPEZA DA TELA DE ATIVAÇÃO DE LICENÇA
   ========================================================= */

.license-help {
  display: none !important;
}

.license-card textarea::placeholder {
  color: #98a2b3;
}


/* =========================================================
   LICENÇA - CHAVE PEQUENA E AVISO ADMIN
   ========================================================= */

.sidebar-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 18px;
}

.sidebar-bottom-actions .logout {
  flex: 1;
  margin: 0 !important;
}

.license-mini-key {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 24px;
  border-radius: 14px;
  color: #d4af37;
  background: rgba(212, 175, 55, .08);
  border: 1px solid rgba(212, 175, 55, .18);
  transition: .2s ease;
}

.license-mini-key:hover {
  background: rgba(212, 175, 55, .18);
  transform: translateY(-1px);
}

.license-expiry-admin-alert {
  background: #fff8df;
  border: 1px solid rgba(212, 175, 55, .45);
  border-left: 6px solid #d4af37;
  border-radius: 18px;
  padding: 16px 18px;
  margin: 0 0 18px;
  color: #101820;
}

.license-expiry-admin-alert.blocked {
  background: #ffecec;
  border-color: rgba(192, 57, 43, .35);
  border-left-color: #c0392b;
}

.license-expiry-admin-alert strong {
  display: block;
  margin-bottom: 6px;
}

.license-expiry-admin-alert p {
  margin: 0 0 8px;
}

.license-expiry-admin-alert small {
  display: block;
  color: #667085;
  margin-bottom: 10px;
}

.license-expiry-admin-alert a {
  display: inline-flex;
  text-decoration: none;
  color: #101820;
  background: #d4af37;
  padding: 9px 13px;
  border-radius: 999px;
  font-weight: 800;
}


/* =========================================================
   ENVIO EM MASSA - RESULTADOS E ERROS CONTROLADOS
   ========================================================= */

.bulk-result-details {
  background: #ffffff;
  border: 1px solid rgba(16, 24, 40, .08);
  border-radius: 18px;
  padding: 16px 18px;
  margin: 14px 0 18px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, .05);
}

.bulk-result-details details + details {
  margin-top: 12px;
}

.bulk-result-details summary {
  cursor: pointer;
  font-weight: 900;
  color: #101820;
}

.bulk-result-details ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.bulk-result-details li {
  margin-bottom: 6px;
  line-height: 1.35;
}


/* =========================================================
   CAMPO DE SENHA COM ÍCONE DE OLHO DEFINITIVO
   ========================================================= */

.password-field {
  position: relative;
  width: 100%;
  display: block;
}

.password-field input {
  width: 100%;
  box-sizing: border-box;
  padding-right: 58px !important;
}

.password-field .password-toggle {
  position: absolute !important;
  right: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  outline: none;
  border-radius: 999px !important;
  background: rgba(212, 175, 55, .16) !important;
  color: #101820 !important;
  cursor: pointer;
  z-index: 50 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.password-field .password-toggle:hover {
  background: rgba(212, 175, 55, .28) !important;
}

.password-field .password-toggle:focus {
  box-shadow: 0 0 0 3px rgba(212, 175, 55, .28) !important;
}

.password-field .password-toggle svg {
  width: 21px !important;
  height: 21px !important;
  display: block;
  fill: currentColor;
  pointer-events: none;
}

.password-field .password-toggle .eye-open-icon {
  display: none !important;
}

.password-field .password-toggle .eye-off-icon {
  display: block !important;
}

.password-field .password-toggle.is-visible .eye-open-icon {
  display: block !important;
}

.password-field .password-toggle.is-visible .eye-off-icon {
  display: none !important;
}

@media (max-width: 760px) {
  .password-field input {
    padding-right: 62px !important;
  }

  .password-field .password-toggle {
    right: 12px !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
  }

  .password-field .password-toggle svg {
    width: 23px !important;
    height: 23px !important;
  }
}
