/* Ponto JR LOGISTICA - Estilos */
:root {
  /* Cores da marca JR */
  --jr-blue: #2B7BBD;
  --jr-blue-dark: #1a5a8f;
  --jr-blue-light: #3d8fd1;
  --jr-red: #E31E24;
  --jr-red-dark: #b91419;
  --jr-red-light: #ff3339;
  
  /* Cores do sistema */
  --bg: #0a0e1a;
  --bg-gradient-start: #0a0e1a;
  --bg-gradient-end: #1a1f35;
  --surface: #151b2e;
  --surface-hover: #1e2640;
  --border: #2a3350;
  --text: #e8e8ed;
  --muted: #8888a0;
  --field-bg: #0a0e1a;
  --field-border-strong: #2a3350;
  --field-text: #e8e8ed;
  --field-placeholder: #8888a0;
  --field-shadow: none;
  --primary: var(--jr-blue);
  --primary-hover: var(--jr-blue-light);
  --accent: var(--jr-red);
  --success: #22c55e;
  --danger: var(--jr-red);
  --entrada: #22c55e;
  --intervalo: #f59e0b;
  --saida: var(--jr-blue);
}

:root:not([data-theme="dark"]) {
  --bg: #d7e2ec;
  --bg-gradient-start: #dde7f0;
  --bg-gradient-end: #c9d7e6;
  --surface: #ebf2f8;
  --surface-hover: #dfe9f2;
  --border: #a9bfd4;
  --text: #203245;
  --muted: #5d7187;
  --field-bg: rgba(242, 247, 252, 0.96);
  --field-border-strong: rgba(110, 140, 173, 0.44);
  --field-text: #23384d;
  --field-placeholder: #6f8398;
  --field-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 6px 14px rgba(24, 48, 78, 0.05);
  --primary: #2b7bbd;
  --primary-hover: #245f92;
  --accent: #d43a3f;
  --success: #1f9d57;
  --danger: #d43a3f;
  --entrada: #16a34a;
  --intervalo: #d88a14;
  --saida: #2b7bbd;
}

.theme-toggle {
  position: fixed;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 8px 24px rgba(6, 18, 35, 0.2);
  cursor: pointer;
  transition: all 0.25s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--jr-blue);
}

.theme-toggle-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f4b524;
  box-shadow: 0 0 0 3px rgba(244, 181, 36, 0.2);
}

:root[data-theme="dark"] .theme-toggle-dot {
  background: #90a9ff;
  box-shadow: 0 0 0 3px rgba(144, 169, 255, 0.25);
}

@media (max-width: 768px) {
  .theme-toggle {
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.42rem 0.7rem;
    font-size: 0.72rem;
  }
}

:root:not([data-theme="dark"]) .login-box {
  background: linear-gradient(160deg, rgba(248, 251, 254, 0.96), rgba(230, 239, 248, 0.93));
  border: 1px solid rgba(43, 123, 189, 0.24);
  box-shadow: 0 18px 48px rgba(39, 72, 110, 0.12);
}

:root:not([data-theme="dark"]) .login-box-kicker {
  color: #3e5f83;
}

:root:not([data-theme="dark"]) .login-brand-copy {
  background: linear-gradient(150deg, rgba(246, 250, 254, 0.95), rgba(228, 238, 248, 0.93));
  border-color: rgba(43, 123, 189, 0.22);
  box-shadow: 0 12px 26px rgba(38, 71, 108, 0.1);
}

:root:not([data-theme="dark"]) .login-brand-kicker {
  color: #4573a6;
}

:root:not([data-theme="dark"]) .login-brand-copy h2 {
  color: #1f3f62;
}

:root:not([data-theme="dark"]) .login-brand-copy p {
  color: #516a86;
}

:root:not([data-theme="dark"]) .login-brand-chips span {
  color: #335579;
  background: rgba(43, 123, 189, 0.12);
  border-color: rgba(43, 123, 189, 0.24);
}

:root:not([data-theme="dark"]) .form-login label {
  color: #3e5f84;
}

:root:not([data-theme="dark"]) .form-login input {
  background: rgba(255, 255, 255, 0.9);
  color: #203a56;
  border-color: rgba(79, 112, 150, 0.35);
}

:root:not([data-theme="dark"]) .form-login input::placeholder {
  color: #67829f;
}

:root:not([data-theme="dark"]) .login-help-text {
  color: #5c7694;
}

:root:not([data-theme="dark"]) .circle-1 {
  background: radial-gradient(circle, rgba(43, 123, 189, 0.18), rgba(43, 123, 189, 0.05));
}

:root:not([data-theme="dark"]) .circle-2 {
  background: radial-gradient(circle, rgba(227, 30, 36, 0.16), rgba(227, 30, 36, 0.04));
}

:root:not([data-theme="dark"]) .circle-3 {
  background: radial-gradient(circle, rgba(43, 123, 189, 0.14), rgba(227, 30, 36, 0.08));
}

:root:not([data-theme="dark"]) .admin-sidebar {
  background: linear-gradient(180deg, rgba(244, 248, 252, 0.97) 0%, rgba(225, 235, 245, 0.97) 100%);
  border-right: 1px solid rgba(143, 166, 191, 0.42);
  box-shadow: 8px 0 30px rgba(33, 62, 96, 0.11);
}

:root:not([data-theme="dark"]) .admin-sidebar-brand {
  border-bottom-color: rgba(159, 183, 210, 0.5);
}

:root:not([data-theme="dark"]) .admin-sidebar a {
  color: #41586f;
}

:root:not([data-theme="dark"]) .admin-theme-toggle {
  color: #41586f;
}

:root:not([data-theme="dark"]) .admin-nav-icon {
  border-color: rgba(134, 158, 185, 0.46);
  background: rgba(229, 237, 245, 0.92);
  color: #45607c;
}

:root:not([data-theme="dark"]) .admin-nav-lock {
  color: #5e7796;
}

:root:not([data-theme="dark"]) .admin-sidebar a:hover,
:root:not([data-theme="dark"]) .admin-sidebar a.ativo {
  color: #1e3f66;
  border-color: rgba(43, 123, 189, 0.35);
  background: linear-gradient(135deg, rgba(43, 123, 189, 0.18), rgba(43, 123, 189, 0.06));
}

:root:not([data-theme="dark"]) .admin-theme-toggle:hover {
  color: #1e3f66;
  border-color: rgba(43, 123, 189, 0.35);
  background: linear-gradient(135deg, rgba(43, 123, 189, 0.18), rgba(43, 123, 189, 0.06));
}

:root:not([data-theme="dark"]) .admin-sidebar a:hover .admin-nav-icon,
:root:not([data-theme="dark"]) .admin-sidebar a.ativo .admin-nav-icon {
  color: #ffffff;
  background: rgba(43, 123, 189, 0.85);
  border-color: rgba(43, 123, 189, 0.85);
}

:root:not([data-theme="dark"]) .admin-theme-toggle:hover .admin-nav-icon {
  color: #ffffff;
  background: rgba(43, 123, 189, 0.85);
  border-color: rgba(43, 123, 189, 0.85);
}

:root:not([data-theme="dark"]) .admin-sidebar-logout {
  border-color: rgba(227, 30, 36, 0.28) !important;
  background: rgba(227, 30, 36, 0.05);
}

:root:not([data-theme="dark"]) .admin-sidebar-logout .admin-nav-icon {
  color: #ca3c41;
  border-color: rgba(227, 30, 36, 0.35);
}

:root:not([data-theme="dark"]) .admin-modal-overlay,
:root:not([data-theme="dark"]) .modal-senha-admin,
:root:not([data-theme="dark"]) .modal-restricao-overlay,
:root:not([data-theme="dark"]) .access-denied-overlay {
  background: rgba(29, 47, 70, 0.38);
}

:root:not([data-theme="dark"]) .modal-senha-content,
:root:not([data-theme="dark"]) .modal-restricao-content {
  background: linear-gradient(150deg, #f6fafc 0%, #e5eef7 100%);
  border-color: rgba(76, 116, 158, 0.32);
}

:root:not([data-theme="dark"]) .modal-senha-header h2,
:root:not([data-theme="dark"]) .modal-restricao-body h2 {
  color: #22384f;
}

:root:not([data-theme="dark"]) .modal-senha-header p,
:root:not([data-theme="dark"]) .modal-restricao-body p {
  color: #62768f;
}

:root:not([data-theme="dark"]) .banco-horas-card {
  background: linear-gradient(145deg, #f4f8fb, #e3edf7);
  box-shadow: 0 10px 24px rgba(30, 51, 79, 0.1);
}

:root:not([data-theme="dark"]) .funcionario-resumo {
  background: linear-gradient(155deg, #f5f9fc, #e5eef7);
  border-color: rgba(78, 118, 158, 0.26);
  box-shadow: 0 10px 22px rgba(28, 54, 86, 0.09);
}

:root:not([data-theme="dark"]) .funcionario-resumo-header {
  background: linear-gradient(90deg, rgba(43, 123, 189, 0.14), rgba(43, 123, 189, 0.03));
  border-bottom-color: rgba(43, 123, 189, 0.2);
}

:root:not([data-theme="dark"]) .funcionario-resumo-titulo {
  color: #2c5a86;
}

:root:not([data-theme="dark"]) .funcionario-resumo-item {
  border-bottom-color: rgba(43, 123, 189, 0.14);
}

:root:not([data-theme="dark"]) .funcionario-resumo-item .rotulo {
  color: #607a96;
}

:root:not([data-theme="dark"]) .funcionario-resumo-item .valor {
  color: #20354a;
}

:root:not([data-theme="dark"]) .btn-ponto-novo {
  box-shadow: 0 4px 14px rgba(27, 50, 79, 0.08);
}

:root:not([data-theme="dark"]) .logo-sistema-ponto img {
  filter: contrast(1.08) saturate(1.04);
}

:root:not([data-theme="dark"]) .admin-main {
  background:
    linear-gradient(180deg, rgba(239, 245, 251, 0.56) 0%, rgba(226, 236, 246, 0.4) 100%),
    radial-gradient(circle at 95% 0%, rgba(43, 123, 189, 0.14), transparent 38%),
    radial-gradient(circle at 8% 100%, rgba(227, 30, 36, 0.09), transparent 34%);
  border-left: 1px solid rgba(132, 158, 189, 0.22);
}

:root:not([data-theme="dark"]) .card {
  background: linear-gradient(165deg, rgba(243, 248, 252, 0.94), rgba(224, 236, 247, 0.9));
  border-color: rgba(98, 131, 166, 0.34);
  box-shadow: 0 14px 28px rgba(24, 51, 83, 0.1);
}

:root:not([data-theme="dark"]) .table-wrap table {
  border-collapse: separate;
  border-spacing: 0;
}

:root:not([data-theme="dark"]) .table-wrap thead th {
  background: linear-gradient(180deg, rgba(220, 230, 241, 0.95), rgba(209, 222, 237, 0.93));
  color: #37526f;
  border-bottom-color: rgba(87, 127, 170, 0.3);
}

:root:not([data-theme="dark"]) .table-wrap tbody td {
  background: rgba(239, 246, 252, 0.86);
  border-bottom-color: rgba(97, 129, 164, 0.24);
}

:root:not([data-theme="dark"]) .table-wrap tbody tr:hover td {
  background: rgba(212, 226, 241, 0.9);
}

:root:not([data-theme="dark"]) .config-section {
  background: linear-gradient(165deg, rgba(243, 248, 252, 0.94), rgba(224, 236, 248, 0.88));
  border: 1px solid rgba(101, 135, 171, 0.33);
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(24, 52, 84, 0.09);
  padding: 1rem 1rem 0.5rem;
}

:root:not([data-theme="dark"]) .acoes-modal-overlay {
  background: rgba(19, 39, 64, 0.48);
}

:root:not([data-theme="dark"]) .acoes-modal-card {
  background: linear-gradient(165deg, #f4f8fb 0%, #e3edf7 100%);
  border-color: rgba(96, 130, 168, 0.38);
  box-shadow: 0 28px 64px rgba(22, 47, 78, 0.16);
}

:root:not([data-theme="dark"]) .acoes-modal-btn {
  background: rgba(228, 238, 247, 0.92);
  color: #21405f;
  border-color: rgba(92, 128, 170, 0.36);
}

:root:not([data-theme="dark"]) .acoes-modal-btn:hover {
  background: rgba(212, 226, 241, 0.94);
  border-color: rgba(58, 115, 173, 0.46);
}

:root:not([data-theme="dark"]) #modalAjustarPonto > div,
:root:not([data-theme="dark"]) #modalVerAlteracoes > div,
:root:not([data-theme="dark"]) #modalInserirPonto > div,
:root:not([data-theme="dark"]) #modalConfirmarExclusao > div,
:root:not([data-theme="dark"]) #modalIpsCadastrados > div {
  background: linear-gradient(165deg, #f4f8fb 0%, #e4edf7 100%) !important;
  border-color: rgba(88, 126, 167, 0.38) !important;
  box-shadow: 0 28px 72px rgba(20, 46, 78, 0.18) !important;
}

* { box-sizing: border-box; }
html,
body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  background: transparent;
}

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
}

.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* Login - Visual corporativo para logistica */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 1.1rem;
}

.page-login .login-container {
  padding-top: 3.9rem;
}

.login-content-wrapper {
  width: min(780px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.3rem;
  position: relative;
  z-index: 1;
}

.login-logo {
  flex: 0 1 300px;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  animation: fadeInLeft 0.75s ease-out;
}

.inova-brand-lockup {
  --inova-brand-title: #f8fbff;
  --inova-brand-subtitle: #d5e4f2;
  display: inline-flex;
  align-items: center;
  gap: 0.46rem;
  width: max-content;
  max-width: 100%;
  line-height: 1;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

:root:not([data-theme="dark"]) .inova-brand-lockup {
  --inova-brand-title: #0b2543;
  --inova-brand-subtitle: #1e567d;
}

.inova-brand-symbol {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 39% 34%, #ffffff 0 14%, transparent 15%),
    linear-gradient(135deg, #ffffff 0 24%, #24d5e3 25% 50%, #0b67b3 51% 100%);
  box-shadow: inset -5px -8px 12px rgba(1, 21, 48, 0.28), 0 2px 5px rgba(1, 16, 36, 0.22);
}

.inova-brand-symbol::before {
  content: "";
  position: absolute;
  width: 54px;
  height: 18px;
  left: -6px;
  bottom: 3px;
  border-bottom: 5px solid #f05a28;
  border-radius: 50%;
  transform: rotate(-15deg);
  box-shadow: 0 4px 0 rgba(255, 255, 255, 0.94);
}

.inova-brand-symbol-core::before {
  content: "i";
  position: absolute;
  left: 17px;
  top: 5px;
  z-index: 1;
  color: #0c3e72;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2rem;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
}

.inova-brand-type {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
  white-space: nowrap;
  text-align: left;
}

.inova-brand-type strong,
.inova-brand-type small {
  display: block;
  letter-spacing: 0;
  text-shadow: none;
}

.inova-brand-type strong {
  color: var(--inova-brand-title);
  font-size: 1.46rem;
  font-weight: 900;
  line-height: 0.9;
}

.inova-brand-type small {
  color: var(--inova-brand-subtitle);
  font-size: 0.42rem;
  font-weight: 800;
  line-height: 1;
}

.login-logo .inova-brand-lockup-login {
  align-self: flex-start;
}

.login-logo .logo-img {
  width: 210px;
  height: auto;
  filter: contrast(1.08) saturate(1.04);
  image-rendering: auto;
  transition: transform 0.3s ease;
}

:root[data-theme="dark"] .login-logo-picture {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  width: fit-content;
}

:root[data-theme="dark"] .login-logo-picture .logo-img {
  filter:
    invert(1)
    hue-rotate(180deg)
    saturate(1.1)
    brightness(1.34)
    contrast(1.18);
}

.login-logo .logo-img:hover {
  transform: translateY(-2px) scale(1.03);
}

.login-brand-copy {
  max-width: 300px;
  padding: 0.68rem 0.76rem;
  border: 1px solid rgba(43, 123, 189, 0.32);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(16, 27, 51, 0.92), rgba(10, 18, 36, 0.9));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.login-brand-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: #8eb3dd;
  text-transform: uppercase;
}

.login-brand-copy h2 {
  margin: 0 0 0.45rem;
  font-size: 0.94rem;
  line-height: 1.2;
  color: #f3f7ff;
}

.login-brand-copy p {
  margin: 0;
  font-size: 0.71rem;
  color: #a8bad3;
  line-height: 1.45;
}

.login-brand-chips {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.login-brand-chips span {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.34rem;
  border-radius: 999px;
  font-size: 0.56rem;
  font-weight: 700;
  color: #cfe4ff;
  background: rgba(43, 123, 189, 0.22);
  border: 1px solid rgba(43, 123, 189, 0.42);
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-26px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.login-background,
.global-login-background {
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.login-background {
  position: absolute;
  inset: 0;
}

.global-login-background {
  position: fixed;
  inset: 0;
}

.login-background::before,
.global-login-background::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.07) 1px, transparent 1px);
  background-size: 44px 44px, 44px 44px;
  mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.85), transparent 75%);
}

.login-background::after,
.global-login-background::after {
  content: '';
  position: absolute;
  width: min(720px, 72vw);
  height: 2px;
  left: 8%;
  top: 54%;
  background: linear-gradient(90deg, rgba(43, 123, 189, 0), rgba(43, 123, 189, 0.65), rgba(227, 30, 36, 0));
  transform: rotate(-8deg);
  box-shadow: 0 0 24px rgba(43, 123, 189, 0.4);
}

.circle {
  position: absolute;
  border-radius: 50%;
  animation: float 20s infinite ease-in-out;
  filter: blur(80px);
}

.circle-1 {
  width: 420px;
  height: 420px;
  top: -170px;
  left: -160px;
  background: radial-gradient(circle, rgba(43, 123, 189, 0.34), rgba(43, 123, 189, 0.05));
  animation-delay: 0s;
}

.circle-2 {
  width: 520px;
  height: 520px;
  bottom: -220px;
  right: -210px;
  background: radial-gradient(circle, rgba(227, 30, 36, 0.24), rgba(227, 30, 36, 0.05));
  animation-delay: 7s;
}

.circle-3 {
  width: 360px;
  height: 360px;
  top: 49%;
  left: 52%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(43, 123, 189, 0.2), rgba(227, 30, 36, 0.1));
  animation-delay: 13s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(28px, -26px) scale(1.08); }
  66% { transform: translate(-18px, 20px) scale(0.92); }
}

.login-box {
  max-width: 318px;
  width: 100%;
  padding: 1.45rem 1.2rem 1.15rem;
  background: linear-gradient(160deg, rgba(19, 31, 58, 0.95), rgba(14, 22, 42, 0.93));
  backdrop-filter: blur(16px);
  border: 1px solid rgba(43, 123, 189, 0.32);
  border-radius: 22px;
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(43, 123, 189, 0.1);
  position: relative;
  z-index: 1;
  overflow: hidden;
  animation: slideUp 0.55s ease-out;
}

.login-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--jr-blue), #5fbbff, var(--jr-red));
}

.login-box::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  right: -70px;
  top: -80px;
  background: radial-gradient(circle, rgba(43, 123, 189, 0.22), transparent 70%);
  pointer-events: none;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-box-kicker {
  margin: 0 0 0.85rem;
  text-align: center;
  font-size: 0.67rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: #9cbde4;
  text-transform: uppercase;
}

.login-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--jr-blue), var(--jr-red));
  border-radius: 15px;
  color: white;
  box-shadow: 0 12px 30px rgba(43, 123, 189, 0.34);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}

.login-box h1 {
  margin: 0 0 0.35rem;
  font-size: 1.58rem;
  text-align: center;
  background: linear-gradient(135deg, var(--jr-blue), #76c4ff 52%, var(--jr-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.login-box .subtitle {
  color: #94a6c2;
  margin: 0 0 1.15rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}

.input-group {
  margin-bottom: 0.78rem;
}

.form-login label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.66rem;
  font-weight: 700;
  color: #c2d3ea;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-login input {
  width: 100%;
  padding: 0.66rem 0.74rem;
  border: 1px solid rgba(84, 109, 148, 0.5);
  border-radius: 12px;
  background: rgba(8, 15, 31, 0.86);
  color: #eaf2ff;
  font-size: 0.86rem;
  transition: all 0.26s ease;
}

.form-login input:focus {
  outline: none;
  border-color: rgba(78, 167, 241, 0.95);
  box-shadow: 0 0 0 3px rgba(43, 123, 189, 0.22);
  transform: translateY(-1px);
}

.form-login input::placeholder {
  color: #7e93b2;
  opacity: 0.82;
}

.form-login .btn {
  margin-top: 1.05rem;
  width: 100%;
  padding: 0.76rem 0.82rem;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(110, 195, 255, 0.34);
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #2b7bbd 0%, #3388ca 55%, #2d6faa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.28s ease;
}

.form-login .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(43, 123, 189, 0.38);
  filter: brightness(1.05);
}

.form-login .btn:active {
  transform: translateY(0);
}

.login-help-text {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.64rem;
  color: #8ca3c1;
}

.alert { 
  padding: 1rem; 
  border-radius: 12px; 
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  text-align: center;
}

.alert.auto-dismissible {
  max-height: 220px;
  opacity: 1;
  transform: translateY(0);
  overflow: hidden;
  transition:
    opacity 0.38s ease,
    transform 0.38s ease,
    max-height 0.38s ease,
    margin 0.38s ease,
    padding 0.38s ease,
    border-width 0.38s ease;
}

.alert.alert-dismiss-out {
  opacity: 0;
  transform: translateY(-8px);
  max-height: 0;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-top-width: 0;
  border-bottom-width: 0;
  pointer-events: none;
}

.alert-danger { 
  background: rgba(239,68,68,0.15); 
  color: #f87171; 
  border: 1px solid rgba(239,68,68,0.3); 
}

.alert-success {
  background: rgba(34,197,94,0.15);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,0.3);
}

.alert.ok { 
  background: rgba(34,197,94,0.15); 
  color: #22c55e; 
  border: 1px solid rgba(34,197,94,0.3); 
}

.alert.err {
  background: rgba(227,30,36,0.15);
  color: var(--jr-red);
  border: 1px solid rgba(227,30,36,0.3);
}

.animate-in {
  animation: fadeInDown 0.5s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.muted { 
  color: var(--muted); 
  font-size: 0.85rem; 
  margin: 0.25rem 0 0; 
}

/* Saudação de entrada - Overlay centralizado elegante */
.welcome-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeInOverlay 0.4s ease-out;
}

.welcome-overlay.fade-out {
  animation: fadeOutOverlay 0.5s ease-out forwards;
}

.welcome-card {
  background: linear-gradient(135deg, #1a1f35 0%, #0f1420 100%);
  border: 2px solid rgba(43, 123, 189, 0.4);
  border-radius: 20px;
  padding: 2.5rem 3rem;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 100px rgba(43, 123, 189, 0.2);
  max-width: 450px;
  width: 90%;
  position: relative;
  overflow: hidden;
  animation: scaleInCard 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.welcome-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--jr-blue), var(--jr-red));
}

/* Variante para logout alinhada com a paleta padrao de acesso */
#logoutOverlay .welcome-card {
  border-color: rgba(43, 123, 189, 0.4);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 100px rgba(43, 123, 189, 0.2);
}

#logoutOverlay .welcome-card::before {
  background: linear-gradient(90deg, var(--jr-blue), var(--jr-red));
}

#logoutOverlay .welcome-card::after {
  background: radial-gradient(circle, rgba(43, 123, 189, 0.1) 0%, transparent 70%);
}

#logoutOverlay .welcome-greeting {
  background: linear-gradient(135deg, var(--jr-blue), var(--jr-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#logoutOverlay .welcome-progress-bar {
  background: linear-gradient(90deg, var(--jr-blue), var(--jr-red));
}

.welcome-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(43, 123, 189, 0.1) 0%, transparent 70%);
  animation: rotateGlow 8s linear infinite;
  pointer-events: none;
}

.welcome-greeting {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 1rem;
  background: linear-gradient(135deg, var(--jr-blue), var(--jr-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
  letter-spacing: 0.5px;
}

.welcome-user {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.welcome-message {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
  position: relative;
  z-index: 1;
  margin-bottom: 1.5rem;
}

.welcome-progress {
  width: 100%;
  height: 3px;
  background: rgba(43, 123, 189, 0.2);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.welcome-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--jr-blue), var(--jr-red));
  border-radius: 2px;
  animation: progressFill 3s linear forwards;
}

:root:not([data-theme="dark"]) .welcome-overlay {
  background: rgba(222, 232, 242, 0.84);
}

:root:not([data-theme="dark"]) .welcome-card {
  background: linear-gradient(160deg, rgba(248, 251, 254, 0.98), rgba(228, 238, 248, 0.95));
  border-color: rgba(76, 116, 158, 0.28);
  box-shadow: 0 24px 56px rgba(31, 56, 87, 0.18), 0 0 70px rgba(43, 123, 189, 0.12);
}

:root:not([data-theme="dark"]) .welcome-card::after,
:root:not([data-theme="dark"]) #logoutOverlay .welcome-card::after {
  background: radial-gradient(circle, rgba(43, 123, 189, 0.14) 0%, transparent 72%);
}

:root:not([data-theme="dark"]) .welcome-user {
  color: #22384f;
}

:root:not([data-theme="dark"]) .welcome-message {
  color: #5f7692;
}

:root:not([data-theme="dark"]) .welcome-progress {
  background: rgba(43, 123, 189, 0.14);
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOutOverlay {
  to { 
    opacity: 0;
    pointer-events: none;
  }
}

@keyframes scaleInCard {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes rotateGlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes progressFill {
  from { width: 0%; }
  to { width: 100%; }
}

@keyframes slideInTop {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ponto */
.ponto-container {
  max-width: 400px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  text-align: center;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 769px) {
  .ponto-container {
    transform: scale(0.86);
    transform-origin: top center;
  }

  .logo-sistema-ponto {
    transform: scale(1.16);
  }

  .logo-sistema-ponto:hover {
    transform: scale(1.16);
  }

  .admin-main-scale {
    zoom: 0.78;
    width: 100%;
  }

  .welcome-card {
    max-width: 390px;
    padding: 2rem 2.35rem;
  }

  .welcome-greeting {
    font-size: 2.1rem;
  }

  .welcome-user {
    font-size: 1.32rem;
    margin-bottom: 1.2rem;
  }

  .welcome-message {
    font-size: 1rem;
    margin-bottom: 1.2rem;
  }
}

/* Logo do Sistema na tela de ponto */
.logo-sistema-ponto {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 190px;
  height: 58px;
  z-index: 10;
  opacity: 1;
  transform-origin: top left;
  transition: all 0.3s ease;
}

.logo-sistema-ponto:hover {
  opacity: 1;
}

.logo-sistema-ponto .inova-brand-lockup {
  width: 100%;
}

.logo-sistema-ponto .inova-brand-symbol {
  width: 42px;
}

.logo-sistema-ponto .inova-brand-type strong {
  font-size: 1.38rem;
}

.logo-sistema-ponto .inova-brand-type small {
  font-size: 0.4rem;
}

.logo-sistema-ponto img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: auto;
  filter: contrast(1.08) saturate(1.04);
}

:root[data-theme="dark"] .logo-sistema-ponto img {
  filter:
    invert(1)
    hue-rotate(180deg)
    saturate(1.1)
    brightness(1.34)
    contrast(1.18);
}

/* Ajustar padding do header para não sobrepor a logo */
.ponto-header {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  padding-top: 6rem;
}
.ponto-container::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  z-index: -1;
}
.ponto-header .relogio {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--jr-blue), var(--jr-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
  text-shadow: 0 0 30px rgba(43,123,189,0.3);
}
.ponto-header .data-hoje { color: var(--muted); font-size: 0.95rem; margin: 0 0 1rem; }
.ponto-header h2 { margin: 0 0 0.25rem; font-size: 1.35rem; }
.ponto-header .empresa-linha {
  color: var(--muted);
  margin: 0 0 1rem;
  font-size: 0.9rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem 0.8rem;
}
.ponto-header .empresa-nome {
  color: var(--muted);
  font-weight: 600;
}
.ponto-header .empresa-cnpj-inline {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.funcionario-resumo {
  margin: 0 auto 1rem;
  max-width: 390px;
  text-align: left;
  border: 1px solid rgba(43, 123, 189, 0.45);
  border-radius: 14px;
  background: linear-gradient(155deg, rgba(23, 34, 63, 0.96), rgba(15, 23, 45, 0.9));
  box-shadow: 0 10px 24px rgba(8, 13, 29, 0.36);
  overflow: hidden;
}

.funcionario-resumo-header {
  padding: 0.68rem 0.9rem;
  border-bottom: 1px solid rgba(43, 123, 189, 0.3);
  background: linear-gradient(90deg, rgba(43, 123, 189, 0.25), rgba(43, 123, 189, 0.05));
}

.funcionario-resumo-titulo {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #cfe4ff;
}

.funcionario-resumo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 1rem;
  padding: 0.85rem 0.95rem;
}

.funcionario-resumo-item {
  min-width: 0;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.funcionario-resumo-item .rotulo {
  display: block;
  margin-bottom: 0.22rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #8eb3dd;
  text-transform: uppercase;
}

.funcionario-resumo-item .valor {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: #f4f8ff;
  overflow-wrap: anywhere;
  line-height: 1.3;
}

@media (max-width: 480px) {
  .funcionario-resumo {
    max-width: 100%;
    border-radius: 12px;
  }

  .funcionario-resumo-header {
    padding: 0.58rem 0.75rem;
  }

  .funcionario-resumo-titulo {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }

  .funcionario-resumo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem 0.7rem;
    padding: 0.65rem 0.75rem;
  }

  .funcionario-resumo-item {
    padding-bottom: 0.2rem;
  }

  .funcionario-resumo-item .rotulo {
    font-size: 0.52rem;
    margin-bottom: 0.16rem;
    letter-spacing: 0.1em;
  }

  .funcionario-resumo-item .valor {
    font-size: 0.78rem;
    line-height: 1.2;
  }
}

.ultimo-ponto {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.7rem;
}
.ultimo-ponto .origem { margin-left: 0.5rem; }
.ultimo-ponto .origem.empresa { color: var(--entrada); }
.ultimo-ponto .origem.externo { color: var(--intervalo); }
.ponto-header > .banco-horas-resumo {
  display: none;
}

.msg-ponto {
  min-height: 0;
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
}
.msg-ponto:empty {
  display: none;
  margin: 0;
}
.msg-ponto.ok { color: var(--success); }
.msg-ponto.err { color: var(--danger); }

.ponto-update-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.38rem;
  margin: 0 0 0.9rem;
}

.ponto-update-action[hidden] {
  display: none !important;
}

.ponto-update-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: min(100%, 340px);
  min-height: 50px;
  padding: 0.78rem 1.15rem;
  border: 1px solid rgba(251, 191, 36, 0.48);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.94), rgba(180, 83, 9, 0.9));
  color: #fff5db;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 14px 30px rgba(120, 53, 15, 0.28);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, filter 0.22s ease;
}

.ponto-update-button:hover {
  transform: translateY(-2px);
  border-color: rgba(253, 224, 71, 0.85);
  box-shadow: 0 18px 34px rgba(120, 53, 15, 0.34);
  filter: brightness(1.05);
}

.ponto-update-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.22), 0 18px 34px rgba(120, 53, 15, 0.34);
}

.ponto-update-button__icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ponto-update-button__icon svg {
  width: 16px;
  height: 16px;
}

.ponto-update-button__label {
  line-height: 1.1;
}

.ponto-update-button__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff7ed;
  color: #b45309;
  font-size: 0.92rem;
  font-weight: 800;
  box-shadow: 0 0 0 0 rgba(255, 247, 237, 0.7);
  animation: pontoUpdateBadgePulse 1.25s ease-in-out infinite;
}

.ponto-update-help {
  margin: 0;
  text-align: center;
  font-size: 0.76rem;
  color: #e5c58c;
}

@keyframes pontoUpdateBadgePulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 247, 237, 0.58);
  }
  50% {
    transform: scale(1.14);
    box-shadow: 0 0 0 8px rgba(255, 247, 237, 0);
  }
}

.botoes-ponto {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.btn-ponto {
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.2s;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--border);
}

/* Novos botões profissionais */
.botoes-ponto-grid {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 0.45rem;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

.btn-ponto-novo {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--surface);
  position: relative;
  overflow: hidden;
  border: 2px solid var(--border);
}

.btn-ponto-novo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.05));
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-ponto-novo:hover::before {
  opacity: 1;
}

.btn-ponto-novo .btn-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: all 0.3s;
  flex-shrink: 0;
}

.btn-ponto-novo .btn-icon svg {
  width: 24px;
  height: 24px;
}

.btn-ponto-novo .btn-texto {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  flex: 1;
}

.btn-ponto-novo .btn-titulo {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: block;
  margin-bottom: 0.15rem;
}

.btn-ponto-novo .btn-subtitulo {
  font-size: 0.8rem;
  opacity: 0.7;
  font-weight: 400;
}

/* Estados dos botões */
.btn-ponto-novo.entrada.ativo {
  border-color: var(--entrada);
  background: linear-gradient(135deg, var(--surface), rgba(34,197,94,0.05));
}

.btn-ponto-novo.entrada.ativo .btn-icon {
  background: linear-gradient(135deg, var(--entrada), #16a34a);
  color: white;
  box-shadow: 0 8px 20px rgba(34,197,94,0.3);
}

.btn-ponto-novo.entrada.ativo .btn-titulo {
  color: var(--entrada);
}

.btn-ponto-novo.entrada.ativo:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(34,197,94,0.25);
  border-color: var(--entrada);
}

.btn-ponto-novo.intervalo.ativo {
  border-color: var(--intervalo);
  background: linear-gradient(135deg, var(--surface), rgba(245,158,11,0.05));
}

.btn-ponto-novo.intervalo.ativo .btn-icon {
  background: linear-gradient(135deg, var(--intervalo), #d97706);
  color: white;
  box-shadow: 0 8px 20px rgba(245,158,11,0.3);
}

.btn-ponto-novo.intervalo.ativo .btn-titulo {
  color: var(--intervalo);
}

.btn-ponto-novo.intervalo.ativo:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(245,158,11,0.25);
  border-color: var(--intervalo);
}

/* Volta do intervalo - cor diferente */
.btn-ponto-novo.intervalo.volta-intervalo {
  border-color: var(--jr-blue);
  background: linear-gradient(135deg, var(--surface), rgba(43,123,189,0.05));
}

.btn-ponto-novo.intervalo.volta-intervalo .btn-icon {
  background: linear-gradient(135deg, var(--jr-blue), var(--jr-blue-dark));
  color: white;
  box-shadow: 0 8px 20px rgba(43,123,189,0.3);
}

.btn-ponto-novo.intervalo.volta-intervalo .btn-titulo {
  color: var(--jr-blue);
}

.btn-ponto-novo.intervalo.volta-intervalo:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(43,123,189,0.25);
  border-color: var(--jr-blue);
}

/* Tema escuro: volta do intervalo em tom âmbar suave */
:root[data-theme="dark"] .btn-ponto-novo.intervalo.volta-intervalo {
  border-color: #c99745;
  background: linear-gradient(135deg, var(--surface), rgba(201,151,69,0.07));
}

:root[data-theme="dark"] .btn-ponto-novo.intervalo.volta-intervalo .btn-icon {
  background: linear-gradient(135deg, #d8a957, #b78433);
  color: #fff;
  box-shadow: 0 7px 18px rgba(201,151,69,0.25);
}

:root[data-theme="dark"] .btn-ponto-novo.intervalo.volta-intervalo .btn-titulo {
  color: #d7a85a;
}

:root[data-theme="dark"] .btn-ponto-novo.intervalo.volta-intervalo .btn-subtitulo {
  color: #ccb996;
  opacity: 0.86;
}

:root[data-theme="dark"] .btn-ponto-novo.intervalo.volta-intervalo:hover {
  box-shadow: 0 10px 26px rgba(201,151,69,0.2);
  border-color: #d4a759;
}

.btn-ponto-novo.saida.ativo {
  border-color: var(--jr-red);
  background: linear-gradient(135deg, var(--surface), rgba(227,30,36,0.05));
}

.btn-ponto-novo.saida.ativo .btn-icon {
  background: linear-gradient(135deg, var(--jr-red), var(--jr-red-dark));
  color: white;
  box-shadow: 0 8px 20px rgba(227,30,36,0.3);
}

.btn-ponto-novo.saida.ativo .btn-titulo {
  color: var(--jr-red);
}

.btn-ponto-novo.saida.ativo:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(227,30,36,0.25);
  border-color: var(--jr-red);
}

/* Botão desabilitado */
.btn-ponto-novo.desabilitado {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: var(--border);
  background: var(--surface);
}

.btn-ponto-novo.desabilitado .btn-icon {
  background: var(--border);
  color: var(--muted);
  box-shadow: none;
}

.btn-ponto-novo.desabilitado .btn-titulo {
  color: var(--muted);
}

.btn-ponto-novo.desabilitado:hover {
  transform: none;
  box-shadow: none;
}

.btn-ponto-novo:disabled {
  pointer-events: none;
}

/* Animação de sucesso */
@keyframes pulseSuccess {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.btn-ponto-novo.sucesso {
  animation: pulseSuccess 0.5s ease;
}
.btn-ponto:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(43,123,189,0.3); }
.btn-ponto.entrada { border-color: var(--entrada); color: var(--entrada); }
.btn-ponto.entrada:hover { background: rgba(34,197,94,0.1); box-shadow: 0 8px 25px rgba(34,197,94,0.3); }
.btn-ponto.intervalo { border-color: var(--intervalo); color: var(--intervalo); }
.btn-ponto.intervalo:hover { background: rgba(245,158,11,0.1); box-shadow: 0 8px 25px rgba(245,158,11,0.3); }
.btn-ponto.saida { border-color: var(--jr-blue); color: var(--jr-blue); }
.btn-ponto.saida:hover { background: rgba(43,123,189,0.1); box-shadow: 0 8px 25px rgba(43,123,189,0.3); }
.btn-ponto:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Responsividade dos novos botões */
@media (max-width: 768px) {
  .ponto-update-action {
    margin-bottom: 0.8rem;
  }

  .ponto-update-button {
    width: min(100%, 320px);
    min-height: 48px;
    padding: 0.72rem 1rem;
    gap: 0.58rem;
    font-size: 0.9rem;
  }

  .ponto-update-help {
    font-size: 0.73rem;
  }

  .botoes-ponto-grid {
    max-width: 100%;
    margin-top: 0.35rem;
  }
  
  .btn-ponto-novo {
    padding: 0.95rem 1.1rem;
    gap: 0.9rem;
  }
  
  .btn-ponto-novo .btn-icon {
    width: 40px;
    height: 40px;
  }
  
  .btn-ponto-novo .btn-icon svg {
    width: 22px;
    height: 22px;
  }
  
  .btn-ponto-novo .btn-titulo {
    font-size: 0.95rem;
  }
  
  .btn-ponto-novo .btn-subtitulo {
    font-size: 0.75rem;
  }
  
  .logout-link a {
    font-size: 0.9rem;
    min-height: 48px;
  }
  
  /* Logo menor em tablets */
  .logo-sistema-ponto {
    width: 168px;
    height: 52px;
    top: 0.75rem;
    left: 0.75rem;
  }
  
  /* Ajustar padding do header em tablets */
  .ponto-header {
    padding-top: 5rem;
  }

  .funcionario-resumo {
    margin-bottom: 0.7rem;
  }
}

@media (max-width: 640px) {
  .ponto-header .empresa-linha {
    margin: 0 0 0.75rem;
    gap: 0.15rem 0.5rem;
  }

  .ponto-header .empresa-cnpj-inline {
    display: inline;
    font-size: 0.76rem;
  }
}

@media (max-width: 480px) {
  .ponto-container {
    max-width: 100%;
    padding: 0.95rem 0.75rem 1.25rem;
  }

  .ponto-header .relogio {
    font-size: 3rem;
    text-shadow: none;
    margin-bottom: 0.15rem;
  }

  .ponto-header .data-hoje {
    font-size: 0.88rem;
    margin: 0 0 0.7rem;
  }

  .ultimo-ponto {
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
  }

  .msg-ponto {
    margin: 0 0 0.35rem;
  }

  .ponto-update-button {
    width: 100%;
    border-radius: 16px;
  }

  .ponto-update-help {
    font-size: 0.71rem;
  }

  .botoes-ponto-grid {
    margin-top: 0.25rem;
  }
  
  .btn-ponto-novo {
    padding: 0.85rem 1rem;
    gap: 0.8rem;
    border-width: 1px;
  }
  
  .btn-ponto-novo .btn-icon {
    width: 38px;
    height: 38px;
  }
  
  .btn-ponto-novo .btn-icon svg {
    width: 20px;
    height: 20px;
  }
  
  .btn-ponto-novo .btn-titulo {
    font-size: 0.9rem;
  }
  
  .btn-ponto-novo .btn-subtitulo {
    font-size: 0.72rem;
  }
  
  .logout-link a {
    font-size: 0.85rem;
    min-height: 46px;
  }
  
  /* Logo ainda menor em mobile */
  .logo-sistema-ponto {
    width: 136px;
    height: 44px;
    top: 0.35rem;
    left: 0.35rem;
  }

  .logo-sistema-ponto .inova-brand-lockup {
    gap: 0.34rem;
  }

  .logo-sistema-ponto .inova-brand-symbol {
    width: 34px;
  }

  .logo-sistema-ponto .inova-brand-symbol::before {
    width: 42px;
    height: 14px;
    left: -5px;
    border-bottom-width: 4px;
  }

  .logo-sistema-ponto .inova-brand-symbol-core::before {
    left: 13px;
    top: 4px;
    font-size: 1.55rem;
  }

  .logo-sistema-ponto .inova-brand-type strong {
    font-size: 1.08rem;
  }

  .logo-sistema-ponto .inova-brand-type small {
    font-size: 0.31rem;
  }

  .theme-toggle {
    top: 0.45rem;
    right: 0.45rem;
    gap: 0.35rem;
    padding: 0.36rem 0.58rem;
    font-size: 0.68rem;
  }

  .theme-toggle-dot {
    width: 9px;
    height: 9px;
  }
  
  /* Ajustar padding do header em mobile */
  .ponto-header {
    padding-top: 3.25rem;
  }

  .funcionario-resumo,
  .banco-horas-card {
    backdrop-filter: none;
    box-shadow: 0 6px 16px rgba(8, 13, 29, 0.24);
  }

  .funcionario-resumo {
    margin-bottom: 0.75rem;
  }

  .funcionario-resumo-grid {
    gap: 0.4rem 0.65rem;
    padding: 0.62rem 0.72rem;
  }

  .funcionario-resumo-item .valor {
    font-size: 0.8rem;
  }
}

.logout-link { 
  margin-top: 2.5rem; 
  margin-bottom: 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.logout-link a { 
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: min(100%, 320px);
  min-height: 52px;
  padding: 0.85rem 1.2rem;
  border: 2px solid transparent;
  border-radius: 12px;
  color: var(--text); 
  text-decoration: none; 
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

.logout-link .btn-link-espelho {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(96, 165, 250, 0.1));
  border-color: rgba(96, 165, 250, 0.5);
  color: #8bc4ff;
}

.logout-link .btn-link-espelho:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.28), rgba(96, 165, 250, 0.18));
  border-color: #60a5fa;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(96, 165, 250, 0.32);
}

.logout-link .btn-link-sair {
  background: linear-gradient(135deg, rgba(227, 30, 36, 0.1), rgba(227, 30, 36, 0.05));
  border-color: rgba(227, 30, 36, 0.3);
  color: var(--jr-red);
}

.logout-link .btn-link-sair:hover {
  background: linear-gradient(135deg, rgba(227, 30, 36, 0.2), rgba(227, 30, 36, 0.1));
  border-color: var(--jr-red);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(227, 30, 36, 0.3);
}

.logout-link a::before {
  content: '←';
  font-size: 1.3rem;
  font-weight: 700;
  transition: transform 0.3s ease;
}

.logout-link a:hover::before {
  transform: translateX(-4px);
}

/* Override de conteudo do icone para evitar problema de encoding */
.logout-link a::before {
  content: '\2190';
}

:root:not([data-theme="dark"]) .logout-link .btn-link-espelho {
  background: linear-gradient(135deg, rgba(43, 123, 189, 0.14), rgba(61, 143, 209, 0.08));
  border-color: rgba(43, 123, 189, 0.4);
  color: #1f6fab;
}

:root:not([data-theme="dark"]) .logout-link .btn-link-espelho:hover {
  background: linear-gradient(135deg, rgba(43, 123, 189, 0.2), rgba(61, 143, 209, 0.12));
  border-color: #2b7bbd;
}

:root:not([data-theme="dark"]) .ponto-update-button {
  border-color: rgba(217, 119, 6, 0.36);
  background: linear-gradient(135deg, rgba(255, 244, 214, 0.98), rgba(255, 229, 176, 0.95));
  color: #8a4a04;
  box-shadow: 0 12px 24px rgba(156, 94, 11, 0.14);
}

:root:not([data-theme="dark"]) .ponto-update-button__icon {
  background: rgba(180, 83, 9, 0.12);
}

:root:not([data-theme="dark"]) .ponto-update-button__badge {
  background: #b45309;
  color: #ffffff;
}

:root:not([data-theme="dark"]) .ponto-update-help {
  color: #8c6736;
}

/* Admin */
.admin-wrap { display: flex; min-height: 100vh; background: transparent; position: relative; z-index: 1; }

/* Menu Hambúrguer - Mobile */
.admin-menu-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1001;
  width: 48px;
  height: 48px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.admin-menu-toggle:hover {
  background: var(--surface-hover);
  border-color: var(--jr-blue);
  transform: scale(1.05);
}

.admin-menu-toggle span {
  width: 24px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.admin-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.admin-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.admin-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.admin-sidebar {
  width: 268px;
  background: linear-gradient(180deg, rgba(21, 27, 46, 0.95) 0%, rgba(12, 17, 31, 0.98) 100%);
  border-right: 1px solid rgba(74, 85, 120, 0.35);
  padding: 1rem 0.85rem;
  box-shadow: 6px 0 32px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0.35rem 0.7rem;
  border-bottom: 1px solid rgba(74, 85, 120, 0.35);
}

.admin-sidebar-brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--jr-blue), #55a5ea);
  box-shadow: 0 6px 18px rgba(43, 123, 189, 0.45);
}

.admin-sidebar-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.admin-sidebar-brand-text strong {
  color: var(--text);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.admin-sidebar-brand-text span {
  color: var(--muted);
  font-size: 0.74rem;
}

.admin-sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-sidebar a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.62rem 0.66rem;
  color: #b8c0dc;
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: all 0.22s ease;
}

.admin-theme-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.62rem 0.66rem;
  margin-top: 0.2rem;
  color: #b8c0dc;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.9rem;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: all 0.22s ease;
}

.admin-theme-toggle[hidden] {
  display: none !important;
}

.admin-nav-icon {
  min-width: 32px;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid rgba(74, 85, 120, 0.45);
  background: rgba(17, 23, 41, 0.6);
  color: #d8dff5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-nav-icon svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-nav-label {
  line-height: 1.2;
}

.admin-nav-label-locked {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.admin-nav-lock {
  width: 15px;
  height: 15px;
  color: #95a7cf;
  opacity: 0.9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-nav-lock svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-sidebar a:hover,
.admin-sidebar a.ativo {
  color: #f7f9ff;
  border-color: rgba(74, 165, 239, 0.45);
  background: linear-gradient(135deg, rgba(43, 123, 189, 0.32), rgba(43, 123, 189, 0.09));
  transform: translateX(2px);
}

.admin-theme-toggle:hover {
  color: #f7f9ff;
  border-color: rgba(74, 165, 239, 0.45);
  background: linear-gradient(135deg, rgba(43, 123, 189, 0.32), rgba(43, 123, 189, 0.09));
  transform: translateX(2px);
}

.admin-theme-toggle:hover .admin-nav-icon {
  border-color: rgba(131, 195, 243, 0.65);
  background: rgba(43, 123, 189, 0.3);
  color: #ffffff;
}

.admin-sidebar a:hover .admin-nav-icon,
.admin-sidebar a.ativo .admin-nav-icon {
  border-color: rgba(131, 195, 243, 0.65);
  background: rgba(43, 123, 189, 0.3);
  color: #ffffff;
}

.admin-sidebar a:hover .admin-nav-lock,
.admin-sidebar a.ativo .admin-nav-lock {
  color: #ffffff;
}

.admin-sidebar-logout {
  border: 1px solid rgba(227, 30, 36, 0.32) !important;
  background: rgba(227, 30, 36, 0.08);
}

.admin-sidebar-logout:hover {
  border-color: rgba(227, 30, 36, 0.6) !important;
  background: rgba(227, 30, 36, 0.2) !important;
}

.admin-sidebar-logout .admin-nav-icon {
  border-color: rgba(227, 30, 36, 0.45);
  color: #ffd0d2;
}

.admin-main {
  flex: 1;
  padding: 1.25rem 1.6rem;
  overflow: auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-main-scale {
  flex: 1 0 auto;
  width: 100%;
  min-width: 0;
}

/* Ajuste fino desktop: botoes do menu lateral um pouco menores */
@media (min-width: 769px) {
  .admin-sidebar {
    width: 236px;
    padding: 0.82rem 0.66rem;
    gap: 0.72rem;
  }

  .admin-sidebar-brand {
    gap: 0.58rem;
    padding: 0.4rem 0.26rem 0.58rem;
  }

  .admin-sidebar-brand-mark {
    width: 24px;
    height: 24px;
    border-radius: 8px;
  }

  .admin-sidebar-brand-text strong {
    font-size: 0.84rem;
  }

  .admin-sidebar-brand-text span {
    font-size: 0.66rem;
  }

  .admin-sidebar a,
  .admin-theme-toggle {
    gap: 0.52rem;
    padding: 0.46rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 10px;
  }

  .admin-nav-icon {
    min-width: 26px;
    width: 26px;
    height: 26px;
    border-radius: 7px;
  }

  .admin-nav-icon svg {
    width: 13px;
    height: 13px;
  }

  .admin-nav-lock {
    width: 13px;
    height: 13px;
  }

  .admin-nav-lock svg {
    width: 12px;
    height: 12px;
  }
}

/* Modal Mobile para Conteúdo Admin */
.admin-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1002;
  animation: fadeIn 0.3s ease-out;
}

.admin-modal-overlay.show {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 1rem;
}

.admin-modal-content {
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  border: 2px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 100%;
  margin: 1rem 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: slideUp 0.4s ease-out;
  position: relative;
}

.admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 2px solid var(--border);
  background: var(--surface);
  border-radius: 16px 16px 0 0;
}

.admin-modal-header h2 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-modal-close {
  width: 36px;
  height: 36px;
  background: transparent;
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.admin-modal-close:hover {
  background: var(--surface-hover);
  border-color: var(--jr-red);
}

.admin-modal-close svg {
  width: 20px;
  height: 20px;
  stroke: var(--text);
}

.admin-modal-body {
  padding: 1.5rem;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

/* Responsividade Mobile */
@media (max-width: 768px) {
  .admin-menu-toggle {
    display: flex;
  }
  
  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    max-width: calc(100vw - 2.5rem);
    z-index: 1000;
    transform: translateX(-100%);
    box-shadow: 4px 0 20px rgba(0,0,0,0.5);
  }
  
  .admin-sidebar.show {
    transform: translateX(0);
  }
  
  .admin-main {
    width: 100%;
    padding: 5rem 1rem 1rem 1rem;
  }
  
  .admin-modal-content {
    margin: 0.5rem 0;
  }
  
  .admin-modal-header {
    padding: 1rem 1.25rem;
  }
  
  .admin-modal-header h2 {
    font-size: 1.2rem;
  }
  
  .admin-modal-body {
    padding: 1.25rem;
    max-height: calc(100vh - 150px);
  }
  
  /* Modais internos (ajustar ponto, inserir ponto, etc.) dentro do modal mobile */
  .admin-modal-overlay.show ~ body #modalAjustarPonto,
  .admin-modal-overlay.show ~ body #modalVerAlteracoes,
  .admin-modal-overlay.show ~ body #modalInserirPonto,
  #adminModal.show #modalAjustarPonto,
  #adminModal.show #modalVerAlteracoes,
  #adminModal.show #modalInserirPonto {
    z-index: 10000 !important;
  }
  
  /* Garantir que modais internos fiquem acima do modal principal */
  #modalAjustarPonto[style*="display: flex"],
  #modalVerAlteracoes[style*="display: flex"],
  #modalInserirPonto[style*="display: flex"] {
    z-index: 10000 !important;
  }
  
  /* Ajustar tamanho dos modais internos no mobile */
  #modalAjustarPonto > div,
  #modalVerAlteracoes > div,
  #modalInserirPonto > div {
    max-width: 95% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
  }
  
  /* Ajustes de tabelas no mobile */
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  table {
    min-width: 600px;
    font-size: 0.85rem;
  }
  
  th, td {
    padding: 0.5rem 0.6rem;
  }
  
  /* Ajustes de cards no mobile */
  .card-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  
  .card {
    padding: 1rem;
  }
  
  .card .valor {
    font-size: 1.5rem;
  }
  
  /* Ajustes de formulários no mobile */
  .form-group input,
  .form-group select,
  .form-group textarea {
    max-width: 100%;
    font-size: 16px; /* Evita zoom no iOS */
  }
  
  /* Botões no mobile */
  .btn {
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
  }
  
  /* Títulos no mobile */
  .admin-main h1 {
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
  }
  
  .admin-main h2 {
    font-size: 1.2rem;
  }
  
  .admin-main h3 {
    font-size: 1.05rem;
  }
  
  /* Botão exportar PDF no mobile */
  button[onclick*="exportarPDF"] {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
  }
  
  /* Ajustar grid de horários no mobile */
  #modalInserirPonto > div > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .admin-main {
    padding: 4.5rem 0.75rem 0.75rem 0.75rem;
  }
  
  .admin-modal-body {
    padding: 1rem;
  }
  
  table {
    font-size: 0.8rem;
  }
  
  th, td {
    padding: 0.4rem 0.5rem;
  }
  
  .card {
    padding: 0.85rem;
  }
  
  .card .valor {
    font-size: 1.35rem;
  }
  
  .btn {
    padding: 0.6rem 0.85rem;
    font-size: 0.85rem;
  }
}
.admin-main h1 { margin: 0 0 1rem; font-size: 1.5rem; }

.btn { display: inline-block; padding: 0.5rem 1rem; border-radius: 8px; font-size: 0.9rem; cursor: pointer; text-decoration: none; border: none; transition: all 0.2s ease; }
.btn-primary { background: linear-gradient(135deg, var(--jr-blue), var(--jr-blue-dark)); color: #fff; box-shadow: 0 4px 15px rgba(43,123,189,0.3); }
.btn-primary:hover { background: linear-gradient(135deg, var(--jr-blue-light), var(--jr-blue)); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(43,123,189,0.4); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--surface-hover); border-color: var(--jr-blue); }

.table-wrap { overflow-x: auto; margin-top: 1rem; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.6rem 0.75rem; text-align: left; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; }
tr:hover td { background: rgba(255,255,255,0.02); }

/* Separacao leve de linhas para telas de funcionarios/usuarios/relatorios */
.table-wrap.linhas-destacadas table {
  border-collapse: separate;
  border-spacing: 0 0.38rem;
}

.table-wrap.linhas-destacadas thead th {
  border-bottom: 1px solid rgba(74, 85, 120, 0.65);
  padding-bottom: 0.52rem;
}

.table-wrap.linhas-destacadas tbody td {
  border-top: 1px solid rgba(74, 85, 120, 0.3);
  border-bottom: 1px solid rgba(74, 85, 120, 0.42);
  background: rgba(12, 18, 33, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.table-wrap.linhas-destacadas tbody tr td:first-child {
  border-left: 1px solid rgba(74, 85, 120, 0.38);
  border-radius: 10px 0 0 10px;
}

.table-wrap.linhas-destacadas tbody tr td:last-child {
  border-right: 1px solid rgba(74, 85, 120, 0.38);
  border-radius: 0 10px 10px 0;
}

.table-wrap.linhas-destacadas tbody tr:hover td {
  background: rgba(43, 123, 189, 0.11);
}

.folha-ponto-table {
  width: 100%;
  min-width: 820px;
  table-layout: fixed;
}

.folha-ponto-table th,
.folha-ponto-table td {
  padding: 0.48rem 0.38rem;
  vertical-align: middle;
}

.folha-ponto-table th:nth-child(1),
.folha-ponto-table td:nth-child(1) {
  width: 9%;
  padding-right: 0.72rem;
}

.folha-ponto-table th:nth-child(2),
.folha-ponto-table td:nth-child(2) {
  width: 6%;
}

.folha-ponto-table th:nth-child(3),
.folha-ponto-table td:nth-child(3),
.folha-ponto-table th:nth-child(4),
.folha-ponto-table td:nth-child(4),
.folha-ponto-table th:nth-child(5),
.folha-ponto-table td:nth-child(5),
.folha-ponto-table th:nth-child(6),
.folha-ponto-table td:nth-child(6) {
  width: 13%;
}

.folha-ponto-table th:nth-child(7),
.folha-ponto-table td:nth-child(7) {
  width: 19%;
}

.folha-ponto-table th:nth-child(8),
.folha-ponto-table td:nth-child(8) {
  width: 6%;
  text-align: center;
}

.folha-ponto-table th,
.folha-ponto-table td {
  white-space: nowrap;
}

.folha-ponto-table th:nth-child(7),
.folha-ponto-table td:nth-child(7) {
  white-space: nowrap;
}

.folha-ponto-table th:nth-child(4),
.folha-ponto-table th:nth-child(5) {
  white-space: normal;
  line-height: 1.15;
}

.folha-ponto-table td:nth-child(7) > span {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  font-size: 0.84rem;
  line-height: 1.2;
}

.registros-ponto-table {
  width: 100%;
  table-layout: fixed;
}

.registros-ponto-table th,
.registros-ponto-table td {
  padding: 0.48rem 0.38rem;
}

.registros-ponto-table th:nth-child(1),
.registros-ponto-table td:nth-child(1) {
  width: 9%;
  padding-right: 0.72rem;
}

.registros-ponto-table th:nth-child(2),
.registros-ponto-table td:nth-child(2) {
  width: 16%;
  padding-left: 0.72rem;
}

.registros-ponto-table th:nth-child(3),
.registros-ponto-table td:nth-child(3),
.registros-ponto-table th:nth-child(4),
.registros-ponto-table td:nth-child(4),
.registros-ponto-table th:nth-child(5),
.registros-ponto-table td:nth-child(5),
.registros-ponto-table th:nth-child(6),
.registros-ponto-table td:nth-child(6) {
  width: 11%;
}

.registros-ponto-table th:nth-child(7),
.registros-ponto-table td:nth-child(7) {
  width: 8%;
}

.registros-ponto-table th:nth-child(8),
.registros-ponto-table td:nth-child(8) {
  width: 16%;
}

.registros-ponto-table th:nth-child(9),
.registros-ponto-table td:nth-child(9) {
  width: 8%;
}

.registros-ponto-table th:nth-child(4),
.registros-ponto-table th:nth-child(5),
.registros-ponto-table td:nth-child(2),
.registros-ponto-table td:nth-child(8) {
  white-space: normal;
  line-height: 1.15;
}

.registros-ponto-table .badge {
  font-size: 0.72rem;
  padding: 0.18rem 0.42rem;
}

.registros-ponto-table .btn-ver-alteracoes-dia {
  padding: 0.28rem 0.5rem;
  font-size: 0.74rem;
}

.relatorio-pontos-coluna {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.relatorio-ponto-item {
  display: inline-flex;
  align-items: center;
  gap: 0.24rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.folha-ponto-marcacao {
  display: inline-flex;
  align-items: center;
  gap: 0.24rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.folha-ponto-dia-seguinte {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.12rem 0.38rem;
  border-radius: 999px;
  background: rgba(43, 123, 189, 0.14);
  color: var(--jr-blue);
  border: 1px solid rgba(43, 123, 189, 0.22);
}

.relatorio-ponto-hora {
  font-variant-numeric: tabular-nums;
  line-height: 1;
  font-size: 0.92rem;
}

.relatorio-ponto-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.1rem 0.3rem;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.relatorio-ponto-badge.normal {
  color: #065f46;
  border: 1px solid rgba(6, 95, 70, 0.45);
  background: rgba(6, 95, 70, 0.12);
}

.relatorio-ponto-badge.extra {
  color: #1d4ed8;
  border: 1px solid rgba(29, 78, 216, 0.45);
  background: rgba(29, 78, 216, 0.12);
}

:root:not([data-theme="dark"]) .table-wrap.linhas-destacadas thead th {
  border-bottom-color: rgba(43, 123, 189, 0.28);
}

:root:not([data-theme="dark"]) .table-wrap.linhas-destacadas tbody td {
  background: rgba(240, 246, 251, 0.86);
  border-top-color: rgba(43, 123, 189, 0.13);
  border-bottom-color: rgba(43, 123, 189, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62), 0 2px 8px rgba(20, 47, 78, 0.04);
}

:root:not([data-theme="dark"]) .table-wrap.linhas-destacadas tbody tr td:first-child,
:root:not([data-theme="dark"]) .table-wrap.linhas-destacadas tbody tr td:last-child {
  border-left-color: rgba(43, 123, 189, 0.2);
  border-right-color: rgba(43, 123, 189, 0.2);
}

:root:not([data-theme="dark"]) .table-wrap.linhas-destacadas tbody tr:hover td {
  background: rgba(214, 226, 240, 0.92);
}

:root:not([data-theme="dark"]) .relatorio-ponto-badge.normal {
  color: #065f46;
  border-color: rgba(6, 95, 70, 0.3);
  background: rgba(6, 95, 70, 0.1);
}

:root:not([data-theme="dark"]) .relatorio-ponto-badge.extra {
  color: #1d4ed8;
  border-color: rgba(29, 78, 216, 0.28);
  background: rgba(29, 78, 216, 0.1);
}

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.35rem; font-size: 0.9rem; }
.form-group input, .form-group select { width: 100%; max-width: 400px; padding: 0.5rem 0.75rem; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--text); }

/* Melhorar visibilidade dos inputs em formulários */
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="time"],
.form-group input[type="date"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
  color: var(--field-text) !important;
  background: var(--field-bg) !important;
  border: 1px solid var(--field-border-strong) !important;
  box-shadow: var(--field-shadow) !important;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--field-placeholder) !important;
  opacity: 0.7 !important;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
  outline: none !important;
}

/* Garantir que todos os textareas tenham texto visível */
textarea {
  color: var(--field-text) !important;
  background: var(--field-bg) !important;
  box-shadow: var(--field-shadow) !important;
}

textarea::placeholder {
  color: var(--field-placeholder) !important;
  opacity: 0.7 !important;
}

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.card { 
  background: var(--surface); 
  border: 1px solid var(--border); 
  border-radius: 10px; 
  padding: 1.25rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--jr-blue), var(--jr-red));
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(43,123,189,0.2);
  border-color: var(--jr-blue);
}
.card h3 { margin: 0 0 0.5rem; font-size: 0.9rem; color: var(--muted); }
.card .valor { font-size: 1.75rem; font-weight: 700; background: linear-gradient(135deg, var(--jr-blue), var(--jr-red)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.badge { display: inline-block; padding: 0.2rem 0.5rem; border-radius: 4px; font-size: 0.75rem; font-weight: 600; }
.badge-empresa { background: rgba(34,197,94,0.2); color: var(--entrada); border: 1px solid rgba(34,197,94,0.3); }
.badge-externo { background: rgba(227,30,36,0.2); color: var(--jr-red); border: 1px solid rgba(227,30,36,0.3); }


/* Responsividade */
@media (max-width: 1024px) {
  .login-content-wrapper {
    width: min(720px, 100%);
    gap: 1rem;
  }

  .login-logo {
    flex-basis: 265px;
  }

  .login-logo .logo-img {
    width: 188px;
  }
}

@media (max-width: 768px) {
  .page-login .login-container {
    align-items: flex-start;
    padding: 1.9rem 1rem 0.9rem;
  }

  .global-login-background::before {
    background-size: 56px 56px, 56px 56px;
    opacity: 0.72;
  }

  .global-login-background::after {
    width: min(520px, 90vw);
    box-shadow: none;
    opacity: 0.42;
  }

  .login-content-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "login-logo-mobile"
      "login-box-mobile"
      "login-brand-mobile";
    align-items: stretch;
    gap: 1.3rem;
    width: 100%;
    max-width: 520px;
  }

  .login-logo {
    display: contents;
    width: 100%;
    gap: 0;
    align-items: center;
  }

  .login-logo .logo-img {
    grid-area: login-logo-mobile;
    justify-self: center;
    width: clamp(148px, 42vw, 204px);
  }

  .login-logo .inova-brand-lockup-login {
    grid-area: login-logo-mobile;
    justify-self: center;
    align-self: center;
  }

  :root[data-theme="dark"] .login-logo-picture {
    grid-area: login-logo-mobile;
    justify-self: center;
    align-self: center;
  }

  .login-brand-copy {
    grid-area: login-brand-mobile;
    width: 100%;
    max-width: none;
    padding: 0.6rem 0.72rem;
  }

  .login-brand-copy p,
  .login-brand-chips {
    display: none;
  }

  .login-box {
    grid-area: login-box-mobile;
    max-width: 100%;
    padding: 1.9rem 1.35rem 1.55rem;
  }

  .login-icon {
    width: 68px;
    height: 68px;
  }

  .login-box h1 {
    font-size: 1.72rem;
  }

  .circle-1, .circle-2, .circle-3 {
    opacity: 0.45;
  }

  .circle {
    filter: blur(52px);
    animation-duration: 28s;
  }

  .login-box {
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
  }

  .welcome-card {
    padding: 2rem 2.5rem;
    width: 95%;
  }

  .welcome-greeting {
    font-size: 2rem;
  }

  .welcome-user {
    font-size: 1.3rem;
  }

  .welcome-message {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .page-login .login-container {
    padding-top: 1.25rem;
  }

  .global-login-background::before {
    background-size: 64px 64px, 64px 64px;
    opacity: 0.46;
    mask-image: none;
  }

  .global-login-background::after {
    display: none;
  }

  .circle {
    filter: blur(38px);
    animation: none;
    opacity: 0.28;
  }

  .login-logo .logo-img {
    width: clamp(134px, 40vw, 172px);
  }

  .login-brand-copy {
    padding: 0.82rem 0.9rem;
  }

  .login-brand-copy h2 {
    font-size: 0.98rem;
  }

  .login-box {
    padding: 1.7rem 1.15rem 1.4rem;
    border-radius: 18px;
    backdrop-filter: none;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  }

  .login-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
  }

  .login-box h1 {
    font-size: 1.45rem;
  }

  .form-login input {
    padding: 0.75rem 0.82rem;
    font-size: 0.94rem;
  }

  .form-login .btn {
    padding: 0.84rem;
    font-size: 0.98rem;
  }

  .login-help-text {
    font-size: 0.72rem;
  }

  .welcome-card {
    padding: 1.75rem 2rem;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.48);
  }

  .welcome-greeting {
    font-size: 1.75rem;
  }

  .welcome-user {
    font-size: 1.15rem;
  }

  .welcome-message {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
  }
}

@media (max-width: 640px) {
  .web-login-splash-chips {
    display: none;
  }
}
/* Modal de Acesso Negado */
.access-denied-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeInOverlay 0.4s ease-out;
}

.access-denied-card {
  background: linear-gradient(135deg, #1a1f35 0%, #0f1420 100%);
  border: 2px solid rgba(227, 30, 36, 0.5);
  border-radius: 20px;
  padding: 3rem 3.5rem;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 100px rgba(227, 30, 36, 0.3);
  max-width: 500px;
  width: 90%;
  position: relative;
  overflow: hidden;
  animation: scaleInCard 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.access-denied-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--jr-red), var(--jr-red-dark));
}

.access-denied-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(227, 30, 36, 0.1) 0%, transparent 70%);
  animation: rotateGlow 8s linear infinite;
  pointer-events: none;
}

.access-denied-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--jr-red), var(--jr-red-dark));
  border-radius: 50%;
  color: white;
  animation: pulse 2s infinite;
  box-shadow: 0 10px 30px rgba(227, 30, 36, 0.4);
  position: relative;
  z-index: 1;
}

.access-denied-card h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1rem;
  background: linear-gradient(135deg, var(--jr-red), var(--jr-red-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
}

.access-denied-card p {
  font-size: 1.1rem;
  color: var(--text);
  margin: 0.5rem 0;
  position: relative;
  z-index: 1;
}

.access-denied-card .contact-message {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--jr-red);
  margin: 1.5rem 0 2rem;
}

.access-denied-card .btn {
  margin-top: 1rem;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

/* Modal de Senha de Admin - Versão Azul (para páginas PHP) */
.admin-password-card {
  background: linear-gradient(135deg, #1e2640 0%, #151b2e 100%);
  border: 2px solid rgba(59, 130, 246, 0.4);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 100px rgba(59, 130, 246, 0.15);
  max-width: 420px;
  width: 90%;
  position: relative;
  overflow: hidden;
  animation: scaleInCard 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.admin-password-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-radius: 50%;
  color: white;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
  position: relative;
  z-index: 1;
}

.admin-password-icon svg {
  width: 36px;
  height: 36px;
  stroke: white;
  stroke-width: 2.5;
}

.admin-password-card h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--text);
  position: relative;
  z-index: 1;
  letter-spacing: -0.02em;
}

.admin-password-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
  position: relative;
  z-index: 1;
  line-height: 1.5;
}

.admin-password-card form {
  position: relative;
  z-index: 1;
}

.admin-password-card input[type="password"] {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--field-bg);
  border: 2px solid var(--field-border-strong);
  border-radius: 10px;
  color: var(--field-text);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
  box-shadow: var(--field-shadow);
}

.admin-password-card input[type="password"]::placeholder {
  color: var(--field-placeholder);
  opacity: 0.6;
}

.admin-password-card input[type="password"]:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.admin-password-card .btn-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  border: none;
  padding: 0.875rem 1.25rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.admin-password-card .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.4);
}

.admin-password-card .btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--field-border-strong);
  padding: 0.875rem 1.25rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.admin-password-card .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #3a4360;
}

:root:not([data-theme="dark"]) .admin-password-card {
  background: linear-gradient(160deg, rgba(246, 250, 253, 0.96), rgba(227, 238, 248, 0.94));
  border: 1px solid rgba(89, 124, 164, 0.26);
  box-shadow: 0 18px 42px rgba(25, 54, 86, 0.1);
}

:root:not([data-theme="dark"]) .admin-password-card .btn-secondary {
  background: rgba(232, 240, 247, 0.92);
}

:root:not([data-theme="dark"]) .admin-password-card .btn-secondary:hover {
  background: rgba(219, 230, 242, 0.98);
  border-color: rgba(43, 123, 189, 0.28);
}

/* Seções de Configuração */
.config-section {
  margin-bottom: 2.5rem;
}

.config-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  background: linear-gradient(135deg, var(--jr-blue), var(--jr-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.config-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 1rem;
}

.config-section > p.muted {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.config-section .form-group {
  margin-bottom: 1.25rem;
}

.config-section .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.config-section .form-group input[type="text"],
.config-section .form-group input[type="file"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.config-section .form-group input[type="text"]:focus {
  outline: none;
  border-color: var(--jr-blue);
  box-shadow: 0 0 0 4px rgba(43, 123, 189, 0.15);
}

.config-section .form-group input[type="text"]::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

.config-section .form-group .muted {
  margin-top: 0.35rem;
  font-size: 0.85rem;
}

.config-section hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

.login-methods-form {
  max-width: 760px;
}

.login-methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.login-method-option {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(74, 85, 120, 0.45);
  border-radius: 12px;
  background: rgba(17, 23, 41, 0.55);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.login-method-option:hover {
  border-color: rgba(74, 165, 239, 0.6);
  background: rgba(27, 36, 62, 0.7);
  transform: translateY(-1px);
}

:root:not([data-theme="dark"]) .login-method-option {
  border-color: rgba(107, 141, 179, 0.32);
  background: linear-gradient(165deg, rgba(243, 248, 252, 0.96), rgba(223, 235, 247, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66), 0 6px 18px rgba(22, 47, 78, 0.07);
}

:root:not([data-theme="dark"]) .login-method-option:hover {
  border-color: rgba(43, 123, 189, 0.4);
  background: linear-gradient(165deg, rgba(239, 246, 252, 0.98), rgba(214, 228, 242, 0.94));
}

.login-method-option input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 16px;
  height: 16px;
  accent-color: var(--jr-blue);
}

.login-method-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(74, 165, 239, 0.5);
  background: rgba(43, 123, 189, 0.2);
  color: #d9ebff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

:root:not([data-theme="dark"]) .login-method-icon {
  border-color: rgba(88, 129, 175, 0.34);
  background: rgba(43, 123, 189, 0.1);
  color: #2f628f;
}

.login-method-icon svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-method-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.login-method-title {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
}

.login-method-desc {
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.3;
}

.login-methods-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.login-methods-footer .muted {
  margin: 0;
  max-width: 470px;
}

.acoes-gear-btn {
  width: 38px;
  height: 34px;
  border: 1px solid rgba(74, 85, 120, 0.6);
  border-radius: 10px;
  background: rgba(17, 23, 41, 0.65);
  color: #d9e3ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.acoes-gear-btn:hover {
  border-color: rgba(74, 165, 239, 0.75);
  background: rgba(43, 123, 189, 0.2);
  transform: translateY(-1px);
}

.acoes-gear-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.acoes-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 11, 20, 0.78);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10010;
  padding: 1rem;
}

.acoes-modal-overlay.show {
  display: flex;
}

.acoes-modal-card {
  width: min(560px, 96vw);
  background: linear-gradient(135deg, #1a2138 0%, #101624 100%);
  border: 1px solid rgba(74, 85, 120, 0.55);
  border-radius: 16px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6);
  padding: 1.25rem;
}

.acoes-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.acoes-modal-header h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.15rem;
}

.acoes-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(74, 85, 120, 0.55);
  background: rgba(16, 22, 36, 0.85);
  color: #d9e3ff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.acoes-modal-close:hover {
  border-color: rgba(227, 30, 36, 0.6);
  color: #ffffff;
}

.acoes-modal-subtitle {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.acoes-modal-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.7rem;
}

.acoes-modal-btn {
  border: 1px solid rgba(74, 85, 120, 0.55);
  background: rgba(17, 23, 41, 0.72);
  color: #dce7ff;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  text-align: center;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.acoes-modal-btn:hover {
  border-color: rgba(74, 165, 239, 0.7);
  background: rgba(43, 123, 189, 0.22);
}

.acoes-modal-btn.danger {
  border-color: rgba(227, 30, 36, 0.55);
  color: #ffd7d8;
  background: rgba(227, 30, 36, 0.14);
}

.acoes-modal-btn.danger:hover {
  border-color: rgba(227, 30, 36, 0.9);
  background: rgba(227, 30, 36, 0.25);
}

.modal-edicao-funcionario {
  width: min(660px, 96vw);
}

.acoes-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Responsividade do modal de acesso negado */
@media (max-width: 768px) {
  .access-denied-card {
    padding: 2.5rem 2.5rem;
    width: 95%;
  }
  
  .access-denied-icon {
    width: 70px;
    height: 70px;
  }
  
  .access-denied-icon svg {
    width: 70px;
    height: 70px;
  }
  
  .access-denied-card h1 {
    font-size: 1.75rem;
  }
  
  .access-denied-card p {
    font-size: 1rem;
  }
  
  .access-denied-card .contact-message {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .access-denied-card {
    padding: 2rem 1.75rem;
  }
  
  .access-denied-icon {
    width: 60px;
    height: 60px;
  }
  
  .access-denied-icon svg {
    width: 60px;
    height: 60px;
  }
  
  .access-denied-card h1 {
    font-size: 1.5rem;
  }
  
  .access-denied-card p {
    font-size: 0.95rem;
  }
  
  .access-denied-card .contact-message {
    font-size: 1rem;
    margin: 1.25rem 0 1.75rem;
  }
  
  .access-denied-card .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }
}

/* Botões de ação nas tabelas */
.table-wrap table td form {
  display: inline-block;
  margin: 0;
}

.table-wrap table td .btn {
  white-space: nowrap;
  transition: all 0.2s ease;
}

.table-wrap table td .btn:hover {
  transform: translateY(-2px);
}

/* Melhorias nos inputs de formulário */
.form-group input[type="date"] {
  width: 100%;
  max-width: 400px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
}

.form-group input[type="date"]:focus {
  outline: none;
  border-color: var(--jr-blue);
  box-shadow: 0 0 0 3px rgba(43, 123, 189, 0.15);
}

/* Melhorar visibilidade de inputs tipo time e number */
:root[data-theme="dark"] input[type="time"],
:root[data-theme="dark"] input[type="number"],
:root[data-theme="dark"] input[type="date"] {
  color-scheme: dark;
}

:root:not([data-theme="dark"]) .acoes-gear-btn {
  border-color: rgba(112, 147, 188, 0.36);
  background: linear-gradient(165deg, rgba(240, 246, 252, 0.98), rgba(218, 231, 244, 0.94));
  color: #325b83;
  box-shadow: 0 6px 16px rgba(21, 47, 79, 0.08);
}

:root:not([data-theme="dark"]) .acoes-gear-btn:hover {
  border-color: rgba(43, 123, 189, 0.48);
  background: linear-gradient(165deg, rgba(235, 243, 250, 0.98), rgba(206, 222, 239, 0.95));
}

:root[data-theme="dark"] input[type="time"]::-webkit-calendar-picker-indicator,
:root[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

/* Garantir que o texto seja sempre visível */
input[type="time"]::-webkit-datetime-edit-text,
input[type="time"]::-webkit-datetime-edit-hour-field,
input[type="time"]::-webkit-datetime-edit-minute-field {
  color: var(--field-text);
}

:root[data-theme="dark"] input[type="number"]::-webkit-inner-spin-button,
:root[data-theme="dark"] input[type="number"]::-webkit-outer-spin-button {
  opacity: 1;
  filter: invert(1);
}

:root:not([data-theme="dark"]) input[type="time"],
:root:not([data-theme="dark"]) input[type="number"],
:root:not([data-theme="dark"]) input[type="date"],
:root:not([data-theme="dark"]) select {
  color-scheme: light;
}

:root:not([data-theme="dark"]) input[type="time"]::-webkit-calendar-picker-indicator,
:root:not([data-theme="dark"]) input[type="date"]::-webkit-calendar-picker-indicator {
  filter: none;
  opacity: 0.72;
  cursor: pointer;
}

:root:not([data-theme="dark"]) input[type="number"]::-webkit-inner-spin-button,
:root:not([data-theme="dark"]) input[type="number"]::-webkit-outer-spin-button {
  opacity: 1;
  filter: none;
}

/* Badges de status */
.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Avisos importantes */
.warning-box {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(227, 30, 36, 0.1);
  border: 2px solid rgba(227, 30, 36, 0.3);
  border-radius: 12px;
}

.warning-box h3 {
  margin-top: 0;
  color: var(--jr-red);
}

.warning-box p {
  color: var(--text);
  margin: 0;
}

.warning-box ul {
  color: var(--muted);
  margin: 0.5rem 0 0 1.5rem;
}

/* Boxes informativos com fundo claro - texto escuro */
div[style*="background: #e3f2fd"],
div[style*="background:#e3f2fd"],
.info-box-light {
  color: #1a1a1a !important;
}

div[style*="background: #e3f2fd"] strong,
div[style*="background:#e3f2fd"] strong,
.info-box-light strong {
  color: #1565c0 !important;
}

div[style*="background: #e3f2fd"] ul,
div[style*="background:#e3f2fd"] ul,
div[style*="background: #e3f2fd"] li,
div[style*="background:#e3f2fd"] li,
.info-box-light ul,
.info-box-light li {
  color: #424242 !important;
}

/* Botão Dashboard para RH */
.ponto-container a[href*="dashboard"]:hover {
  background: linear-gradient(135deg, rgba(43, 123, 189, 0.25), rgba(43, 123, 189, 0.1)) !important;
  border-color: var(--jr-blue) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(43, 123, 189, 0.3);
}

.ponto-container a[href*="dashboard"] svg {
  transition: transform 0.3s ease;
}

.ponto-container a[href*="dashboard"]:hover svg {
  transform: scale(1.1);
}

/* Banco de Horas - Resumo na tela de ponto */
.banco-horas-resumo {
  margin-top: 0.8rem;
  margin-bottom: 0.85rem;
}

.banco-horas-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  align-items: stretch;
  gap: 0.7rem;
  padding: 0.95rem 1rem;
  background: linear-gradient(135deg, var(--surface), rgba(21, 27, 46, 0.8));
  border: 2px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  max-width: 100%;
  overflow: visible;
}

.banco-horas-card:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
  border-color: rgba(43, 123, 189, 0.4);
}

.banco-horas-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: 0.55rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(8, 14, 30, 0.35);
}

.banco-horas-icone {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.banco-horas-item.positivo .banco-horas-icone {
  background: linear-gradient(135deg, var(--entrada), #16a34a);
  color: white;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.3);
}

.banco-horas-item.positivo-destaque .banco-horas-icone {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.banco-horas-item.negativo .banco-horas-icone {
  background: linear-gradient(135deg, var(--jr-red), var(--jr-red-dark));
  color: white;
  box-shadow: 0 6px 20px rgba(227, 30, 36, 0.3);
}

.banco-horas-item.saldo .banco-horas-icone {
  background: linear-gradient(135deg, var(--jr-blue), var(--jr-blue-dark));
  color: white;
  box-shadow: 0 6px 20px rgba(43, 123, 189, 0.3);
}

.banco-horas-item.saldo.negativo .banco-horas-icone {
  background: linear-gradient(135deg, var(--intervalo), #d97706);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
}

.banco-horas-info {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
  flex: 1;
}

.banco-horas-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22px;
  color: var(--muted);
  white-space: normal;
  line-height: 1.2;
}

.banco-horas-valor {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}

.banco-horas-item.positivo .banco-horas-valor {
  color: var(--entrada);
}

.banco-horas-item.positivo-destaque .banco-horas-valor {
  color: #3b82f6;
  font-weight: 800;
}

.banco-horas-item.negativo .banco-horas-valor {
  color: var(--jr-red);
}

.banco-horas-item.saldo .banco-horas-valor {
  color: var(--jr-blue);
}

.banco-horas-item.saldo.negativo .banco-horas-valor {
  color: var(--intervalo);
}

.banco-horas-divisor {
  display: none;
}

/* Responsividade do banco de horas */
@media (max-width: 768px) {
  .banco-horas-resumo {
    margin-top: 0.65rem;
    margin-bottom: 0.75rem;
  }

  .banco-horas-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    padding: 0.95rem;
  }
  
  .banco-horas-item {
    width: 100%;
    justify-content: flex-start;
  }
  
  .banco-horas-icone {
    width: 32px;
    height: 32px;
  }
  
  .banco-horas-icone svg {
    width: 19px;
    height: 19px;
  }
  
  .banco-horas-label {
    font-size: 0.68rem;
  }
  
  .banco-horas-valor {
    font-size: 0.96rem;
  }
}

@media (max-width: 560px) {
  .banco-horas-card {
    grid-template-columns: 1fr;
    padding: 0.9rem;
    gap: 0.6rem;
  }
  
  .banco-horas-item {
    gap: 0.55rem;
    padding: 0.52rem 0.56rem;
  }
  
  .banco-horas-icone {
    width: 30px;
    height: 30px;
  }
  
  .banco-horas-icone svg {
    width: 18px;
    height: 18px;
  }
  
  .banco-horas-label {
    font-size: 0.66rem;
  }
  
  .banco-horas-valor {
    font-size: 0.94rem;
  }
}

/* Animação de entrada do banco de horas */
@keyframes slideInBanco {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.banco-horas-resumo {
  animation: none;
}

/* Modal de Senha de Admin - Exatamente como a segunda imagem */
.modal-senha-admin {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(10px);
  z-index: 10000;
  animation: fadeIn 0.3s ease-out;
}

.modal-senha-admin.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-senha-content {
  background: linear-gradient(135deg, #1e2640 0%, #151b2e 100%);
  border: 2px solid rgba(43, 123, 189, 0.4);
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 100px rgba(43, 123, 189, 0.15);
  animation: slideUp 0.4s ease-out;
  position: relative;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-senha-header {
  text-align: center;
  margin-bottom: 2rem;
}

.modal-senha-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.modal-senha-icon svg {
  width: 36px;
  height: 36px;
  stroke: white;
  stroke-width: 2.5;
}

.modal-senha-header h2 {
  margin: 0 0 0.75rem 0;
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.modal-senha-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.modal-senha-body {
  margin-bottom: 2rem;
}

.modal-senha-input-group {
  position: relative;
  margin-bottom: 0;
}

.modal-senha-input-group label {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--text);
  font-weight: 600;
  font-size: 0.875rem;
}

.modal-senha-input-group input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--field-bg);
  border: 2px solid var(--field-border-strong);
  border-radius: 10px;
  color: var(--field-text);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: var(--field-shadow);
}

.modal-senha-input-group input::placeholder {
  color: var(--field-placeholder);
  opacity: 0.6;
}

.modal-senha-input-group input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.modal-senha-error {
  display: none;
  background: rgba(227, 30, 36, 0.1);
  border: 1px solid var(--jr-red);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  color: var(--jr-red);
  font-size: 0.9rem;
  animation: shake 0.5s ease-out;
}

.modal-senha-error.show {
  display: block;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

.modal-senha-footer {
  display: flex;
  gap: 0.75rem;
}

.modal-senha-footer button {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-senha-btn-cancelar {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--field-border-strong);
  order: 1;
}

.modal-senha-btn-cancelar:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #3a4360;
}

.modal-senha-btn-confirmar {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  order: 2;
}

.modal-senha-btn-confirmar:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.4);
}

:root:not([data-theme="dark"]) .modal-senha-content {
  background: linear-gradient(160deg, rgba(246, 250, 253, 0.96), rgba(227, 238, 248, 0.94));
  border: 1px solid rgba(89, 124, 164, 0.26);
  box-shadow: 0 18px 42px rgba(25, 54, 86, 0.1);
}

:root:not([data-theme="dark"]) .modal-senha-btn-cancelar {
  background: rgba(232, 240, 247, 0.92);
}

:root:not([data-theme="dark"]) .modal-senha-btn-cancelar:hover {
  background: rgba(219, 230, 242, 0.98);
  border-color: rgba(43, 123, 189, 0.28);
}

.modal-senha-btn-confirmar:active {
  transform: translateY(0);
}

.modal-senha-btn-confirmar:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Botões de Hora Extra - Destaque Visual */
.btn-ponto-novo.hora-extra {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.1));
  border: 2px solid rgba(255, 215, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.btn-ponto-novo.hora-extra::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.1), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.btn-ponto-novo.hora-extra.ativo {
  border-color: rgba(255, 215, 0, 0.8);
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.3), 0 0 50px rgba(255, 215, 0, 0.1);
}

.btn-ponto-novo.hora-extra.ativo:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(255, 215, 0, 0.4), 0 0 60px rgba(255, 215, 0, 0.2);
}

.btn-ponto-novo.hora-extra .btn-titulo {
  background: linear-gradient(135deg, #ffd700, #ffa500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

/* Indicador de Atraso */
.atraso-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(227, 30, 36, 0.15);
  border: 1px solid var(--jr-red);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  color: var(--jr-red);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.5rem;
  animation: pulseRed 2s infinite;
}

@keyframes pulseRed {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(227, 30, 36, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(227, 30, 36, 0);
  }
}

.atraso-badge svg {
  width: 18px;
  height: 18px;
}

/* Responsividade do Modal */
@media (max-width: 768px) {
  .modal-senha-content {
    padding: 2rem;
    max-width: 95%;
  }
  
  .modal-senha-header h2 {
    font-size: 1.5rem;
  }
  
  .modal-senha-icon {
    width: 70px;
    height: 70px;
  }
  
  .modal-senha-icon svg {
    width: 35px;
    height: 35px;
  }
  
  /* Ajustes para página de IPs no mobile */
  .ips-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  .ips-card {
    padding: 0.78rem !important;
  }

  .ips-lista-scroll table {
    min-width: 100% !important;
  }

  #modalIpsCadastrados > div {
    width: min(96vw, 96vw) !important;
    padding: 0.78rem !important;
  }

  .btn-excluir-ip {
    padding: 0.35rem 0.6rem !important;
    font-size: 0.8rem !important;
  }
  
  .btn-excluir-ip svg {
    width: 14px !important;
    height: 14px !important;
  }
  
  /* Modal de confirmação de exclusão no mobile */
  #modalConfirmarExclusao > div {
    max-width: 95% !important;
    padding: 1.5rem !important;
  }
  
  #modalConfirmarExclusao h2 {
    font-size: 1.3rem !important;
  }
  
  #modalConfirmarExclusao .btn {
    padding: 0.7rem 1rem !important;
    font-size: 0.9rem !important;
  }
}


/* Modal de Restrição de Local - Elegante e Profissional */
.modal-restricao-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease-out;
}

.modal-restricao-overlay.show {
  display: flex;
}

.modal-restricao-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  max-width: 500px;
  width: 100%;
  padding: 0;
  animation: slideUp 0.4s ease-out;
  overflow: hidden;
  border: 3px solid var(--jr-blue);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-restricao-icon {
  background: linear-gradient(135deg, var(--jr-blue) 0%, var(--jr-blue-dark) 100%);
  padding: 30px;
  text-align: center;
}

.modal-restricao-icon svg {
  width: 80px;
  height: 80px;
  stroke: white;
  stroke-width: 2;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

.modal-restricao-body {
  padding: 30px;
  text-align: center;
}

.modal-restricao-body h2 {
  margin: 0 0 20px;
  color: var(--jr-blue);
  font-size: 1.8rem;
  font-weight: 700;
}

.modal-restricao-mensagem {
  color: #333;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 0;
}

.modal-restricao-mensagem .saudacao {
  display: block;
  font-weight: 600;
  color: var(--jr-blue);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.modal-restricao-mensagem .empresa {
  color: var(--jr-red);
  font-weight: 700;
  font-size: 1.15rem;
}

.modal-restricao-mensagem .setor {
  color: var(--jr-blue);
  font-weight: 600;
}

.modal-restricao-mensagem .despedida {
  display: block;
  margin-top: 20px;
  font-style: italic;
  color: #666;
}

.modal-restricao-btn {
  width: calc(100% - 60px);
  margin: 0 30px 30px;
  padding: 15px;
  background: linear-gradient(135deg, var(--jr-blue) 0%, var(--jr-blue-dark) 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(43, 123, 189, 0.3);
}

.modal-restricao-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(43, 123, 189, 0.4);
  background: linear-gradient(135deg, var(--jr-blue-light) 0%, var(--jr-blue) 100%);
}

.modal-restricao-btn:active {
  transform: translateY(0);
}

/* Responsividade para mobile */
@media (max-width: 600px) {
  .modal-restricao-content {
    max-width: 95%;
    border-radius: 15px;
  }
  
  .modal-restricao-icon {
    padding: 20px;
  }
  
  .modal-restricao-icon svg {
    width: 60px;
    height: 60px;
  }
  
  .modal-restricao-body {
    padding: 20px;
  }
  
  .modal-restricao-body h2 {
    font-size: 1.5rem;
  }
  
  .modal-restricao-mensagem {
    font-size: 1rem;
  }
  
  .modal-restricao-mensagem .saudacao {
    font-size: 1.1rem;
  }
  
  .modal-restricao-mensagem .empresa {
    font-size: 1.05rem;
  }
  
  .modal-restricao-btn {
    font-size: 1rem;
    padding: 12px;
  }
}

/* Rodape Global */
.site-footer {
  margin-top: 1.1rem;
  padding: 0.7rem 0.65rem 0.8rem;
}

.site-footer-inner {
  width: fit-content;
  max-width: min(100%, 640px);
  margin: 0 auto;
  padding: 0.56rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.3;
}

.site-footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.22rem;
  height: 1.22rem;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(43, 123, 189, 0.14);
  border: 1px solid rgba(43, 123, 189, 0.3);
  flex: 0 0 auto;
}

.site-footer-icon svg {
  width: 0.72rem;
  height: 0.72rem;
  stroke: currentColor;
  stroke-width: 2;
}

.site-footer-text {
  opacity: 0.95;
}

.site-footer-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.72rem;
  border-bottom: 1px dashed rgba(43, 123, 189, 0.5);
  transition: all 0.2s ease;
}

.site-footer-link:hover,
.site-footer-link:focus-visible {
  color: var(--primary-hover);
  border-bottom-color: var(--primary-hover);
}

.site-footer-admin {
  margin-top: auto;
}

/* Rodape da tela de login na mesma largura do container de login (desktop) */
@media (min-width: 1025px) {
  .page-login .login-container {
    min-height: calc(100vh - 96px);
    padding-top: 4.1rem;
    padding-bottom: 0.2rem;
  }

  .login-container ~ .site-footer {
    margin-top: 0.05rem;
    padding-top: 0;
    padding-bottom: 0.55rem;
  }

  .login-container ~ .site-footer .site-footer-inner {
    max-width: 318px;
    width: 318px;
    transform: translateX(231px);
    padding: 0.42rem 0.54rem;
    font-size: 0.64rem;
    line-height: 1.18;
    gap: 0.3rem;
    border-radius: 12px;
  }

  .login-container ~ .site-footer .site-footer-icon {
    width: 0.98rem;
    height: 0.98rem;
  }

  .login-container ~ .site-footer .site-footer-icon svg {
    width: 0.56rem;
    height: 0.56rem;
  }

  .login-container ~ .site-footer .site-footer-link {
    font-size: 0.66rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .page-login .login-container {
    min-height: calc(100vh - 90px);
    padding-top: 4rem;
    padding-bottom: 0.2rem;
  }

  .login-container ~ .site-footer {
    margin-top: 0.05rem;
    padding-top: 0;
    padding-bottom: 0.5rem;
  }

  .login-container ~ .site-footer .site-footer-inner {
    max-width: 318px;
    width: 318px;
    transform: translateX(201px);
    padding: 0.42rem 0.52rem;
    font-size: 0.62rem;
    line-height: 1.16;
    gap: 0.3rem;
    border-radius: 12px;
  }

  .login-container ~ .site-footer .site-footer-icon {
    width: 0.94rem;
    height: 0.94rem;
  }

  .login-container ~ .site-footer .site-footer-icon svg {
    width: 0.54rem;
    height: 0.54rem;
  }

  .login-container ~ .site-footer .site-footer-link {
    font-size: 0.64rem;
  }
}

:root:not([data-theme="dark"]) .site-footer-inner {
  background: linear-gradient(160deg, rgba(251, 254, 255, 0.96), rgba(230, 241, 255, 0.9));
  border-color: rgba(99, 135, 177, 0.3);
  box-shadow: 0 8px 24px rgba(20, 47, 78, 0.08);
}

:root:not([data-theme="dark"]) .site-footer-icon {
  background: rgba(43, 123, 189, 0.12);
  border-color: rgba(43, 123, 189, 0.24);
}

:root[data-theme="dark"] .site-footer-inner {
  box-shadow: 0 10px 26px rgba(2, 7, 17, 0.45);
}

:root[data-theme="dark"] .site-footer-icon {
  background: rgba(90, 148, 224, 0.16);
  border-color: rgba(90, 148, 224, 0.35);
}

@media (max-width: 768px) {
  .site-footer {
    margin-top: 0.9rem;
    padding: 0.58rem 0.55rem 0.68rem;
  }

  .site-footer-inner {
    width: fit-content;
    max-width: min(100%, 520px);
    font-size: 0.68rem;
    padding: 0.54rem 0.62rem;
    border-radius: 12px;
    gap: 0.38rem;
  }

  .site-footer-icon {
    width: 1.06rem;
    height: 1.06rem;
  }

  .site-footer-icon svg {
    width: 0.62rem;
    height: 0.62rem;
  }

  .site-footer-link {
    font-size: 0.68rem;
  }
}

/* Atualizacao de sistema (Web + Desktop) */
.update-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(4, 16, 36, 0.72);
  backdrop-filter: blur(7px);
}

.update-modal-overlay.show {
  display: flex;
}

.update-modal-card {
  width: min(94vw, 530px);
  border-radius: 18px;
  border: 1px solid rgba(71, 154, 236, 0.34);
  background:
    radial-gradient(circle at 0% 0%, rgba(48, 132, 224, 0.2), transparent 46%),
    linear-gradient(160deg, #071735, #0a2348);
  box-shadow:
    0 22px 44px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(147, 204, 255, 0.24);
  color: #e6f0ff;
  overflow: hidden;
}

.update-modal-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem 0.85rem;
  border-bottom: 1px solid rgba(88, 166, 255, 0.22);
}

.update-modal-badge {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, rgba(25, 188, 252, 0.34), rgba(64, 120, 255, 0.22));
  border: 1px solid rgba(106, 185, 255, 0.45);
  color: #d8ecff;
  box-shadow: inset 0 0 16px rgba(107, 206, 255, 0.24);
  flex: 0 0 auto;
}

.update-modal-badge svg {
  width: 1.1rem;
  height: 1.1rem;
  stroke: currentColor;
  stroke-width: 2;
}

.update-modal-title-wrap {
  min-width: 0;
}

.update-modal-title {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0.2px;
  color: #f3f8ff;
}

.update-modal-subtitle {
  margin: 0.2rem 0 0;
  font-size: 0.86rem;
  color: rgba(225, 237, 255, 0.82);
}

.update-modal-body {
  padding: 1rem 1.1rem 0.95rem;
}

.update-modal-message {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.48;
  color: rgba(239, 247, 255, 0.95);
}

.update-modal-status {
  margin-top: 0.72rem;
  font-size: 0.83rem;
  color: rgba(193, 227, 255, 0.95);
  min-height: 1.2rem;
}

.update-modal-progress {
  margin-top: 0.6rem;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(122, 170, 226, 0.2);
  overflow: hidden;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.update-modal-card.is-busy .update-modal-progress {
  opacity: 1;
  transform: translateY(0);
}

.update-modal-progress::before {
  content: "";
  display: block;
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3ecbff, #4f84ff);
  animation: updateProgressMove 1.25s linear infinite;
}

.update-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.58rem;
  padding: 0.95rem 1.1rem 1.05rem;
  border-top: 1px solid rgba(88, 166, 255, 0.2);
  background: linear-gradient(180deg, rgba(8, 24, 53, 0), rgba(8, 24, 53, 0.38));
}

.update-modal-btn {
  border: 1px solid rgba(123, 175, 236, 0.35);
  border-radius: 11px;
  padding: 0.6rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: transform 0.16s ease, filter 0.16s ease, background 0.16s ease;
}

.update-modal-btn:active {
  transform: translateY(1px);
}

.update-modal-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.update-modal-btn-secondary {
  background: rgba(95, 124, 164, 0.2);
  color: #d8e9ff;
}

.update-modal-btn-secondary:hover {
  filter: brightness(1.08);
}

.update-modal-btn-primary {
  background: linear-gradient(135deg, #1ca5ff, #2f6dff);
  color: #fff;
  border-color: rgba(124, 192, 255, 0.45);
  box-shadow: 0 10px 22px rgba(31, 120, 255, 0.3);
}

.update-modal-btn-primary:hover {
  filter: brightness(1.08);
}

.update-toast {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.update-toast.show {
  opacity: 1;
  pointer-events: auto;
}

.update-toast.is-hiding {
  opacity: 0;
  pointer-events: none;
}

.update-toast-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 16, 36, 0.54);
  backdrop-filter: blur(8px);
}

.update-toast-card {
  position: relative;
  width: min(92vw, 410px);
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 1.05rem;
  border-radius: 20px;
  border: 1px solid rgba(102, 208, 255, 0.28);
  background:
    radial-gradient(circle at top left, rgba(49, 145, 229, 0.24), transparent 42%),
    linear-gradient(155deg, #071b39, #091e3f);
  color: #e8f5ff;
  box-shadow:
    0 24px 52px rgba(2, 15, 34, 0.46),
    inset 0 1px 0 rgba(164, 211, 255, 0.18);
  transform: translateY(18px) scale(0.96);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.update-toast.show .update-toast-card {
  transform: translateY(0) scale(1);
}

.update-toast.is-hiding .update-toast-card {
  transform: translateY(12px) scale(0.98);
}

.update-toast-icon {
  width: 3.1rem;
  height: 3.1rem;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #f4fbff;
  background: linear-gradient(140deg, rgba(32, 206, 171, 0.34), rgba(36, 110, 255, 0.28));
  border: 1px solid rgba(118, 220, 255, 0.3);
  box-shadow: inset 0 0 18px rgba(123, 223, 255, 0.16);
}

.update-toast-icon svg {
  width: 1.45rem;
  height: 1.45rem;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.update-toast-copy {
  min-width: 0;
  padding-top: 0.08rem;
}

.update-toast-title {
  display: block;
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #f4f9ff;
}

.update-toast-message {
  margin: 0.32rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(228, 239, 255, 0.9);
}

.update-toast.update-toast-success .update-toast-card {
  border-color: rgba(80, 221, 180, 0.34);
  background:
    radial-gradient(circle at top left, rgba(55, 190, 157, 0.22), transparent 40%),
    linear-gradient(155deg, #071b39, #0a2140);
}

.update-toast.update-toast-success .update-toast-icon {
  background: linear-gradient(140deg, rgba(30, 192, 149, 0.38), rgba(40, 122, 255, 0.24));
  border-color: rgba(121, 234, 203, 0.28);
}

.update-toast.update-toast-error .update-toast-card {
  border-color: rgba(255, 125, 125, 0.3);
  background:
    radial-gradient(circle at top left, rgba(255, 117, 117, 0.18), transparent 38%),
    linear-gradient(155deg, #31101b, #24182b);
}

.update-toast.update-toast-error .update-toast-icon {
  background: linear-gradient(140deg, rgba(255, 116, 116, 0.34), rgba(255, 177, 66, 0.2));
  border-color: rgba(255, 173, 173, 0.26);
}

@keyframes updateProgressMove {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(290%);
  }
}

@media (max-width: 768px) {
  .update-modal-card {
    width: min(96vw, 430px);
    border-radius: 16px;
  }

  .update-modal-head {
    padding: 0.92rem 0.92rem 0.74rem;
  }

  .update-modal-badge {
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
  }

  .update-modal-title {
    font-size: 1rem;
  }

  .update-modal-subtitle {
    font-size: 0.8rem;
  }

  .update-modal-body {
    padding: 0.88rem 0.92rem 0.82rem;
  }

  .update-modal-message {
    font-size: 0.9rem;
  }

  .update-modal-actions {
    padding: 0.82rem 0.92rem 0.88rem;
    flex-direction: column-reverse;
  }

  .update-modal-btn {
    width: 100%;
    padding: 0.66rem 0.82rem;
    font-size: 0.84rem;
  }

  .update-toast {
    padding: 0.9rem;
  }

  .update-toast-card {
    width: min(94vw, 360px);
    gap: 0.78rem;
    padding: 0.92rem 0.9rem;
    border-radius: 18px;
  }

  .update-toast-icon {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 14px;
  }

  .update-toast-title {
    font-size: 0.94rem;
  }

  .update-toast-message {
    font-size: 0.88rem;
  }
}

:root:not([data-theme="dark"]) .update-modal-overlay {
  background: rgba(16, 30, 51, 0.45);
}

:root:not([data-theme="dark"]) .update-modal-card {
  background:
    radial-gradient(circle at 0% 0%, rgba(118, 185, 255, 0.18), transparent 46%),
    linear-gradient(160deg, #f7fbff, #ecf4ff);
  color: #13365f;
  border-color: rgba(68, 137, 212, 0.34);
  box-shadow:
    0 22px 44px rgba(15, 39, 70, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

:root:not([data-theme="dark"]) .update-modal-head {
  border-bottom-color: rgba(88, 138, 194, 0.2);
}

:root:not([data-theme="dark"]) .update-modal-title {
  color: #16345a;
}

:root:not([data-theme="dark"]) .update-modal-subtitle,
:root:not([data-theme="dark"]) .update-modal-message,
:root:not([data-theme="dark"]) .update-modal-status {
  color: rgba(22, 52, 90, 0.88);
}

:root:not([data-theme="dark"]) .update-modal-actions {
  border-top-color: rgba(88, 138, 194, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(228, 238, 252, 0.5));
}

:root:not([data-theme="dark"]) .update-modal-btn-secondary {
  background: rgba(158, 185, 217, 0.22);
  color: #16345a;
  border-color: rgba(105, 148, 199, 0.3);
}

:root:not([data-theme="dark"]) .update-modal-btn-primary {
  color: #ffffff;
}

:root:not([data-theme="dark"]) .update-toast {
  color: #17375e;
}

:root:not([data-theme="dark"]) .update-toast-backdrop {
  background: rgba(16, 30, 51, 0.34);
}

:root:not([data-theme="dark"]) .update-toast-card {
  border-color: rgba(88, 138, 194, 0.28);
  background:
    radial-gradient(circle at top left, rgba(124, 189, 255, 0.18), transparent 40%),
    linear-gradient(155deg, #f7fbff, #eaf2ff);
  color: #17375e;
  box-shadow:
    0 22px 42px rgba(18, 46, 81, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

:root:not([data-theme="dark"]) .update-toast-title {
  color: #18385f;
}

:root:not([data-theme="dark"]) .update-toast-message {
  color: rgba(23, 55, 94, 0.86);
}

:root:not([data-theme="dark"]) .update-toast.update-toast-success .update-toast-card {
  border-color: rgba(73, 177, 138, 0.26);
  background:
    radial-gradient(circle at top left, rgba(117, 217, 174, 0.16), transparent 40%),
    linear-gradient(155deg, #f6fbff, #ebf6f7);
}

:root:not([data-theme="dark"]) .update-toast.update-toast-error .update-toast-card {
  border-color: rgba(214, 114, 114, 0.24);
  background:
    radial-gradient(circle at top left, rgba(255, 170, 170, 0.16), transparent 38%),
    linear-gradient(155deg, #fff7f8, #fff0f2);
}

