/* Update the toast container positioning */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  max-width: 350px;
  width: calc(100% - 2rem);
}

/* Adjust for mobile screens */
@media (max-width: 768px) {
  .toast-container {
    top: calc(var(--header-height) + 1rem); /* Position below header */
    right: 0.5rem;
    left: 0.5rem;
    max-width: none;
    width: auto;
  }

  .push-notification {
    margin: 0 0.5rem 0.5rem;
  }
}

/* Rest of existing styles remain the same */
:root {
  /* Primary Colors */
  --primary-color: #2196f3;    /* A trustworthy blue as primary */
  --secondary-color: #4fc3f7;  /* Lighter blue for secondary elements */
  --accent-color: #1976d2;     /* Darker blue for emphasis */
  
  /* Background Colors */
  --body-bg: #f8f9fa;          /* Light gray background */
  --card-bg: #ffffff;          /* Pure white for cards */
  
  /* Text Colors */
  --text-color-primary: #2c3e50;   /* Dark blue-gray for primary text */
  --text-color-secondary: #607d8b;  /* Lighter blue-gray for secondary text */
  
  /* Status Colors */
  --success-color: #4caf50;    /* Green */
  --info-color: #03a9f4;       /* Light blue */
  --warning-color: #ff9800;    /* Orange */
  --danger-color: #f44336;     /* Red */
  
  /* Border & Shadow Colors */
  --border-color: #e0e0e0;     /* Light gray for borders */
  --box-shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --box-shadow: 0 4px 6px rgba(0,0,0,0.07);
  --box-shadow-lg: 0 8px 16px rgba(0,0,0,0.1);

  /* Element Specific Colors */
  --header-background: #2196f3;
  --header-text-color: #ffffff;
  --nav-link-color: rgba(255,255,255,0.9);
  --nav-link-hover-color: #ffffff;
  --table-header-bg: #2196f3;
  --table-header-color: #ffffff;
  --table-row-hover-bg: rgba(33,150,243,0.05);
  --button-primary-bg: #2196f3;
  --button-primary-color: #ffffff;
  --button-primary-hover-bg: #1976d2;
  --input-border-color: #e0e0e0;
  --input-focus-border-color: #1976d2;
  --input-box-shadow-focus: 0 0 0 0 0.25rem rgba(33,150,243,0.25);

  /* Layout Values */
  --border-radius: 8px;
  --sidebar-width: 250px;
  --sidebar-width-collapsed: 64px;
  --header-height: 60px;
}

body {
  background-color: var(--body-bg);
  color: var(--text-color-primary);
  font-family: 'Inter', -apple-system, sans-serif;
  touch-action: manipulation;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden; /* Prevent horizontal scroll */
  width: 100%; /* Ensure full width */
  position: relative; /* For proper overflow handling */
}

.navbar {
  background-color: var(--header-background); /* Use brand primary color for navbar */
  box-shadow: var(--box-shadow-sm);
  padding: 1.25rem 0; /* Slightly increased padding */
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--secondary-color); /* Use secondary brand color for border */
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.75rem; /* Slightly larger brand text */
  color: var(--header-text-color);
}

.logo {
  filter: drop-shadow(0 1px 2px var(--box-shadow-sm));
  transition: transform 0.3s ease;
}

.navbar-brand:hover .logo {
  transform: rotate(8deg); /* Slightly less rotation */
}

.nav-link {
  position: relative;
  padding: 0.85rem 1.15rem; /* Adjusted padding */
  font-weight: 500;
  color: var(--nav-link-color);
  transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--nav-link-hover-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0.6rem; /* Adjusted underline position */
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--nav-link-hover-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 50%; /* Slightly shorter underline */
}

.table-responsive {
  margin-bottom: 2.25rem; /* Slightly increased bottom margin */
  width: 100%;
  padding: 0;
  margin: 0;
}

.table-responsive-stack {
  width: 100%;
  box-sizing: border-box;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card-bg);
  border-radius: 0.5rem; /* Slightly less rounded corners */
  overflow: hidden;
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
}

.table-responsive-stack th {
  background: var(--table-header-bg);
  color: var(--table-header-color);
  font-weight: 600;
  padding: 1.15rem 1rem; /* Adjusted padding */
  text-align: center;
  letter-spacing: 0.03em; /* Slight letter spacing */
  font-size: 0.95rem; /* Slightly smaller header font size */
}

.table-responsive-stack td {
  padding: 1.15rem 1rem; /* Adjusted padding */
  border-bottom: 1px solid var(--border-color);
  text-align: center;
  vertical-align: middle;
  color: var(--text-color-secondary);
}

.table-responsive-stack tr:last-child td {
  border-bottom: none;
}

.table-responsive-stack tr:hover {
  background: var(--table-row-hover-bg);
}

@media screen and (max-width: 768px) {
  .table-responsive-stack thead {
    display: none;
  }

  .table-responsive-stack tr {
    display: block;
    margin-bottom: 1.15rem; /* Adjusted margin */
    background: var(--card-bg);
    border-radius: 0.5rem; /* Slightly less rounded corners */
    box-shadow: var(--box-shadow-sm);
    overflow: hidden;
  }

  .table-responsive-stack td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1.15rem; /* Adjusted padding */
    border: none;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
    box-sizing: border-box;
  }

  .table-responsive-stack td:before {
    content: attr(data-label);
    font-weight: 600;
    margin-right: 1.15rem; /* Adjusted margin */
    text-align: left;
    min-width: 40%;
    color: var(--text-color-secondary);
  }

  .table-responsive-stack td:last-child {
    border-bottom: none;
  }

  .table-responsive-stack tr:last-child td:last-child {
    border-bottom-right-radius: 0.5rem;
  }
  .table-responsive-stack tr:last-child td:first-child {
      border-bottom-left-radius: 0.5rem;
  }
  .table-responsive-stack tr:first-child td:first-child {
      border-top-left-radius: 0.5rem;
  }
  .table-responsive-stack tr:first-child td:last-child {
      border-top-right-radius: 0.5rem;
  }

  .table-responsive-stack td[colspan="5"] {
    text-align: center;
    justify-content: center;
  }

  .table-responsive-stack td[colspan="5"]::before {
    display: none;
  }

  .form-check-input,
  .periodo-select,
  .obs-input {
    margin: 0;
  }

  .form-check-input {
    margin-left: auto;
    margin-right: 0;
    display: flex;
    justify-content: flex-end;
  }

  .obs-input {
    max-width: none;
  }

  #presenca .row.mb-3.align-items-end .col-md-4 {
    width: 100%;
    margin-top: 1rem;
  }
}

@media screen and (min-width: 769px) {
  .table-responsive-stack td[data-label="Ações"] {
    white-space: nowrap;
    min-width: 240px; /* Ensure enough space for buttons */
  }

  .table-responsive-stack td[data-label="Ações"] .btn {
    margin: 0 0.25rem; /* Add small spacing between buttons */
    display: inline-block;
    width: auto; /* Override full width from mobile styles */
  }
}

@media screen and (max-width: 768px) {
  .table-responsive-stack .form-control,
  .table-responsive-stack .form-select {
    width: 60%;
    min-width: 0;
    margin: 0;
    font-size: 0.9375rem;
  }

  .table-responsive-stack td[data-label="Período"],
  .table-responsive-stack td[data-label="Observações"] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1rem;
  }

  .table-responsive-stack td[data-label="Período"]::before,
  .table-responsive-stack td[data-label="Observações"]::before {
    content: attr(data-label);
    min-width: 40%;
    text-align: left;
    font-weight: 600;
    color: var(--text-color-primary);
    opacity: 0.8;
    font-size: 0.875rem;
    padding-right: 1rem;
    position: static;
    transform: none;
  }

  .table-responsive-stack td[data-label="Período"] .periodo-select,
  .table-responsive-stack td[data-label="Observações"] .obs-input {
    width: 60%;
    margin: 0;
    font-size: 0.9375rem;
  }

  .periodo-select,
  .obs-input {
    width: auto;
    margin: 0;
    display: inline-block;
  }

  .table-responsive-stack td {
    text-align: right !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .table-responsive-stack td::before {
    text-align: left !important;
    margin-right: auto;
  }

  .table-responsive-stack select.periodo-select,
  .table-responsive-stack input.obs-input {
    min-height: 38px;
    padding: 0.375rem 0.75rem;
  }
}

@media screen and (min-width: 769px) {
  .table-responsive-stack td {
    white-space: normal; /* Allow text to wrap */
    vertical-align: middle;
    word-break: break-word; /* Break words only when necessary */
    overflow-wrap: break-word;
    padding: 1.15rem 1rem;
  }

  .table-responsive-stack th {
    vertical-align: middle;
    text-align: center !important;
    padding: 1.15rem 1rem;
  }

  .table-responsive-stack tr {
    display: table-row;
  }

  .table-responsive-stack td[data-label="Nome"],
  .table-responsive-stack td[data-label="Povoado"],
  .table-responsive-stack td[data-label="Local de Trabalho"] {
    max-width: 200px; /* Limit width to force wrapping on these columns */
  }

  /* Ensure table maintains structure */
  .table-responsive-stack {
    display: table;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
  }

  .table-responsive-stack thead {
    display: table-header-group;
  }

  .table-responsive-stack tbody {
    display: table-row-group;
  }

  /* Prevent specific columns from wrapping if possible */
  .table-responsive-stack td[data-label="ID"],
  .table-responsive-stack td[data-label="Nº Cartão"],
  .table-responsive-stack td[data-label="Período"],
  .table-responsive-stack td[data-label="Ações"] {
    white-space: nowrap;
  }

  /* Maintain alignment for numeric columns */
  .table-responsive-stack td[data-label="ID"],
  .table-responsive-stack td[data-label="Nº Cartão"] {
    text-align: center !important;
  }

  /* Set minimum width for action buttons container */
  .table-responsive-stack td[data-label="Ações"] {
    min-width: 240px;
    text-align: center !important;
  }

  /* Ensure cells don't collapse */
  .table-responsive-stack td {
    display: table-cell;
    min-width: 0;
  }

  /* Add horizontal scrolling only when absolutely necessary */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.page-content {
  background: var(--card-bg);
  border-radius: 0.5rem; /* Slightly less rounded corners */
  box-shadow: var(--box-shadow);
  padding: 1rem; /* Adjusted padding */
  margin-top: 2rem;
  animation: slideUp 0.4s ease-out; /* Slightly faster animation */
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media screen and (max-width: 768px) {
  .page-content {
    border-radius: 0;
    margin-top: 0;
    padding: 1rem;
    border: none;
    box-shadow: none;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px); /* Slightly less slide distance */
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 0.5rem; /* Slightly less rounded corners */
  overflow: hidden;
  background: var(--card-bg);
  margin-bottom: 2rem;
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
}

.table th {
  background: var(--table-header-bg);
  color: var(--table-header-color);
  font-weight: 600;
  padding: 1.15rem 1rem; /* Adjusted padding */
  text-align: left;
}

.table td {
  padding: 1.15rem 1rem; /* Adjusted padding */
  border-bottom: 1px solid var(--border-color);
  color: var(--text-color-secondary);
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover {
  background: var(--table-row-hover-bg);
}

/* Additional styles for centered table headers */
.table th,
.table-responsive-stack th {
  text-align: center !important;
}

.table td,
.table-responsive-stack td {
  text-align: center !important;
}

/* Mobile responsiveness for centered content */
@media screen and (max-width: 768px) {
  .table-responsive-stack td {
    text-align: right !important;
  }

  .table-responsive-stack td::before {
    text-align: left !important;
  }
}

/* Additional style to remove horizontal padding for .px-3 on smaller screens */
@media screen and (max-width: 768px) {
  .px-3 {
    padding-right: 0rem !important;
    padding-left: 0rem !important;
  }
}

/* Styles for mobile table responsiveness */
@media (max-width: 768px) {
  .table-responsive-stack,
  .table-responsive-stack thead,
  .table-responsive-stack tbody,
  .table-responsive-stack th,
  .table-responsive-stack td,
  .table-responsive-stack tr {
    display: block;
  }

  .table-responsive-stack thead {
    display: none;
  }

  .table-responsive-stack tr {
    display: block;
    margin-bottom: 1rem;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04), 
                0 4px 8px rgba(0,0,0,0.02);
    border: 1px solid var(--border-color);
    overflow: hidden;
  }

  .table-responsive-stack td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 0.9375rem;
  }

  .table-responsive-stack td:last-child {
    border-bottom: none;
  }

  .table-responsive-stack td::before {
    content: attr(data-label);
    font-weight: 600;
    min-width: 40%;
    color: var(--text-color-primary);
    opacity: 0.8;
    font-size: 0.875rem;
    padding-right: 1rem;
  }

  /* Special styling for specific columns */
  .table-responsive-stack td[data-label="Foto"] {
    justify-content: center;
    padding: 1rem;
    background: rgba(0,0,0,0.02);
    display: flex;
    align-items: center;
  }

  .table-responsive-stack td[data-label="Foto"]::before {
    content: attr(data-label);
    font-weight: 600;
    min-width: 40%;
    text-align: left;
    margin-right: auto;
    color: var(--text-color-primary);
    opacity: 0.8;
    font-size: 0.875rem;
  }

  .table-responsive-stack td[data-label="Foto"] div {
    flex: 1;
    display: flex;
    justify-content: flex-end;
  }

  .table-responsive-stack td[data-label="Foto"] img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }

  .table-responsive-stack td[data-label="Ações"] {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(0,0,0,0.02);
  }

  .table-responsive-stack td[data-label="Ações"]::before {
    display: none;
  }

  .table-responsive-stack td[data-label="Ações"] .btn {
    width: auto;
    margin: 0;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
  }

  .table-responsive-stack td[data-label="Ações"] .btn i {
    font-size: 1.1em;
  }

  /* Presence table specific styles */
  .table-responsive-stack td[data-label="Presença"] {
    justify-content: space-between;
  }

  .table-responsive-stack td[data-label="Presença"] .form-check-input {
    /* margin: 0; */
    width: 1.25rem;
    height: 1.25rem;
  }

  .table-responsive-stack td[data-label="Período"] .periodo-select {
    width: 60%;
    margin: 0;
    font-size: 0.9375rem;
  }

  .table-responsive-stack td[data-label="Observações"] .obs-input {
    width: 60%;
    margin: 0;
    font-size: 0.9375rem;
  }

  /* Status indicators */
  .table-responsive-stack td[data-label="Status"] {
    justify-content: flex-start;
  }

  .table-responsive-stack td[data-label="Status"] span {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
  }

  /* Improve form controls within tables */
  .table-responsive-stack .form-control,
  .table-responsive-stack .form-select {
    flex: 1;
    min-width: 0;
    max-width: 60%;
    margin: 0;
    font-size: 0.9375rem;
  }

  /* Empty state styling */
  .table-responsive-stack td[colspan] {
    text-align: center;
    justify-content: center;
    padding: 2rem 1rem;
    color: var(--text-color-secondary);
    font-size: 0.9375rem;
  }

  .table-responsive-stack td[colspan]::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .table-responsive-stack td[data-label="Ações"] {
    justify-content: flex-end !important; /* Force right alignment */
    gap: 0.5rem;
    padding: 0.75rem 1rem;
  }

  .table-responsive-stack td[data-label="Ações"]::before {
    display: none; /* Hide the "Ações" label */
  }

  .table-responsive-stack td[data-label="Ações"] .btn-group {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    width: 100%;
  }

  .table-responsive-stack td[data-label="Ações"] .btn {
    padding: 0.5rem;
    min-width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Ensure icons in buttons are centered */
  .table-responsive-stack td[data-label="Ações"] .btn i {
    margin: 0;
    font-size: 1.1em;
  }

  /* Add some spacing between rows */
  .table-responsive-stack tr {
    margin-bottom: 1rem;
  }

  /* Adjust padding for better touch targets */
  .table-responsive-stack td[data-label="Ações"] {
    background: rgba(0,0,0,0.02);
  }
}

/* Enhance touch targets on mobile */
@media (hover: none) and (pointer: coarse) {
  .table-responsive-stack td[data-label="Ações"] .btn {
/* min-height: 44px; */
  }

  .table-responsive-stack .form-check-input,
  .table-responsive-stack .form-select,
  .table-responsive-stack .form-control {
/* min-height: 44px; */
  }
}

/* Additional styles for buttons */
.btn {
  border-radius: var(--border-radius);
  padding: 0.7rem 1.4rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: var(--box-shadow-sm);
  border: none;
  font-size: 0.95rem; /* Slightly smaller button text */
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}

.btn-primary {
  background: var(--button-primary-bg);
  color: var(--button-primary-color);
}

.btn-primary:hover {
  background: var(--button-primary-hover-bg);
  transform: translateY(-1px); /* Reduced hover translate */
  box-shadow: var(--box-shadow);
  border-color: var(--accent-color);
}

.btn-secondary {
  background-color: var(--secondary-color) !important;
  color: white !important;
  border: none !important;
  transition: all 0.3s ease !important;
  box-shadow: var(--box-shadow-sm);
  display: flex; 
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  background-color: var(--accent-color) !important;
  transform: translateY(-1px);
  box-shadow: var(--box-shadow);
}

.btn-secondary:active {
  background-color: var(--secondary-color) !important;
  color: white !important;
  transform: translateY(0);
}

.btn-danger {
    background-color: var(--danger-color); /* Bootstrap danger color */
    color: white;
    border: none;
}

.btn-danger:hover {
    background-color: #c82333; /* Darker shade for hover */
    transform: translateY(-1px); /* Reduced hover translate */
    box-shadow: var(--box-shadow);
}

.form-control, .form-select {
  border-radius: var(--border-radius);
  border: 1px solid var(--input-border-color);
  padding: 0.7rem 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-shadow: var(--box-shadow-sm);
  font-size: 0.95rem; /* Slightly smaller input text */
  color: var(--text-color-primary);
}

.form-control:focus, .form-select:focus {
  border-color: var(--input-focus-border-color);
  box-shadow: var(--input-box-shadow-focus);
  outline: none;
}

.form-check-input {
  border-radius: 0.25rem; /* Slightly less rounded checkbox */
  border: 1px solid var(--input-border-color);
  transition: background-color 0.3s, border-color 0.3s;
  box-shadow: var(--box-shadow-sm);
}

.form-check-input:checked {
  background-color: var(--success-color);
  border-color: var(--success-color);
  box-shadow: var(--box-shadow-sm);
}

.periodo-select {
  width: auto;
  margin: 0;
  display: inline-block;
}

.obs-input {
  width: auto;
  margin: 0;
  display: inline-block;
}

.card {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
}

.card:hover {
  transform: translateY(-2px); /* Reduced hover translate */
  box-shadow: var(--box-shadow-lg);
}

.card-body {
    padding: 1.4rem; /* Adjusted card body padding */
}

.card-title {
    font-size: 1.15rem; /* Slightly smaller card title */
    font-weight: 600;
    color: var(--text-color-primary);
    margin-bottom: 1rem;
}

.pagination .page-link {
  border-radius: 0.25rem; /* Slightly less rounded pagination links */
  margin: 0 0.2rem; /* Adjusted pagination margin */
  border: 1px solid var(--border-color);
  color: var(--text-color-secondary);
  background-color: var(--card-bg);
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
  font-size: 0.9375rem; /* Adjusted pagination font size */
}

.pagination .page-link:hover {
  background-color: #edf2f7; /* Lighter gray on hover */
  border-color: var(--accent-color);
  color: var(--text-color-primary);
}

.pagination .page-item.active .page-link {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: var(--box-shadow-sm);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px; /* Slightly thinner scrollbar */
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 0.3rem; /* Less rounded scrollbar track */
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 0.3rem; /* Less rounded scrollbar thumb */
  border: 2px solid #f1f5f9;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Toast Notifications */
.push-notification {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transform: translateX(120%);
  transition: all 0.3s ease;
  position: relative;
  border-left: 4px solid #2196f3;
}

.push-notification.show {
  transform: translateX(0);
}

.push-notification.hide {
  transform: translateX(120%);
  opacity: 0;
}

/* Notification types */
.push-notification.success {
  border-left-color: #4caf50;
  background-color: #f1f8e9;
}

.push-notification.error {
  border-left-color: #f44336;
  background-color: #fdecea;
}

.push-notification.warning {
  border-left-color: #ff9800;
  background-color: #fff3e0;
}

.push-notification.info {
  border-left-color: #2196f3;
  background-color: #e3f2fd;
}

/* Adjust notification position for mobile */
@media (max-width: 768px) {
  .push-notification {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

/* Button spacing on mobile */
@media (max-width: 768px) {
  .location-date-wrapper {
    margin-bottom: 1rem;
  }
  
  #selectAll {
    margin-top: 1rem;
  }
}

/* Loading Spinner */
.spinner {
  width: 45px; /* Slightly smaller spinner */
  height: 45px;
  border: 4px solid rgba(0,0,0,0.1);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1.1s ease-in-out infinite; /* Slightly faster animation */
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Loading state for tables */
.table-loading {
  position: relative;
  min-height: 180px; /* Adjusted min height */
}

.table-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.8); /* Slightly more transparent loading overlay */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem; /* Match table border radius */
}

/* Dashboard Styles */
.metric-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 1.75rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--box-shadow-sm);
  transition: all 0.3s ease;
  cursor: pointer;
}

.metric-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-lg);
}

.metric-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--box-shadow);
}

.metric-icon i {
  font-size: 28px;
  color: #ffffff !important;
}

.metric-content {
  flex: 1;
}

.metric-title {
  font-size: 0.875rem;
  color: var(--text-color-secondary);
  margin: 0 0 0.5rem 0;
  font-weight: 500;
}

.metric-value {
  font-size: 1.75rem;
  color: var(--text-color-primary);
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
}

.chart-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--box-shadow-sm);
  height: 100%;
  transition: all 0.3s ease;
}

.chart-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-lg);
}

.chart-header {
  padding: 1.5rem 1.5rem 0;
}

.chart-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-color-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chart-title i {
  color: var(--primary-color);
  font-size: 1.4em;
}

.chart-body {
  padding: 1.5rem;
}

.chart-container {
  position: relative;
  height: 400px;
  width: 100%;
}

@media (max-width: 768px) {
  .metric-card {
    padding: 1.25rem;
    gap: 1rem;
    margin-bottom: 1rem; /* Add bottom margin for spacing */
  }

  .metric-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
  }

  .metric-icon i {
    font-size: 24px;
  }

  .metric-title {
    font-size: 0.813rem;
  }

  .metric-value {
    font-size: 1.5rem;
  }

  /* Card spacing for dashboard */
  .row.mb-4 {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0;
  }

  .col-md-3 {
    flex: 1 1 100%;
    padding: 0;
    margin: 0;
  }

  /* Remove default Bootstrap margins that could interfere */
  .row {
    margin-left: 0;
    margin-right: 0;
  }

  .chart-container {
    height: 350px;
    margin: 0 -15px;
    padding: 0 15px;
    width: calc(100% + 30px);
  }

  .chart-body {
    padding: 1rem;
    overflow-x: hidden;
  }

  .chart-header {
    padding: 1.25rem 1.25rem 0;
  }

  .chart-title {
    font-size: 1rem;
  }
  
  /* Card row spacing in general */
  .row > [class^="col-"] {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 576px) {
  .metric-card {
    padding: 1rem;
  }

  .chart-container {
    height: 250px;
  }

  /* Tighter spacing for very small screens */
  .row.mb-4 {
    gap: 15px;
  }
}

@media (hover: hover) {
  .metric-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
  }

  .chart-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
  }
}

@media (hover: none) {
  .metric-card:active {
    transform: scale(0.98);
  }

  .chart-card:active {
    transform: scale(0.98);
  }
}

/* Login and Signup Page Styles */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: var(--card-bg); 
    padding: 1rem;
}

.login-container {
    width: 100%;
    max-width: 420px; 
    padding: 2.2rem; 
    background-color: var(--card-bg);
    border-radius: 0.5rem; /* Slightly less rounded corners */
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    margin: 0;
}

@media (max-width: 768px) {
  .login-body {
    padding: 1rem;
  }
  
  .login-container {
    padding: 1.5rem;
    margin: 0 1rem;
  }
}

/* Update header styles */
.header {
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  height: var(--header-height);
  background: var(--card-bg);
  color: var(--text-color-primary);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  box-shadow: var(--box-shadow-sm);
  transition: all 0.3s ease;
}

.header.expanded {
  left: var(--sidebar-width-collapsed);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.header-logo {
  margin-left: auto; /* Push logo to right */
}

.header-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.menu-toggle {
  background: none;
  border: none;
  color: var(--text-color-primary);
  padding: 0.5rem;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  color: var(--primary-color);
  transform: scale(1.1);
}

.menu-toggle:active {
  transform: scale(0.95);
}

.menu-toggle i {
  display: block;
  line-height: 1;
}

@media (max-width: 768px) {
  .menu-toggle {
    margin-right: 0.75rem;
    font-size: 1.25rem;
  }
}

/* Mobile header styles */
@media screen and (max-width: 768px) {
  .header {
    left: 0;
    padding: 0 1rem;
  }

  .header.expanded {
    left: 0;
  }

  .mobile-only {
    display: flex;
  }

  .desktop-only {
    display: none;
  }

  .header-left {
    justify-content: flex-start;
    position: relative;
    flex: 1;
  }

  .header-title {
    position: absolute;
    left: 55%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 1.1rem;
  }

  /* Style logout button */
  .btn-logout {
    background: none;
    border: none;
    color: var(--text-color-primary);
    padding: 0.5rem;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .btn-logout span {
    display: none; /* Hide text, show only icon */
  }
}

/* Logout button styles */
.btn-logout.mobile-only {
  display: none !important; /* Hide by default */
}

.nav-item.mt-auto {
  margin-top: auto !important;
  display: block !important;
}

@media (max-width: 768px) {
  .btn-logout.mobile-only {
    display: flex !important;
  }
  
  .nav-item.mt-auto {
    display: none !important;
  }
}

.header .btn-logout.mobile-only {
  background: none;
  border: none;
  color: var(--text-color-primary);
  padding: 0.5rem;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 769px) {
  .btn-logout.mobile-only {
    display: none !important;
  }
}

.nav-link[id*="logout"],
.btn-logout {
  display: flex !important;
}

.nav-item.mt-auto {
  margin-top: auto !important;
  display: block !important;
}

/* Location and Date field wrapper */
.location-date-wrapper {
  display: flex;
  gap: 0.5rem;
}

/* Make fields stack on mobile */
@media (max-width: 768px) {
  .location-date-wrapper select,
  .location-date-wrapper input {
    width: 100%;
  }
  
  .location-date-wrapper {
    flex-direction: column;
  }
}

/* For larger screens, display fields side by side */
@media (min-width: 769px) {
  .location-date-wrapper {
    flex-direction: row;
  }

  .location-date-wrapper select,
  .location-date-wrapper input {
    width: 50%;
  }
}

/* Ensure consistent spacing */
.location-date-wrapper .form-select,
.location-date-wrapper .form-control {
  margin-bottom: 0;
}

/* Add these styles for date inputs */
input[type="date"] {
  position: relative;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  right: 8px;
  cursor: pointer;
}

input[type="date"]::-webkit-datetime-edit-text,
input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-year-field {
  color: var(--text-color-primary);
}

/* Style for empty date inputs (showing placeholder) */
input[type="date"]:empty,
input[type="date"]:invalid {
  color: var(--text-color-secondary);
}

/* Adjust mobile styles */
@media (max-width: 768px) {
  input[type="date"] {
    min-height: 40px; /* Ensure good tap target size */
  }
  
  input[type="date"]::-webkit-calendar-picker-indicator {
    padding: 8px;
  }
}

/* Ensure date inputs show placeholder on mobile */
input[type="date"]:before {
  content: attr(placeholder);
  position: absolute;
  color: #6c757d;  
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

input[type="date"]:focus:before,
input[type="date"]:valid:before {
  display: none;
}

/* Ensure consistent date input appearance across devices */
@supports (-webkit-touch-callout: none) {
  input[type="date"] {
    -webkit-appearance: none;
    appearance: none;
    min-height: calc(1.5em + 0.75rem + 2px);
  }
}

/* Adjust date input padding for better mobile display */
@media (max-width: 768px) {
  input[type="date"] {
    padding: 0.375rem 0.75rem;
  }
  
  input[type="date"]::-webkit-calendar-picker-indicator {
    margin-left: auto;
  }
}

/* Main Content Styles */
.main-content {
  margin-left: var(--sidebar-width);
  margin-top: 0;
  padding: 2rem;
  padding-top: calc(var(--header-height) + 2rem);
  transition: all 0.3s ease;
  width: calc(100% - var(--sidebar-width)); 
  box-sizing: border-box;
}

.main-content.expanded {
  margin-left: var(--sidebar-width-collapsed);
  width: calc(100% - var(--sidebar-width-collapsed));
}

@media (min-width: 1024px) {
  .main-content {
    margin-top: -32px;
  }
  
  .main-content.expanded {
    margin-top: -32px;
  }
}

@media (max-width: 768px) {
  .main-content {
    margin-left: 0;
    margin-top: 0;
    padding: 0.5rem;
    padding-top: calc(var(--header-height) + 1rem);
    padding-bottom: 71px; 
    width: 100%;
  }
  
  .main-content.expanded {
    margin-left: 0;
    margin-top: 0;
    width: 100%;
  }

  .page-content {
    padding: 1rem;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .table-responsive {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }

  .container {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    overflow-x: hidden;
  }
}

/* Fix mobile nav positioning */
.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  box-sizing: border-box;
  padding: 12px 0; 
  display: flex;
  justify-content: center; 
  align-items: center;
}

.mobile-nav-container {
  display: flex;
  justify-content: space-evenly;
  width: 100%;
  max-width: 500px;
}

/* Hide scrollbar on Webkit browsers */
.mobile-nav::-webkit-scrollbar {
  display: none;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-color-secondary);
  font-size: 0.85rem;
  padding: 4px 8px;
  flex: 1;
  min-width: 60px; 
  max-width: 90px;
  gap: 6px;
  position: relative;
  transition: all 0.3s ease;
}

.mobile-nav-item i {
  font-size: 1.4rem; 
  transition: transform 0.3s ease;
}

.mobile-nav-item:active {
  transform: scale(0.95);
}

.mobile-nav-item.active {
  color: var(--primary-color);
}

.mobile-nav-item.active i {
  transform: translateY(-2px);
  color: var(--primary-color);
}

.mobile-nav-item.active::after {
  display: none; /* Remove the dot */
}

.mobile-nav-item:first-child {
  margin-left: 12px;
}

.mobile-nav-item:last-child {
  margin-right: 12px;
}

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

/* Custom touch effects for mobile */
@media (hover: none) {
  .mobile-nav-item:active {
    color: var(--primary-color);
  }
  
  .mobile-nav-item:active i {
    transform: translateY(-2px);
  }
}

/* Adjust mobile nav for very small screens */
@media (max-width: 320px) {
  .mobile-nav-item {
    font-size: 0.8rem; 
    min-width: 55px;
  }
}

.mobile-nav-item.admin-nav-item {
  flex: 0 0 auto;
  min-width: 60px;
  max-width: 70px;
  margin: 0 4px;
  display: none; /* Hide by default */
}

.mobile-nav-item.admin-nav-item.show {
  display: flex;
}

/* Ensure tables don't overflow */
.table-responsive-stack {
  width: 100%;
  box-sizing: border-box;
}

/* Ensure forms don't overflow */
form {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

input, select, textarea {
  max-width: 100%;
  box-sizing: border-box;
}

/* Fix card padding on mobile */
@media (max-width: 768px) {
  .card {
    padding: 1rem;
    margin: 0.5rem 0;
    width: 100%;
    box-sizing: border-box;
  }

  .form-group {
    padding: 0;
    margin-bottom: 1rem;
  }

  .filter-export-container {
    padding: 0;
  }

  .search-container {
    padding: 0;
  }
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

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

.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
  gap: 0.5rem;
}

.nav-item {
  position: relative;
  width: 100%;
  padding: 0 1rem;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0.875rem 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  gap: 1rem;
  border-radius: 8px;
  font-weight: 500;
  justify-content: flex-start;
  width: 100%;
  font-size: 0.95rem; 
}

.nav-link i {
  font-size: 1.35rem; 
  min-width: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sidebar.collapsed .nav-link {
  justify-content: center;
  padding: 0.875rem 0;
}

.sidebar.collapsed .nav-link i {
  margin: 0;
  min-width: auto;
  text-align: center;
  justify-content: center;
  display: flex;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  transform: translateX(4px);
}

.sidebar.collapsed .nav-link:hover,
.sidebar.collapsed .nav-link.active {
  transform: translateX(0);
}

.nav-link:hover i,
.nav-link.active i {
  transform: scale(1.1);
  color: white;
}

.nav-link span {
  opacity: 1;
  transition: opacity 0.3s ease, width 0.3s ease;
  font-size: 0.95rem;
}

.sidebar.collapsed .nav-link span {
  display: none;
  margin: 0;
}

.nav-item.mt-auto {
  margin-top: auto;
  margin-bottom: 1rem;
}

.welcome-message {
  padding: 2rem 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.welcome-message .avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(45deg, #ffffff, #f8f9fa);
  border-radius: 50%;
  margin: 0 auto;
  display: none;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.9);
  transition: transform 0.3s ease;
}

.sidebar.collapsed .welcome-message {
  padding: 1rem 0.5rem;
}

.sidebar.collapsed .welcome-message > span:not(.avatar) {
  display: none;
}

.sidebar.collapsed .welcome-message .avatar {
  display: flex;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .welcome-message {
    display: none;
  }
}

@media (max-width: 768px) {
  .sidebar {
    display: none !important; /* Force hide sidebar on mobile */
  }

  .sidebar.show {
    display: block !important;
    width: 260px; /* Full width sidebar when shown */
    z-index: 1001; /* Higher z-index to appear above header */
  }

  .main-content {
    margin-left: 0 !important; /* Remove margin on mobile */
    width: 100% !important; /* Full width content */
  }

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

  .header {
    left: 0 !important;
    width: 100% !important;
  }

  .header.expanded {
    left: 0 !important;
  }
}

/* Update base form-control styles */
.form-control {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .row.mb-3.align-items-end > div {
    margin-bottom: 0.5rem;
    width: 100%;
  }

  .row.mb-3.align-items-end > div:last-child {
    margin-bottom: 0;
  }

  .row.mb-3.align-items-end .btn {
    width: 100%;
  }
}

/* Ensure proper spacing for filter rows */
.filter-row {
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .filter-row {
    margin: 0 0 1rem 0;
  }

  .filter-row > [class*='col-'] {
    padding: 0;
    margin-bottom: 0.5rem;
  }

  .filter-row > [class*='col-']:last-child {
    margin-bottom: 0;
  }
}

/* Spacing for mobile filters */
@media (max-width: 768px) {
  .d-lg-flex {
    gap: 1rem;
  }

  .d-lg-flex .flex-grow-1 {
    margin-bottom: 0.5rem;
  }

  .d-lg-flex .ms-lg-3 {
    display: flex;
    gap: 0.5rem;
  }

  /* Fix button spacing on mobile */
  .btn-group-mobile {
    display: flex;
    gap: 0.5rem;
    width: 100%;
  }

  .btn-group-mobile .btn {
    flex: 1;
  }

  /* Fix search and filter fields */
  .search-filter-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .search-filter-container .col-md-4,
  .search-filter-container .col-md-8 {
    width: 100%;
    padding: 0;
  }

  /* Improve spacing between filter elements */
  .row.mb-3 {
    margin: 0;
  }

  .row.mb-3 > [class*='col-'] {
    padding: 0;
    margin-bottom: 0.5rem;
  }

  /* Adjust spacing for date and location selectors */
  .location-date-wrapper {
    flex-direction: column;
    gap: 0.5rem;
  }

  .location-date-wrapper select,
  .location-date-wrapper input {
    width: 100%;
  }

  /* Fix button alignment */
  .d-flex.gap-2 {
    width: 100%;
  }

  .d-flex.gap-2 .btn {
    flex: 1;
  }

  /* Adjust page content padding */
  .page-content {
    padding: 1rem;
  }

  /* Fix form group spacing */
  .form-group {
    margin-bottom: 1rem;
  }

  /* Adjust table responsive padding */
  .table-responsive {
    padding: 0;
    margin: 0;
  }
}

.table td[data-label="Última Presença"],
.table td[data-label="Total de Presenças"],
.table td[data-label="Manhã"],
.table td[data-label="Tarde"],
.table td[data-label="Integral"],
.table td[data-label="Nome"],
.table td[data-label="Número do Cartão"],
.table td[data-label="Povoado"],
.table td[data-label="Local de Trabalho"] {
/*  text-align: center !important; */
}

@media screen and (max-width: 768px) {
  .table-responsive-stack td[data-label]::before {
    text-align: left !important;
  }
  
  .table-responsive-stack td {
    text-align: right !important;
  }
}

/* Add these styles for quantity columns */
.table td[data-label="Qtd. Solicitada"],
.table td[data-label="Qtd. Aprovada CT"] {
  text-align: center !important;
  font-weight: 500;
}

@media screen and (max-width: 768px) {
  .table-responsive-stack td[data-label="Qtd. Solicitada"]::before,
  .table-responsive-stack td[data-label="Qtd. Aprovada CT"]::before {
    text-align: left !important;
    font-weight: 600;
    color: var(--text-color-primary);
  }

  .table-responsive-stack td[data-label="Qtd. Solicitada"],
  .table-responsive-stack td[data-label="Qtd. Aprovada CT"] {
    text-align: right !important;
    font-weight: 500;
    color: var(--text-color-secondary);
  }
}

/* Expandable Row Styles */
.details-row {
  background-color: rgba(240, 247, 255, 0.5);
}

.details-content {
  padding: 1rem;
  animation: fadeIn 0.3s ease-in-out;
}

.details-content p {
  margin-bottom: 0.5rem;
}

.details-content .row {
  margin: 0;
}

.pedido-row {
  cursor: pointer;
}

.pedido-row:hover {
  background-color: rgba(33, 150, 243, 0.05);
}

.btn-expand {
  transition: transform 0.2s ease;
}

.btn-expand:hover {
  background-color: var(--secondary-color);
  color: white;
}

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

@media (max-width: 768px) {
  .details-content .row .col-md-6 {
    margin-bottom: 1rem;
  }
  
  .details-content .row .col-md-6:last-child {
    margin-bottom: 0;
  }
}

.table-responsive-stack .form-select-sm {
    width: auto;
    min-width: 140px;
}

@media screen and (max-width: 768px) {
    .table-responsive-stack td[data-label="Status"],
    .table-responsive-stack td[data-label="Função"] {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.875rem 1rem;
    }

    .table-responsive-stack td[data-label="Status"]::before,
    .table-responsive-stack td[data-label="Função"]::before {
        content: attr(data-label);
        text-align: left !important;
        min-width: 40%;
        font-weight:
}

/* PWA Install Button */
.pwa-install-btn {
  width: 100%;
  margin-top: 1rem;
  padding: 0.75rem 1.25rem;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.pwa-install-btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.pwa-install-btn i {
  font-size: 1.2em;
}

@media (max-width: 768px) {
  .pwa-install-btn {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
  }
}