/* Sky Informática - Gestão TI Portal */
:root {
  --primary: #0066CC;
  --dark-blue: #004494;
  --light-blue: #E8F4FD;
  --accent: #00AAFF;
  --sidebar-bg: #1a2332;
  --sidebar-hover: #243347;
  --text: #333333;
  --white: #ffffff;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-500: #adb5bd;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 20px rgba(0,0,0,0.12);
  --transition: all 0.25s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; background: var(--gray-100); color: var(--text); display: flex; min-height: 100vh; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Filho direto do body (flex): sem flex-grow ele encolhe pro tamanho de
   conteudo do .main em vez de ocupar a largura toda disponivel. */
#app-shell { flex: 1; }

/* Sidebar */
.sidebar {
  width: 260px;
  min-height: 100vh;
  background: var(--sidebar-bg);
  color: var(--white);
  display: flex;
  flex-direction: column;
  transition: width 0.3s ease;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  overflow-x: hidden;
}
.sidebar.collapsed { width: 64px; }
.sidebar.collapsed .logo-text,
.sidebar.collapsed .nav-label,
.sidebar.collapsed .sidebar-footer { display: none; }
.sidebar.collapsed .nav-icon { margin-right: 0; }
.sidebar.collapsed .nav-item { justify-content: center; padding: 14px 0; }

.logo {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-icon {
  width: 40px; height: 40px;
  background: var(--primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
  flex-shrink: 0;
}
.logo-text h2 { font-size: 18px; font-weight: 700; white-space: nowrap; }
.logo-img { height: 36px; width: auto; display: block; flex-shrink: 0; }
.logo-text small { font-size: 11px; opacity: 0.6; white-space: nowrap; }

.nav { flex: 1; padding: 12px 0; }
.nav-item {
  display: flex; align-items: center;
  padding: 12px 20px;
  cursor: pointer;
  transition: var(--transition);
  border-left: 3px solid transparent;
  gap: 12px;
  white-space: nowrap;
}
.nav-item:hover { background: var(--sidebar-hover); }
.nav-item.active { background: var(--sidebar-hover); border-left-color: var(--accent); }
.nav-icon { font-size: 18px; width: 24px; text-align: center; flex-shrink: 0; }
.nav-label { font-size: 14px; }

/* Nav group (collapsible product section) */
.nav-group { margin: 4px 0; }
.nav-group-toggle {
  display: flex; align-items: center;
  padding: 12px 20px;
  cursor: pointer;
  transition: var(--transition);
  gap: 12px;
  white-space: nowrap;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  border-left: 3px solid transparent;
  user-select: none;
}
.nav-group-toggle:hover { background: var(--sidebar-hover); }
.nav-group-toggle .nav-arrow {
  margin-left: auto;
  font-size: 11px;
  transition: transform 0.25s ease;
}
.nav-group.collapsed .nav-group-toggle .nav-arrow { transform: rotate(-90deg); }
.nav-icon i { font-size: 16px; }
.nav-group-items {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}
.nav-group-items.open { max-height: 600px; }
.nav-item.sub { padding-left: 40px; }
.sidebar.collapsed .nav-group-toggle .nav-label,
.sidebar.collapsed .nav-group-toggle .nav-arrow { display: none; }
.sidebar.collapsed .nav-group-toggle { justify-content: center; padding: 14px 0; }
.sidebar.collapsed .nav-item.sub { padding-left: 0; justify-content: center; }

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
  opacity: 0.5;
}

.toggle-btn {
  position: absolute;
  top: 28px; right: -14px;
  width: 28px; height: 28px;
  background: var(--primary);
  border: 2px solid var(--white);
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  z-index: 101;
  transition: var(--transition);
}
.toggle-btn:hover { background: var(--dark-blue); }

/* Main */
.main {
  flex: 1;
  margin-left: 260px;
  transition: margin-left 0.3s ease;
  min-height: 100vh;
}
.sidebar.collapsed ~ .main { margin-left: 64px; }

.header {
  background: var(--white);
  padding: 18px 32px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header h1 { font-size: 22px; color: var(--dark-blue); }
.header-right { display: flex; align-items: center; gap: 20px; }
.header-info { font-size: 13px; color: var(--gray-500); }

/* Edit Mode Toggle */
.edit-mode-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 8px; border: 1px solid var(--gray-300);
  background: var(--gray-100); color: var(--gray-600); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.3s;
}
.edit-mode-btn:hover { background: var(--gray-200); }
.edit-mode-btn.active {
  background: linear-gradient(135deg, #3B82F6, #1D4ED8); color: var(--white);
  border-color: #1D4ED8; box-shadow: 0 2px 8px rgba(59,130,246,0.3);
}
.edit-mode-btn.active:hover { background: linear-gradient(135deg, #2563EB, #1E40AF); }

/* Hide all edit controls by default, show when .edit-mode is on body */
.eq-action-btn,
.eq-add-btn,
.env-card-add,
.scd-stat-actions,
.scd-stat-add,
.srv-actions-cell,
.forn-actions,
.fer-detail-actions,
.links-add-btn,
.infra-srv-add,
.infra-client-add,
.infra-client-del,
#srv-btn-add,
#forn-btn-add,
#eq-btn-add,
#scd-env-add,
#scd-lic-add,
#fer-btn-add,
#ps-prod-add,
#ps-svc-add,
#cad-btn-add,
.cad-act-btn,
.cad-th-actions,
.cad-td-actions { display: none !important; }

body.edit-mode .eq-action-btn,
body.edit-mode .eq-add-btn,
body.edit-mode .scd-stat-actions,
body.edit-mode .srv-actions-cell,
body.edit-mode .forn-actions,
body.edit-mode .fer-detail-actions,
body.edit-mode .links-add-btn,
body.edit-mode #cad-btn-add,
body.edit-mode .cad-act-btn,
body.edit-mode .cad-th-actions,
body.edit-mode .cad-td-actions { display: flex !important; }
body.edit-mode .cad-th-actions,
body.edit-mode .cad-td-actions { display: table-cell !important; }
body.edit-mode #srv-btn-add,
body.edit-mode #forn-btn-add,
body.edit-mode #eq-btn-add,
body.edit-mode #fer-btn-add,
body.edit-mode #ps-prod-add,
body.edit-mode #ps-svc-add { display: flex !important; }
body.edit-mode .env-card-add,
body.edit-mode #scd-env-add,
body.edit-mode #scd-lic-add,
body.edit-mode .scd-stat-add { display: flex !important; }
body.edit-mode .infra-srv-add,
body.edit-mode .infra-client-add { display: inline-flex !important; }
body.edit-mode .infra-client-del { display: inline-block !important; }

/* Modo Edição escopado por página: usuário com permissão "Visualizar" numa página
   (classe .page-view-only, aplicada por applyPageEditScoping() em app.js) não vê os
   controles de edição daquela página mesmo com o Modo Edição ligado em outras. */
body.edit-mode .page-view-only .eq-action-btn,
body.edit-mode .page-view-only .eq-add-btn,
body.edit-mode .page-view-only .scd-stat-actions,
body.edit-mode .page-view-only .srv-actions-cell,
body.edit-mode .page-view-only .forn-actions,
body.edit-mode .page-view-only .fer-detail-actions,
body.edit-mode .page-view-only .links-add-btn,
body.edit-mode .page-view-only #cad-btn-add,
body.edit-mode .page-view-only .cad-act-btn,
body.edit-mode .page-view-only .cad-th-actions,
body.edit-mode .page-view-only .cad-td-actions,
body.edit-mode .page-view-only #srv-btn-add,
body.edit-mode .page-view-only #forn-btn-add,
body.edit-mode .page-view-only #eq-btn-add,
body.edit-mode .page-view-only #fer-btn-add,
body.edit-mode .page-view-only #ps-prod-add,
body.edit-mode .page-view-only #ps-svc-add,
body.edit-mode .page-view-only .env-card-add,
body.edit-mode .page-view-only #scd-env-add,
body.edit-mode .page-view-only #scd-lic-add,
body.edit-mode .page-view-only .scd-stat-add,
body.edit-mode .page-view-only .infra-srv-add,
body.edit-mode .page-view-only .infra-client-add,
body.edit-mode .page-view-only .infra-client-del { display: none !important; }

.content { padding: 28px 32px; }

/* Page sections */
.page { display: none; animation: fadeIn 0.3s ease; }
.page.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Cards grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-left: 4px solid var(--primary);
}
.stat-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.stat-card .stat-icon { font-size: 24px; margin-bottom: 8px; opacity: 0.8; }
.stat-card .value { font-size: 32px; font-weight: 700; color: var(--dark-blue); }
.stat-card .label { font-size: 13px; color: var(--gray-500); margin-top: 4px; }

.env-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.env-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}
.env-card:hover { box-shadow: var(--shadow-hover); }
.env-card-header {
  background: linear-gradient(135deg, var(--primary), var(--dark-blue));
  color: var(--white);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.env-card-header h3 { font-size: 16px; }
.env-card-actions { display: flex; gap: 4px; }
.env-card-actions .eq-action-btn { color: var(--white); background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.3); }
.env-card-actions .eq-action-btn:hover { background: rgba(255,255,255,0.3); }
.env-card-body { padding: 16px 20px; }
.env-card-body .detail { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 6px 0; font-size: 14px; border-bottom: 1px solid var(--gray-200); }
.env-card-body .detail:last-child { border-bottom: none; }
.env-card-body .detail span:first-child { flex-shrink: 0; }
.env-card-body .detail span:last-child { font-weight: 600; color: var(--dark-blue); text-align: right; }

/* Tables */
.table-wrap {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow-x: auto;
  margin-bottom: 24px;
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead { background: var(--dark-blue); color: var(--white); }
th { padding: 12px 16px; text-align: left; font-weight: 600; white-space: nowrap; }
td { padding: 10px 16px; border-bottom: 1px solid var(--gray-200); }
tbody tr:nth-child(even) { background: var(--gray-100); }
tbody tr:hover { background: var(--light-blue); }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--success); margin-right: 6px; }
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  background: var(--light-blue);
  color: var(--primary);
}

/* Tabs */
.tabs { display: flex; gap: 4px; margin-bottom: 24px; flex-wrap: wrap; }
.tab-btn {
  padding: 10px 24px;
  border: none;
  background: var(--white);
  color: var(--text);
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}
.tab-btn:hover { background: var(--light-blue); }
.tab-btn.active { background: var(--white); border-bottom-color: var(--primary); color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Equipe */
.eq-summary {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.eq-sum-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  text-align: center;
  transition: var(--transition);
}
.eq-sum-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.eq-sum-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--white);
  margin: 0 auto 10px;
}
.eq-sum-num { font-size: 28px; font-weight: 800; color: var(--dark-blue); }
.eq-sum-lbl { font-size: 12px; color: var(--gray-500); margin-top: 2px; }

.eq-cat-section { margin-bottom: 28px; }
.eq-cat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
  margin-bottom: 16px;
}
.eq-cat-header i { font-size: 18px; }
.eq-cat-header h3 { font-size: 16px; color: var(--dark-blue); flex: 1; }
.eq-cat-count {
  background: var(--gray-100);
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--dark-blue);
}

.eq-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.eq-member-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition);
}
.eq-member-card:hover { box-shadow: var(--shadow-hover); transform: translateX(4px); }
.eq-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.eq-avatar-img {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--gray-200);
}
.eq-name { font-size: 14px; font-weight: 700; color: var(--dark-blue); }
.eq-cargo { font-size: 12px; font-weight: 600; margin-top: 2px; }

/* Equipe CRUD */
.eq-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.eq-top-bar .eq-summary { flex: 1; margin-bottom: 0; }
.eq-add-btn {
  background: linear-gradient(135deg, #10B981, #059669);
  color: var(--white);
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  white-space: nowrap;
}
.eq-add-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(16,185,129,0.4); }

.eq-member-card { position: relative; }
.eq-actions {
  display: none;
  position: absolute;
  top: 8px;
  right: 8px;
  gap: 4px;
}
.eq-member-card:hover .eq-actions { display: flex; }
.eq-action-btn {
  width: 30px; height: 30px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  transition: var(--transition);
}
.eq-edit-btn { background: #EFF6FF; color: #3B82F6; }
.eq-edit-btn:hover { background: #3B82F6; color: var(--white); }
.eq-del-btn { background: #FEF2F2; color: #EF4444; }
.eq-del-btn:hover { background: #EF4444; color: var(--white); }

/* Modal */
.eq-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}
.eq-modal {
  background: var(--white);
  border-radius: 16px;
  width: 500px;
  max-width: 95vw;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: slideUp 0.3s ease;
}
.eq-modal-sm { width: 400px; }
@keyframes slideUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:none; } }
.eq-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.eq-modal-header h3 { font-size: 18px; color: var(--dark-blue); }
.eq-modal-close {
  width: 32px; height: 32px;
  border: none;
  background: var(--gray-100);
  border-radius: 8px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-500);
  transition: var(--transition);
}
.eq-modal-close:hover { background: #FEF2F2; color: #EF4444; }

.eq-form-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 24px 0;
}
.eq-form-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  color: var(--gray-500);
  overflow: hidden;
  border: 3px solid var(--gray-200);
}
.eq-form-avatar img { width: 100%; height: 100%; object-fit: cover; }
.eq-form-photo-btn {
  font-size: 12px;
  color: var(--primary);
  cursor: pointer;
  font-weight: 600;
  display: flex; align-items: center; gap: 4px;
}
.eq-form-photo-btn:hover { text-decoration: underline; }

.eq-form-fields { padding: 16px 24px; display: flex; flex-direction: column; gap: 14px; }
.eq-field label { display: block; font-size: 12px; font-weight: 700; color: var(--gray-500); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.eq-field input, .eq-field select, .eq-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  transition: var(--transition);
  font-family: inherit;
}
.eq-field input:focus, .eq-field select:focus, .eq-field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,102,204,0.1); }
.eq-field input:disabled { background: var(--gray-100); color: var(--gray-500); cursor: not-allowed; }
.eq-field-hint { display: block; font-size: 11px; color: var(--gray-500); margin-top: 4px; }

.eq-form-actions {
  padding: 16px 24px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.eq-btn-cancel {
  padding: 10px 20px;
  border: 2px solid var(--gray-200);
  background: var(--white);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  transition: var(--transition);
}
.eq-btn-cancel:hover { border-color: var(--gray-300); color: var(--text); }
.eq-btn-save {
  padding: 10px 24px;
  border: none;
  background: var(--primary);
  color: var(--white);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  transition: var(--transition);
}
.eq-btn-save:hover { background: var(--dark-blue); }
.eq-btn-delete {
  padding: 10px 24px;
  border: none;
  background: #EF4444;
  color: var(--white);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  transition: var(--transition);
}
.eq-btn-delete:hover { background: #DC2626; }
.eq-confirm-text { padding: 16px 24px; font-size: 14px; color: var(--text); }

/* Produtos e Serviços */
.ps-hero {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.ps-hero h2 { font-size: 22px; color: var(--dark-blue); }
.ps-hero p { color: var(--gray-500); font-size: 14px; margin-top: 4px; }
.ps-hero-stat { text-align: center; }
.ps-hero-num { font-size: 36px; font-weight: 800; color: var(--primary); line-height: 1; }
.ps-hero-lbl { font-size: 12px; color: var(--gray-500); margin-top: 4px; }

.ps-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.ps-prod-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.ps-prod-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.ps-prod-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.ps-prod-info { flex: 1; }
.ps-prod-name { font-size: 15px; font-weight: 700; color: var(--dark-blue); }
.ps-prod-clients { font-size: 13px; color: var(--gray-500); margin-top: 3px; }
.ps-prod-clients strong { color: var(--dark-blue); font-size: 18px; }
.ps-prod-bar-wrap {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gray-100);
}
.ps-prod-bar {
  height: 100%;
  border-radius: 0 3px 0 0;
  transition: width 0.6s ease;
}

.ps-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}
.ps-svc-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition);
}
.ps-svc-card { position: relative; }
.ps-svc-card:hover { box-shadow: var(--shadow-hover); transform: translateX(4px); }
.ps-svc-del { position: absolute; top: 8px; right: 8px; }
.ps-prod-actions { position: absolute; top: 8px; right: 8px; gap: 4px; }
.ps-svc-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; flex-shrink: 0;
}
.ps-svc-text { font-size: 14px; color: var(--text); }

/* Ferias */
.fer-summary {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.fer-sum-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}
.fer-sum-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.fer-sum-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--white); flex-shrink: 0;
}
.fer-sum-team .fer-sum-icon { background: linear-gradient(135deg, #3B82F6, #1D4ED8); }
.fer-sum-active .fer-sum-icon { background: linear-gradient(135deg, #F59E0B, #D97706); }
.fer-sum-next .fer-sum-icon { background: linear-gradient(135deg, #8B5CF6, #6D28D9); }
.fer-sum-total .fer-sum-icon { background: linear-gradient(135deg, #10B981, #059669); }
.fer-sum-value { font-size: 20px; font-weight: 700; color: var(--dark-blue); }
.fer-sum-label { font-size: 12px; color: var(--gray-500); margin-top: 2px; }

.fer-timeline-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.fer-timeline-header {
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--gray-200);
}
.fer-timeline-header h3 { font-size: 16px; color: var(--dark-blue); }
.fer-timeline-header h3 i { margin-right: 8px; opacity: 0.6; }
.fer-today-badge {
  background: #EF4444;
  color: var(--white);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.fer-today-badge i { margin-right: 4px; }

.fer-month-scale {
  display: flex;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-100);
}
.fer-month-col {
  text-align: center;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--dark-blue);
  border-right: 1px solid var(--gray-200);
}
.fer-month-col:last-child { border-right: none; }

.fer-lanes { padding: 8px 0; }
.fer-lane {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
}
.fer-lane:last-child { border-bottom: none; }
.fer-lane-label {
  width: 200px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 20px;
}
.fer-lane-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 700; font-size: 12px; flex-shrink: 0;
}
.fer-lane-name strong { display: block; font-size: 14px; color: var(--text); }
.fer-lane-name span { font-size: 11px; color: var(--gray-500); }

.fer-lane-track {
  flex: 1;
  height: 36px;
  position: relative;
  margin-right: 20px;
  background: var(--gray-100);
  border-radius: 8px;
  overflow: hidden;
}
.fer-week-marker {
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--gray-200);
  z-index: 1;
}
.fer-today-line {
  position: absolute;
  top: -4px; bottom: -4px;
  width: 2px;
  background: #EF4444;
  z-index: 3;
  border-radius: 2px;
}
.fer-today-line::after {
  content: '';
  position: absolute;
  top: 0; left: -3px;
  width: 8px; height: 8px;
  background: #EF4444;
  border-radius: 50%;
}
.fer-bar {
  position: absolute;
  top: 4px; bottom: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.3s ease;
  cursor: default;
}
.fer-bar:hover { filter: brightness(1.1); transform: scaleY(1.15); }
.fer-bar-active { box-shadow: 0 0 0 3px rgba(245,158,11,0.4); animation: fer-pulse 2s infinite; }
@keyframes fer-pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(245,158,11,0.3); } 50% { box-shadow: 0 0 0 6px rgba(245,158,11,0.15); } }
.fer-bar-past { opacity: 0.6; }
.fer-bar-text { color: var(--white); font-size: 11px; font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,0.2); white-space: nowrap; }

.fer-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.fer-detail-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}
.fer-detail-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.fer-detail-stripe { height: 5px; }
.fer-detail-body { padding: 18px; }
.fer-detail-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.fer-detail-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.fer-detail-name { font-size: 16px; font-weight: 700; color: var(--dark-blue); }
.fer-status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
}
.fer-status-done { background: #f1f5f9; color: #64748b; }
.fer-status-active { background: #fef3c7; color: #92400e; }
.fer-status-pending { background: #ede9fe; color: #5b21b6; }
.fer-detail-dates { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text); }
.fer-detail-dates i { color: var(--gray-500); margin-right: 6px; width: 16px; text-align: center; }

/* Links */
.links-section { margin-bottom: 28px; }
.links-section h3 { font-size: 16px; color: var(--dark-blue); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--primary); }
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.link-card {
  background: var(--white);
  border-radius: 8px;
  padding: 14px 18px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
}
.link-card { position: relative; }
.link-card:hover { box-shadow: var(--shadow-hover); transform: translateX(4px); }
.link-copy-card:hover .link-copy-icon { opacity: 1; }
.link-copy-icon { opacity: 0; color: var(--primary); font-size: 15px; transition: opacity .15s; flex-shrink: 0; }
.link-icon { font-size: 20px; }
.link-actions { position: absolute; top: 6px; right: 6px; gap: 4px; }
@keyframes fadeInUp { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

/* Fornecedores */
.vendor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.vendor-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  border-top: 4px solid var(--primary);
}
.forn-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.forn-top .section-title { margin-bottom: 0; }
.vendor-card { position: relative; }
.forn-actions {
  display: none;
  position: absolute;
  top: 8px;
  right: 8px;
  gap: 4px;
}
.vendor-card:hover .forn-actions { display: flex; }
.vendor-card h4 { color: var(--dark-blue); margin-bottom: 4px; }
.vendor-card .empresa { font-size: 13px; color: var(--gray-500); margin-bottom: 12px; }
.vendor-card .info { font-size: 14px; margin-bottom: 6px; }
.vendor-card .info span { color: var(--gray-500); }

.section-title { font-size: 18px; color: var(--dark-blue); margin-bottom: 16px; }

/* License cards */
.license-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.license-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.license-card h4 { color: var(--dark-blue); margin-bottom: 12px; font-size: 15px; }
.license-card .env-card-actions .eq-action-btn { color: var(--gray-500); background: var(--gray-100); border-color: var(--gray-300); }
.license-card .env-card-actions .eq-action-btn:hover { background: var(--gray-200); }

/* Stat card edit */
.scd-stat-card { position: relative; cursor: default; }
.scd-stat-actions { position: absolute; top: 8px; right: 8px; gap: 4px; opacity: 0; transition: opacity 0.2s; }
body.edit-mode .scd-stat-card:hover .scd-stat-actions { opacity: 1; }
.scd-stat-edit, .scd-stat-del { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--gray-300); background: var(--white); color: var(--gray-500); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 11px; }
.scd-stat-edit:hover { background: var(--gray-100); color: var(--primary); }
.scd-stat-del:hover { background: #FEE2E2; color: #EF4444; border-color: #EF4444; }
.scd-stat-input { width: 80px; font-size: 32px; font-weight: 700; color: var(--dark-blue); border: 1px solid var(--primary); border-radius: 6px; text-align: center; padding: 2px; outline: none; background: #f0f7ff; }
.license-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; border-bottom: 1px solid var(--gray-200); }
.srv-actions-cell { display: flex; gap: 4px; justify-content: center; }
.license-row:last-child { border-bottom: none; }
.license-row .count { font-weight: 700; color: var(--primary); }

/* Infra client list */
.client-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.client-tag { background: var(--light-blue); color: var(--primary); padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 500; }
.client-tag-users { background: var(--primary); color: var(--white); border-radius: 8px; padding: 0 6px; margin-left: 4px; font-size: 11px; font-weight: 600; }

.server-section { margin-bottom: 32px; }
.server-section h3 { font-size: 16px; color: var(--dark-blue); margin-bottom: 12px; }

/* Year selector */
.ind-year-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.ind-year-btn {
  padding: 10px 24px;
  border: 2px solid var(--gray-200);
  background: var(--white);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-500);
  cursor: pointer;
  transition: var(--transition);
}
.ind-year-btn:hover { border-color: var(--primary); color: var(--primary); }
.ind-year-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
.ind-year-btn i { margin-right: 6px; }

/* Indicadores - Modern */
.ind-tab {
  padding: 10px 22px;
  border: none;
  background: var(--white);
  color: var(--gray-500);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ind-tab:hover { background: var(--light-blue); color: var(--primary); }
.ind-tab.active { background: var(--primary); color: var(--white); }
.ind-tab i { font-size: 12px; }

.ind-hero {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.ind-hero h2 { font-size: 22px; color: var(--dark-blue); }
.ind-hero p { color: var(--gray-500); font-size: 14px; margin-top: 4px; }
.ind-hero-badge {
  font-size: 40px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.ind-hero-badge small { display: block; font-size: 13px; font-weight: 500; color: var(--gray-500); margin-top: 4px; }

.ind-formation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}

/* Mini stat card */
.ms-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  text-align: center;
  transition: var(--transition);
}
.ms-card { position: relative; }
.ms-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.ms-card-actions { position: absolute; top: 8px; right: 8px; gap: 4px; }
.ms-card-actions button { background: none; border: none; cursor: pointer; color: var(--gray-400); font-size: 12px; padding: 4px; border-radius: 4px; }
.ms-card-actions button:hover { color: var(--primary); background: var(--gray-100); }
.ms-card-actions .ms-del-btn:hover { color: #EF4444; }

/* Botões de edição genéricos (gráficos, serviços, produtos, fechamento) */
.ind-chart-block, .ind-svc-modern, .ind-fech-card, .ind-prod-banner { position: relative; }
.ind-edit-actions { position: absolute; top: 8px; right: 8px; gap: 4px; z-index: 2; }
.ie-btn { background: var(--white); border: 1px solid var(--gray-200); cursor: pointer; color: var(--gray-500); font-size: 12px; width: 26px; height: 26px; border-radius: 6px; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.ie-btn:hover { color: var(--primary); }
.ie-btn.ie-del:hover { color: #EF4444; border-color: #EF4444; }
.ind-edit-actions-light .ie-btn { background: rgba(255,255,255,0.25); border-color: rgba(255,255,255,0.4); color: var(--white); }
.ind-edit-actions-light .ie-btn:hover { background: var(--white); color: var(--primary); }
.ind-chart-add:hover, .ind-svc-add:hover, .ind-fech-add:hover, .ind-prod-add-btn:hover { border-color: var(--primary); color: var(--primary); }

/* Controles dos Indicadores: escondidos em Modo Visualização, visíveis em Modo Edição */
.ms-card-actions, #ms-card-add,
.ind-edit-actions, .ind-chart-add, .ind-svc-add, .ind-fech-add, .ind-prod-add-btn { display: none !important; }
body.edit-mode #ms-card-add,
body.edit-mode .ind-chart-add,
body.edit-mode .ind-svc-add,
body.edit-mode .ind-fech-add { display: flex !important; }
body.edit-mode .ind-prod-add-btn { display: block !important; }
body.edit-mode .ms-card:hover .ms-card-actions,
body.edit-mode .ind-chart-block:hover .ind-edit-actions,
body.edit-mode .ind-svc-modern:hover .ind-edit-actions,
body.edit-mode .ind-fech-card:hover .ind-edit-actions,
body.edit-mode .ind-prod-banner:hover .ind-edit-actions { display: flex !important; }
.ms-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  margin: 0 auto 10px;
}
.ms-value { font-size: 26px; font-weight: 800; color: var(--dark-blue); }
.ms-label { font-size: 12px; color: var(--gray-500); margin-top: 4px; }

/* Vertical chart */
.vc-wrap { width: 100%; }
.vc-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.vc-total { font-size: 22px; font-weight: 800; color: var(--dark-blue); }
.vc-total small { font-size: 12px; font-weight: 500; color: var(--gray-500); }
.vc-avg { font-size: 12px; color: var(--gray-500); background: var(--gray-100); padding: 3px 10px; border-radius: 10px; }
.vc-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  width: 100%;
}
.vc-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
.vc-val { font-size: 10px; font-weight: 700; color: var(--dark-blue); margin-bottom: 4px; white-space: nowrap; }
.vc-bar-wrap {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.vc-bar {
  width: 80%;
  max-width: 32px;
  border-radius: 4px 4px 0 0;
  transition: height 0.6s cubic-bezier(0.4,0,0.2,1);
  min-height: 2px;
  cursor: default;
}
.vc-bar:hover { filter: brightness(1.15); transform: scaleX(1.15); }
.vc-lbl { font-size: 10px; color: var(--gray-500); margin-top: 4px; font-weight: 600; }
.vc-empty { color: var(--gray-500); font-size: 13px; padding: 20px 0; text-align: center; }

/* Product section */
.ind-prod-section {
  margin-bottom: 32px;
}
.ind-prod-banner {
  border-radius: var(--radius);
  padding: 24px 28px;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.ind-prod-banner-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ind-prod-banner-left i { font-size: 28px; opacity: 0.8; }
.ind-prod-banner-left h3 { font-size: 20px; font-weight: 700; }
.ind-prod-banner-left span { font-size: 13px; opacity: 0.85; }
.ind-prod-banner-right { text-align: right; }
.ind-prod-big-num { font-size: 36px; font-weight: 800; line-height: 1; }
.ind-prod-big-lbl { font-size: 12px; opacity: 0.8; margin-top: 4px; }

.ind-metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.ind-charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}
.ind-chart-block {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  transition: var(--transition);
}
.ind-chart-block:hover { box-shadow: var(--shadow-hover); }
.ind-chart-auto-badge {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  font-size: 11px; font-weight: 600; color: var(--gray-500);
  background: var(--gray-100); border-radius: 4px; padding: 2px 8px;
  display: none; gap: 4px; align-items: center;
}
body.edit-mode .ind-chart-block:hover .ind-chart-auto-badge { display: inline-flex; }
.ind-chart-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.ind-chart-title i { margin-right: 6px; }

/* Services modern */
.ind-svc-modern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}
.ind-svc-modern {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  transition: var(--transition);
}
.ind-svc-modern:hover { box-shadow: var(--shadow-hover); }
.ind-svc-modern-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.ind-svc-modern-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.ind-svc-modern-title { font-size: 14px; font-weight: 700; color: var(--dark-blue); }
.ind-svc-modern-total { font-size: 12px; color: var(--gray-500); }

/* Fechamento modern */
.ind-fech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
}
.ind-fech-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
}
.ind-fech-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.ind-fech-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: var(--white);
  margin: 0 auto 14px;
}
.ind-fech-value { font-size: 32px; font-weight: 800; color: var(--dark-blue); }
.ind-fech-label { font-size: 12px; color: var(--gray-500); margin-top: 6px; }

/* Dashboard Geral */
.dash-welcome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.dash-welcome h2 { font-size: 24px; color: var(--dark-blue); font-weight: 700; }
.dash-welcome p { color: var(--gray-500); font-size: 14px; margin-top: 4px; }
.dash-welcome-date {
  background: var(--white);
  padding: 10px 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 14px;
  color: var(--text);
  text-transform: capitalize;
}
.dash-welcome-date i { color: var(--primary); margin-right: 8px; }

.dash-grid-top {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}
.dash-card-big {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: var(--transition);
}
.dash-card-big:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.dash-card-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: var(--white); flex-shrink: 0;
}
.dash-card-equipe .dash-card-icon { background: linear-gradient(135deg, #3B82F6, #1D4ED8); }
.dash-card-ferias .dash-card-icon { background: linear-gradient(135deg, #8B5CF6, #6D28D9); }
.dash-card-number { font-size: 28px; font-weight: 800; color: var(--dark-blue); }
.dash-card-number .dash-card-total { font-size: 18px; font-weight: 500; color: var(--gray-500); }
.dash-card-label { font-size: 13px; color: var(--gray-500); margin-top: 2px; }
.dash-card-sub { font-size: 12px; margin-top: 6px; color: var(--text); }
.dash-card-sub i { margin-right: 4px; }

.dash-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.dash-prod-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}
.dash-prod-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.dash-prod-header {
  padding: 16px 20px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 12px;
}
.dash-prod-header i { font-size: 20px; opacity: 0.9; }
.dash-prod-header h4 { font-size: 15px; font-weight: 700; }
.dash-prod-body { padding: 16px 20px; }
.dash-prod-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--gray-100);
}
.dash-prod-row:last-child { border-bottom: none; }
.dash-prod-row strong { color: var(--dark-blue); font-size: 15px; }

.dash-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.dash-shortcut {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark-blue);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.dash-shortcut:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); background: var(--light-blue); text-decoration: none; }
.dash-shortcut i { font-size: 18px; color: var(--primary); }

/* Mapa da Infraestrutura */
.mapa-header {
  text-align: center;
  margin-bottom: 28px;
}
.mapa-header h2 { font-size: 24px; color: var(--dark-blue); }
.mapa-header h2 i { margin-right: 8px; }
.mapa-header p { color: var(--gray-500); font-size: 14px; margin-top: 4px; }

.mapa-top-nodes {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-bottom: 0;
}
.mapa-top-node {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 2px solid var(--gray-200);
  transition: var(--transition);
}
.mapa-top-node:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.mapa-top-fw { border-color: #EF4444; }
.mapa-top-ad { border-color: #8B5CF6; }
.mapa-top-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--white);
}
.mapa-top-fw .mapa-top-icon { background: #EF4444; }
.mapa-top-ad .mapa-top-icon { background: #8B5CF6; }
.mapa-top-name { font-size: 16px; font-weight: 700; color: var(--dark-blue); }
.mapa-top-detail { font-size: 12px; color: var(--gray-500); }
.mapa-top-ip { font-size: 11px; color: var(--gray-500); font-family: monospace; margin-top: 2px; }
.mapa-top-connector {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #EF4444, #8B5CF6);
  border-radius: 2px;
}

.mapa-main-connector {
  display: flex;
  justify-content: center;
  padding: 0;
  height: 40px;
}
.mapa-main-line {
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, #8B5CF6, var(--gray-300));
  border-radius: 2px;
}

.mapa-envs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.mapa-env {
  background: var(--env-bg);
  border: 2px solid var(--env-color);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
}
.mapa-env:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
.mapa-env-header {
  background: var(--env-color);
  color: var(--white);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mapa-env-title { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.mapa-env-meta { font-size: 12px; opacity: 0.85; }
.mapa-env-body { padding: 20px; }

.mapa-db-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.mapa-node {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}
.mapa-node:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); transform: translateY(-1px); }
.mapa-node-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: var(--white);
  flex-shrink: 0;
}
.mapa-node-db .mapa-node-icon { background: #F59E0B; }
.mapa-node-app .mapa-node-icon { background: var(--env-color); }
.mapa-node-name { font-size: 14px; font-weight: 700; color: var(--dark-blue); }
.mapa-alias { font-size: 11px; background: var(--env-color); color: var(--white); padding: 1px 8px; border-radius: 8px; font-weight: 600; }
.mapa-node-detail { font-size: 11px; color: var(--gray-500); margin-top: 2px; }
.mapa-node-ip { font-size: 11px; color: var(--gray-500); font-family: 'Consolas', monospace; margin-top: 2px; }
.mapa-node-dns { font-size: 10px; color: var(--env-color, var(--primary)); font-weight: 600; margin-top: 3px; }
.mapa-node-users { font-size: 11px; color: var(--env-color); font-weight: 600; margin-top: 4px; }
.mapa-node-users i { margin-right: 4px; }

.mapa-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 0;
  position: relative;
}
.mapa-line-v {
  width: 3px;
  height: 16px;
  background: var(--env-color);
  border-radius: 2px;
  opacity: 0.4;
}
.mapa-line-h {
  height: 3px;
  width: 80%;
  background: var(--env-color);
  border-radius: 2px;
  opacity: 0.4;
}
.mapa-line-v-down {
  display: none;
}

.mapa-app-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.mapa-app-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mapa-dns-tag {
  font-size: 11px;
  color: var(--env-color);
  font-weight: 600;
  text-align: center;
  padding: 4px 10px;
  background: var(--white);
  border-radius: 6px;
  border: 1px dashed var(--env-color);
}
.mapa-dns-tag i { margin-right: 4px; opacity: 0.6; }

.mapa-clients-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.mapa-client {
  font-size: 11px;
  padding: 5px 10px;
  background: var(--white);
  border-radius: 6px;
  color: var(--text);
  border-left: 3px solid var(--env-color);
  transition: var(--transition);
}
.mapa-client:hover { background: var(--env-bg); transform: translateX(3px); }
.mapa-client i { color: var(--env-color); margin-right: 6px; font-size: 10px; }
.mapa-client-users { float: right; font-size: 10px; font-weight: 600; color: var(--env-color); opacity: 0.85; }

.mapa-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.mapa-legend-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); }
.mapa-legend-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 13px;
}

/* Cadastro de Colaboradores */
.cad-top-bar { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.cad-summary { display: flex; gap: 16px; flex-wrap: wrap; }
.cad-sum-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 24px; text-align: center; min-width: 120px; }
.cad-sum-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 16px; margin: 0 auto 8px; }
.cad-sum-num { font-size: 24px; font-weight: 700; color: var(--text); }
.cad-sum-lbl { font-size: 12px; color: var(--gray-500); margin-top: 2px; }

.cad-filters { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.cad-search { position: relative; flex: 1; min-width: 200px; }
.cad-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--gray-500); font-size: 14px; }
.cad-search input { width: 100%; padding: 10px 12px 10px 36px; border: 1px solid var(--gray-300); border-radius: 8px; font-size: 14px; background: var(--white); }
.cad-search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,102,204,0.1); }
.cad-select { padding: 10px 14px; border: 1px solid var(--gray-300); border-radius: 8px; font-size: 14px; background: var(--white); cursor: pointer; }
.cad-select:focus { outline: none; border-color: var(--primary); }

.cad-table-wrap { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; }
.cad-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cad-table thead { background: var(--gray-100); }
.cad-table th { padding: 12px 16px; text-align: left; font-weight: 600; color: var(--text); white-space: nowrap; border-bottom: 2px solid var(--gray-200); }
.cad-table td { padding: 12px 16px; border-bottom: 1px solid var(--gray-200); vertical-align: middle; }
.cad-table tbody tr:hover { background: var(--gray-100); }
.cad-table tbody tr:last-child td { border-bottom: none; }
.cad-th-actions { text-align: center; width: 100px; }
.cad-td-actions { text-align: center; white-space: nowrap; }

.cad-cell-nome { display: flex; align-items: center; gap: 10px; }
.cad-row-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.cad-row-avatar-init { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 13px; font-weight: 600; flex-shrink: 0; }
.cad-cell-nome span { font-weight: 500; }

.cad-cargo-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 500; }

.cad-status { display: inline-block; padding: 3px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.cad-status-ativo { background: #D1FAE5; color: #065F46; }
.cad-status-ferias { background: #FEF3C7; color: #92400E; }
.cad-status-inativo { background: #FEE2E2; color: #991B1B; }

.cad-act-btn { width: 32px; height: 32px; border: none; border-radius: 6px; cursor: pointer; font-size: 13px; transition: var(--transition); background: transparent; color: var(--gray-500); }
.cad-act-btn:hover { background: var(--gray-200); color: var(--text); }
.cad-act-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.cad-act-btn:disabled:hover { background: transparent; color: var(--gray-500); }
.cad-del-btn:hover { background: #FEE2E2; color: var(--danger); }

.cad-modal-lg { max-width: 700px; width: 95%; }
.cad-form-grid { display: flex; gap: 24px; padding: 0 0 8px; }
.cad-form-fields { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.cad-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

@media (max-width: 600px) {
  .cad-form-grid { flex-direction: column; align-items: center; }
  .cad-form-row { grid-template-columns: 1fr; }
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar { width: 64px; }
  .sidebar .logo-text, .sidebar .nav-label, .sidebar .sidebar-footer { display: none; }
  .sidebar .nav-item { justify-content: center; padding: 14px 0; }
  .sidebar .nav-icon { margin-right: 0; }
  .main { margin-left: 64px; }
  .toggle-btn { display: none; }
  .content { padding: 16px; }
  .header { padding: 14px 16px; }
  .stats-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
}

/* ===================
   DEVOPS MODULE
   =================== */

/* Hero */
.dv-hero {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px;
}
.dv-hero h2 { font-size: 22px; color: var(--dark); margin: 0; }
.dv-hero p { color: var(--gray-500); margin: 4px 0 0; font-size: 14px; }
.dv-add-btn { display: none !important; }
body.edit-mode .dv-add-btn { display: inline-flex !important; }

/* Project Grid */
.dv-proj-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px;
}
.dv-proj-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); cursor: pointer; transition: var(--transition);
}
.dv-proj-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.dv-proj-card-header {
  padding: 16px 20px; color: white; display: flex; align-items: center; gap: 10px; position: relative;
}
.dv-proj-card-header i { font-size: 18px; }
.dv-proj-card-header h4 { margin: 0; font-size: 16px; flex: 1; }
.dv-proj-actions { position: absolute; top: 8px; right: 8px; display: none; gap: 4px; }
body.edit-mode .dv-proj-actions { display: flex; }
.dv-proj-card-body { padding: 14px 20px; }
.dv-proj-card-body p { margin: 0; font-size: 13px; color: var(--gray-500); }
.dv-empty { text-align: center; padding: 60px 20px; color: var(--gray-400); }
.dv-empty i { font-size: 48px; margin-bottom: 12px; }
.dv-empty p { font-size: 15px; }

/* Board Header */
.dv-board-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
.dv-board-back { display: flex; align-items: center; gap: 12px; }
.dv-back-btn {
  width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--gray-300);
  background: var(--white); cursor: pointer; display: flex; align-items: center;
  justify-content: center; font-size: 14px; color: var(--gray-600); transition: var(--transition);
}
.dv-back-btn:hover { background: var(--gray-100); color: var(--primary); }
.dv-board-title { display: flex; align-items: center; gap: 10px; }
.dv-board-title i { font-size: 20px; }
.dv-board-title h2 { margin: 0; font-size: 20px; }

/* Indicators */
.dv-indicators {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px;
  margin-bottom: 20px;
}
.dv-ind-card {
  background: var(--white); border-radius: var(--radius); padding: 16px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px;
}
.dv-ind-icon {
  width: 40px; height: 40px; border-radius: 10px; display: flex;
  align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0;
}
.dv-ind-value { font-size: 22px; font-weight: 700; color: var(--dark); line-height: 1; }
.dv-ind-label { font-size: 12px; color: var(--gray-500); margin-top: 2px; }

/* Kanban */
.dv-kanban-container {
  display: flex; gap: 14px; overflow-x: auto; padding-bottom: 16px;
  min-height: 400px; align-items: flex-start;
}
.dv-kanban-col {
  min-width: 280px; flex: 0 0 280px; background: var(--gray-100);
  border-radius: var(--radius); display: flex; flex-direction: column;
}
.dv-col-header {
  padding: 12px 14px; display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--gray-200);
}
.dv-col-title { display: flex; align-items: center; gap: 8px; }
.dv-col-title span:first-child { font-weight: 600; font-size: 14px; color: var(--dark); }
.dv-col-count {
  background: var(--gray-300); color: var(--gray-600); font-size: 11px;
  padding: 1px 7px; border-radius: 10px; font-weight: 600;
}
.dv-col-add-task {
  width: 30px !important; height: 30px; border-radius: 50% !important; border: 2px dashed var(--gray-300) !important;
  background: transparent !important; cursor: pointer; font-size: 13px !important;
  color: var(--gray-400) !important; padding: 0 !important; justify-content: center;
  transition: all 0.25s ease !important;
}
.dv-col-add-task:hover {
  background: var(--primary) !important; color: white !important;
  border: 2px solid var(--primary) !important; transform: rotate(90deg);
  box-shadow: 0 2px 8px rgba(0,102,204,0.3);
}
.dv-col-body {
  padding: 8px; flex: 1; min-height: 60px; display: flex; flex-direction: column; gap: 8px;
  transition: background 0.2s;
}
.dv-col-empty {
  text-align: center; padding: 20px 10px; color: var(--gray-400); font-size: 12px;
  font-style: italic;
}
.dv-drag-over {
  background: rgba(59,130,246,0.08); border: 2px dashed var(--primary);
  border-radius: 0 0 var(--radius) var(--radius);
}

/* Task Cards */
.dv-task-card {
  background: var(--white); border-radius: 8px; padding: 12px 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08); cursor: pointer; transition: var(--transition);
  border-left: 4px solid var(--gray-300); position: relative;
}
.dv-task-card:hover { box-shadow: 0 3px 8px rgba(0,0,0,0.12); transform: translateY(-1px); }
.dv-task-card.dragging { opacity: 0.4; transform: rotate(2deg); }
.dv-task-title { font-size: 13px; font-weight: 600; color: var(--dark); margin-bottom: 8px; line-height: 1.3; }
.dv-task-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.dv-task-resp { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--gray-500); }
.dv-task-avatar { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.dv-task-avatar-txt {
  width: 20px; height: 20px; border-radius: 50%; background: var(--primary); color: white;
  display: flex; align-items: center; justify-content: center; font-size: 8px; font-weight: 700;
}
.dv-task-time { font-size: 11px; color: var(--gray-500); display: flex; align-items: center; gap: 3px; }
.dv-time-running { color: #10B981; font-weight: 600; }
.dv-task-footer {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: var(--gray-400);
}
.dv-task-priority { display: flex; align-items: center; gap: 3px; font-weight: 600; }
.dv-task-date { font-size: 10px; }

/* Task Form */
.dv-form-row { display: flex; gap: 14px; }
#dv-task-f-desc {
  width: 100%; padding: 10px 14px; border: 2px solid var(--gray-200); border-radius: 8px;
  font-size: 14px; font-family: inherit; resize: vertical; min-height: 110px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
#dv-task-f-desc:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,102,204,0.1); }

/* Status Select */
.dv-status-select {
  padding: 6px 12px; border: 2px solid var(--primary); border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--primary); background: rgba(0,102,204,0.05);
  cursor: pointer; transition: all 0.2s;
}
.dv-status-select:hover { background: rgba(0,102,204,0.1); }
.dv-status-select:focus { outline: none; box-shadow: 0 0 0 3px rgba(0,102,204,0.15); }

/* Detail Modal */
.dv-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.dv-detail-item { display: flex; flex-direction: column; gap: 2px; }
.dv-detail-label { font-size: 11px; color: var(--gray-500); font-weight: 600; text-transform: uppercase; }
.dv-detail-value { font-size: 14px; color: var(--dark); }

/* Comments */
.dv-comment {
  padding: 10px 0; border-bottom: 1px solid var(--gray-100);
}
.dv-comment:last-child { border-bottom: none; }
.dv-comment-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.dv-comment-header strong { font-size: 13px; color: var(--dark); }
.dv-comment-date { font-size: 11px; color: var(--gray-400); margin-left: auto; }
.dv-comment-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.dv-comment-avatar-txt {
  width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: white;
  display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700;
}
.dv-comment-text { font-size: 13px; color: var(--gray-700); padding-left: 32px; }

/* Column Config */
.dv-col-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 0;
  border-bottom: 1px solid var(--gray-100); cursor: grab;
}
.dv-col-item.dragging { opacity: 0.4; }
.dv-col-drag-handle { color: var(--gray-400); cursor: grab; }
.dv-col-tipo-badge {
  font-size: 10px; padding: 2px 8px; border-radius: 10px;
  background: var(--gray-200); color: var(--gray-600); font-weight: 600;
}

/* Members Selection */
.dv-members-list {
  max-height: 200px; overflow-y: auto; border: 2px solid var(--gray-200);
  border-radius: 8px; padding: 8px;
}
.dv-member-check {
  display: flex; align-items: center; gap: 8px; padding: 6px 8px;
  border-radius: 6px; cursor: pointer; font-size: 13px; transition: background 0.15s;
}
.dv-member-check:hover { background: var(--gray-100); }
.dv-member-check input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; flex-shrink: 0; }
.dv-member-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.dv-member-avatar-txt {
  width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: white;
  display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; flex-shrink: 0;
}

/* ===== Serviços Dashboard ===== */
.svc-loading, .svc-error { text-align: center; padding: 60px 20px; color: var(--gray-500); font-size: 16px; }
.svc-error h2 { margin-bottom: 8px; color: var(--text); }
.svc-error p { margin: 4px 0; }
.svc-error code { background: var(--gray-100); padding: 2px 6px; border-radius: 4px; font-size: 13px; }
.svc-error ol { font-size: 14px; line-height: 1.8; }

.svc-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.svc-tab-badge { background: rgba(255,255,255,.25); padding: 1px 7px; border-radius: 10px; font-size: 11px; margin-left: 4px; font-weight: 700; }
.ind-tab.active .svc-tab-badge { background: rgba(0,0,0,.1); }

.svc-stat-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.svc-stat-row .ms-card { flex: 1; min-width: 160px; }

.svc-charts-row { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.svc-chart-box { flex: 1; min-width: 300px; background: white; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.svc-chart-box h3 { font-size: 14px; font-weight: 600; margin: 0 0 14px 0; color: var(--text); }

.svc-section-title { font-size: 15px; font-weight: 600; margin: 24px 0 12px; color: var(--text); }

.svc-hbar-list { display: flex; flex-direction: column; gap: 8px; }
.svc-hbar-row { display: flex; align-items: center; gap: 10px; }
.svc-hbar-label { width: 110px; font-size: 13px; font-weight: 500; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svc-hbar-track { flex: 1; height: 22px; background: var(--gray-100); border-radius: 4px; overflow: hidden; }
.svc-hbar-fill { height: 100%; border-radius: 4px; transition: width 0.4s ease; }
.svc-hbar-val { width: 36px; font-size: 13px; font-weight: 700; color: var(--text); }

.svc-table-wrap { max-height: 400px; overflow-y: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.svc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.svc-table thead { position: sticky; top: 0; z-index: 1; }
.svc-table th { background: var(--primary); color: white; padding: 10px 12px; text-align: left; font-weight: 600; white-space: nowrap; }
.svc-table td { padding: 8px 12px; border-bottom: 1px solid var(--gray-200); }
.svc-table tbody tr:hover { background: var(--light-blue); }
.svc-table .row-overdue { background: #FEE2E2; }
.svc-table .row-overdue:hover { background: #FECACA; }

.svc-year-selector { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.svc-year-btn { padding: 4px 12px; border: 1px solid var(--gray-300); border-radius: 16px; background: white; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s; color: var(--text); }
.svc-year-btn:hover { border-color: var(--primary); color: var(--primary); }
.svc-year-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* Custo Ambientes */
.svc-tabs-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.svc-tabs-header .svc-tabs { margin-bottom: 0; }
.custos-chip {
  display: inline-block; padding: 2px 8px; margin: 2px 3px 2px 0;
  border-radius: 10px; font-size: 11px; font-weight: 600;
  background: var(--light-blue); color: var(--primary);
}
.custos-total-row { font-weight: 700; background: var(--gray-100); }
.custos-total-row td { border-top: 2px solid var(--dark-blue); }
.custos-obs { font-size: 12px; color: var(--gray-500); margin-top: 8px; font-style: italic; }
.custos-negativo { color: var(--danger); font-weight: 600; }
.custos-link-infra {
  display: inline-flex; align-items: center; gap: 6px; margin: 12px 0 20px;
  font-size: 13px; color: var(--primary); text-decoration: none; font-weight: 600;
}
.custos-link-infra:hover { text-decoration: underline; }
.custos-refresh-btn {
  padding: 8px 16px; border-radius: 8px; border: 1px solid var(--gray-300);
  background: white; color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer;
}
.custos-refresh-btn:hover { border-color: var(--primary); color: var(--primary); }
.custos-retry-btn {
  margin-top: 16px; padding: 8px 20px; border-radius: 8px; border: none;
  background: var(--primary); color: white; font-weight: 600; cursor: pointer;
}

/* Login */
.login-screen {
  width: 100%; min-height: 100vh;
  display: flex; align-items: stretch; justify-content: center;
  background: var(--gray-100);
}
.login-illustration {
  flex: 1;
  position: relative;
  background: url('../img/login-background.png') left center/cover no-repeat;
  overflow: hidden;
}
.login-panel {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
}
.login-card {
  width: 100%; max-width: 380px; padding: 36px 40px;
  background: var(--white); border-radius: 16px; box-shadow: var(--shadow-hover);
}
.login-card .logo { padding: 0 0 8px; border-bottom: none; justify-content: center; }
.login-card .logo-text small { color: var(--text); }
.login-card .logo-img { height: 48px; }
.login-subtitle { text-align: center; font-size: 13px; color: var(--gray-500); margin-bottom: 20px; }
.login-form { display: flex; flex-direction: column; gap: 6px; }
.login-form label { font-size: 13px; font-weight: 600; color: var(--text); margin-top: 10px; }
.login-input-group { position: relative; display: flex; align-items: center; }
.login-input-group i {
  position: absolute; left: 12px; color: var(--gray-500); font-size: 14px; pointer-events: none;
}
.login-form input {
  width: 100%; padding: 11px 12px 11px 36px; border: 1px solid transparent; border-radius: 10px;
  background: var(--gray-100); font-size: 14px; color: var(--text); transition: var(--transition);
}
.login-form input:focus { outline: none; background: var(--white); border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,102,204,0.1); }
.login-error { color: var(--danger); font-size: 13px; min-height: 18px; margin-top: 6px; }
.login-btn {
  margin-top: 12px; padding: 12px; border: none; border-radius: 10px;
  background: var(--primary); color: white; font-weight: 700; font-size: 14px; cursor: pointer;
  transition: var(--transition);
}
.login-btn:hover { background: var(--dark-blue); }
.login-remember {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 400; color: var(--gray-500);
  margin-top: 10px; cursor: pointer;
}
.login-remember input { width: auto; }

@media (max-width: 900px) {
  .login-illustration { display: none; }
  .login-panel { padding: 24px 16px; }
}

/* Segurança / MFA */
.sec-card {
  max-width: 480px; padding: 24px; background: var(--white);
  border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px;
}
.sec-card h3 { color: var(--dark-blue); margin-bottom: 6px; }
.sec-hint { font-size: 13px; color: var(--gray-500); margin-bottom: 16px; }
.sec-empty { font-size: 14px; color: var(--text); margin-bottom: 12px; }
.sec-enroll-btn { width: auto; padding: 10px 20px; }
.sec-factor {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px; border: 1px solid var(--gray-200); border-radius: 8px; margin-bottom: 8px;
  font-size: 14px;
}
.sec-remove-btn {
  border: none; background: none; color: var(--danger); cursor: pointer; padding: 6px;
}
.sec-enroll-box { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.sec-qr { width: 180px; height: 180px; align-self: center; }
.sec-enroll-box label { font-size: 13px; font-weight: 600; margin-top: 8px; }
.sec-enroll-box input {
  padding: 10px 12px; border: 1px solid var(--gray-300); border-radius: 8px; font-size: 14px;
}

/* Usuários - matriz de permissões */
.usr-perms-matrix {
  max-height: 50vh; overflow-y: auto; margin: 12px 0;
  border: 1px solid var(--gray-200); border-radius: 10px;
  transition: opacity 0.2s ease;
}
.usr-perms-matrix.is-disabled { opacity: 0.45; pointer-events: none; }
.usr-perms-group-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 14px 6px; background: var(--gray-50, #F9FAFB);
}
.usr-perms-group + .usr-perms-group .usr-perms-group-head,
.usr-perms-group:first-child .usr-perms-group-head { border-top: 1px solid var(--gray-100); }
.usr-perms-group:first-child .usr-perms-group-head { border-top: none; }
.usr-perms-group-title {
  font-size: 12px; font-weight: 700; color: var(--gray-500); text-transform: uppercase;
  letter-spacing: 0.5px;
}
.usr-perms-group-all { display: flex; gap: 4px; }
.usr-perms-group-all button {
  border: 1px solid var(--gray-200); background: var(--white); color: var(--gray-500);
  font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 6px;
  cursor: pointer; transition: var(--transition);
}
.usr-perms-group-all button:hover { border-color: var(--primary); color: var(--primary); }
.usr-perms-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 14px; border-top: 1px solid var(--gray-100); font-size: 14px;
}
.usr-perms-group .usr-perms-row:first-of-type { border-top: none; }
.usr-perms-label { flex: 1; }
.usr-perms-options {
  display: flex; gap: 2px; background: var(--gray-100); border-radius: 8px; padding: 2px;
  font-size: 12px; white-space: nowrap;
}
.usr-perms-options label {
  display: flex; align-items: center; padding: 5px 10px; border-radius: 6px;
  cursor: pointer; font-weight: 600; color: var(--gray-500); transition: var(--transition);
}
.usr-perms-options input { display: none; }
.usr-perms-options label:has(input[value="edit"]:checked) { background: #D1FAE5; color: #065F46; }
.usr-perms-options label:has(input[value="view"]:checked) { background: #DBEAFE; color: #1E40AF; }
.usr-perms-options label:has(input[value="none"]:checked) { background: var(--white); color: var(--gray-500); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.usr-perms-admin-note {
  display: flex; align-items: center; gap: 8px; font-size: 12px; color: #1E40AF;
  background: #EFF6FF; border: 1px solid #BFDBFE; border-radius: 8px; padding: 8px 12px; margin: 0 0 10px;
}

.eq-modal-body { padding: 16px 24px; }

.usr-toggle-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 16px; margin: 4px 0 14px;
  border: 2px solid var(--gray-200); border-radius: 10px;
  cursor: pointer; transition: var(--transition);
}
.usr-toggle-row:hover { border-color: var(--gray-300); }
.usr-toggle-row strong { display: block; font-size: 14px; color: var(--text); }
.usr-toggle-row span { display: block; font-size: 12px; color: var(--gray-500); margin-top: 2px; }
.usr-toggle-row input { width: auto; flex-shrink: 0; }
