/* Base Styles */
:root {
  /* Light Theme Colors */
  --light-background: 255, 255, 255;
  --light-foreground: 15, 23, 42;
  --light-card: 255, 255, 255;
  --light-card-foreground: 15, 23, 42;
  --light-border: 226, 232, 240;
  --light-input: 226, 232, 240;
  --light-text: 241, 245, 249;
  --light-text-hover: 100, 116, 139;
  --light-accent: 241, 245, 249;
  --light-accent-foreground: 15, 23, 42;
  --light-secondary: 241, 245, 249;
  --light-secondary-foreground: 15, 23, 42;
  --light-text-white: 255, 255, 255;
  --light-button: 15, 23, 42;
  --light-button-text: 255, 255, 255;
  --light-button-hover: 15, 23, 42;

  /* Dark Theme Colors */
  --dark-background: 10, 10, 10; /* #1e1e1e */
  --dark-foreground: 255, 255, 255; /* #ffffff */
  --dark-card: 20, 20, 20; /* #333333 */
  --dark-card-foreground: 255, 255, 255;
  --dark-border: 100, 100, 100;
  --dark-input: 20, 20, 20; /* #333333 */
  --dark-text: 34, 34, 34; /* #222222 */
  --dark-text-hover: 200, 200, 200;
  --dark-accent: 34, 34, 34; /* #222222 */
  --dark-accent-foreground: 255, 255, 255;
  --dark-secondary: 20, 20, 20; /* #333333 */
  --dark-secondary-foreground: 255, 255, 255;
  --dark-text-white: 255, 255, 255;
  --dark-button: 0, 200, 255;
  --dark-button-text: 30, 30, 30; /* #1e1e1e */
  --dark-button-hover: 255, 255, 255;

  /* Shared Colors */
  --cyan: 6, 182, 212;
  --cyan-foreground: 248, 250, 252;
  --blue: 59, 130, 246;
  --blue-foreground: 248, 250, 252;
  --green: 16, 185, 129;
  --green-foreground: 248, 250, 252;

  /* Border Radius */
  --radius: 0.5rem;
}

/* Apply theme variables */
.light-theme {
  --text-white: var(--light-text-white);
  --background: var(--light-background);
  --foreground: var(--light-foreground);
  --card: var(--light-card);
  --card-foreground: var(--light-card-foreground);
  --border: var(--light-border);
  --input: var(--light-input);
  --text: var(--light-text);
  --text-hover: var(--light-text-hover);
  --accent: var(--light-accent);
  --accent-foreground: var(--light-accent-foreground);
  --secondary: var(--light-secondary);
  --secondary-foreground: var(--light-secondary-foreground);
  --button: var(--light-button);
  --button-text: var(--light-button-text);
  --button-hover: var(--light-button-hover);
}

.dark-theme {
  --text-white: var(--dark-text-white);
  --background: var(--dark-background);
  --foreground: var(--dark-foreground);
  --card: var(--dark-card);
  --card-foreground: var(--dark-card-foreground);
  --border: var(--dark-border);
  --input: var(--dark-input);
  --text: var(--dark-text);
  --text-hover: var(--dark-text-hover);
  --accent: var(--dark-accent);
  --accent-foreground: var(--dark-accent-foreground);
  --secondary: var(--dark-secondary);
  --secondary-foreground: var(--dark-secondary-foreground);
  --button: var(--dark-button);
  --button-text: var(--dark-button-text);
  --button-hover: var(--dark-button-hover);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

body {
  background: linear-gradient(
    to bottom right,
    rgba(var(--background), 1),
    rgba(var(--background), 0.8)
  );
  color: rgb(var(--foreground));
  width: 100%;
  max-width: 100vw;
}

.background-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;

  background: linear-gradient(
    to bottom right,
    rgba(var(--background), 1),
    rgba(var(--background), 0.8)
  );
  opacity: 0.3;
  pointer-events: none;
}
.background-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;

  background: linear-gradient(
    to bottom right,
    rgba(var(--background), 1),
    rgba(var(--background), 0.8)
  );
  opacity: 0.3;
  pointer-events: none;
}

#header-logo {
  width: auto; /* Largura como 80% do contêiner */
  height: 3.2rem; /* Altura como 80% do contêiner */
  aspect-ratio: 1/1; /* Mantém a altura igual à largura (quadrado) */
  object-fit: fill; /* Garante que a imagem preencha o espaço sem distorcer */
  display: block;
  margin: auto;
  border-radius: 10px; /* Opcional: cantos arredondados */
}

.avatar {
  width: auto; /* Largura como 80% do contêiner */
  height: 3.2rem; /* Altura como 80% do contêiner */
  aspect-ratio: 1/1; /* Mantém a altura igual à largura (quadrado) */
  object-fit: fill; /* Garante que a imagem preencha o espaço sem distorcer */
  display: block;
  margin: auto;
  border-radius: 10px; /* Opcional: cantos arredondados */
}

.avatar img.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.background-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
  z-index: 0;
}

.app-container {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100vw;
}

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

.hidden {
  display: none !important;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4rem;
  background-color: rgba(var(--card), 0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(var(--border), 1);
  z-index: 30;
}

.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  height: 2.5rem;
  width: 2.5rem;
  border-radius: 0.375rem;
  background: linear-gradient(
    to bottom right,
    rgb(var(--cyan)),
    rgb(var(--blue))
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: bold;
  background: linear-gradient(to right, rgb(var(--cyan)), rgb(var(--blue)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Equipment Selector */
.equipment-selector,
.client-selector,
.index-selector,
.equipament_select {
  display: flex;
  align-items: center;
  font-size: 0.7rem;
  width: 100%;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  color: rgb(var(--foreground));
  background-color: rgba(var(--text), 0.5);
  border: 1px solid rgba(var(--border), 0.5);
}

.equipment-selector .label,
.client-selector .label {
  color: rgb(var(--text-hover));
  font-size: 0.875rem;
  font-weight: 500;
  margin-right: 0.5rem;
}

.equipment-selector .value,
.client-selector .value {
  color: rgb(var(--foreground));
  font-size: 0.875rem;
}

/* Controls */
.controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Search Bar */
.search-bar {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background-color: rgba(var(--input), 0.5);
  border-radius: 9999px;
  padding: 0.375rem 0.75rem;
  border: 1px solid rgba(var(--border), 0.5);
  backdrop-filter: blur(4px);
}

.search-bar i {
  color: rgba(var(--text-hover), 1);
  font-size: 0.875rem;
}

.search-bar input {
  background-color: transparent;
  border: none;
  outline: none;
  font-size: 0.875rem;
  width: 10rem;
  color: rgb(var(--foreground));
}

.search-bar input::placeholder {
  color: rgba(var(--text-hover), 1);
}

/* Mobile Controls */
.mobile-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Icon Button */
.icon-button {
  background-color: transparent;
  border: none;
  border-radius: 0.375rem;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(var(--text-hover), 1);
  cursor: pointer;
  font-size: 18px;
  position: relative;
}

.icon-button:hover {
  color: rgb(var(--foreground));
  background-color: rgba(var(--text), 0.3);
}

/* Right Controls */
.right-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Notifications */
.notifications-container {
  position: relative;
}

.notification-indicator {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  height: 0.5rem;
  width: 0.5rem;
  background-color: rgb(var(--cyan));
  border-radius: 9999px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(var(--cyan), 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(var(--cyan), 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(var(--cyan), 0);
  }
}

/* User Profile */
.user-profile {
  position: relative;
}

/* Dropdown - Estilo padronizado para todos os dropdowns */
.dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  width: 16rem;
  background-color: rgb(var(--card));
  border-radius: var(--radius);
  border: 1px solid rgba(var(--border), 1);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  z-index: 50;
  display: none;
  animation: dropdownFadeIn 0.2s ease-out;
}

.user-dropdown-container-client {
  position: absolute;
  left: 5;
  top: calc(100% + 0.5rem);
  width: 16rem;
  background-color: rgb(var(--card));
  border-radius: var(--radius);
  border: 1px solid rgba(var(--border), 1);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  z-index: 50;
  display: none;
  animation: dropdownFadeIn 0.2s ease-out;
}

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

.dropdown.active {
  display: block;
}

.dropdown-header {
  padding: 0.75rem;
  border-bottom: 1px solid rgba(var(--border), 1);
}

.dropdown-header h3 {
  font-size: 0.875rem;
  font-weight: 500;
}

.dropdown-content {
  padding: 0.75rem;
}

.user-info {
  width: 100%;
  text-align: center;
  padding: 0.7rem;
}

.user-name {
  font-size: 0.875rem;
  font-weight: 500;
}

.user-email {
  font-size: 0.75rem;
  color: rgba(var(--text-hover), 1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.dropdown-divider {
  height: 1px;
  background-color: rgba(var(--border), 1);
  margin: 0.5rem 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.5rem;
  border-radius: 0.25rem;
  background-color: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  color: rgb(var(--foreground));
  transition: background-color 0.2s ease;
}

.dropdown-item:hover {
  background-color: rgba(var(--text), 0.5);
}

.dropdown-item i {
  margin-right: 0.5rem;
  font-size: 1rem;
  width: 1rem;
  height: 1rem;
}

.empty-notifications {
  text-align: center;
  padding: 2rem 0;
  font-size: 0.875rem;
  color: rgba(var(--text-hover), 1);
}

/* Padronização dos inputs em dropdowns */
.dropdown .search-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(var(--input), 0.5);
  border-radius: 0.375rem;
  padding: 0.5rem;
  border: 1px solid rgba(var(--border), 0.5);
}

#report-selection select {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: white;
  border-radius: 0.375rem;
  padding: 0.5rem;
  border: 1px solid rgba(var(--border), 0.5);
  font-size: 1rem;
  width: 100%;
  color: black;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20fill%3D%22black%22%20viewBox%3D%220%200%2024%2024%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M7%2010l5%205%205-5H7z%22/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
}

#report-selection {
  padding: 20px;
  background-color: rgba(var(--input), 0.5);
}

.dropdown .search-input i {
  color: rgba(var(--text-hover), 1);
}

.dropdown .search-input input {
  background-color: transparent;
  border: none;
  outline: none;
  width: 100%;
  font-size: 0.875rem;
  color: rgb(var(--foreground));
}

.dropdown .search-input input::placeholder {
  color: rgba(var(--text-hover), 1);
}

/* Estilo para equipamentos no dropdown */
.equipment-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 0.375rem;
  margin-bottom: 0.5rem;
}

.equipment-item i {
  color: rgb(var(--cyan));
}

.equipment-list {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(var(--border), 0.5);
}

.equipment-option {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.5rem;
  border-radius: 0.25rem;
  background-color: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  color: rgb(var(--foreground));
  font-size: 0.75rem;
  transition: background-color 0.2s ease;
}

.equipment-option:hover {
  background-color: rgba(var(--text), 0.5);
}

.equipment-option i {
  margin-right: 0.5rem;
  font-size: 0.875rem;
  color: rgb(var(--cyan));
}

.modal {
  display: none;
  position: fixed;
  background-color: rgba(0, 0, 0, 0.5); /* Fundo semitransparente */
  z-index: 10000000;
  width: 100vw;
  height: 100vh;
}

/* Overlay escondida por padrão */
.overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 99;
}

.modal-content {
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  text-align: center;
  position: fixed;
  padding: 20px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Centraliza na tela */
  background-color: rgba(var(--card), 0.99); /* 20% de transparência */
  border-radius: var(--radius);
  border: 1px solid rgba(var(--border), 1);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: transform 0.3s ease;
  min-width: 500px;
  max-height: 90vh;
  overflow-y: auto; /* Permite rolagem vertical */
}

/* Botões */
.modal-content button {
  padding: 10px 20px;
  margin: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid rgba(var(--border), 1);
}

.modal-title {
  font-size: 1.125rem;
  font-weight: 600;
}

.modal-close {
  background-color: transparent;
  border: none;
  border-radius: 0.25rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(var(--text-hover), 1);
  cursor: pointer;
}

.modal-close:hover {
  background-color: rgba(var(--text), 0.5);
  color: rgb(var(--foreground));
}

.modal-body {
  padding: 1rem;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1rem;
  border-top: 1px solid rgba(var(--border), 1);
}

.modal-btn {
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.modal-btn-primary {
  background-color: rgb(var(--cyan));
  color: white;
  border: none;
}

.modal-btn-primary:hover {
  background-color: rgba(var(--cyan), 0.8);
}

.modal-btn-secondary {
  background-color: transparent;
  color: rgb(var(--foreground));
  border: 1px solid rgba(var(--border), 1);
}

.modal-btn-secondary:hover {
  background-color: rgba(var(--text), 0.5);
}

/* Main Content */
.main-content {
  padding-top: 4rem;
  flex-grow: 1;
}

/* Adicionar esta classe para quando o footer estiver ativo */
.footer-active .main-content {
  padding-bottom: 4rem; /* Altura do footer */
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
  max-width: 100%;
}

/* Sidebar */
.sidebar {
  position: fixed;
  left: 0;
  top: 4rem;
  bottom: 0;
  width: 4rem;
  transition: width 0.3s ease;
  z-index: 20;
}

.sidebar.expanded {
  width: 16rem;
}

.sidebar-card {
  height: 100%;
  background-color: rgba(var(--card), 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(var(--border), 0.5);
  border-radius: 0 0.5rem 0.5rem 0;
  overflow: hidden;
}

.sidebar-content {
  padding: 0.5rem 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.sidebar-toggle {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  background-color: transparent;
  border: 1px solid rgba(var(--border), 0.5);
  border-radius: 0.375rem;
  color: rgba(var(--text-hover), 1);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sidebar-toggle:hover {
  color: rgb(var(--foreground));
}

.sidebar-toggle i {
  font-size: 1rem;
}

.sidebar.expanded .sidebar-toggle i {
  margin-right: 0.5rem;
}

.sidebar.expanded .sidebar-toggle::after {
  content: "Recolher";
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  border-radius: 0.375rem;
  background-color: transparent;
  border: none;
  color: rgba(var(--text-hover), 1);
  cursor: pointer;
  text-align: left;
  position: relative;
}

.nav-item:hover {
  color: rgb(var(--foreground));
}

.nav-item.active {
  background-color: rgba(var(--text), 0.7);
  color: rgb(var(--cyan));
}

.nav-item i {
  font-size: 1.5rem;
  width: 1.5rem;
  height: 1.5rem;
}

.nav-label {
  margin-left: 0.5rem;
  font-size: 0.875rem;
  display: none;
}

.sidebar.expanded .nav-label {
  display: block;
}

.drag-handle {
  margin-left: auto;
  cursor: grab;
  display: none;
  color: rgba(var(--text-hover), 0.7);
}

.drag-handle:hover {
  color: rgba(var(--text-hover), 1);
}

.sidebar.expanded .drag-handle {
  display: block;
}

/* System Status */
.system-status {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(var(--border), 0.5);
}

.status-header {
  font-size: 0.75rem;
  color: rgba(var(--text-hover), 1);
  margin-bottom: 0.5rem;
  font-family: monospace;
}

.status-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.status-item {
  width: 100%;
}

.status-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.status-label,
.status-value {
  font-size: 0.75rem;
  color: rgba(var(--text-hover), 1);
}

.status-bar {
  height: 0.375rem;
  background-color: rgba(var(--text), 1);
  border-radius: 9999px;
  overflow: hidden;
}

.status-progress {
  height: 100%;
  border-radius: 9999px;
}

.status-progress.cyan {
  background: linear-gradient(to right, rgb(var(--cyan)), rgb(var(--blue)));
}

.status-progress.green {
  background: linear-gradient(to right, rgb(var(--green)), rgb(16, 185, 129));
}

.status-progress.blue {
  background: linear-gradient(to right, rgb(var(--blue)), rgb(99, 102, 241));
}

/* Dashboard Content */
.dashboard-content {
  padding: 1rem 0;
  transition: padding-left 0.3s ease;
  width: 100%;
  height: 100%;
  overflow: visible; /* Em vez de hidden */
  box-sizing: border-box;
  justify-content: center; /* Centraliza horizontalmente */
}

/* Section Content */
.section-content {
  min-height: 50vh;
  justify-content: center; /* Centraliza horizontalmente */
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: rgb(var(--cyan));
  text-align: center;
  margin-top: 5rem;
}

/* Tabs */
.tabs-container {
  margin-top: 2rem;
}

.tabs {
  display: flex;
  background-color: rgba(var(--text), 0.5);
  border-radius: 0.375rem;
  padding: 0.25rem;
  margin-bottom: 1rem;
}

.tablinks {
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  background-color: transparent;
  border: none;
  color: rgb(var(--foreground));
  cursor: pointer;
  font-size: 0.875rem;
}

.tablinks.active {
  background-color: rgba(var(--text), 1);
  color: rgb(var(--cyan));
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Performance Chart */
.performance-chart {
  height: 16rem;
  background-color: rgba(var(--text), 0.3);
  border-radius: 0.5rem;
  border: 1px solid rgba(var(--border), 0.5);
  overflow: hidden;
  position: relative;
}

.chart-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: rgba(var(--text-hover), 1);
}

/* Processes Table */
.processes-table {
  background-color: rgba(var(--text), 0.3);
  border-radius: 0.5rem;
  border: 1px solid rgba(var(--border), 0.5);
  overflow: hidden;
}

.table-header {
  display: grid;
  grid-template-columns: 1fr 4fr 2fr 2fr 2fr 1fr;
  padding: 0.75rem;
  background-color: rgba(var(--text), 0.5);
  border-bottom: 1px solid rgba(var(--border), 0.5);
  font-size: 0.75rem;
  color: rgba(var(--text-hover), 1);
}

.table-placeholder {
  padding: 2rem;
  text-align: center;
  color: rgba(var(--text-hover), 1);
}

/* Storage Grid */
.storage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.storage-item {
  background-color: rgba(var(--text), 0.5);
  border-radius: 0.375rem;
  border: 1px solid rgba(var(--border), 0.5);
  padding: 0.75rem;
  height: 6rem;
}

/* Footer Navigation */
.footer-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
}

/* More Menu */
.more-menu {
  position: fixed;
  bottom: 4rem;
  left: 0;
  right: 0;
  background-color: rgb(var(--card));
  border-top: 1px solid rgba(var(--border), 1);
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1),
    0 -2px 4px -1px rgba(0, 0, 0, 0.06);
  z-index: 30;
  display: none;
}

.more-menu.active {
  display: block;
}

.more-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  border-bottom: 1px solid rgba(var(--border), 0.5);
}

.more-menu-title {
  display: flex;
  align-items: center;
}

.more-menu-title h3 {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0 0.5rem;
}

.reorder-button {
  display: flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  margin-left: 0.5rem;
  background-color: transparent;
  border: none;
  border-radius: 0.25rem;
  color: rgb(var(--foreground));
  cursor: pointer;
  font-size: 0.75rem;
}

.reorder-button.active {
  background-color: rgba(var(--text), 1);
  color: rgb(var(--cyan));
}

.reorder-button i {
  margin-right: 0.25rem;
}

.close-button {
  background-color: transparent;
  border: none;
  color: rgba(var(--text-hover), 1);
  cursor: pointer;
  padding: 0.5rem;
}

.more-menu-content {
  padding: 0.5rem;
}

/* Reorder Mode */
.reorder-instructions {
  font-size: 0.75rem;
  color: rgba(var(--text-hover), 1);
  margin-bottom: 0.5rem;
}

.reorder-columns {
  display: flex;
  gap: 0.5rem;
}

.reorder-column {
  flex: 1;
}

.column-title {
  font-size: 0.75rem;
  font-weight: 500;
  display: block;
  margin-bottom: 0.5rem;
}

.reorder-list {
  background-color: rgba(var(--text), 0.5);
  border-radius: 0.375rem;
  padding: 0.5rem;
  min-height: 100px;
}

.reorder-item {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  background-color: rgb(var(--card));
  border: 1px solid rgba(var(--border), 1);
  border-radius: 0.375rem;
  cursor: grab;
}

.reorder-item:last-child {
  margin-bottom: 0;
}

.reorder-item i {
  margin-right: 0.5rem;
  font-size: 1rem;
}

.reorder-item span {
  font-size: 0.75rem;
}

/* More Items Grid */
.more-items-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

/* Footer Bar */
.footer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  display: grid;
  width: 100%;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.25rem;
  padding: 0.25rem;
  background-color: rgba(var(--card), 0.9);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(var(--border), 0.5);
  z-index: 10000000;
}
#footer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

#main-content {
  box-sizing: border-box;
}

.footer-items {
  display: contents;
}

.footer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.25rem;
  border-radius: 0.375rem;
  background-color: transparent;
  border: none;
  color: rgba(var(--text-hover), 1);
  cursor: pointer;
}

.footer-item:hover {
  color: rgb(var(--foreground));
}

.footer-item.active {
  background-color: rgba(var(--text), 1);
  color: rgb(var(--cyan));
}

.footer-item i {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.footer-item span {
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.more-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.25rem;
  border-radius: 0.375rem;
  background-color: transparent;
  border: none;
  color: rgba(var(--text-hover), 1);
  cursor: pointer;
  position: relative;
}

.more-button:hover {
  color: rgb(var(--foreground));
}

.more-button.active {
  background-color: rgba(var(--text), 1);
  color: rgb(var(--cyan));
}

.more-indicator {
  position: absolute;
  bottom: 1.25rem;
  right: calc(50% - 0.75rem);
  font-size: 0.75rem;
}

.more-label {
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

/* Sidebar Navigation */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.graphics_cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 100%;
}

/* Responsive Styles */
@media (min-width: 768px) {
  .content-grid {
    grid-template-columns: 16rem 1fr;
  }

  .sidebar {
    position: static;
    width: auto;
  }

  .sidebar-card {
    border-radius: 0.5rem;
  }

  .nav-label {
    display: block;
  }

  .drag-handle {
    display: block;
  }

  .nav-label {
    display: block;
  }

  .drag-handle {
    display: block;
  }

  .storage-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mobile-only {
    display: none !important;
  }

  /* Conteúdo já tem espaço para sidebar em desktop */
  .dashboard-content {
    padding-left: 0; /* Reset para desktop, pois a grid já cuida do espaço */
  }
}

@media (max-width: 767px) {
  .desktop-only {
    display: none !important;
  }

  /* Adicionar estas regras para ajustar o espaço da sidebar */
  .sidebar-active .dashboard-content {
    padding-left: 4rem; /* Largura da sidebar colapsada */
    width: calc(100% - 4rem);
    margin-left: 4rem;
  }

  .sidebar {
    width: 4rem;
  }

  .sidebar.expanded {
    width: 16rem;
  }

  /* Ajustes para mobile */
  .dashboard-content {
    padding-left: 0;
    width: 100%;
    margin-left: 0;
  }

  /* Quando a sidebar está ativa em mobile */
  body:not(.footer-active) .dashboard-content {
    padding-left: 0;
    width: calc(100% - 4rem);
    margin-left: 4rem;
  }

  /* Quando a sidebar está expandida em mobile */
  body:not(.footer-active) .sidebar.expanded ~ .dashboard-content {
    padding-left: 0;
    width: calc(100% - 16rem);
    margin-left: 16rem;
  }
}

h1,
h3 {
  color: var(--text-color);
  padding-bottom: 10px;
  margin-bottom: 20px;
}
.input-group {
  position: relative;
  margin-bottom: 20px;
  width: 100%;
  font-size: 12px;
}

.input-group input,
.input-group select {
  background-color: rgba(var(--input), 0.8);
  border-radius: 8px;
  border-color: rgb(var(--border), 0.5);
  color: var(--text-color);
  padding: 16px 10px 8px; /* espaço para o label */
  font-size: 16px;
  width: 100%;
}

.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: #00c8ff;
  box-shadow: 0 0 5px #00c8ff66;
}

.input-group label {
  position: absolute;
  background-color: rgba(var(--input), 0.8);
  top: -7px;
  left: 12px;
  padding: 0 6px;
  font-size: 12px;
  color: rgb(var(--foreground));
  border-color: var(--border);
  pointer-events: none;
}

#button-group {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  width: 100%;
}

#button-group button {
  background-color: rgba(var(--blue), 1);
  color: rgba(var(--text-white), 1);
  font-weight: bold;
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

#button-group button:hover {
  background-color: #00aacc;
}

#response {
  margin-top: 20px;
  text-align: center;
  color: #66ff66;
}

.metric-card {
  padding: 16px;
  border-radius: 12px;
  border-color: rgb(var(--border), 0.5);
  flex: 1;
  margin: 8px;

  height: fit-content;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.metric-title {
  font-size: 14px;
  margin-bottom: 6px;
}

.metric-value {
  font-size: 28px;
  font-weight: bold;
  color: #00d9ff;
}

.metric-details {
  font-size: 12px;
  margin-top: 4px;
}

/* Dashboard Card */
.dashboard-card {
  position: relative; /* ou absolute/fixed se quiser posicionar em local exato */
  background-color: rgba(var(--card), 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(var(--border), 0.5);
  border-radius: 0.5rem;
  overflow: visible; /* Em vez de hidden */
  align-items: center;
  width: 100%;
  height: 100%;
  z-index: 10; /* Fica na frente do mapa */
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(var(--border), 0.5);
  width: 100%;
  height: 100%;
}

.card-title {
  display: flex;
  align-items: center;
  font-size: 1.125rem;
  font-weight: 600;
}

.card-title i {
  margin-right: 0.5rem;
  color: rgb(var(--cyan));
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.live-badge {
  display: flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  background-color: rgba(var(--text), 0.5);
  border: 1px solid rgba(var(--cyan), 0.5);
  color: rgb(var(--cyan));
  font-size: 0.75rem;
}

.live-indicator {
  height: 0.375rem;
  width: 0.375rem;
  border-radius: 9999px;
  background-color: rgb(var(--cyan));
  margin-right: 0.25rem;
  animation: pulse 2s infinite;
}

.card-content {
  padding: 1rem;
  height: 100%;
}

.chat-bubble {
  position: fixed;
  bottom: 60px;
  right: 30px;
  z-index: 9999; /* Garante que fique por cima */
}

.chat-btn {
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 30px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: width 0.3s ease, border-radius 0.3s ease;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.chat-btn-text {
  display: inline-block;
  transition: opacity 0.3s ease;
  font-size: 14px; /* Ajuste o tamanho da fonte */
  opacity: 0; /* Inicialmente, o texto não é visível */
  text-align: center; /* Alinha o texto */
  position: absolute; /* Posiciona o texto dentro do botão */
  visibility: hidden; /* Inicialmente invisível */
}

.chat-btn:hover {
  width: 150px; /* Aumenta a largura do botão */
  border-radius: 30px; /* Mantém o arredondamento */
}

.chat-btn:hover .chat-btn-text {
  opacity: 1; /* Torna o texto visível */
  visibility: visible; /* Garante que o texto apareça */
}

.chat-btn .plus-sign {
  font-size: 25px; /* Ajusta o tamanho do símbolo */
}

/* Quando o mouse não está sobre o botão, o + fica visível */
.chat-btn:hover .plus-sign {
  display: none; /* Esconde o + quando o botão estiver expandido */
}

/* Estilo para a tabela de usuários */
#table,
.table {
  flex: 1 1 100%; /* A tabela ocupará 45% do espaço */
  padding: 5px;
  border-radius: 8px;
  overflow-x: auto; /* Para permitir rolagem horizontal em telas pequenas */
  font-size: 12px;
  max-width: 100%;
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 10px;
  text-align: left;
  border: 1px solid rgba(var(--border), 1);
}

.console-container {
  display: flex;
}
#line-numbers {
  width: 40px;
  background-color: var(--hover-color);
  color: var(--text-color);
  font-family: monospace;
  font-size: 14px;
  padding: 10px;
  text-align: right;
  border: 1px solid var(--border);
  height: 300px;
  overflow-y: scroll;
}
#sql-query {
  width: 100%;
  height: 300px;
  font-family: monospace;
  font-size: 14px;
  padding: 10px;
  background-color: var(--hover-color);
  color: var(--text-color);
  border: 1px solid rgba((--border), 0.5);
  resize: none;
  margin-left: -40px; /* Para alinhar o conteúdo com a numeração */
  z-index: 1;
  position: relative;
}

.input,
.select {
  border: 1px solid rgba(var(--border), 0.5);
  background-color: rgba(var(--input), 0.5);
  border-radius: 8px;
  color: var(--text-color);
  font-size: 14px;
  min-height: 20px;
  width: 100%;
}

.input:focus,
.select:focus {
  outline: none;
  border-color: #00c8ff;
  box-shadow: 0 0 5px #00c8ff66;
}

.label {
  position: absolute;
  background-color: rgba(var(--input), 0.8);
  top: -7px;
  left: 12px;
  padding: 0 6px;
  font-size: 12px;
  color: rgb(var(--foreground));
  pointer-events: none;
}

/* Adicione no contêiner do input para suportar label absoluta */
.input-wrapper {
  position: relative;
  margin-bottom: 20px;
}
.console-container {
  position: relative;
}

button {
  background-color: #0035bc;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 300;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease,
    box-shadow 0.2s ease;
}

button:active {
  transform: translateY(0);
}

.search-input {
  flex: 1 1 100%; /* A tabela ocupará 45% do espaço */
  padding: 5px;
  border-radius: 8px;
  overflow-x: auto; /* Para permitir rolagem horizontal em telas pequenas */
  font-size: 12px;
  max-width: 100%;
  width: 100%;
  margin-bottom: 20px;
  border-collapse: collapse;
  padding: 10px;
  text-align: left;
  border: 1px solid var(--border);
}


/* Galeria de imagens/serviços/equipamentos - alinhamento à esquerda */
.image-gallery,
.equipment-gallery,
.final-clients {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start; /* Alinha à esquerda */
}

.modal-image {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 8px;
  cursor: pointer;
}
#image-gallery,
#equipment-gallery,
#final-clients,
#contracts-cards-mobile {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start; /* Alinha à esquerda */
}

/* Padronização da largura para todos os cards */
.image-item,
.contract-card-custom {
  background-color: rgba(var(--card), 0.5);
  backdrop-filter: blur(8px);
  display: flex;
  min-width: 300px; /* Largura padronizada para todos */
  max-width: 450px; /* Largura padronizada para todos */
  padding: 5px;
  align-items: center; /* Alinha verticalmente */
  gap: 10px; /* Espaçamento entre imagem e texto */
  border: 1px solid rgba(var(--border), 1);
  border-radius: 0.5rem;
  box-sizing: border-box; /* Garantir que o padding e border sejam incluídos no cálculo do tamanho */
  flex: 0 1 auto; /* Permite que os cards se ajustem automaticamente */
  font-size: 1vw;
}

.category-header {
  width: 100%;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1); /* linha leve */
}

.category-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: white;
}

.image-preview {
  width: 150px;
  margin-left: 1%;
  height: 100px;
  max-width: 150px;
  max-height: 100px;

  gap: 10px;
  object-fit: cover;
}

.image-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 90%;
  padding: 5px;
  font-size: 10px; /* Tamanho padrão */
}
.title-container {
  position: relative;
  display: flex;
  justify-content: space-between; /* Coloca as colunas nas extremidades */
  align-items: flex-start; /* Alinha o conteúdo no topo */
}

.info-column {
  flex: 1; /* A coluna de informações ocupa o espaço restante */
  padding-right: 10px; /* Espaço entre a coluna de informações e a coluna do botão */
}

.info-column label {
  display: block; /* Faz com que cada label fique em uma linha separada */
  margin-bottom: 5px; /* Dá um pequeno espaço entre as labels */
}

.delete-column {
  display: flex;
  justify-content: flex-end; /* Posiciona o botão no final da coluna */
  align-items: flex-start; /* Alinha o botão no topo */
}

.delete-service {
  background-color: transparent;
  position: absolute; /* <- necessário para posicionamento dentro do container pai */
  right: 0px; /* distância da borda direita */
  bottom: 0px; /* distância da borda inferior */
  color: var(--text-color);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  padding: 5px 10px;
}

.input-group-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-text {
  display: block; /* Faz o label ocupar toda a largura disponível */
  width: 100%; /* Define a largura como 100% */
  text-align: center; /* Centraliza o texto */
  font-weight: bold; /* Opcional: Deixa o texto em negrito */
  margin-top: 10px; /* Adiciona espaçamento superior */
}

/* Inputs do modal */
.modal-content textarea {
  width: calc(100% - 120px); /* Ajusta largura para alinhar */
  padding: 10px;
  border: 1px solid rgba(var(--border), 0.5);
  background-color: rgba(var(--card), 0.8);
  color: var(--text-color);
  border-radius: 5px;
  text-align: left;
}

/* Alinhamento dos labels e inputs */
.modal-content .textarea-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.modal-content label {
  text-align: left;
  font-weight: bold;
  color: #ccc;
}

/* Botões do modal */
.modal-buttons {
  display: flex;
  justify-content: space-between;
}

.modal-buttons button {
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
}

#save-btn {
  background-color: #007bff;
  color: var(--text-color);
}

#close-modal,
#close-mini-modal,
.close-invoice-btn,
#final_close_modal,
#close-edit-modal,
#close-user_modal,
#close-employee_modal,
#close-imageModal,
#close-finalclient-btn,
#close-employee-btn,
#close-addequip-modal,
#closeGroupModal,
.closecontractmodal,
#closecontractinfomodal {
  position: absolute;
  top: 0px;
  right: 0px;
  background: none;
  color: var(--text-color);
  border: none;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
}

.close {
  display: none;
}

#save-btn:hover {
  background-color: #0056b3;
}

.confirm-btn,
#cancel-logout {
  margin-top: 10px;
  background-color: #dc3545;
  color: var(--text-color);
  border: none;
  cursor: pointer;
}
.confirm-btn {
  background-color: green;
}

/* Botões do modal de finalização */
#final_save_btn {
  background-color: #007bff;
  color: var(--text-color);
}

#final_save_btn:hover {
  background-color: #0056b3;
}

.login-container {
  width: 300px;
  background-color: rgba(var(--card), 0.8);
  color: var(--text-color);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
  text-align: center;
  margin: 100px auto;
  align-content: center;
}

.login-container h2 {
  margin-bottom: 20px;
}

.login-container input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid rgba(var(--border), 0.5);
  background-color: var(--hover-color);
  color: var(--text-color);
  border-radius: 5px;
}

.login-container button {
  width: 100%;
  padding: 10px;
  background-color: #007bff;
  border: none;
  color: var(--button-text-color);
  border-radius: 5px;
  cursor: pointer;
}

.login-container button:hover {
  background-color: #28a745;
}

.error {
  color: #dc3545;
  margin-top: 10px;
}

#mapaGoogle {
  z-index: 1;
  height: 500px;
  width: 100%; /* ocupa toda a largura disponível */
}
#map {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0; /* Mapa fica atrás */
}

#image-list-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 100%;
  gap: 10px;
  justify-content: center;
}

.image-box {
  position: relative;
  width: 15vw;
  height: 15vw;
  align-items: center;
  border: 1px solid rgba(var(--border), 0.5);

  border-radius: 5px;
  text-align: center;
}

.add-image-box {
  position: relative;
  width: 15vw;
  height: 15vw;
  border: 1px solid rgba(var(--border), 0.5);
  border-radius: 5px;
  display: flex;
  justify-content: center; /* Centraliza horizontalmente */
  align-items: center; /* Centraliza verticalmente */
  text-align: center;
}

.add-image-button {
  background-color: transparent;
  width: 100%;
  height: 100%;
  padding: 0px;
  margin: 0px;
  font-size: 40px;
}
.add-image-button:hover {
  background-color: var(--hover-color);
}

.add-ba-image-button {
  background-color: transparent;
  width: 100%;
  height: 100%;
  padding: 0px;
  margin: 0px;
  font-size: 30px;
}
.add-ba-image-button:hover {
  background-color: var(--hover-color);
}

.image-service-preview {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid rgba(var(--border), 0.5);
  cursor: pointer;
}

.buttons-container {
  position: absolute;
  bottom: 0; /* Alinha na parte inferior */
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center; /* Centraliza horizontalmente */
  align-items: center; /* Alinha verticalmente dentro do contêiner */
}

.edit-image-button {
  background-color: #0056b3;
  color: var(--button-text-color);
}

.delete-image-button,
#delete-user-confirm {
  background-color: #dc3545;
  color: var(--button-text-color);
}

.edit-image-button,
.delete-image-button {
  border: none;
  cursor: pointer;
  font-size: 16px;
  width: 40%; /* Tamanho fixo do botão */
  justify-content: center; /* Centraliza o ícone horizontalmente */
  align-items: center; /* Centraliza o ícone verticalmente */
  border-radius: 50%; /* Botão circular (opcional) */
  margin: 0px;
  padding: 0px;
}
@media (max-width: 768px) {
  .image-box {
    position: relative;
    width: 33vw;
    height: 30vw;
    align-items: center;
    border: 1px solid rgba(var(--border), 0.5);
    border-radius: 5px;
    text-align: center;
  }
  .edit-image-button,
  .delete-image-button {
    font-size: 12px;
    width: 35%;
  }

  /* Modal - Conteúdo */
  .modal-content {
    padding: 20px;
    border-radius: 10px;
    width: 90vw;
    min-width: 90vw;
    text-align: center;
    margin: auto;
  }
  .image-item {
    background-color: rgba(var(--card), 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    width: 100%;
    max-width: 100%;
    padding: 5px;
    align-items: center; /* Alinha verticalmente */
    gap: 10px; /* Espaçamento entre imagem e texto */
    border: 1px solid rgba(var(--border), 0.5);
    border-radius: 0.5rem;
    box-sizing: border-box; /* Garantir que o padding e border sejam incluídos no cálculo do tamanho */
  }
}

#loading {
  position: fixed; /* Posiciona o elemento fixo na tela */
  top: 0;
  left: 0;
  width: 100%; /* Largura completa da tela */
  height: 100%; /* Altura completa da tela */
  background-color: rgba(0, 0, 0, 0.5); /* Fundo semi-transparente */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-size: 16px;
  z-index: 99999999999999999999; /* Garante que o carregamento fique sobre outros elementos */
}

.filters-container input[type="checkbox"] {
  width: auto;
  display: flex;
}

.filters-container .input-group {
  display: flex;
  align-items: center;
}

#select-report {
  margin-bottom: 20px;
  padding: 10px;
  background-color: var(--text-color);
  color: black;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Filtros */
.filters-container {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 colunas */
  gap: 20px;
  margin-bottom: 20px;
}

.filters-container .filter-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filters-container label {
  font-weight: bold;
}

.filters-container input[type="date"] {
  color: var(--text-color);
  background-color: rgba(var(--card), 0.8);
  border: 1px solid rgba(var(--border), 0.5);
  border-radius: 5px;
  padding: 10px;
  width: 100%;

  /* Remove o ícone padrão */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  /* Adiciona ícone customizado (branco) */
  background-image: url('data:image/svg+xml;utf8,<svg fill="white" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 10h5v5H7z" opacity=".3"/><path d="M19 4h-1V2h-2v2H8V2H6v2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11zm0-13H5V6h14v1z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
}
/* Estilo da linha de separação */
.separator {
  margin: 20px 0;
  border: none;
  border: 1px solid rgba(var(--border), 0.5);
}

/* Estilo do total */
.total-service {
  font-size: 14px;
  font-weight: bold;
  text-align: right;
}

.total-value {
  font-size: 14px;
}

#retroactive-checkbox {
  vertical-align: middle;
  margin: 0px;
}
.subgroup {
  font-weight: bold;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  text-align: left;
  gap: 10px;
}

#permission-services,
#permission-users,
#permission-management,
#permission-configurations,
#permission-contracts,
#permission-equipament {
  font-size: 12px;
  text-align: left;
}

#permission-services input[type="checkbox"],
#permission-users input[type="checkbox"],
#permission-management input[type="checkbox"],
#permission-configurations input[type="checkbox"],
#permission-contracts input[type="checkbox"],
#permission-equipament input[type="checkbox"] {
  margin-left: 10px;
  margin-right: 15px;
  cursor: pointer;
  accent-color: #007bff; /* Cor personalizada para navegadores compatíveis */
}

.worker-options-list,
.client-user-options-list {
  border: 1px solid rgba(var(--border), 0.5);
  border-radius: 4px;
  max-height: 150px;
  overflow-y: auto;
  background-color: rgba(var(--card), 0.8);
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  justify-content: flex-start;
}
.worker-options-list input[type="checkbox"],
.client-user-options-list input[type="checkbox"] {
  margin: 0;
  left: 0;
  width: 30px;
  flex-shrink: 0; /* Garante que a checkbox não será encolhida */
}

.worker-options-list label,
.client-user-options-list label {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 90%;
  cursor: pointer;
  font-size: 10px;
  margin: 0; /* Remove any potential margin that might affect alignment */
  padding: 0; /* Remove any padding inside label */
}

.worker-options-list input[type="checkbox"],
.client-user-options-list input[type="checkbox"] {
  margin: 0; /* Remove margin around checkbox */
}

#equip-worker-options label,
#equip-final_client_id label {
  display: flex !important;
}
/* Container flexível para inputs */
.form-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px; /* Espaço reduzido entre os inputs */
}

/* Cada grupo de input */
.form-group {
  flex: 1 1 calc(50% - 8px); /* Divide em duas colunas */
  min-width: 150px; /* Tamanho mínimo dos inputs */
  font-size: 12px;
}

/* Reduzindo tamanho dos inputs */
.form-group label {
  font-size: 13px; /* Fonte menor para os rótulos */
  display: block;
  margin-bottom: 3px;
}

.form-group input {
  width: 100%;
  padding: 5px; /* Reduzindo altura dos inputs */
  font-size: 13px; /* Tamanho menor da fonte */
  border-radius: 4px;
}

/* Ajuste para telas menores */
@media (max-width: 600px) {
  .form-group {
    flex: 1 1 100%; /* Em telas pequenas, ocupa toda a largura */
  }
}
.add-btn {
  border: 1px solid rgba(var(--border), 0.5);
  border-radius: 4px; /* Bordas arredondadas */
  background-color: #00000000; /* Cor de fundo do botão igual ao do select */
  color: var(--text-color); /* Cor do texto */
  cursor: pointer; /* Cursor de mãozinha */
  width: 24px; /* Ajuste o tamanho conforme necessário */
  height: 24px; /* Ajuste o tamanho conforme necessário */
  display: flex;
  justify-content: center;
  align-items: center; /* Centraliza o ícone dentro do botão */
  padding: 0; /* Remove o padding para ajustar a área do botão */
}
.add-btn:hover {
  color: #0056b3; /* Cor de fundo ao passar o mouse */
  background-color: #00000000;
}

.input-group {
  position: relative;
}

.input-group label {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  color: #999;
  font-size: 10px;
  transition: all 0.3s ease;
  pointer-events: none;
  padding: 0 4px; /* Ajustado para o padding do label ser justo ao texto */
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group textarea:focus + label,
.input-group textarea:not(:placeholder-shown) + label,
.input-group select:focus + label,
.input-group select:not(:placeholder-shown) + label {
  top: 0;
  left: 10px;
  font-size: 12px;
  color: #999;
  padding: 0 4px; /* Ajustado para o padding do label ser justo ao texto */
  background-color: rgba(var(--card), 0.8);
}

.reset-password-container {
  display: flex;
  align-items: center; /* Alinha verticalmente */
  gap: 5px; /* Espaço entre o checkbox e o texto */
  white-space: nowrap; /* Impede quebra de linha */
  font-size: 14px;
}

.seta-direcao {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.seta-rotativa {
  width: 0;
  height: 0;
  border: 10px solid transparent;
  border-bottom-color: red; /* seta pra baixo que será girada */
  transform-origin: center;
  transition: transform 0.2s ease;
}
#footer-bar {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 70px;
  background-color: rgba(var(--card), 0.8);
  border: 1px solid rgba(var(--border), 0.5);
  border-bottom: 0px;
  justify-content: space-between;
  padding: 10px;
  align-items: center;
  display: flex;
  font-size: 18px;
  z-index: 1000;
  font-weight: bold;
}

@media screen and (max-width: 768px) {
  #footer-bar {
    width: 100%;
  }
}

#caixa-ruas {
  position: fixed;
  background-color: rgba(var(--card), 0.8);
  border: 1px solid rgba(var(--border), 0.5);
  padding: 10px;
  max-height: 90%;
  overflow-y: auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  color: var(--text-color);
  border-radius: 8px;
  width: 250px;
}

/* Estilo personalizado para os botões */
.btn-custom {
  background: transparent; /* Botão transparente */
  color: var(--text-color); /* Cor da letra branca */
  font-size: 20px; /* Tamanho da fonte de 10px */
  border: none; /* Sem borda */
  padding: 5px 10px; /* Espaçamento interno do botão */
  cursor: pointer; /* Cursor em forma de ponteiro ao passar sobre o botão */
  transition: background 0.3s ease; /* Animação de transição de fundo */
}

/* Efeito ao passar o mouse sobre o botão */
.btn-custom:hover {
  background: rgba(
    255,
    255,
    255,
    0.2
  ); /* Fundo ligeiramente branco ao passar o mouse */
}

/* Estilo de foco no botão (quando ele recebe o foco) */
.btn-custom:focus {
  outline: none; /* Remove a borda de foco */
}

/* Pode adicionar ainda mais customizações para diferentes estados do botão, como: active */
.btn-custom:active {
  background: rgba(
    255,
    255,
    255,
    0.4
  ); /* Fundo levemente mais opaco quando pressionado */
}
.form-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-content: center;
  width: 100%;
}

.form-column {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 300px;
}
/* Filtros */
.filters-container {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 colunas */
  gap: 20px;
  margin-bottom: 20px;
  width: 100%;
  align-content: center;
  justify-content: space-between;
}

.filters-container .filter-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filters-container label {
  font-weight: bold;
}

.filters-container input[type="date"] {
  color: var(--text-color);
  background-color: rgba(var(--card), 0.8);
  border: 1px solid rgba(var(--border), 0.5);
  border-radius: 5px;
  padding: 10px;
  width: 100%;

  /* Remove o ícone padrão */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  /* Adiciona ícone customizado (branco) */
  background-image: url('data:image/svg+xml;utf8,<svg fill="white" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 10h5v5H7z" opacity=".3"/><path d="M19 4h-1V2h-2v2H8V2H6v2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11zm0-13H5V6h14v1z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
}
@media (max-width: 768px) {
  /* Oculta o cabeçalho tradicional da tabela */
  #final-clients thead {
    display: none;
  }

  /* Para o corpo da tabela e linhas */
  #final-clients tbody,
  #final-clients tr,
  #final-clients td {
    display: block;
    width: 100%;
    max-width: 100%;
    background: transparent;
    border: none;
    margin-bottom: 10px;
  }

  /* Estilo para cada "cartão" */
  #final-clients tr {
    border: 1px solid rgba(var(--border), 0.5);
    border-radius: 8px;
    padding: 5px;
    padding-left: 10px;
    padding-right: 10px;
    display: flex;
    flex-direction: column;
  }

  /* Para cada célula, exibe o cabeçalho como rótulo antes do valor */
  #final-clients td {
    display: block;
    padding: 6px 10px;
    border-bottom: 1px solid #333;
    font-size: 12px;
    padding-left: 15%;
    position: relative;
  }

  /* Adiciona os rótulos dos cabeçalhos dinâmicos usando ::before */
  #final-clients td::before {
    content: attr(data-label);
    font-weight: bold;
    margin-right: 8px;
    color: inherit;
    position: absolute;
    left: 0;
    white-space: nowrap;
  }

  /* Ajuste de posição para a primeira coluna (em negrito) */
  #final-clients td:first-child {
    font-weight: normal;
  }

  /* Oculta as células e linhas vazias */
  #final-clients td:empty,
  #final-clients tr:empty {
    display: none;
  }
}
.upload-box {
  position: relative;
  height: 60vh;
  width: 50%;
  border: 1px solid rgba(var(--border), 0.5);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background-color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.preview-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.upload-box .upload-icon,
.upload-box .upload-label {
  position: absolute;
  color: #999;
  font-size: 24px;
  pointer-events: none;
}

.upload-box .upload-label {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  white-space: pre-line;
  text-align: center;
}

.upload-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* Container dos balões */

/* Estiliza cada balão */
.action-bubble {
  border: 1px solid rgba(var(--border), 0.5);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.action-bubble:hover {
  transform: scale(1.1);
}

/* Ícones dentro dos balões */
.action-bubble i {
  font-size: 18px;
}
.input-row {
  display: flex;
  gap: 10px;
}

.input-row .input-group {
  flex: 1;
}

.full-width {
  flex: 1 100%;
}
.info-text {
  display: block; /* Faz o label ocupar toda a largura disponível */
  width: 100%; /* Define a largura como 100% */
  text-align: center; /* Centraliza o texto */
  font-weight: bold; /* Opcional: Deixa o texto em negrito */
  margin-top: 10px; /* Adiciona espaçamento superior */
}

/* Inputs do modal */
.modal-content textarea {
  width: 100%; /* Ajusta largura para alinhar */
  padding: 10px;
  border: 1px solid rgba(var(--border), 0.5);
  background-color: rgba(var(--card), 0.8);
  color: var(--text-color);
  border-radius: 5px;
  text-align: left;
}

/* Alinhamento dos labels e inputs */
.modal-content .textarea-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.login-container {
  width: 300px;
  background-color: rgba(var(--card), 0.8);
  color: var(--text-color);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
  text-align: center;
  margin: 100px auto;
}

.login-container h2 {
  margin-bottom: 20px;
}

.login-container input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid rgba(var(--border), 0.5);
  background-color: var(--hover-color);
  color: var(--text-color);
  border-radius: 5px;
}

.login-container button {
  width: 100%;
  padding: 10px;
  background-color: #007bff;
  border: none;
  color: var(--button-text-color);
  border-radius: 5px;
  cursor: pointer;
}

.login-container button:hover {
  background-color: #28a745;
}

.error {
  color: #dc3545;
  margin-top: 10px;
}
.nav-item.active {
  background-color: #007bff;
  color: white;
  font-weight: bold;
}

#suggestions {
  background-color: rgba(var(--card), 0.8);
  position: absolute;
  border: 1px solid #ccc;
  max-height: 150px;
  overflow-y: auto;
  width: 200px;
}

#suggestions div {
  padding: 5px;
  cursor: pointer;
}

#suggestions div:hover {
  background-color: #666;
}

#current-weather {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.weather-icon {
  width: 2rem;
  height: 2rem;
}

.weather-text {
  font-size: 12px;
  margin: 0;
}

@media (max-width: 600px) {
  .weather-text {
    display: none; /* Oculta texto no mobile */
  }
}

#calendar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  max-width: 100%;
  margin-top: 20px;
}

.day {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: center;
  border-radius: 8px;
}

.today {
  background: #ffe9a8;
  color: #666;
  font-weight: bold;
  border: 2px solid #f1c40f2d;
}

.modal-inner {
  border-radius: 10px;
  width: 100%;
  max-width: 100%;
  max-height: 80vh;
  overflow-y: auto;
}

.hour-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

.hour-icons img,
.tab-icons,
.raindrop {
  width: 48px;
  height: 48px;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 4px;
}

.hour-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#devices-container table,
#gps-equipamentos-container table {
  width: 100%;
  border-collapse: collapse;
}
#devices-container,
#gps-equipamentos-container {
  overflow-x: auto;
  max-width: 100%;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 2px solid #eee;
  margin-bottom: 1rem;
  user-select: none;
  gap: 0.5rem;
}

.tab {
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  max-width: 100%;
  font-weight: 600;
  border-bottom: 3px solid transparent;
  transition: border-color 0.3s;
  scrollbar-width: none; /* Firefox */
}

.tab.active {
  border-bottom: 3px solid #1a73e8;
  scrollbar-width: none; /* Firefox */
}

.tab-content {
  display: none;
  scrollbar-width: none; /* Firefox */
  max-width: 100%;
  font-size: 0.9rem;
}

.tab-content.active {
  display: block;
}

.fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #0077ff;
  transition: height 0.3s ease;
}

.device-card select {
  padding: 0.4rem;
  border-radius: 4px;
  border: 1px solid #ccc;
}

@media (max-width: 768px) {
  .card-title {
    display: flex;
    align-items: center;
    font-size: 3.5vw;
    font-weight: 600;
  }

  .card-title i {
    margin-right: 1vw;
    color: rgb(var(--cyan));
  }
  .category-title {
    font-size: 3vw;
    font-weight: 600;
  }
  .info-column {
    flex: 1; /* A coluna de informações ocupa o espaço restante */
    padding-right: 10px; /* Espaço entre a coluna de informações e a coluna do botão */
    font-size: 2.5vw;
  }

  .info-column label {
    display: block; /* Faz com que cada label fique em uma linha separada */
    margin-bottom: 5px; /* Dá um pequeno espaço entre as labels */
  }
  .icon-button {
    background-color: transparent;
    border: none;
    border-radius: 0rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(var(--text-hover), 1);
    cursor: pointer;
    font-size: 3.5vw;
    position: relative;
  }
  #calendar-city-name,
  .previsao_do_tempo {
    font-size: 3.5vw;
  }
  .device-card select {
    padding: 0.4rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 3vw;
  }
  .tablinks {
    padding: 1vw 1vw;
    border-radius: 0.25rem;
    background-color: transparent;
    border: none;
    color: rgb(var(--foreground));
    cursor: pointer;
    font-size: 3vw;
  }

  .tablinks.active {
    background-color: rgba(var(--text), 1);
    color: rgb(var(--cyan));
  }
  .client-gps-select {
    padding: 0.4rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 2vw;
  }

  #contracts-table {
    display: none;
  }
  .contracts-cards-mobile {
    display: flex;
    width: 100vw;
    flex-direction: column;
    gap: 1rem;
  }

  .hide-mobile {
    display: none;
  }
  .image-preview {
    width: 20vw;
    margin-left: 1%;
    height: 20vw;
    min-width: 20vw;
    min-height: 20vw;
    max-width: 20vw;
    max-height: 20vw;

    gap: 10px;
    object-fit: cover;
  }
}

.button-column {
  display: flex;
  flex-direction: column;
  align-items: right;
  padding: 0;
}

.button-column button {
  background: none;
  border: none;
  cursor: pointer;
  color: #777;
  font-size: 16px;
}

.contract-card-custom {
  background-color: rgba(var(--card), 0.5);
  backdrop-filter: blur(8px);
  display: flex;
  min-width: 300px; /* Igual aos cards de serviços */
  max-width: 400px; /* Igual aos cards de serviços */
  padding: 5px;
  align-items: center; /* Alinha verticalmente */
  gap: 10px; /* Espaçamento entre conteúdo */
  border: 1px solid rgba(var(--border), 1);
  border-radius: 0.5rem;
  box-sizing: border-box; /* Garantir que o padding e border sejam incluídos no cálculo do tamanho */
  margin-bottom: 16px;
  transition: transform 0.2s ease;
  font-size: 12px; /* Mesmo tamanho dos cards de serviços */
  flex: 0 1 auto; /* Permite que os cards se ajustem automaticamente */
}

.contract-card-custom:hover {
  transform: scale(1.01);
}

.title-container {
  display: flex;
  justify-content: space-between;
  align-items: center; /* Centraliza verticalmente todo o conteúdo */
  width: 100%;
}

.info-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-size: 12px; /* Padroniza o tamanho da fonte igual aos serviços */
}

.client-name {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.contract-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 8px;
  font-size: 12px; /* Padroniza o tamanho da fonte igual aos serviços */
}

.button-column {
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centraliza verticalmente os botões */
  align-items: flex-end; /* Alinha os botões à direita */
  gap: 5px; /* Reduz o gap entre botões */
  padding-left: 12px;
  min-width: fit-content; /* Garante que os botões não sejam comprimidos */
}

.button-column button {
  background: none;
  border: none;
  cursor: pointer;
  color: #777;
  font-size: 16px;
  padding: 2px 4px; /* Adiciona um pequeno padding para melhor clique */
}

.line-separator {
  border: none;
  border-top: 1px solid rgba(var(--border), 1);
  margin: 8px 0;
}
/* Estilos para o Modal de Ajuda - Inspirado em expandable-section */
.help-modal {
  display: none; /* Oculto por padrão */
  position: fixed; /* Fica fixo na tela */
  z-index: 1000; /* Fica na frente de outros elementos */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* Permite rolagem se o conteúdo for grande */
  background-color: rgba(var(--card), 0.8);
}

.help-modal-content {
  margin: 10% auto; /* 10% do topo e centralizado horizontalmente */
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  width: 80%; /* Pode ajustar conforme necessário */
  max-width: 1000px; /* Largura máxima */
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  animation-name: animatetop;
  animation-duration: 0.4s;
  background-color: rgba(var(--card), 0.8);
}

@keyframes animatetop {
  from {
    top: -300px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}

.help-modal-header {
  padding: 10px 15px;
  background-color: #e9ecef;
  color: #003366;
  border-bottom: 1px solid #ccc;
  border-radius: 5px 5px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.help-modal-header h2 {
  margin: 0;
  font-size: 1.25em;
}

.help-modal-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.help-modal-close:hover,
.help-modal-close:focus {
  color: #003366;
  text-decoration: none;
  cursor: pointer;
}

.help-modal-body {
  padding: 15px;
  line-height: 1.6;
}

.help-modal-body p,
.help-modal-body ul {
  margin-left: 10px;
}

.help-modal-body ul {
  padding-left: 20px;
  margin-top: 0;
}

/* centraliza apenas o vídeo */
.help-modal-body .video-placeholder {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.help-modal-body .video-placeholder video {
  object-fit: cover;
  max-width: 100%; /* opcional, evita que ultrapasse o contêiner */
}

.help-modal-body h3 {
  margin: 0;
  margin-top: 15px;
  margin-bottom: 0px;
  font-size: 1.25em;
}

@media (max-width: 768px) {
  .help-modal-body h3 {
    margin: 0;
    margin-top: 15px;
    margin-bottom: 0px;
    font-size: 3vw;
  }
  .help-modal-body h2 {
    margin: 0;
    margin-top: 15px;
    margin-bottom: 0px;
    font-size: 3.5vw;
  }
  .help-modal-body h1 {
    margin: 0;
    margin-top: 15px;
    margin-bottom: 0px;
    font-size: 3.5vw;
  }
}

/* Ajuste para mobile - igual aos cards de serviços */
@media (max-width: 768px) {
  .contracts-cards-mobile {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 0 1rem; /* Adiciona padding lateral para não colar nas bordas */
    box-sizing: border-box;
  }

  .contract-card-custom {
    width: 100%; /* Ocupa toda a largura disponível em mobile */
    max-width: 100%; /* Remove limitação em mobile */
    min-width: unset; /* Remove largura mínima fixa em mobile */
  }
}

/* Container dos contratos - alinhamento à esquerda */
.contracts-cards-mobile {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start; /* Alinha à esquerda */
}

/* Propriedades específicas dos contratos que complementam a padronização */
.contract-card-custom {
  margin-bottom: 16px;
  transition: transform 0.2s ease;
  font-size: 12px;
}

.contract-card-custom:hover {
  transform: scale(1.01);
}

.line-separator {
  border: none;
  border-top: 1px solid rgba(var(--border), 1);
  margin: 8px 0;
}

.line-separator {
  border-top: 1px solid #e5e7eb;
  margin: 1rem 0;
}

/* Estilos para o modal de timeline */
.timeline-modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000000;
}

.timeline-modal {
  background-color: rgba(var(--card), 0.99);
  border-radius: var(--radius);
  border: 1px solid rgba(var(--border), 1);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  max-width: 90vw;
  max-height: 90vh;
  width: 600px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.timeline-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid rgba(var(--border), 1);
  background-color: rgba(var(--card), 1);
}

.timeline-modal-header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: rgb(var(--foreground));
}

.timeline-modal-header .close-modal {
  background-color: transparent;
  border: none;
  border-radius: 0.25rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(var(--text-hover), 1);
  cursor: pointer;
  font-size: 1.2rem;
}

.timeline-modal-header .close-modal:hover {
  background-color: rgba(var(--text), 0.5);
  color: rgb(var(--foreground));
}

.timeline-content {
  padding: 1rem;
  overflow-y: auto;
  flex: 1;
  max-height: calc(90vh - 80px);
}

.timeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline-item {
  border: 1px solid rgba(var(--border), 1);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
  background-color: rgba(var(--card), 1);
}

.timeline-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.timeline-type {
  font-weight: 600;
  color: rgb(var(--cyan));
}

.timeline-date {
  color: rgba(var(--text-hover), 1);
  font-size: 0.875rem;
}

.timeline-total {
  font-weight: 600;
  color: rgb(var(--green));
}

.timeline-odometer {
  color: rgba(var(--text-hover), 1);
  font-size: 0.875rem;
}

.timeline-gas-type {
  color: rgba(var(--text-hover), 1);
  font-size: 0.875rem;
}

.timeline-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.timeline-actions button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: background-color 0.2s ease;
}

.timeline-actions button:hover {
  background-color: rgba(var(--text), 0.1);
}

@media (max-width: 768px) {
  .timeline-modal {
    width: 95vw;
    max-height: 95vh;
  }
  
  .timeline-details {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .timeline-actions {
    justify-content: center;
  }
}



.images-modal {
  background: rgba(var(--card), 0.99);
  border-radius: 12px;
  color: rgba(var(--text), 1);
  max-width: 90%;
  max-height: 90%;
  width: 800px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.images-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
  color: rgba(var(--text), 1);
  background: rgba(var(--card), 0.99);
}

.images-modal-header h3 {
  margin: 0;
  color: rgba(var(--text), 1);
  font-size: 1.2em;
}

.images-modal-header .close-modal {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: rgba(var(--text), 1);
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.images-modal-header .close-modal:hover {
  background-color: rgba(var(--text), 0.1);
  color: rgba(var(--text), 1);
}

.images-content {
  padding: 20px;
  max-height: 70vh;
  overflow-y: auto;
}

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

.image-container {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}



.image-container:hover {
  transform: translateY(-2px);
}


.image-container:hover .modal-image {
  opacity: 0.9;
}

.download-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
  opacity: 0;
}

.image-container:hover .download-btn {
  opacity: 1;
}

.download-btn:hover {
  background: rgba(0, 0, 0, 0.9);
}

/* --- Estilo para os cards de contratos --- */
.contract-card {
  background: rgba(30, 30, 30, 0.95);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  padding: 20px 18px 16px 18px;
  margin-bottom: 18px;
  border: 1px solid #333;
  color: #f3f3f3;
  position: relative;
  transition: box-shadow 0.2s;
}

.contract-card:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}

.contract-card .contract-actions {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  gap: 12px;
}

.contract-card .contract-actions i {
  color: #7ecfff;
  cursor: pointer;
  font-size: 1.2em;
  transition: color 0.2s;
}

.contract-card .contract-actions i:hover {
  color: #fff;
}

.contract-card .contract-title {
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 8px;
  color: #7ecfff;
}

.contract-card .contract-info {
  margin-bottom: 8px;
  font-size: 1em;
}

.contract-card .contract-info strong {
  color: #fff;
}

.contract-card .contract-quantidade {
  font-size: 0.98em;
  color: #bdbdbd;
  margin-bottom: 2px;
}

@media (max-width: 600px) {
  .contract-card {
    padding: 14px 8px 12px 8px;
    font-size: 0.98em;
  }
  .contract-card .contract-actions {
    top: 10px;
    right: 10px;
    gap: 8px;
  }
}


/* Estilos do modal de imagens */
.images-modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999999;
}

.image-modal-content {
  z-index: 999999999;
}
.modal-image {
  z-index: 999999999;
}

@media (max-width: 600px) {
  #fuel-form .input-group {
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
  }
  #fuel-form .input-group input[type="file"] {
    flex: 1 1 auto;
    min-width: 0;
  }
  #fuel-form .input-group label {
    min-width: 100px;
    margin-bottom: 0;
  }
  #upload-files {
    margin-top: 0 !important;
    height: 38px;
    min-width: 38px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}