@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');


/* ============================================
   Global Styles & Design Tokens
   ============================================ */
/* ============================================
   Estilos específicos PWA / Mobile (<= 480px)
   ============================================ */
@media (max-width: 480px) {
  /* Restrições de container e scroll */
  body.is-pwa, 
  .app-layout {
    overscroll-behavior-y: contain;
  }

  /* Alternância de vistorias: Ocultar tabelas desktop em mobile (<= 480px) */
  .tickets__table--desktop,
  .servicos__table--desktop {
    display: none !important;
  }

  .tickets__mobile-cards-list,
  .servicos__mobile-cards-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  /* Glassmorphism para a barra inferior */
  .mobile-bottom-nav {
    background: rgba(22, 23, 29, 0.82) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  /* Cards compactos Premium com Glassmorphism */
  .pwa-card-compact {
    background: rgba(22, 23, 29, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 12px 14px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }

  .pwa-card-compact:active {
    transform: scale(0.97);
  }

  .pwa-card-compact__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .pwa-card-compact__title {
    font-weight: 700;
    font-size: 14px;
    color: #f8fafc;
    letter-spacing: -0.2px;
  }

  .pwa-card-compact__subtitle {
    font-size: 12px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Sticky Filters */
  .pwa-sticky-filters {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 16, 23, 0.9);
    backdrop-filter: blur(10px);
    padding: 10px 0;
  }

  /* Pulsing FAB Icon */
  .create-fab-icon {
    animation: pwaGlowPulse 2.5s infinite;
  }

  /* Barra de Funções / Action Footer para Relatórios */
  .pwa-report-action-bar {
    position: fixed;
    bottom: 64px; /* Acima da BottomNav */
    left: 0;
    right: 0;
    background: rgba(22, 23, 29, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 14px;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
  }

  .pwa-btn-func {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(31, 32, 40, 0.8);
    color: #f3f4f6;
    cursor: pointer;
    touch-action: manipulation;
    transition: transform 0.15s ease;
  }

  .pwa-btn-func:active {
    transform: scale(0.95);
  }

  .pwa-btn-func--primary {
    background: linear-gradient(135deg, #a855f7, #6366f1);
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
  }

  .pwa-btn-func--draft {
    background: rgba(234, 179, 8, 0.18);
    border-color: rgba(234, 179, 8, 0.4);
    color: #facc15;
  }
}
@media (min-width: 481px) {
  .tickets__mobile-cards-list,
  .servicos__mobile-cards-list {
    display: none !important;
  }
}
@keyframes pwaGlowPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.6);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(168, 85, 247, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(168, 85, 247, 0);
  }
}
:root {
  /* --- Colors --- */
  --text: #9ca3af;
  --text-h: #f3f4f6;
  --bg: #0f1017;
  --bg-secondary: #16171d;
  --border: #2e303a;
  --code-bg: #1f2028;
  --accent: #c084fc;
  --accent-bg: rgba(192, 132, 252, 0.15);
  --accent-border: rgba(192, 132, 252, 0.5);
  --social-bg: rgba(47, 48, 58, 0.5);
  --navbar-bg: rgba(15, 16, 23, 0.85);
  --brand-gradient: linear-gradient(135deg, #e9d5ff, #c084fc);
  --shadow:
    rgba(0, 0, 0, 0.4) 0 10px 15px -3px, rgba(0, 0, 0, 0.25) 0 4px 6px -2px;

  /* --- Typography --- */
  --sans: 'Inter', system-ui, 'Segoe UI', Roboto, sans-serif;
  --heading: 'Inter', system-ui, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;

  /* --- Base --- */
  font: 14px/1.5 var(--sans);
  letter-spacing: 0.01em;
  color-scheme: dark;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
[data-theme='light'] {
  --text: #1f2937;
  --text-h: #000000;
  --bg: #ffffff;
  --bg-secondary: #f3f4f6;
  --border: #e5e7eb;
  --code-bg: #f9fafb;
  --accent: #a855f7;
  --accent-bg: rgba(168, 85, 247, 0.15);
  --accent-border: rgba(168, 85, 247, 0.5);
  --social-bg: rgba(229, 231, 235, 0.5);
  --navbar-bg: rgba(255, 255, 255, 0.85);
  --brand-gradient: linear-gradient(135deg, #9333ea, #a855f7);
  --shadow:
    rgba(0, 0, 0, 0.1) 0 10px 15px -3px, rgba(0, 0, 0, 0.05) 0 4px 6px -2px;
  color-scheme: light;
}
/* --- Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
  overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent;
}
#root {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  text-align: left;
}
/* --- Typography --- */
h1,
h2 {
  font-family: var(--heading);
  font-weight: 600;
  color: var(--text-h);
}
h1 {
  font-size: 28px;
  letter-spacing: -0.5px;
  margin: 0;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.3px;
  margin: 0 0 8px;
}
p {
  margin: 0;
}
code {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.4;
  padding: 3px 6px;
  background: var(--code-bg);
  border-radius: 4px;
  color: var(--text-h);
}
/* --- Selection --- */
::selection {
  background: rgba(168, 85, 247, 0.3);
  color: #fff;
}
/* --- Focus States --- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
/* --- Smooth Scroll (inside main) --- */
.app-main {
  scroll-behavior: smooth;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn:not(:disabled):hover {
  transform: translateY(-1px);
}

.btn:not(:disabled):active {
  transform: translateY(0);
}

/* Variantes */
.btn-primary {
  background: #3b82f6;
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: #2563eb;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
  background: #6b7280;
  color: white;
}

.btn-secondary:hover:not(:disabled) {
  background: #4b5563;
  box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.btn-outline {
  background: transparent;
  color: #3b82f6;
  border: 2px solid #3b82f6;
}

.btn-outline:hover:not(:disabled) {
  background: #3b82f6;
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-ghost {
  background: transparent;
  color: #6b7280;
  border: 2px solid transparent;
}

.btn-ghost:hover:not(:disabled) {
  background: #f3f4f6;
  color: #374151;
}

.btn-danger {
  background: #ef4444;
  color: white;
}

.btn-danger:hover:not(:disabled) {
  background: #dc2626;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Tamanhos */
.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
}

.btn-md {
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 8px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 10px;
}

/* Ícones */
.btn-icon-left {
  display: flex;
  align-items: center;
  margin-right: 6px;
}

/* Estados */
.btn-loading {
  position: relative;
  color: transparent !important;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Largura total */
.btn-full-width {
  width: 100%;
}

/* Ícones */
.btn-icon-left {
  display: flex;
  align-items: center;
  margin-right: 6px;
}

.btn-icon-right {
  display: flex;
  align-items: center;
  margin-left: 6px;
}

/* Responsividade */
@media (max-width: 768px) {
  .btn {
    padding: 8px 16px;
    font-size: 13px;
  }
  
  .btn-lg {
    padding: 12px 24px;
    font-size: 15px;
  }
}

/* Foco acessível */
.btn:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}
/* ============================================
   Navbar Component Styles
   ============================================ */

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 64px;
  background: var(--navbar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

/* --- Brand --- */
.navbar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
}

.navbar__logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7c3aed, #a855f7, #c084fc);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
  animation: logoPulse 3s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes logoPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(168, 85, 247, 0.3); }
  50% { box-shadow: 0 0 30px rgba(168, 85, 247, 0.5); }
}

.navbar__logo-icon {
  width: 20px;
  height: 20px;
  color: #ffffff;
  filter: brightness(1.2);
}

.navbar__brand-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar__brand-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
}

.navbar__title {
  font-size: 14px;
  font-weight: 700;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.3px;
}

.navbar__page-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.navbar__page-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-h);
  margin: 0;
  line-height: 1.2;
}

.navbar__page-subtitle {
  font-size: 11px;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
}


/* --- Center Section (Widgets) --- */
.navbar__center {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 0 24px;
  max-width: 600px;
}

.navbar__widgets {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  justify-content: center;
}

.navbar__widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: var(--bg-secondary);
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 70px;
}

.navbar__widget:hover {
  background: var(--border);
  color: var(--text-h);
  border-color: var(--accent-border);
  transform: translateY(-1px);
}

.navbar__widget:active {
  transform: translateY(0);
}

.navbar__widget-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar__widget-icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.navbar__widget-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* --- Right Section --- */
.navbar__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- Clock --- */
.navbar__clock {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 4px 12px;
  border-radius: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
}

.navbar__clock-time {
  font-size: 15px;
  font-weight: 600;
  font-family: var(--mono);
  color: var(--accent);
  letter-spacing: 1px;
  line-height: 1.3;
  text-shadow: 0 0 10px rgba(192, 132, 252, 0.3);
}

.navbar__clock-date {
  font-size: 10px;
  color: var(--text);
  text-transform: capitalize;
  line-height: 1.2;
}

/* --- Divider --- */
.navbar__divider {
  width: 1px;
  height: 28px;
  background: var(--border);
  margin: 0 4px;
}

/* --- Icon Buttons --- */
.navbar__icon-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: var(--bg-secondary);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;

  & svg {
    width: 18px;
    height: 18px;
  }

  &:hover {
    background: var(--border);
    color: var(--text-h);
    border-color: var(--accent-border);
    transform: translateY(-1px);
  }

  &.active {
    background: var(--accent-bg);
    color: var(--accent);
    border-color: var(--accent-border);
  }
}

.navbar__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg, #16171d);
  animation: badgePop 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

@keyframes badgePop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

/* --- User Section --- */
.navbar__user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 4px 4px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--bg-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  color: inherit;

  &:hover {
    background: var(--border);
    border-color: var(--accent-border);
  }
}

.navbar__avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.navbar__user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.navbar__user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-h);
  line-height: 1.3;
}

.navbar__user-role {
  font-size: 11px;
  color: var(--text);
  line-height: 1.2;
}

.navbar__chevron {
  width: 14px;
  height: 14px;
  color: var(--text);
  transition: transform 0.2s ease;
}

/* --- Menu Button --- */
.navbar__menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: var(--bg-secondary);
  color: var(--text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: 8px;

  & svg {
    width: 18px;
    height: 18px;
  }

  &:hover {
    background: var(--border);
    color: var(--text-h);
    border-color: var(--accent-border);
  }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .navbar__menu-btn {
    display: flex;
  }

  .navbar {
    padding: 0 12px;
  }

  .navbar__center {
    display: none;
  }

  .navbar__user-info {
    display: none;
  }

  .navbar__clock-date {
    display: none;
  }

  .navbar__brand {
    min-width: auto;
  }

  .navbar__title {
    display: none;
  }

  .navbar__brand-divider {
    display: none;
  }
}
/* ============================================
   Sidebar Component Styles
   ============================================ */

.sidebar {
  width: 260px;
  min-width: 260px;
  background: var(--sidebar-bg, rgba(22, 23, 29, 0.95));
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              min-width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.sidebar--collapsed {
  width: 72px;
  min-width: 72px;
}

/* --- Toggle --- */
.sidebar__toggle-wrapper {
  display: flex;
  justify-content: flex-end;
  padding: 12px 16px 4px;
}

.sidebar__toggle {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;

  & svg {
    width: 16px;
    height: 16px;
  }

  &:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.15);
  }
}

/* --- Section Label --- */
.sidebar__section-label {
  padding: 16px 20px 8px;
  min-height: 16px;

  & span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.25);
    text-transform: uppercase;
  }
}

.sidebar--collapsed .sidebar__section-label {
  padding: 16px 0 8px;
  text-align: center;
}

/* --- Nav / Menu --- */
.sidebar__nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 10px;

  /* Custom Scrollbar */
  &::-webkit-scrollbar {
    width: 4px;
  }
  &::-webkit-scrollbar-track {
    background: transparent;
  }
  &::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
  }
}

.sidebar__menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* --- Menu Item --- */
.sidebar__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  font-family: var(--sans);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  text-align: left;
  white-space: nowrap;
  text-decoration: none;
  box-sizing: border-box;

  &:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.85);
  }
}

.sidebar__item--active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(124, 58, 237, 0.1));
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.2);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.08);

  &::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, #a855f7, #7c3aed);
  }

  & .sidebar__item-icon {
    color: #c084fc;
  }
}

.sidebar__item--danger {
  &:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
  }
}

.sidebar__item-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;

  & svg {
    width: 20px;
    height: 20px;
  }
}

.sidebar__item-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar__item-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(168, 85, 247, 0.15));
  color: #c084fc;
  min-width: 18px;
  text-align: center;
}

.sidebar__item-badge--dot {
  width: 7px;
  height: 7px;
  min-width: 7px;
  padding: 0;
  border-radius: 50%;
  background: #a855f7;
  position: absolute;
  top: 8px;
  right: 8px;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.5);
}

/* --- Bottom Section --- */
.sidebar__bottom {
  padding: 8px 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 8px 4px;
}

/* --- Collapsed State --- */
.sidebar--collapsed .sidebar__item {
  justify-content: center;
  padding: 10px;
}

.sidebar--collapsed .sidebar__toggle-wrapper {
  justify-content: center;
  padding: 12px 0 4px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 64px;
    bottom: 0;
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
  }

  .sidebar--open {
    transform: translateX(0);
  }
}
/* ============================================
   Footer Component Styles
   ============================================ */

.footer {
  background: rgba(22, 23, 29, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0;
  margin-top: auto;
}

/* --- Top Section --- */
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 40px 28px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* --- Brand Column --- */
.footer__brand-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.footer__brand-name {
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(135deg, #e9d5ff, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer__tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.6;
  max-width: 280px;
  margin: 0;
}

/* --- Social Icons --- */
.footer__social {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.footer__social-link {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  transition: all 0.25s ease;

  & svg {
    width: 16px;
    height: 16px;
  }

  &:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.3);
    color: #c084fc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2);
  }
}

/* --- Links Columns --- */
.footer__links-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__links-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;

  & a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;

    &:hover {
      color: #c084fc;
    }
  }
}

/* --- Bottom Bar --- */
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
}

.footer__copyright {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
  margin: 0;
}

.footer__status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.footer__status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(52, 211, 153, 0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 15px rgba(52, 211, 153, 0.7); }
}

.footer__status-text {
  color: rgba(255, 255, 255, 0.4);
}

.footer__uptime {
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(52, 211, 153, 0.1);
  color: #34d399;
  font-weight: 600;
  font-size: 11px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer__brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .footer__top {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 16px 24px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    text-align: center;
  }
}
/* ============================================
   Notification Banner Styles
   ============================================ */

.notification-banners-container {
  position: fixed;
  z-index: 10000;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.notification-banners-container--top {
  top: 20px;
}

.notification-banners-container--bottom {
  bottom: 20px;
}

.notification-banner {
  width: 90%;
  max-width: 500px;
  margin-bottom: 12px;
  background: rgba(22, 23, 29, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  overflow: hidden;
  pointer-events: auto;
  animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.notification-banner--closing {
  transform: translateY(-20px);
  opacity: 0;
}

.notification-banner--top {
  animation: slideInTop 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification-banner--bottom {
  animation: slideInBottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInTop {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInBottom {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.notification-banner__content {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  position: relative;
}

.notification-banner__icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.notification-banner__text {
  flex: 1;
  min-width: 0;
}

.notification-banner__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}

.notification-banner__title {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  line-height: 1.4;
}

.notification-banner__time {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  margin-left: 12px;
}

.notification-banner__message {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 12px;
  line-height: 1.5;
  word-break: break-word;
}

.notification-banner__action {
  background: rgba(168, 85, 247, 0.2);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.notification-banner__action:hover {
  background: rgba(168, 85, 247, 0.3);
  border-color: rgba(168, 85, 247, 0.5);
}

.notification-banner__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.2s ease;
}

.notification-banner__close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.notification-banner__close svg {
  width: 16px;
  height: 16px;
}

/* Progress bar for auto-clear */
.notification-banner__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.notification-banner__progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  animation: progressBar linear forwards;
  transform-origin: left;
}

@keyframes progressBar {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

/* Type-specific styles */
.notification-banner--info {
  border-left: 4px solid #3b82f6;
}

.notification-banner--info .notification-banner__icon {
  color: #3b82f6;
}

.notification-banner--success {
  border-left: 4px solid #10b981;
}

.notification-banner--success .notification-banner__icon {
  color: #10b981;
}

.notification-banner--warning {
  border-left: 4px solid #f59e0b;
}

.notification-banner--warning .notification-banner__icon {
  color: #f59e0b;
}

.notification-banner--error {
  border-left: 4px solid #ef4444;
}

.notification-banner--error .notification-banner__icon {
  color: #ef4444;
}

/* Priority styles */
.banner-priority-critical {
  border-width: 2px;
  border-color: #ef4444;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
  animation: pulseCritical 2s infinite;
}

@keyframes pulseCritical {
  0%, 100% {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.5);
  }
}

.banner-priority-high {
  border-width: 2px;
  border-color: #f59e0b;
}

.banner-priority-medium {
  border-width: 1px;
}

.banner-priority-low {
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
  .notification-banners-container {
    padding: 0 10px;
  }
  
  .notification-banner {
    width: 100%;
    max-width: none;
  }
  
  .notification-banner__content {
    padding: 12px;
    gap: 12px;
  }
  
  .notification-banner__icon {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }
  
  .notification-banner__title {
    font-size: 15px;
  }
  
  .notification-banner__message {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .notification-banners-container--top {
    top: 10px;
  }
  
  .notification-banners-container--bottom {
    bottom: 10px;
  }
  
  .notification-banner__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .notification-banner__time {
    margin-left: 0;
    font-size: 11px;
  }
}/* ============================================
   Notifications Component Styles
   ============================================ */

.notifications-container {
  position: relative;
  display: inline-block;
}

.notifications--top-right {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
}

.notifications--top-left {
  position: fixed;
  top: 80px;
  left: 20px;
  z-index: 9999;
}

.notifications--bottom-right {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

.notifications--bottom-left {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
}

.notifications-toggle {
  position: relative;
}

.notifications-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: white;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg, #16171d);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.notifications-panel {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 12px;
  width: 380px;
  max-width: 90vw;
  background: rgba(22, 23, 29, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  z-index: 10000;
  animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.notifications-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notifications-header h4 {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.notifications-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notifications-close {
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notifications-list {
  max-height: 400px;
  overflow-y: auto;
  padding: 8px;
}

.notifications-list::-webkit-scrollbar {
  width: 6px;
}

.notifications-list::-webkit-scrollbar-track {
  background: transparent;
}

.notifications-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

.notifications-empty {
  padding: 40px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
}

.notifications-empty svg {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.2);
}

.notifications-empty p {
  margin: 0;
  font-size: 14px;
}

/* --- Notification Item --- */
.notification {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.notification:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.notification--unread {
  background: rgba(168, 85, 247, 0.05);
  border-left: 3px solid #a855f7;
}

.notification--info {
  border-left-color: #3b82f6;
}

.notification--success {
  border-left-color: #10b981;
}

.notification--warning {
  border-left-color: #f59e0b;
}

.notification--error {
  border-left-color: #ef4444;
}

.notification-icon {
  font-size: 20px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 4px;
}

.notification-title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  line-height: 1.4;
}

.notification-time {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  margin-left: 8px;
}

.notification-message {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 8px;
  line-height: 1.5;
  word-break: break-word;
}

.notification-action {
  margin-top: 4px;
}

.notification-remove {
  width: 28px;
  height: 28px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.notification:hover .notification-remove {
  opacity: 1;
}

/* --- Notifications Footer --- */
.notifications-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.websocket-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-connected {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.status-disconnected {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

.notifications-test {
  display: flex;
  align-items: center;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .notifications--top-right,
  .notifications--top-left {
    top: 70px;
    right: 10px;
    left: 10px;
  }

  .notifications-panel {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    width: 100%;
    max-height: 70vh;
    border-radius: 20px 20px 0 0;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  @keyframes slideUp {
    from {
      opacity: 0;
      transform: translateY(100%);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .notifications-header {
    padding: 12px 16px;
  }

  .notifications-actions {
    flex-wrap: wrap;
    gap: 4px;
  }

  .notifications-footer {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
}/* ============================================
   Dashboard Page
   ============================================ */

.dashboard {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* --- Stats Row --- */
.dashboard__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.dash-stat {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  cursor: default;
}

.dash-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  border-color: var(--border);
}

.dash-stat__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-stat__icon svg {
  width: 24px;
  height: 24px;
}

.dash-stat--purple .dash-stat__icon { background: rgba(168,85,247,0.15); color: #c084fc; }
.dash-stat--blue .dash-stat__icon { background: rgba(59,130,246,0.15); color: #60a5fa; }
.dash-stat--emerald .dash-stat__icon { background: rgba(16,185,129,0.15); color: #34d399; }
.dash-stat--amber .dash-stat__icon { background: rgba(245,158,11,0.15); color: #fbbf24; }

.dash-stat__info {
  display: flex;
  flex-direction: column;
}

.dash-stat__label {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.dash-stat__value {
  font-size: 24px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: -0.5px;
  line-height: 1.3;
}

.dash-stat__change {
  font-size: 12px;
  font-weight: 500;
}

.dash-stat__change--up { color: #34d399; }
.dash-stat__change--down { color: #f87171; }

/* --- Charts Row --- */
.dashboard__charts {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
}

/* --- Card --- */
.dash-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 24px;
  transition: border-color 0.3s ease;
}

.dash-card:hover {
  border-color: rgba(255,255,255,0.1);
}

.dash-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.dash-card__header h3 {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin: 0;
}

.dash-card__link {
  font-size: 13px;
  color: #a855f7;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.dash-card__link:hover { color: #c084fc; }

.dash-card__tabs {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 3px;
}

.dash-card__tab {
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--sans);
  color: rgba(255,255,255,0.4);
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.dash-card__tab:hover { color: rgba(255,255,255,0.7); }

.dash-card__tab--active {
  background: rgba(168,85,247,0.2);
  color: #c084fc;
}

/* --- Bar Chart --- */
.dash-chart {
  height: 200px;
  display: flex;
  align-items: flex-end;
}

.dash-chart__bars {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  width: 100%;
  height: 100%;
}

.dash-chart__bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  gap: 8px;
}

.dash-chart__bar {
  width: 100%;
  max-width: 48px;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, #a855f7, #7c3aed);
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
  min-height: 8px;
}

.dash-chart__bar:hover {
  filter: brightness(1.2);
  box-shadow: 0 0 20px rgba(168,85,247,0.3);
}

.dash-chart__tooltip {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  transition: transform 0.2s cubic-bezier(0.68,-0.55,0.27,1.55);
}

.dash-chart__bar:hover .dash-chart__tooltip {
  transform: translateX(-50%) scale(1);
}

.dash-chart__label {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  font-weight: 500;
}

/* --- Services List --- */
.dash-services-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dash-service-row__info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.dash-service-row__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dash-service-row__name {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  flex: 1;
}

.dash-service-row__pct {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
}

.dash-service-row__bar-bg {
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  overflow: hidden;
}

.dash-service-row__bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
}

/* --- Bottom Row --- */
.dashboard__bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* --- Activity --- */
.dash-activity {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-activity__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background 0.2s;
}

.dash-activity__item:hover {
  background: rgba(255,255,255,0.03);
}

.dash-activity__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-activity__icon svg {
  width: 16px;
  height: 16px;
}

.dash-activity__icon--client { background: rgba(59,130,246,0.12); color: #60a5fa; }
.dash-activity__icon--payment { background: rgba(16,185,129,0.12); color: #34d399; }
.dash-activity__icon--booking { background: rgba(168,85,247,0.12); color: #c084fc; }
.dash-activity__icon--complete { background: rgba(245,158,11,0.12); color: #fbbf24; }

.dash-activity__content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dash-activity__action {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
}

.dash-activity__name {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

.dash-activity__time {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  white-space: nowrap;
}

/* --- Upcoming --- */
.dash-upcoming {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-upcoming__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background 0.2s;
}

.dash-upcoming__item:hover {
  background: rgba(255,255,255,0.03);
}

.dash-upcoming__avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(168,85,247,0.2), rgba(124,58,237,0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #c084fc;
  flex-shrink: 0;
}

.dash-upcoming__info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dash-upcoming__client {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
}

.dash-upcoming__service {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

.dash-upcoming__time {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #a855f7;
}

.dash-upcoming__time svg {
  width: 14px;
  height: 14px;
}

.dash-upcoming__date {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  margin-left: 4px;
}

/* --- Financial Evolution Chart --- */
.fin-kpi-row {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.fin-kpi {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fin-kpi__label {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.fin-kpi__value {
  font-size: 17px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: -0.3px;
}

.fin-kpi__value--up   { color: #34d399; }
.fin-kpi__value--down { color: #f87171; }

.fin-chart {
  position: relative;
  height: 200px;
}

.fin-chart__inner {
  position: relative;
  width: 100%;
  height: 100%;
}

/* SVG line overlay — absolute, fills 100% of container */
.fin-chart__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: calc(100% - 24px); /* leave room for labels */
  pointer-events: none;
  z-index: 1;
}

/* Bars row */
.fin-chart__bars {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  z-index: 0;
}

.fin-chart__bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  gap: 6px;
}

.fin-chart__bar {
  width: 100%;
  max-width: 40px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, rgba(168,85,247,0.35), rgba(124,58,237,0.12));
  border: 1px solid rgba(168,85,247,0.3);
  position: relative;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  cursor: pointer;
  min-height: 6px;
}

.fin-chart__bar:hover {
  background: linear-gradient(180deg, rgba(168,85,247,0.6), rgba(124,58,237,0.25));
  border-color: rgba(168,85,247,0.6);
  box-shadow: 0 0 18px rgba(168,85,247,0.25);
}

.fin-chart__tooltip {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  background: rgba(15,10,30,0.95);
  border: 1px solid rgba(168,85,247,0.4);
  color: #c084fc;
  padding: 4px 10px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  transition: transform 0.2s cubic-bezier(0.68,-0.55,0.27,1.55);
  z-index: 10;
}

.fin-chart__bar:hover .fin-chart__tooltip {
  transform: translateX(-50%) scale(1);
}

.fin-chart__label {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  font-weight: 500;
  white-space: nowrap;
}

/* Loading state */
.fin-chart__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 12px;
  color: rgba(255,255,255,0.3);
  font-size: 13px;
}

.fin-chart__spinner {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(168,85,247,0.15);
  border-top-color: #a855f7;
  animation: finSpin 0.8s linear infinite;
}

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

/* Empty state */
.fin-chart__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: rgba(255,255,255,0.2);
  font-size: 13px;
  font-style: italic;
}

/* --- Responsive --- */
@media (max-width: 1200px) {
  .dashboard__stats { grid-template-columns: repeat(2, 1fr); }
  .dashboard__charts { grid-template-columns: 1fr; }
  .dashboard__bottom { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .dashboard__stats { grid-template-columns: 1fr; }
}
/* ============================================
   Input Component Styles
   ============================================ */

.input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input__label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  user-select: none;
}

.input__container {
  position: relative;
  display: flex;
  align-items: center;
}

.input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--sans, sans-serif);
  font-size: 14px;
  transition: all 0.2s ease;
  outline: none;
  box-sizing: border-box;
}

.input:focus {
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
  background: rgba(255, 255, 255, 0.07);
}

.input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

/* --- Variants --- */
.input--default {
  /* Default styles already applied */
}

.input--filled {
  background: rgba(255, 255, 255, 0.08);
  border-color: transparent;
}

.input--filled:focus {
  background: rgba(255, 255, 255, 0.12);
}

.input--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.25);
}

.input--outline:focus {
  border-color: #a855f7;
  background: rgba(255, 255, 255, 0.03);
}

/* --- Sizes --- */
.input--sm {
  padding: 6px 12px;
  font-size: 13px;
  min-height: 34px;
}

.input--md {
  padding: 10px 14px;
  font-size: 14px;
  min-height: 40px;
}

.input--lg {
  padding: 14px 16px;
  font-size: 16px;
  min-height: 48px;
}

/* --- Icons --- */
.input--has-left-icon {
  padding-left: 40px;
}

.input--has-right-icon {
  padding-right: 40px;
}

.input__icon {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.input__icon--left {
  left: 12px;
}

.input__icon--right {
  right: 12px;
}

.input:focus + .input__icon--left,
.input:focus + .input__icon--right {
  color: #a855f7;
}

/* --- States --- */
.input--error {
  border-color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.05) !important;
}

.input--error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.input--full-width {
  width: 100%;
}

.input__error {
  font-size: 12px;
  color: #ef4444;
  margin-top: 4px;
}

.input__helper {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 4px;
}

/* --- Disabled State --- */
.input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.03);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .input--lg {
    padding: 12px 14px;
    font-size: 15px;
    min-height: 44px;
  }
  
  .input__label {
    font-size: 12px;
  }
}/* ============================================
   Card Component Styles
   ============================================ */

.card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  text-align: left;
  border: 1px solid transparent;
}

/* --- Variants --- */
.card--default {
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.card--elevated {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.card--outline {
  border-color: rgba(255, 255, 255, 0.15);
  background: transparent;
}

.card--filled {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.08);
}

/* --- Padding --- */
.card--padding-none {
  padding: 0;
}

.card--padding-sm {
  padding: 12px;
}

.card--padding-md {
  padding: 20px;
}

.card--padding-lg {
  padding: 28px;
}

/* --- States --- */
.card--hoverable:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.card--clickable {
  cursor: pointer;
  outline: none;
}

.card--clickable:focus-visible {
  outline: 2px solid #a855f7;
  outline-offset: 2px;
}

/* --- Card Parts --- */
.card__header {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card__footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.card__title {
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  line-height: 1.4;
}

.card__description {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  line-height: 1.5;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .card--padding-md {
    padding: 16px;
  }
  
  .card--padding-lg {
    padding: 20px;
  }
  
  .card__title {
    font-size: 16px;
  }
  
  .card__description {
    font-size: 13px;
  }
}/* ============================================
   Modal Component Styles
   ============================================ */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  background: rgba(22, 23, 29, 0.95);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Sizes --- */
.modal--sm {
  width: 400px;
}

.modal--md {
  width: 500px;
}

.modal--lg {
  width: 700px;
}

.modal--xl {
  width: 900px;
}

.modal--2xl {
  width: 1100px;
}

.modal--full {
  width: 95vw;
  height: 92vh;
}


/* --- Modal Parts --- */
.modal__header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
}

.modal__title {
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  line-height: 1.4;
  flex: 1;
}

.modal__close-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal__close-btn svg {
  width: 18px;
  height: 18px;
}

.modal__body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.modal__footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

/* --- Scrollbar for modal body --- */
.modal__body::-webkit-scrollbar {
  width: 6px;
}

.modal__body::-webkit-scrollbar-track {
  background: transparent;
}

.modal__body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

.modal__body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .modal-backdrop {
    padding: 16px;
  }
  
  .modal--sm,
  .modal--md,
  .modal--lg,
  .modal--xl {
    width: 100%;
    max-height: 85vh;
  }
  
  .modal__header {
    padding: 16px 20px;
  }
  
  .modal__body {
    padding: 20px;
  }
  
  .modal__footer {
    padding: 16px 20px;
    flex-wrap: wrap;
  }
  
  .modal__title {
    font-size: 16px;
  }
}/* ============================================
   ExportButton Component Styles
   ============================================ */

.export-button-wrapper {
  position: relative;
  display: inline-block;
}

.export-button-wrapper:hover .export-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.export-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: rgba(22, 23, 29, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px;
  min-width: 140px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

.export-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-family: var(--sans, sans-serif);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.export-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.95);
}

.export-dropdown-icon {
  font-size: 16px;
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.export-dropdown-text {
  flex: 1;
}

/* --- Single Export Button --- */
.export-button {
  position: relative;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .export-dropdown {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
    max-height: 50vh;
    overflow-y: auto;
  }

  .export-button-wrapper:hover .export-dropdown {
    transform: translateY(0);
  }

  .export-dropdown-item {
    padding: 14px 16px;
    font-size: 14px;
  }
}/* ============================================
   AdvancedSearch Component Styles
   ============================================ */

.advanced-search {
  position: relative;
  width: 100%;
}

.search-bar {
  position: relative;
}

.search-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.filter-toggle {
  position: relative;
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: white;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg, #16171d);
}

.reset-button {
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Filters Panel --- */
.filters-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 12px;
  background: rgba(22, 23, 29, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  z-index: 1000;
  animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.filters-header h4 {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.filters-empty {
  padding: 30px 20px;
  text-align: center;
  border: 2px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-bottom: 20px;
}

.filters-empty p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  margin: 0;
}

/* --- Filters List --- */
.filters-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 8px;
}

.filters-list::-webkit-scrollbar {
  width: 6px;
}

.filters-list::-webkit-scrollbar-track {
  background: transparent;
}

.filters-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.filter-field,
.filter-operator,
.filter-value {
  flex: 1;
  min-width: 0;
}

.filter-field,
.filter-operator {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-family: var(--sans, sans-serif);
  outline: none;
  transition: all 0.2s ease;
}

.filter-field:focus,
.filter-operator:focus {
  border-color: #a855f7;
  background: rgba(255, 255, 255, 0.08);
}

.filter-value {
  flex: 2;
}

.filter-remove {
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* --- Filters Footer --- */
.filters-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .filters-panel {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    border-radius: 20px 20px 0 0;
    max-height: 70vh;
    overflow-y: auto;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  @keyframes slideUp {
    from {
      opacity: 0;
      transform: translateY(100%);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .filter-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .filter-field,
  .filter-operator,
  .filter-value {
    width: 100%;
  }

  .filter-remove {
    align-self: flex-end;
    margin-top: 8px;
  }

  .filters-footer {
    flex-direction: column;
    gap: 8px;
  }

  .filters-footer button {
    width: 100%;
  }
}/* ============================================
   Pagination Component Styles
   ============================================ */

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 24px;
  gap: 20px;
}

/* --- Info --- */
.pagination__info {
  flex: 1;
}

.pagination__text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* --- Controls --- */
.pagination__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination__btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;

  & svg {
    width: 16px;
    height: 16px;
  }

  &:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.15);
  }

  &:disabled {
    opacity: 0.3;
    cursor: not-allowed;
  }
}

/* --- Pages --- */
.pagination__pages {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pagination__page {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;

  &:hover:not(.pagination__page--active) {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.15);
  }
}

.pagination__page--active {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
}

.pagination__ellipsis {
  min-width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
  user-select: none;
}

/* --- Items Per Page --- */
.pagination__items-per-page {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination__label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

.pagination__select {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-family: var(--sans);
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 80px;

  &:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
  }

  &:focus {
    outline: none;
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.1);
  }

  & option {
    background: #16171d;
    color: rgba(255, 255, 255, 0.85);
  }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .pagination {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .pagination__info {
    text-align: center;
  }

  .pagination__controls {
    justify-content: center;
  }

  .pagination__items-per-page {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .pagination__pages {
    display: none;
  }
}/* ============================================
   CreatableCombobox Component Styles
   ============================================ */

.creatable-combobox {
  position: relative;
  width: 100%;
}

.creatable-combobox__input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.creatable-combobox__input {
  width: 100%;
  padding: 10px 36px 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #f3f4f6;
  font-size: 0.92rem;
  transition: all 0.2s ease;
}

.creatable-combobox__input:focus {
  outline: none;
  border-color: #3b82f6;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.creatable-combobox__toggle-btn {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.creatable-combobox__toggle-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.creatable-combobox__dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  background: rgba(22, 23, 29, 0.98);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 1050;
  list-style: none;
  margin: 0;
  padding: 6px 0;
}

.creatable-combobox__dropdown::-webkit-scrollbar {
  width: 6px;
}

.creatable-combobox__dropdown::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 6px;
}

.creatable-combobox__item {
  padding: 10px 14px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.creatable-combobox__item:hover {
  background: rgba(59, 130, 246, 0.25);
  color: #ffffff;
}

.creatable-combobox__item--selected {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  font-weight: 600;
}

.creatable-combobox__item--empty {
  color: rgba(255, 255, 255, 0.45);
  font-style: italic;
  cursor: default;
}

.creatable-combobox__item--empty:hover {
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
}
/* ============================================
   Clientes Page
   ============================================ */

.clientes {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* --- Top Bar --- */
.clientes__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.clientes__search-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.clientes__search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  flex: 1;
  max-width: 320px;
  transition: all 0.3s;
}

.clientes__search:focus-within {
  border-color: rgba(168,85,247,0.4);
  box-shadow: 0 0 0 3px rgba(168,85,247,0.1);
}

.clientes__search svg {
  width: 16px;
  height: 16px;
  color: rgba(255,255,255,0.3);
  flex-shrink: 0;
}

.clientes__search input {
  background: none;
  border: none;
  outline: none;
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-family: var(--sans);
  width: 100%;
}

.clientes__search input::placeholder {
  color: rgba(255,255,255,0.3);
}

.clientes__filters {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  padding: 3px;
}

.clientes__filter {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--sans);
  color: rgba(255,255,255,0.4);
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.clientes__filter:hover { color: rgba(255,255,255,0.7); }
.clientes__filter--active { background: rgba(168,85,247,0.2); color: #c084fc; }

.clientes__add-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--sans);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(124,58,237,0.35);
  transition: all 0.2s;
}

.clientes__add-btn svg {
  width: 16px;
  height: 16px;
}

.clientes__add-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124,58,237,0.5);
}

.clientes__actions-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.clientes__import-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--sans);
  cursor: pointer;
  transition: all 0.2s;
}

.clientes__import-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

.clientes__import-btn svg {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

.clientes__import-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --- Mini Stats --- */
.clientes__mini-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.clientes__mini-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

.clientes__mini-stat-value {
  font-size: 22px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
}

.clientes__mini-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* --- Table --- */
.clientes__table-wrapper {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  overflow: hidden;
}

.clientes__table {
  width: 100%;
  border-collapse: collapse;
}

.clientes__table thead {
  background: rgba(255,255,255,0.03);
}

.clientes__table th {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,0.35);
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.clientes__table td {
  padding: 14px 16px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.clientes__row {
  transition: background 0.2s;
}

.clientes__row:hover {
  background: rgba(255,255,255,0.03);
}

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

.clientes__client-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.clientes__avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(168,85,247,0.2), rgba(124,58,237,0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #c084fc;
  flex-shrink: 0;
}

.clientes__name {
  display: block;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
}

.clientes__email {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

.clientes__phone { color: rgba(255,255,255,0.55); }
.clientes__date { color: rgba(255,255,255,0.45); }
.clientes__total { color: #34d399; font-weight: 600; }

.clientes__status {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.clientes__status--ativo {
  background: rgba(16,185,129,0.12);
  color: #34d399;
}

.clientes__status--inativo {
  background: rgba(239,68,68,0.12);
  color: #f87171;
}

.clientes__actions {
  display: flex;
  gap: 4px;
}

.clientes__action-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid transparent;
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.clientes__action-btn svg {
  width: 14px;
  height: 14px;
}

.clientes__action-btn:hover {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.1);
}

.clientes__action-btn--danger:hover {
  background: rgba(239,68,68,0.1);
  color: #f87171;
  border-color: rgba(239,68,68,0.2);
}

.clientes__empty {
  padding: 40px;
  text-align: center;
  color: rgba(255,255,255,0.3);
  font-size: 14px;
}

@media (max-width: 1024px) {
  .clientes__mini-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .clientes__topbar { flex-direction: column; align-items: stretch; }
  .clientes__search-group { flex-direction: column; }
  .clientes__search { max-width: none; }
  .clientes__mini-stats { grid-template-columns: 1fr 1fr; }
  
  /* Conversão da tabela para layout de cartões (Cards) */
  .clientes__table-wrapper { 
    background: transparent; 
    border: none; 
    border-radius: 0; 
  }
  
  .clientes__table, 
  .clientes__table tbody, 
  .clientes__table tr, 
  .clientes__table td {
    display: block;
    width: 100%;
  }
  
  .clientes__table thead {
    display: none; /* Ocultar cabeçalhos em mobile */
  }
  
  .clientes__table tr {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    margin-bottom: 16px;
    padding: 12px;
  }
  
  .clientes__table td {
    border-bottom: 1px solid rgba(255,255,255,0.04);
    padding: 10px 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .clientes__table td:last-child {
    border-bottom: none;
    justify-content: flex-end;
  }
  
  .clientes__table td::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-right: 12px;
  }
  
  .clientes__table td:first-child {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .clientes__table td:first-child::before {
    display: none;
  }
  
  .clientes__client-cell {
    width: 100%;
  }
}
/* ============================================
   Import Modal Styles
   ============================================ */

.import-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease-out;
}

.import-modal {
  background: #12101e;
  background-image: radial-gradient(circle at top right, rgba(124, 58, 237, 0.05), transparent 300px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  width: 90%;
  max-width: 720px;
  min-height: 480px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.import-modal__header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.import-modal__header h3 {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.import-modal__close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  transition: all 0.2s;
}

.import-modal__close:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.import-modal__body {
  padding: 32px 40px;
  flex: 1;
  overflow-y: auto;
}

.import-modal__desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0;
  margin-bottom: 20px;
  line-height: 1.5;
}

.import-modal__upload {
  border: 2px dashed rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.import-modal__upload:hover,
.import-modal__upload--active {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(168, 85, 247, 0.4);
}

.import-modal__upload--has-file {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.3);
}

.import-modal__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
}

.import-modal__upload--has-file .import-modal__icon {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
}

.import-modal__icon svg {
  width: 22px;
  height: 22px;
}

.import-modal__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.import-modal__primary {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.import-modal__secondary {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.import-modal__filename {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  display: block;
}

.import-modal__filesize {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.import-modal__error {
  margin-top: 16px;
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  color: #f87171;
  font-size: 13px;
}

.import-modal__columns {
  margin-top: 24px;
}

.import-modal__columns label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 10px;
}

.import-modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.import-modal__tag {
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.import-modal__footer {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.import-modal__back-btn {
  padding: 10px 18px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #a855f7;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-right: auto;
  transition: all 0.2s;
}

.import-modal__back-btn:hover:not(:disabled) {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.3);
}

.import-modal__cancel-btn {
  padding: 10px 18px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

/* --- Preview Styles --- */
.import-modal__stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.import-modal__stat {
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  text-align: center;
}

.import-modal__stat label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.import-modal__stat span {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.5));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-success {
  color: #10b981 !important;
}

.text-danger {
  color: #ef4444 !important;
}

.import-modal__warning {
  padding: 10px 14px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 8px;
  color: #f59e0b;
  font-size: 12px;
  margin-bottom: 20px;
}

.import-modal__success-msg {
  padding: 10px 14px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 8px;
  color: #10b981;
  font-size: 12px;
  margin-bottom: 20px;
}

.import-modal__table-preview {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 12px;
  margin-top: 20px;
}

.import-modal__table-preview label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  display: block;
  margin-bottom: 8px;
}

.table-scroll {
  overflow-x: auto;
  max-width: 100%;
}

/* --- Report & Debug Styles --- */
.import-modal__report {
  animation: fadeIn 0.3s ease-out;
}

.import-modal__report-success {
  text-align: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 20px;
}

.report-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.import-modal__report-success h4 {
  margin: 0 0 8px 0;
  color: #10b981;
  font-size: 18px;
}

.import-modal__report-success p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

.import-modal__report-errors {
  padding: 14px;
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.1);
  border-radius: 10px;
  margin-bottom: 20px;
}

.import-modal__report-errors label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #f87171;
  margin-bottom: 8px;
}

.import-modal__report-errors ul {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.import-modal__report-errors li {
  margin-bottom: 4px;
}

.import-modal__debug {
  margin-top: 20px;
}

.debug-toggle {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.3);
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.debug-toggle:hover {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.55);
}

.debug-content {
  margin-top: 12px;
  padding: 12px;
  background: #000;
  border-radius: 8px;
  font-size: 10px;
  color: #34d399;
  overflow-x: auto;
  max-height: 150px;
  font-family: 'Consolas', monospace;
  border: 1px solid rgba(52, 211, 153, 0.1);
}

.table-scroll table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table-scroll th {
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  border-bottom: 2px solid rgba(255, 255, 255, 0.05);
}

.table-scroll td {
  padding: 12px;
  color: rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}

.import-modal__cancel-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
}

.import-modal__import-btn {
  padding: 10px 22px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
  transition: all 0.2s;
}

.import-modal__import-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
}

.import-modal__import-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}.cliente-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

.cliente-modal {
  background: white;
  width: 100%;
  max-width: 650px;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  overflow: hidden;
  animation: slideUp 0.3s ease;
}

.cliente-modal__header {
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
}

.cliente-modal__header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #1e293b;
  font-weight: 600;
}

.cliente-modal__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}

.cliente-modal__close:hover {
  color: #ef4444;
}

.cliente-modal__form {
  padding: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
}

.form-group input, 
.form-group select {
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

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

.cliente-modal__error {
  margin-top: 16px;
  padding: 10px;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  color: #dc2626;
  border-radius: 6px;
  font-size: 0.875rem;
}

.cliente-modal__footer {
  margin-top: 32px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.btn-cancel {
  padding: 10px 20px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #64748b;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-cancel:hover {
  background: #e2e8f0;
}

.btn-submit {
  padding: 10px 24px;
  background: #3b82f6;
  border: none;
  border-radius: 6px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit:hover {
  background: #2563eb;
}

.btn-submit:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

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

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

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .full-width {
    grid-column: span 1;
  }
  .cliente-modal {
    margin: 16px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
  }
}

/* Avatar Upload */
.avatar-upload-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.avatar-preview {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px dashed #cbd5e1;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
}

.avatar-preview:hover {
  border-color: #3b82f6;
}

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-fallback {
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.avatar-preview:hover .avatar-overlay {
  opacity: 1;
}

.avatar-overlay span {
  font-size: 0.75rem;
  font-weight: 500;
}

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

.avatar-hint {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 8px;
}.cliente-history-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 11, 15, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: modalFadeIn 0.25s ease-out;
}

.cliente-history-modal {
  background: #16171d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 90%;
  max-width: 850px;
  max-height: 85vh;
  border-radius: 14px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Header */
.cliente-history-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.01);
}

.cliente-header-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cliente-history-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cliente-history-avatar-fallback {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(124, 58, 237, 0.15));
  color: #c084fc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.cliente-header-info h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
}

.cliente-meta-tags {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  align-items: center;
}

.cliente-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
}

.cliente-badge.type-particular {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
}

.cliente-badge.type-empresa {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
}

.cliente-meta-nif,
.cliente-meta-code {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 8px;
  border-radius: 4px;
}

.cliente-history-close {
  background: none;
  border: none;
  font-size: 24px;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: all 0.2s;
}

.cliente-history-close:hover {
  color: #f87171;
  transform: scale(1.1);
}

/* Tabs */
.cliente-history-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0 16px;
  gap: 4px;
}

.tab-btn {
  padding: 14px 18px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn:hover {
  color: rgba(255, 255, 255, 0.85);
}

.tab-btn.active {
  border-bottom-color: #a855f7;
  color: #c084fc;
  font-weight: 600;
}

/* Body */
.cliente-history-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

/* Loading */
.cliente-history-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  gap: 16px;
  color: rgba(255, 255, 255, 0.4);
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(168, 85, 247, 0.1);
  border-top-color: #a855f7;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Info Pane Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.info-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-item.full-width {
  grid-column: span 3;
}

.info-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.3);
}

.info-value {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  word-break: break-all;
}

.observations-text {
  white-space: pre-wrap;
  line-height: 1.5;
}

.info-link {
  color: #c084fc;
  text-decoration: none;
  transition: opacity 0.2s;
}

.info-link:hover {
  text-decoration: underline;
  opacity: 0.8;
}

/* Empty State */
.history-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.3);
}

.empty-icon {
  width: 40px;
  height: 40px;
  stroke-width: 1.5;
  margin-bottom: 12px;
  opacity: 0.5;
}

/* History Tables */
.history-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.history-table th {
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.history-table td {
  padding: 12px 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.history-table tr:hover td {
  background: rgba(255, 255, 255, 0.01);
}

.desc-cell {
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Badges */
.prio-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.prio-high { background: rgba(239, 68, 68, 0.12); color: #f87171; }
.prio-medium { background: rgba(245, 158, 11, 0.12); color: #fbbf24; }
.prio-low { background: rgba(16, 185, 129, 0.12); color: #34d399; }

.status-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.status-pending { background: rgba(245, 158, 11, 0.12); color: #fbbf24; }
.status-completed, .status-accepted { background: rgba(16, 185, 129, 0.12); color: #34d399; }
.status-cancelled, .status-rejected { background: rgba(239, 68, 68, 0.12); color: #f87171; }
.status-scheduled, .status-sent { background: rgba(59, 130, 246, 0.12); color: #60a5fa; }
.status-draft { background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.6); }

.service-type-tag {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
}

/* Footer */
.cliente-history-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: flex-end;
  background: rgba(255, 255, 255, 0.01);
}

.btn-close-modal {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-close-modal:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Keyframes */
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Responsive */
@media (max-width: 768px) {
  .info-grid {
    grid-template-columns: 1fr 1fr;
  }
  .info-item.full-width {
    grid-column: span 2;
  }
  .cliente-history-modal {
    width: 95%;
    max-height: 90vh;
  }
  .tab-btn {
    padding: 12px 10px;
    font-size: 12px;
  }
}
/* ============================================
   Serviços Page
   ============================================ */

.servicos {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.servicos__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.servicos__categories {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  padding: 4px;
}

.servicos__cat {
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--sans);
  color: rgba(255,255,255,0.4);
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.servicos__cat:hover { color: rgba(255,255,255,0.7); }

.servicos__cat--active {
  background: rgba(168,85,247,0.2);
  color: #c084fc;
}

.servicos__add-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--sans);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(124,58,237,0.35);
  transition: all 0.2s;
}

.servicos__add-btn svg { width: 16px; height: 16px; }

.servicos__add-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124,58,237,0.5);
}

/* --- Table Layout --- */
.servicos__table-wrapper {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  overflow: hidden;
}

.servicos__table {
  width: 100%;
  border-collapse: collapse;
}

.servicos__table th {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,0.35);
  text-align: left;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.servicos__table td {
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}

.servicos__row {
  transition: all 0.2s;
}

.servicos__row:hover {
  background: rgba(255,255,255,0.035);
}

.servicos__client-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.servicos__avatar-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.servicos__client-name {
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  font-size: 14px;
}

.servicos__type {
  display: block;
  font-weight: 600;
  font-size: 12px;
  color: #c084fc;
  margin-bottom: 2px;
}

.servicos__desc-brief {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.servicos__client-cell div {
  display: flex;
  flex-direction: column;
}

.budget-link {
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  margin-top: 2px;
}

.servicos__description-block {
  display: flex;
  flex-direction: column;
}

.servicos__financials {
  display: flex;
  flex-direction: column;
}

.servicos__cost-text {
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  margin-top: 2px;
}

.servicos__status-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.servicos__status-badge--completed { background: rgba(16, 185, 129, 0.12); color: #34d399; }
.servicos__status-badge--pending { background: rgba(245, 158, 11, 0.12); color: #fbbf24; }
.servicos__status-badge--cancelled { background: rgba(239, 68, 68, 0.12); color: #f87171; }
.servicos__status-badge--scheduled { background: rgba(59, 130, 246, 0.12); color: #60a5fa; }

.servicos__date-text { font-size: 13px; color: rgba(255,255,255,0.5); }
.servicos__price-text { font-size: 14px; font-weight: 700; color: #34d399; }

.servicos__actions {
  display: flex;
  justify-content: flex-end;
}

.servicos__action-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.servicos__action-btn:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

@media (max-width: 768px) {
  .servicos__topbar { flex-direction: column; align-items: stretch; }
  .servicos__table-wrapper { overflow-x: auto; }
}

.service-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

.service-modal {
  background: white;
  width: 95vw;
  max-width: 1400px;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
}

.service-modal__header {
  padding: 16px 24px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  flex-shrink: 0;
}

.service-modal__header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
}

.service-modal__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
}

.service-modal__form {
  padding: 20px 24px;
}

.service-modal-main-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.form-grid-compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}

.form-grid-compact .full-width {
  grid-column: span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
}

.form-group input, 
.form-group select, 
.form-group textarea {
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.95rem;
}

.search-container {
  position: relative;
}

.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  z-index: 2000;
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 200px;
  overflow-y: auto;
}

.search-dropdown li {
  padding: 10px 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.search-dropdown li:hover {
  background: #f1f5f9;
}

.nif-tag {
  font-size: 11px;
  background: #e2e8f0;
  padding: 2px 6px;
  border-radius: 4px;
  color: #475569;
}

.service-modal__error {
  margin-top: 16px;
  padding: 10px;
  background: #fef2f2;
  color: #dc2626;
  border-radius: 6px;
  font-size: 0.875rem;
  border: 1px solid #fee2e2;
}

.service-modal__footer {
  margin-top: 32px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.btn-cancel {
  padding: 10px 20px;
  background: #f1f5f9;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.btn-submit {
  padding: 10px 24px;
  background: #10b981;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.service-details-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.service-details-modal {
  background: #1e293b;
  width: 90%;
  max-width: 650px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  border: 1px solid #334155;
  animation: modalFadeIn 0.3s ease-out forwards;
}

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

.service-details-modal__header {
  padding: 1.5rem;
  border-bottom: 1px solid #334155;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.service-details-modal__header h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 1.25rem;
  font-weight: 600;
}

.service-details-modal__close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}

.service-details-modal__close:hover {
  color: #ef4444;
}

.service-details-modal__content {
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.detail-label {
  font-size: 0.875rem;
  color: #94a3b8;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-value {
  color: #e2e8f0;
  font-size: 1rem;
  font-weight: 500;
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: capitalize;
  width: fit-content;
}

.status-pending { background: rgba(234, 179, 8, 0.2); color: #fde047; }
.status-scheduled { background: rgba(56, 189, 248, 0.2); color: #7dd3fc; }
.status-completed { background: rgba(34, 197, 94, 0.2); color: #86efac; }
.status-cancelled { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }

.detail-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.detail-box {
  background: #0f172a;
  border: 1px solid #334155;
  padding: 1rem;
  border-radius: 6px;
  color: #e2e8f0;
  line-height: 1.5;
  white-space: pre-wrap;
  font-size: 0.95rem;
}

.highlight-section .detail-box {
  background: rgba(234, 179, 8, 0.05);
  border-color: rgba(234, 179, 8, 0.3);
}

.service-details-modal__footer {
  padding: 1.5rem;
  border-top: 1px solid #334155;
  display: flex;
  justify-content: flex-end;
}

.btn-close {
  padding: 0.5rem 1.5rem;
  background: #334155;
  color: #f8fafc;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}

.btn-close:hover {
  background: #475569;
}

/* Reports Timeline Styles */
.reports-timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.report-card {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-left: 4px solid #3b82f6;
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1e293b;
  padding-bottom: 0.5rem;
}

.report-date {
  font-weight: 600;
  color: #e2e8f0;
  font-size: 0.95rem;
}

.report-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.report-body p {
  margin: 0;
  line-height: 1.4;
}

.report-body strong {
  color: #94a3b8;
  font-weight: 500;
}

.report-pdf-link {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  width: fit-content;
  transition: all 0.2s;
}

.report-pdf-link:hover {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}
/* ===== Agenda Page ===== */
.agenda-page {
  padding: 28px;
  background-color: #0d0e14;
  background-image: 
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(59, 130, 246, 0.12), transparent 60%),
    radial-gradient(ellipse 80% 50% at 80% -10%, rgba(139, 92, 246, 0.12), transparent 60%);
  color: #f1f5f9;
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.agenda-header-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.agenda-header-container h1 {
  font-size: 2.1rem;
  font-weight: 800;
  margin: 0;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em;
}

.agenda-subtitle {
  color: #94a3b8;
  margin-top: 6px;
  font-size: 0.95rem;
  font-weight: 400;
}

/* Estatísticas Rápidas */
.agenda-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.agenda-stat-card {
  background: rgba(22, 24, 34, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-top: 3px solid #3b82f6;
  border-radius: 14px;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.agenda-stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.agenda-stat-card .stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.agenda-stat-card .stat-value {
  font-size: 1.9rem;
  font-weight: 800;
  color: #3b82f6;
  margin-top: 8px;
  letter-spacing: -0.02em;
}

.agenda-stat-card.warning {
  border-top-color: #eab308;
}
.agenda-stat-card.warning .stat-value {
  color: #facc15;
}

.agenda-stat-card.info {
  border-top-color: #38bdf8;
}
.agenda-stat-card.info .stat-value {
  color: #38bdf8;
}

.agenda-stat-card.success {
  border-top-color: #22c55e;
}
.agenda-stat-card.success .stat-value {
  color: #4ade80;
}

/* Loading State */
.agenda-loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px;
  gap: 18px;
  color: #94a3b8;
}

.agenda-loading-spinner .spinner {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

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

/* FullCalendar Customizations */
.calendar-container {
  background-color: rgba(22, 24, 34, 0.9);
  backdrop-filter: blur(24px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  --fc-page-bg-color: transparent;
  --fc-neutral-bg-color: rgba(30, 41, 59, 0.5);
  --fc-neutral-text-color: #94a3b8;
  --fc-border-color: rgba(255, 255, 255, 0.06);
  --fc-button-text-color: #ffffff;
  --fc-button-bg-color: #2563eb;
  --fc-button-border-color: #1d4ed8;
  --fc-button-hover-bg-color: #3b82f6;
  --fc-button-hover-border-color: #60a5fa;
  --fc-button-active-bg-color: #1d4ed8;
  --fc-button-active-border-color: #1e40af;
  --fc-today-bg-color: rgba(59, 130, 246, 0.07);
  --fc-now-indicator-color: #ef4444;
}

.calendar-container .fc {
  color: #e2e8f0;
}

/* Customização dos Botões do Header do FullCalendar */
.calendar-container .fc-button-primary {
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  padding: 8px 14px !important;
  text-transform: capitalize !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
  transition: all 0.2s ease !important;
}

.calendar-container .fc-button-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !important;
}

.calendar-container .fc-toolbar-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.01em;
}

.calendar-container .fc-col-header-cell-cushion {
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  padding: 12px 4px;
}

.calendar-container .fc-daygrid-day-number {
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 12px;
}

/* Estilo dos Eventos */
.calendar-container .fc-event {
  cursor: pointer;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
  border: 1px solid transparent;
}

.calendar-container .fc-event:hover {
  transform: scale(1.02) translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
  z-index: 20 !important;
}

/* Distinção por tipo de evento */
.event-type-servico {
  border-left: 4px solid #3b82f6 !important;
}

.event-type-ticket {
  border-left: 4px solid #a855f7 !important;
}

/* Event Status Colors */
.event-status-pending {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.3) 0%, rgba(202, 138, 4, 0.2) 100%) !important;
  border-color: rgba(234, 179, 8, 0.6) !important;
  color: #fef08a !important;
}

.event-status-scheduled {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(37, 99, 235, 0.2) 100%) !important;
  border-color: rgba(59, 130, 246, 0.6) !important;
  color: #bfdbfe !important;
}

.event-status-completed {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.3) 0%, rgba(22, 163, 74, 0.2) 100%) !important;
  border-color: rgba(34, 197, 94, 0.6) !important;
  color: #bbf7d0 !important;
}

.event-status-cancelled {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.3) 0%, rgba(220, 38, 38, 0.2) 100%) !important;
  border-color: rgba(239, 68, 68, 0.6) !important;
  color: #fecaca !important;
}

/* Modal de Detalhes da Agenda */
.agenda-modal-header-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #f8fafc;
}

.agenda-modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 8px 0;
}

.agenda-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease;
}

.agenda-detail-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.agenda-detail-row.align-center {
  align-items: center;
}

.agenda-detail-row.highlight-row {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.35);
}

.detail-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #94a3b8;
}

.detail-value {
  font-size: 0.925rem;
  color: #f1f5f9;
  font-weight: 500;
  text-align: right;
}

.client-name-highlight {
  font-size: 1.05rem;
  font-weight: 800;
  color: #60a5fa;
}

.detail-value.highlight {
  color: #60a5fa;
  font-weight: 700;
}

.detail-value.price-tag {
  color: #4ade80;
  font-weight: 800;
  font-size: 1rem;
}

.agenda-modal-select {
  background: #1e2029;
  border: 1px solid #3b82f6;
  color: #f1f5f9;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s ease;
}

.agenda-modal-select:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.25);
}

.agenda-detail-notes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.7);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.agenda-detail-notes p {
  margin: 0;
  font-size: 0.875rem;
  color: #cbd5e1;
  line-height: 1.6;
  white-space: pre-wrap;
}

.agenda-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  width: 100%;
}

/* Barra de Legendas */
.agenda-legend-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(22, 24, 34, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 12px 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.legend-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.legend-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.legend-badge {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid transparent;
}

.legend-type-servico {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  color: #93c5fd;
}

.legend-type-ticket {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.4);
  color: #c084fc;
}

.legend-status-pending {
  background: rgba(234, 179, 8, 0.15);
  border-color: rgba(234, 179, 8, 0.4);
  color: #fef08a;
}

.legend-status-scheduled {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  color: #bfdbfe;
}

.legend-status-completed {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  color: #bbf7d0;
}

.legend-status-cancelled {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fecaca;
}
/* ============================================
   Caixa Page
   ============================================ */

.caixa {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* --- Summary Cards --- */
.caixa__summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.caixa__card {
  padding: 20px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s ease;
}

.caixa__card:hover {
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.caixa__card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.caixa__card-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.4);
}

.caixa__card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.caixa__card-icon svg { width: 18px; height: 18px; }
.caixa__card-icon--saldo { background: rgba(168,85,247,0.15); color: #c084fc; }
.caixa__card-icon--entradas { background: rgba(16,185,129,0.15); color: #34d399; }
.caixa__card-icon--saidas { background: rgba(239,68,68,0.15); color: #f87171; }

.caixa__card-value {
  display: block;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 4px;
}

.caixa__card-value--saldo { color: #c084fc; }
.caixa__card-value--entradas { color: #34d399; }
.caixa__card-value--saidas { color: #f87171; }

.caixa__card-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* --- Methods --- */
.caixa__methods {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.caixa__method {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.2s;
}

.caixa__method:hover { background: rgba(255,255,255,0.03); }

.caixa__method-icon { font-size: 14px; }

.caixa__method-name {
  flex: 1;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

.caixa__method-count {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  padding: 2px 8px;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
}

/* --- Transactions --- */
.caixa__transactions {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 24px;
}

.caixa__trans-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.caixa__trans-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin: 0;
}

.caixa__trans-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.caixa__trans-filters {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  padding: 3px;
}

.caixa__trans-filter {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--sans);
  color: rgba(255,255,255,0.4);
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.caixa__trans-filter:hover { color: rgba(255,255,255,0.7); }
.caixa__trans-filter--active { background: rgba(168,85,247,0.2); color: #c084fc; }

.caixa__register-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--sans);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(124,58,237,0.35);
  transition: all 0.2s;
}

.caixa__register-btn svg { width: 14px; height: 14px; }
.caixa__register-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(124,58,237,0.5); }

/* --- Transaction List --- */
.caixa__trans-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.caixa__trans-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  transition: background 0.2s;
}

.caixa__trans-item:hover { background: rgba(255,255,255,0.03); }

.caixa__trans-indicator {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.caixa__trans-indicator svg { width: 16px; height: 16px; }

.caixa__trans-indicator--entrada {
  background: rgba(16,185,129,0.12);
  color: #34d399;
}

.caixa__trans-indicator--saida {
  background: rgba(239,68,68,0.12);
  color: #f87171;
}

.caixa__trans-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.caixa__trans-desc {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
}

.caixa__trans-client {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

.caixa__trans-method {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  padding: 3px 10px;
  background: rgba(255,255,255,0.04);
  border-radius: 20px;
}

.caixa__trans-hora {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  font-family: var(--mono);
  min-width: 50px;
  text-align: center;
}

.caixa__trans-valor {
  font-size: 14px;
  font-weight: 700;
  min-width: 80px;
  text-align: right;
}

.caixa__trans-valor--entrada { color: #34d399; }
.caixa__trans-valor--saida { color: #f87171; }

@media (max-width: 1200px) {
  .caixa__summary { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .caixa__summary { grid-template-columns: 1fr; }
  .caixa__trans-header { flex-direction: column; align-items: stretch; }
  .caixa__trans-actions { flex-direction: column; }
  .caixa__trans-method, .caixa__trans-hora { display: none; }
}
/* ============================================
   Caixa Graficos Component
   ============================================ */

.caixa-graficos {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
}

/* --- Header --- */
.caixa-graficos__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.caixa-graficos__header h3 {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin: 0;
}

.caixa-graficos__tabs {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  padding: 3px;
}

.caixa-graficos__tab {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--sans);
  color: rgba(255,255,255,0.4);
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.caixa-graficos__tab:hover {
  color: rgba(255,255,255,0.7);
}

.caixa-graficos__tab--active {
  background: rgba(168,85,247,0.2);
  color: #c084fc;
}

/* --- Chart Container --- */
.caixa-graficos__chart-container {
  height: 220px;
  margin-bottom: 24px;
  position: relative;
}

.caixa-graficos__loading,
.caixa-graficos__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: rgba(255,255,255,0.4);
  font-size: 14px;
}

/* --- Bars --- */
.caixa-graficos__bars {
  display: flex;
  align-items: flex-end;
  height: 100%;
  gap: 12px;
  padding: 0 20px;
}

.caixa-graficos__bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  gap: 4px;
}

.caixa-graficos__bar-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 2px;
  height: calc(100% - 24px);
  position: relative;
}

.caixa-graficos__bar {
  width: 45%;
  border-radius: 4px 4px 0 0;
  position: relative;
  transition: all 0.3s ease;
  min-height: 2px;
}

.caixa-graficos__bar:hover {
  filter: brightness(1.2);
  transform: translateY(-2px);
}

.caixa-graficos__bar--receita {
  background: linear-gradient(to top, rgba(16,185,129,0.8), rgba(16,185,129,0.4));
  border-bottom: 2px solid #10b981;
}

.caixa-graficos__bar--despesa {
  background: linear-gradient(to top, rgba(239,68,68,0.8), rgba(239,68,68,0.4));
  border-bottom: 2px solid #ef4444;
}

.caixa-graficos__tooltip {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  background: rgba(0,0,0,0.9);
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: all 0.2s;
  z-index: 10;
  border: 1px solid rgba(255,255,255,0.1);
}

.caixa-graficos__bar:hover .caixa-graficos__tooltip {
  transform: translateX(-50%) scale(1);
  opacity: 1;
}

.caixa-graficos__label {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  text-align: center;
  margin-top: 4px;
  height: 24px;
  display: flex;
  align-items: center;
}

/* --- Legend --- */
.caixa-graficos__legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
}

.caixa-graficos__legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.caixa-graficos__legend-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.caixa-graficos__legend-color--receita {
  background: linear-gradient(135deg, #10b981, #34d399);
}

.caixa-graficos__legend-color--despesa {
  background: linear-gradient(135deg, #ef4444, #f87171);
}

.caixa-graficos__legend-item span {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

/* --- Summary Cards --- */
.caixa-graficos__summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.caixa-graficos__summary-card {
  padding: 16px;
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  transition: all 0.3s ease;
}

.caixa-graficos__summary-card:hover {
  border-color: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

.caixa-graficos__summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.caixa-graficos__summary-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.4);
}

.caixa-graficos__summary-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.caixa-graficos__summary-icon svg {
  width: 14px;
  height: 14px;
}

.caixa-graficos__summary-icon--receita {
  background: rgba(16,185,129,0.15);
  color: #34d399;
}

.caixa-graficos__summary-icon--despesa {
  background: rgba(239,68,68,0.15);
  color: #f87171;
}

.caixa-graficos__summary-icon--projecao {
  background: rgba(168,85,247,0.15);
  color: #c084fc;
}

.caixa-graficos__summary-value {
  display: block;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.2;
  margin-bottom: 4px;
}

.caixa-graficos__summary-value--receita {
  color: #34d399;
}

.caixa-graficos__summary-value--despesa {
  color: #f87171;
}

.caixa-graficos__summary-value--projecao {
  color: #c084fc;
}

.caixa-graficos__summary-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
}

/* --- Responsive --- */
@media (max-width: 1200px) {
  .caixa-graficos__summary {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .caixa-graficos__header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .caixa-graficos__tabs {
    justify-content: center;
  }
  
  .caixa-graficos__bars {
    gap: 8px;
    padding: 0 10px;
  }
  
  .caixa-graficos__summary {
    grid-template-columns: 1fr;
  }
  
  .caixa-graficos__bar-wrapper {
    gap: 1px;
  }
  
  .caixa-graficos__bar {
    width: 48%;
  }
}

@media (max-width: 480px) {
  .caixa-graficos {
    padding: 16px;
  }
  
  .caixa-graficos__bars {
    gap: 6px;
    padding: 0 5px;
  }
  
  .caixa-graficos__label {
    font-size: 10px;
  }
}/* ============================================
   Caixa Objetivos Component
   ============================================ */

.caixa-objetivos {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
}

/* --- Header --- */
.caixa-objetivos__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 20px;
}

.caixa-objetivos__header h3 {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin: 0 0 4px 0;
}

.caixa-objetivos__subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

.caixa-objetivos__progress-summary {
  display: flex;
  align-items: center;
  gap: 16px;
}

.caixa-objetivos__progress-circle {
  position: relative;
  width: 60px;
  height: 60px;
}

.caixa-objetivos__progress-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  font-weight: 700;
  color: #c084fc;
}

.caixa-objetivos__progress-info {
  display: flex;
  flex-direction: column;
}

.caixa-objetivos__progress-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 2px;
}

.caixa-objetivos__progress-count {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}

/* --- Lista de Objetivos --- */
.caixa-objetivos__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.caixa-objetivos__item {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 16px;
  transition: all 0.3s ease;
}

.caixa-objetivos__item:hover {
  border-color: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

.caixa-objetivos__item-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.caixa-objetivos__item-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.caixa-objetivos__item-icon svg {
  width: 18px;
  height: 18px;
}

.caixa-objetivos__item-info {
  flex: 1;
}

.caixa-objetivos__item-title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin: 0 0 4px 0;
}

.caixa-objetivos__item-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin: 0;
  line-height: 1.4;
}

.caixa-objetivos__item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.caixa-objetivos__item-status {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
}

.caixa-objetivos__item-remove {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(239,68,68,0.1);
  color: #ef4444;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.caixa-objetivos__item-remove:hover {
  background: rgba(239,68,68,0.2);
  transform: scale(1.1);
}

/* --- Progress Bar --- */
.caixa-objetivos__item-progress {
  margin-bottom: 12px;
}

.caixa-objetivos__progress-bar {
  height: 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.caixa-objetivos__progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.caixa-objetivos__progress-values {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.caixa-objetivos__progress-current {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}

.caixa-objetivos__progress-target {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.caixa-objetivos__progress-percent {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  padding: 2px 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
}

/* --- Footer --- */
.caixa-objetivos__item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.caixa-objetivos__item-deadline {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
}

.caixa-objetivos__item-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.caixa-objetivos__item-input {
  width: 80px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  font-size: 13px;
  font-family: var(--mono);
  text-align: right;
}

.caixa-objetivos__item-input:focus {
  outline: none;
  border-color: rgba(168,85,247,0.5);
}

.caixa-objetivos__item-currency {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* --- Formulário --- */
.caixa-objetivos__form {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
}

.caixa-objetivos__form h4 {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin: 0 0 16px 0;
}

.caixa-objetivos__form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.caixa-objetivos__form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.caixa-objetivos__form-group label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
}

.caixa-objetivos__form-group input,
.caixa-objetivos__form-group select {
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  font-size: 13px;
  font-family: var(--sans);
}

.caixa-objetivos__form-group input:focus,
.caixa-objetivos__form-group select:focus {
  outline: none;
  border-color: rgba(168,85,247,0.5);
}

.caixa-objetivos__form-group input::placeholder {
  color: rgba(255,255,255,0.3);
}

.caixa-objetivos__form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.caixa-objetivos__form-cancel {
  padding: 8px 16px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.caixa-objetivos__form-cancel:hover {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
}

.caixa-objetivos__form-submit {
  padding: 8px 16px;
  border-radius: 6px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: white;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.caixa-objetivos__form-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124,58,237,0.4);
}

/* --- Botão Adicionar --- */
.caixa-objetivos__add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.caixa-objetivos__add-btn:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.7);
}

.caixa-objetivos__add-btn svg {
  width: 14px;
  height: 14px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .caixa-objetivos__header {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  
  .caixa-objetivos__progress-summary {
    justify-content: center;
  }
  
  .caixa-objetivos__form-grid {
    grid-template-columns: 1fr;
  }
  
  .caixa-objetivos__item-header {
    flex-wrap: wrap;
  }
  
  .caixa-objetivos__item-actions {
    width: 100%;
    justify-content: space-between;
    margin-top: 8px;
  }
  
  .caixa-objetivos__item-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .caixa-objetivos__item-controls {
    justify-content: flex-end;
  }
}

@media (max-width: 480px) {
  .caixa-objetivos {
    padding: 16px;
  }
  
  .caixa-objetivos__form {
    padding: 16px;
  }
  
  .caixa-objetivos__progress-values {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .caixa-objetivos__progress-percent {
    align-self: flex-end;
  }
}/* ============================================
   Caixa Incidencia Table Component
   ============================================ */

.caixa-incidencia {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 24px;
}

/* --- Header --- */
.caixa-incidencia__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 20px;
}

.caixa-incidencia__header h3 {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin: 0 0 4px 0;
}

.caixa-incidencia__subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

.caixa-incidencia__filters {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 300px;
}

.caixa-incidencia__search {
  position: relative;
}

.caixa-incidencia__search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: rgba(255,255,255,0.3);
}

.caixa-incidencia__search-input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  font-size: 13px;
  font-family: var(--sans);
}

.caixa-incidencia__search-input:focus {
  outline: none;
  border-color: rgba(168,85,247,0.5);
}

.caixa-incidencia__search-input::placeholder {
  color: rgba(255,255,255,0.3);
}

.caixa-incidencia__filter-group {
  display: flex;
  gap: 8px;
}

.caixa-incidencia__filter-select {
  flex: 1;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  font-size: 13px;
  font-family: var(--sans);
  cursor: pointer;
}

.caixa-incidencia__filter-select:focus {
  outline: none;
  border-color: rgba(168,85,247,0.5);
}

.caixa-incidencia__filter-select option {
  background: #1a1a1a;
  color: white;
}

/* --- Table Container --- */
.caixa-incidencia__table-container {
  overflow-x: auto;
  margin-bottom: 24px;
  border-radius: 8px;
  background: rgba(255,255,255,0.01);
  border: 1px solid rgba(255,255,255,0.05);
}

.caixa-incidencia__loading,
.caixa-incidencia__empty {
  padding: 40px;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 14px;
}

/* --- Table --- */
.caixa-incidencia__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1000px;
}

.caixa-incidencia__th {
  padding: 14px 12px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  user-select: none;
  transition: all 0.2s;
  position: relative;
}

.caixa-incidencia__th:hover {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.7);
}

.caixa-incidencia__th--ativo {
  color: #c084fc;
  background: rgba(168,85,247,0.1);
}

.caixa-incidencia__sort-icon {
  margin-left: 6px;
  font-size: 10px;
}

.caixa-incidencia__td {
  padding: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  font-size: 13px;
}

.caixa-incidencia__row {
  transition: background 0.2s;
}

.caixa-incidencia__row:hover {
  background: rgba(255,255,255,0.02);
}

.caixa-incidencia__row:last-child .caixa-incidencia__td {
  border-bottom: none;
}

/* --- Tipo --- */
.caixa-incidencia__tipo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.caixa-incidencia__tipo-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.caixa-incidencia__tipo-icon svg {
  width: 14px;
  height: 14px;
}

/* --- Descrição --- */
.caixa-incidencia__td--desc {
  max-width: 200px;
}

.caixa-incidencia__descricao {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255,255,255,0.7);
}

/* --- Categoria --- */
.caixa-incidencia__categoria {
  padding: 4px 8px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.6);
  font-size: 11px;
  font-weight: 500;
}

/* --- Valor --- */
.caixa-incidencia__valor {
  font-weight: 600;
  font-family: var(--mono);
}

/* --- Data --- */
.caixa-incidencia__data {
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  font-family: var(--mono);
}

/* --- Status --- */
.caixa-incidencia__status {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  display: inline-block;
}

.caixa-incidencia__status--pendente {
  background: rgba(245,158,11,0.15);
  color: #f59e0b;
}

.caixa-incidencia__status--processado {
  background: rgba(16,185,129,0.15);
  color: #10b981;
}

.caixa-incidencia__status--cancelado {
  background: rgba(239,68,68,0.15);
  color: #ef4444;
}

/* --- Referência --- */
.caixa-incidencia__referencia {
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.03);
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
}

/* --- Ações --- */
.caixa-incidencia__actions {
  display: flex;
  gap: 6px;
}

.caixa-incidencia__action-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.5);
}

.caixa-incidencia__action-btn:hover {
  transform: translateY(-1px);
}

.caixa-incidencia__action-btn--view:hover {
  background: rgba(59,130,246,0.2);
  color: #3b82f6;
}

.caixa-incidencia__action-btn--edit:hover {
  background: rgba(168,85,247,0.2);
  color: #c084fc;
}

.caixa-incidencia__action-btn svg {
  width: 14px;
  height: 14px;
}

/* --- Paginação --- */
.caixa-incidencia__pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
  flex-wrap: wrap;
  gap: 16px;
}

.caixa-incidencia__pagination-info {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.caixa-incidencia__pagination-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.caixa-incidencia__page-select {
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  font-size: 13px;
  font-family: var(--sans);
  cursor: pointer;
}

.caixa-incidencia__page-select:focus {
  outline: none;
  border-color: rgba(168,85,247,0.5);
}

.caixa-incidencia__page-buttons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.caixa-incidencia__page-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.caixa-incidencia__page-btn:hover:not(:disabled) {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.2);
}

.caixa-incidencia__page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.caixa-incidencia__page-numbers {
  display: flex;
  gap: 4px;
}

.caixa-incidencia__page-number {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.caixa-incidencia__page-number:hover {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.2);
}

.caixa-incidencia__page-number--active {
  background: rgba(168,85,247,0.2);
  color: #c084fc;
  border-color: rgba(168,85,247,0.3);
  font-weight: 600;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .caixa-incidencia__header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .caixa-incidencia__filters {
    min-width: auto;
  }
}

@media (max-width: 768px) {
  .caixa-incidencia {
    padding: 16px;
  }
  
  .caixa-incidencia__pagination {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .caixa-incidencia__pagination-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .caixa-incidencia__page-buttons {
    justify-content: center;
  }
  
  .caixa-incidencia__filter-group {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .caixa-incidencia__table-container {
    margin: 0 -16px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  
  .caixa-incidencia__page-numbers {
    display: none;
  }
}.tickets {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tickets__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tickets__header h2 {
  margin: 0;
  font-size: 24px;
  color: rgba(255,255,255,0.92);
}

.tickets__header p {
  margin: 4px 0 0;
  color: rgba(255,255,255,0.55);
  font-size: 14px;
}

.tickets__new-btn {
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.tickets__summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tickets__card {
  padding: 20px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
}

.tickets__card span {
  display: block;
  color: rgba(255,255,255,0.45);
  margin-bottom: 8px;
  font-size: 13px;
}

.tickets__card strong {
  font-size: 28px;
  color: #fff;
}

.tickets__card--info {
  background: rgba(99,102,241,0.08);
  border-color: rgba(99,102,241,0.18);
}

.tickets__error {
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(239,68,68,0.12);
  color: #fecaca;
}

.tickets__list {
  display: flex;
  flex-direction: column;
}

.tickets__loading,
.tickets__empty {
  padding: 24px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.6);
  text-align: center;
}

.tickets__table-wrapper {
  overflow-x: auto;
  max-height: calc(100vh - 280px);
  overflow-y: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  -webkit-overflow-scrolling: touch;
}

.tickets__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.tickets__table th,
.tickets__table td {
  padding: 10px 14px;
  text-align: left;
  color: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  white-space: nowrap;
}

.tickets__table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #16171d;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.tickets__table tbody tr {
  transition: background 0.15s ease, transform 0.1s ease;
  cursor: pointer;
  user-select: none;
}

.tickets__table tbody tr:hover {
  background: rgba(168, 85, 247, 0.08);
}

.tickets__table tbody tr:active {
  background: rgba(168, 85, 247, 0.15);
  transform: scale(0.998);
}

.tickets__col-id { color: #a855f7; font-family: var(--mono); font-weight: 600; font-size: 12px; }
.tickets__col-client { color: rgba(255,255,255,0.9); font-weight: 500; }
.tickets__col-equipment { color: rgba(255,255,255,0.8); }
.tickets__col-tech { color: rgba(255,255,255,0.5); }
.tickets__col-subject { color: rgba(255,255,255,0.7); max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.tickets__col-date { font-size: 11px; color: rgba(255,255,255,0.45); font-family: var(--mono); }

/* Badges Base */
.priority-badge, .status-badge {
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
  letter-spacing: 0.3px;
}

/* Priority Styles */
.priority-high { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.25); }
.priority-medium { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.25); }
.priority-low { background: rgba(52, 211, 153, 0.15); color: #34d399; border: 1px solid rgba(52, 211, 153, 0.25); }

/* Status Styles */
.status-open { background: rgba(59, 130, 246, 0.12); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.25); }
.status-closed { background: rgba(255, 255, 255, 0.05); color: rgba(255,255,255,0.4); border: 1px solid rgba(255, 255, 255, 0.1); }
.status-pending { background: rgba(168, 85, 247, 0.12); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.25); }

.tickets__col-client strong {
  display: block;
}

.tech-assigned {
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  display: block;
  margin-top: 2px;
}

.status-in-progress { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.25); }
.status-converted { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.25); }

@media (max-width: 768px) {
  .tickets {
    gap: 14px;
  }
  .tickets__header h2 {
    font-size: 20px;
  }
  .tickets__summary {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .tickets__card {
    padding: 12px 14px;
    border-radius: 12px;
  }
  .tickets__card strong {
    font-size: 22px;
  }
  .tickets__table th,
  .tickets__table td {
    padding: 8px 10px;
    font-size: 12px;
  }
  .tickets__table-wrapper {
    max-height: calc(100dvh - 300px);
  }
}
.ticket-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

.ticket-modal {
  background: white;
  width: 100%;
  max-width: 1400px; /* Aumentado para o dobro (de 700px para 1400px) */
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
  overflow: visible;
  animation: slideUp 0.3s ease;
}

.ticket-modal__header {
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
}

.ticket-modal__header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
}

.ticket-modal__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
}

.ticket-modal__form {
  padding: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.full-width {
  grid-column: span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
}

.form-group input, 
.form-group select, 
.form-group textarea {
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.95rem;
}

.search-container {
  position: relative;
}

.search-input-wide {
  width: 100%;
  padding: 12px 16px !important;
  font-size: 1rem !important;
}

.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  z-index: 2000;
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 300px;
  overflow-y: auto;
}

.search-dropdown-wide {
  max-height: 400px;
}

.search-dropdown li {
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid #f1f5f9;
}

.search-dropdown li:last-child {
  border-bottom: none;
}

.search-dropdown li:hover {
  background: #f8fafc;
}

.client-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.client-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
}

.nif-tag {
  font-size: 0.75rem;
  background: #e2e8f0;
  padding: 2px 6px;
  border-radius: 4px;
  color: #475569;
}

.contact-tag {
  font-size: 0.75rem;
  background: #dbeafe;
  padding: 2px 6px;
  border-radius: 4px;
  color: #1e40af;
}

.address-tag {
  font-size: 0.75rem;
  background: #dcfce7;
  padding: 2px 6px;
  border-radius: 4px;
  color: #166534;
}

/* Client Info Card */
.client-info-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 8px;
}

.client-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.client-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.client-info-item.full-width {
  grid-column: 1 / -1;
}

.client-info-label {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}

.client-info-value {
  font-size: 0.9rem;
  color: #1e293b;
  font-weight: 500;
}

/* Address Controls */
.address-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.address-input {
  flex: 1;
}

.btn-use-client-address {
  padding: 10px 16px;
  background: #10b981;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.btn-use-client-address:hover {
  background: #059669;
}

.ticket-modal__error {
  margin-top: 16px;
  padding: 10px;
  background: #fef2f2;
  color: #dc2626;
  border-radius: 6px;
  font-size: 0.875rem;
  border: 1px solid #fee2e2;
}

.ticket-modal__footer {
  margin-top: 32px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.btn-cancel {
  padding: 10px 20px;
  background: #f1f5f9;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.btn-submit {
  padding: 10px 24px;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.ticket-timeline {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.timeline-header h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}

.current-stage .stage-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  color: white;
  font-size: 14px;
  font-weight: 500;
}

.timeline-controls {
  background: #f9fafb;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid #e5e7eb;
}

.stage-control h5 {
  margin: 0 0 12px 0;
  font-size: 16px;
  color: #374151;
}

.stage-options {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.stage-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.stage-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stage-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.stage-notes textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  resize: vertical;
  transition: border-color 0.2s;
}

.stage-notes textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.timeline-progress {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 32px 0;
  padding: 0 20px;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  flex: 1;
}

.step-indicator {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border: 3px solid #d1d5db;
  margin-bottom: 8px;
  transition: all 0.3s;
}

.step-indicator.completed {
  background: #10b981;
  border-color: #10b981;
  color: white;
}

.step-indicator.current {
  background: #3b82f6;
  border-color: #3b82f6;
  color: white;
  transform: scale(1.1);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.step-icon {
  font-size: 20px;
}

.step-info {
  text-align: center;
  margin-top: 8px;
}

.step-label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
}

.step-description {
  font-size: 12px;
  color: #6b7280;
  max-width: 100px;
  line-height: 1.3;
}

.step-connector {
  position: absolute;
  top: 24px;
  left: 50%;
  right: -50%;
  height: 3px;
  background: #d1d5db;
  z-index: 0;
}

.step-connector.completed {
  background: #10b981;
}

.timeline-history {
  margin-top: 32px;
}

.timeline-history h5 {
  margin: 0 0 16px 0;
  font-size: 16px;
  color: #374151;
}

.empty-history {
  text-align: center;
  padding: 32px;
  color: #6b7280;
  font-style: italic;
  background: #f9fafb;
  border-radius: 8px;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.history-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
  border-left: 4px solid #3b82f6;
  transition: transform 0.2s;
}

.history-item:hover {
  transform: translateX(4px);
  background: #f3f4f6;
}

.history-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
  flex-shrink: 0;
}

.history-content {
  flex: 1;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.history-stage {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}

.history-time {
  font-size: 12px;
  color: #6b7280;
}

.history-notes {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.5;
  margin-bottom: 8px;
}

.history-user .user-badge {
  display: inline-block;
  padding: 4px 8px;
  background: #e5e7eb;
  border-radius: 4px;
  font-size: 12px;
  color: #374151;
}

.timeline-loading,
.timeline-error {
  text-align: center;
  padding: 40px;
  color: #6b7280;
}

.timeline-error {
  color: #ef4444;
  background: #fef2f2;
  border-radius: 8px;
}

/* Responsividade */
@media (max-width: 768px) {
  .ticket-timeline {
    padding: 16px;
  }
  
  .timeline-progress {
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .progress-step {
    flex: 0 0 calc(33.333% - 20px);
    margin-bottom: 20px;
  }
  
  .step-connector {
    display: none;
  }
  
  .history-header {
    flex-direction: column;
    gap: 4px;
  }
  
  .history-time {
    align-self: flex-start;
  }
}

@media (max-width: 480px) {
  .progress-step {
    flex: 0 0 calc(50% - 20px);
  }
  
  .timeline-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  
  .stage-options {
    flex-direction: column;
  }
}/* ── Page shell ─────────────────────────────────────────────────── */
.td-page {
  padding: 28px 32px;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── Loading / Error ─────────────────────────────────────────────── */
.td-loading,
.td-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 80px 32px;
  color: var(--text-color-secondary, #9ca3af);
  font-size: 1.05rem;
}

.td-error {
  color: #fca5a5;
}

.td-spinner {
  width: 36px;
  height: 36px;
  animation: td-spin 1s linear infinite;
  color: var(--accent-color, #8b5cf6);
}

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

/* ── Header ─────────────────────────────────────────────────────── */
.td-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.07));
}

.td-header-left {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.td-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--border-color, rgba(255,255,255,0.1));
  border-radius: 8px;
  color: var(--text-color-secondary, #9ca3af);
  font-size: 0.875rem;
  cursor: pointer;
  white-space: nowrap;
  margin-top: 6px;
  transition: background 0.15s, color 0.15s;
}

.td-back-btn svg {
  width: 16px;
  height: 16px;
}

.td-back-btn:hover {
  background: var(--hover-bg-color, rgba(255,255,255,0.06));
  color: var(--text-color-primary, #f3f4f6);
}

.td-ticket-id {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-color, #8b5cf6);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.td-subject {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-color-primary, #f3f4f6);
  line-height: 1.2;
}

.td-header-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-top: 6px;
}

.td-badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ── Body ────────────────────────────────────────────────────────── */
.td-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 1100px) {
  .td-body { grid-template-columns: 1fr; }
}

.td-left,
.td-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Cards ───────────────────────────────────────────────────────── */
.td-card {
  background: var(--bg-color-secondary, #1e1b2e);
  border: 1px solid var(--border-color, rgba(255,255,255,0.07));
  border-radius: 12px;
  padding: 22px 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.td-card--timeline {
  padding: 0;
  overflow: hidden;
}

.td-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-color-primary, #f3f4f6);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.07));
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.td-card-title svg {
  width: 18px;
  height: 18px;
  color: var(--accent-color, #8b5cf6);
  flex-shrink: 0;
}

/* ── Info grid ───────────────────────────────────────────────────── */
.td-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 24px;
}

.td-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.td-field--full {
  grid-column: 1 / -1;
}

.td-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-color-secondary, #9ca3af);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.td-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-color-primary, #f3f4f6);
  line-height: 1.4;
}

/* ── Description ─────────────────────────────────────────────────── */
.td-description {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-color-secondary, #d1d5db);
  white-space: pre-wrap;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border-color, rgba(255,255,255,0.06));
  border-radius: 8px;
  padding: 14px 16px;
  min-height: 100px;
}

/* ── Footer actions ─────────────────────────────────────────────── */
.td-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 8px;
}

.td-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 8px;
  border: 1px solid var(--border-color, rgba(255,255,255,0.1));
  background: transparent;
  color: var(--text-color-secondary, #d1d5db);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.td-action-btn svg {
  width: 16px;
  height: 16px;
}

.td-action-btn:hover {
  background: var(--hover-bg-color, rgba(255,255,255,0.06));
  color: var(--text-color-primary, #f3f4f6);
}

.td-action-btn--danger {
  border-color: rgba(239,68,68,0.3);
  color: #fca5a5;
}

.td-action-btn--danger:hover {
  background: rgba(239,68,68,0.12);
  border-color: rgba(239,68,68,0.5);
  color: #f87171;
}

/* ── Print ───────────────────────────────────────────────────────── */
@media print {
  .td-header,
  .td-footer { display: none !important; }
  .td-page { padding: 0; }
  .td-card { box-shadow: none; border: 1px solid #000; margin-bottom: 16px; page-break-inside: avoid; }
  .td-body { display: block; }
}

/* ── Mobile ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .td-page { padding: 16px; }
  .td-header { flex-direction: column; }
  .td-header-left { flex-direction: column; gap: 10px; }
  .td-grid { grid-template-columns: 1fr; }
  .td-footer { flex-wrap: wrap; }
  .td-action-btn { flex: 1; justify-content: center; }
}/* ============================================
   Technician Modal Styles
   ============================================ */

.config__modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease-out;
}

.config__modal {
  background: #12101e;
  background-image: radial-gradient(circle at top right, rgba(124, 58, 237, 0.05), transparent 300px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.config__modal--lg {
  max-width: 800px;
}

.config__modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.config__modal-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.config__modal-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  transition: all 0.2s;
}

.config__modal-close:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.config__modal-body {
  padding: 24px 30px;
  flex: 1;
  overflow-y: auto;
}

.config__modal-footer {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.config__field--full {
  grid-column: 1 / -1;
}

.config__textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  font-family: inherit;
}

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

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}.config {
  --bg-color-light: var(--bg);
  --bg-color-secondary: var(--bg-secondary);
  --border-color: var(--border);
  --text-color-primary: var(--text-h);
  --text-color-secondary: var(--text);
  --primary-color: var(--accent);
  --primary-light-color: var(--accent-bg);
  --primary-dark-color: #a855f7;
  --accent-color: var(--accent);
  --accent-dark-color: #a855f7;
  --input-bg-color: var(--bg);
  --hover-bg-color: rgba(255, 255, 255, 0.04);
  --white: #ffffff;
  --gray-500: rgba(255, 255, 255, 0.3);
  --gray-300: rgba(255, 255, 255, 0.15);
  --gray-800: var(--text);
  --success-color: #10b981;
  --success-light-color: rgba(16, 185, 129, 0.15);
  --success-dark-color: #34d399;
  --table-header-bg: rgba(255, 255, 255, 0.02);
  --code-bg-color: var(--code-bg);
  --code-text-color: var(--text-h);
  --danger-color: #ef4444;
  --danger-light-color: rgba(239, 68, 68, 0.1);
  --danger-dark-color: #f87171;
  --info-light-color: rgba(59, 130, 246, 0.15);
  --info-dark-color: #60a5fa;
  --warning-light-color: rgba(245, 158, 11, 0.15);
  --warning-dark-color: #fbbf24;

  display: flex;
  flex-direction: row-reverse;
  min-height: calc(100vh - 60px);
  /* Adjust based on header height */
  background-color: var(--bg-color-light);
  color: var(--text-color-primary);
}

.config__navbar-container {
  width: 200px;
  flex-shrink: 0;
  background-color: var(--bg-color-secondary);
  border-left: 1px solid var(--border-color);
  padding: 20px 10px;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
}

.config__navbar {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.config__navbar::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

.config__nav-item {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  background: none;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text-color-secondary);
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
  width: 100%;
  gap: 12px;
}

.config__nav-item:hover {
  background-color: var(--hover-bg-color);
  color: var(--text-color-primary);
}

.config__nav-item--active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(124, 58, 237, 0.1)) !important;
  color: #c084fc !important;
  border-color: rgba(168, 85, 247, 0.2) !important;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.08);
}

.config__nav-item--active .config__nav-icon {
  color: #c084fc !important;
}

.config__nav-icon {
  margin-right: 10px;
  font-size: 1.2rem;
  width: 24px;
  /* Ensure consistent icon size */
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.config__nav-icon svg {
  width: 100%;
  height: 100%;
}

.config__content {
  flex-grow: 1;
  padding: 30px;
}

.config__section {
  background-color: var(--bg-color-secondary);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.config__section-header {
  margin-bottom: 25px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}

.config__section-header--actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.config__section-header--actions .config__technicians-actions {
  margin-bottom: 0;
}

.config__users-actions .config__btn,
.config__technicians-actions .config__btn,
.config__holidays-controls .config__btn {
  padding: 8px 15px;
  font-size: 0.9rem;
}

.config__users-actions .config__btn svg,
.config__technicians-actions .config__btn svg,
.config__holidays-controls .config__btn svg {
  width: 16px;
  height: 16px;
}

.config__section-header h3 {
  font-size: 1.8rem;
  color: var(--text-color-primary);
  margin-bottom: 5px;
}

.config__section-header p {
  font-size: 0.95rem;
  color: var(--text-color-secondary);
}

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

.config__field {
  display: flex;
  flex-direction: column;
}

.config__field--full {
  grid-column: 1 / -1;
}

.config__field label {
  font-size: 0.9rem;
  color: var(--text-color-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}

.config__input,
.config__select,
.config__textarea {
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  background-color: var(--input-bg-color);
  color: var(--text-color-primary);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.config__input:focus,
.config__select:focus,
.config__textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.2);
  outline: none;
}

.config__textarea {
  resize: vertical;
  min-height: 80px;
}

.config__btn {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.config__btn--primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.config__btn--primary:hover {
  background-color: var(--primary-dark-color);
}

.config__btn--ghost {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-color-secondary);
}

.config__btn--ghost:hover {
  background-color: var(--hover-bg-color);
  color: var(--text-color-primary);
}

.config__btn--danger {
  background-color: var(--danger-color);
  color: var(--white);
}

.config__btn--danger:hover {
  background-color: var(--danger-dark-color);
}

.config__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.config__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.config__toggles {
  margin-top: 30px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.config__toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
}

.config__toggle-row:last-child {
  border-bottom: none;
}

.config__toggle-info {
  display: flex;
  flex-direction: column;
}

.config__toggle-label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-color-primary);
}

.config__toggle-desc {
  font-size: 0.85rem;
  color: var(--text-color-secondary);
  margin-top: 4px;
}

.config__toggle-switch {
  width: 45px;
  height: 25px;
  background-color: var(--gray-500);
  border-radius: 15px;
  position: relative;
  cursor: pointer;
  transition: background-color 0.2s;
  border: none;
  padding: 0;
}

.config__toggle-switch--on {
  background-color: var(--success-color);
}

.config__toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  background-color: var(--white);
  border-radius: 50%;
  transition: transform 0.2s;
}

.config__toggle-switch--on .config__toggle-knob {
  transform: translateX(20px);
}

.config__profile-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background-color: var(--bg-color-light);
  border-radius: 8px;
  margin-top: 20px;
}

.config__profile-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
}

.config__profile-info h4 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text-color-primary);
}

.config__profile-info span {
  font-size: 0.9rem;
  color: var(--text-color-secondary);
}

.config__users-actions,
.config__technicians-actions,
.config__holidays-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 10px;
}

.config__users-table-wrapper,
.config__technicians-table-wrapper,
.config__holidays-table-wrapper {
  overflow-x: auto;
}

.config__users-table,
.config__technicians-table,
.config__holidays-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.config__users-table th,
.config__technicians-table th,
.config__holidays-table th {
  background-color: var(--table-header-bg);
  padding: 12px 15px;
  text-align: left;
  font-size: 0.9rem;
  color: var(--text-color-secondary);
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
}

.config__users-table td,
.config__technicians-table td,
.config__holidays-table td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-color-primary);
  font-size: 0.9rem;
}

.config__users-table tbody tr:last-child td,
.config__technicians-table tbody tr:last-child td,
.config__holidays-table tbody tr:last-child td {
  border-bottom: none;
}

.config__user-info,
.config__technician-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.config__user-avatar,
.config__technician-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
  overflow: hidden;
}

.config__user-info span,
.config__technician-info span {
  font-weight: 500;
}

.config__user-role,
.config__user-status,
.config__technician-status,
.config__holiday-type,
.config__holiday-recurring {
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
}

.config__user-role--admin {
  background-color: var(--primary-light-color);
  color: var(--primary-dark-color);
}

.config__user-role--user {
  background-color: var(--info-light-color);
  color: var(--info-dark-color);
}

.config__user-status--active {
  background-color: var(--success-light-color);
  color: var(--success-dark-color);
}

.config__user-status--inactive {
  background-color: var(--danger-light-color);
  color: var(--danger-dark-color);
}

.config__technician-status--active {
  background-color: var(--success-light-color);
  color: var(--success-dark-color);
}

.config__technician-status--inactive {
  background-color: var(--danger-light-color);
  color: var(--danger-dark-color);
}

.config__holiday-type--national {
  background-color: var(--info-light-color);
  color: var(--info-dark-color);
}

.config__holiday-type--local {
  background-color: var(--warning-light-color);
  color: var(--warning-dark-color);
}

.config__holiday-recurring--yes {
  background-color: var(--success-light-color);
  color: var(--success-dark-color);
}

.config__holiday-recurring--no {
  background-color: var(--danger-light-color);
  color: var(--danger-dark-color);
}

.config__user-actions,
.config__technician-actions,
.config__holiday-actions {
  display: flex;
  gap: 5px;
}

.config__user-action-btn,
.config__technician-action-btn,
.config__holiday-action-btn {
  background: none;
  border: none;
  color: var(--text-color-secondary);
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  transition: background-color 0.2s, color 0.2s;
}

.config__user-action-btn svg,
.config__technician-action-btn svg,
.config__holiday-action-btn svg {
  width: 18px;
  height: 18px;
}

.config__user-action-btn:hover,
.config__technician-action-btn:hover,
.config__holiday-action-btn:hover {
  background-color: var(--hover-bg-color);
  color: var(--primary-color);
}

.config__danger-zone {
  margin-top: 40px;
  padding: 20px;
  background-color: var(--danger-light-color);
  border: 1px solid var(--danger-color);
  border-radius: 8px;
}

.config__danger-zone h4 {
  color: var(--danger-dark-color);
  margin-top: 0;
  margin-bottom: 10px;
}

.config__danger-zone p {
  color: var(--danger-dark-color);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

/* Logs Tab */
.config__logs-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
  align-items: center;
}

.config__logs-search-wrap {
  position: relative;
  flex-grow: 1;
  min-width: 250px;
}

.config__logs-search-wrap svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-color-secondary);
}

.config__logs-search {
  width: 100%;
  padding-left: 35px;
}

.config__logs-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-color-secondary);
  font-size: 1.2rem;
  cursor: pointer;
}

.config__logs-select,
.config__logs-date {
  min-width: 150px;
}

.config__logs-count {
  font-size: 0.9rem;
  color: var(--text-color-secondary);
  white-space: nowrap;
}

.config__logs-error-msg,
.config__logs-loading,
.config__logs-empty {
  text-align: center;
  padding: 30px;
  color: var(--text-color-secondary);
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.config__logs-spinner {
  animation: spin 1s linear infinite;
  width: 24px;
  height: 24px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.config__logs-empty svg {
  width: 40px;
  height: 40px;
  color: var(--text-color-tertiary);
}

.config__logs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.config__logs-table th,
.config__logs-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
}

.config__logs-table th {
  background-color: var(--table-header-bg);
  color: var(--text-color-secondary);
  font-weight: 600;
}

.config__logs-table td {
  color: var(--text-color-primary);
  vertical-align: top;
}

.config__logs-td-id {
  width: 50px;
}

.config__logs-td-date {
  width: 160px;
  white-space: nowrap;
}

.config__logs-td-user {
  width: 150px;
}

.config__logs-td-table {
  width: 120px;
}

.config__logs-td-rec {
  width: 80px;
}

.config__logs-td-ip {
  width: 120px;
}

.config__logs-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: var(--info-light-color);
  color: var(--info-dark-color);
  padding: 4px 8px;
  border-radius: 15px;
  font-size: 0.8rem;
  white-space: nowrap;
}

.config__logs-user-chip svg {
  width: 16px;
  height: 16px;
  color: var(--info-dark-color);
}

.config__logs-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
  white-space: nowrap;
}

.logs-badge--login {
  background-color: var(--success-light-color);
  color: var(--success-dark-color);
}

.logs-badge--logout {
  background-color: var(--warning-light-color);
  color: var(--warning-dark-color);
}

.logs-badge--insert {
  background-color: var(--primary-light-color);
  color: var(--primary-dark-color);
}

.logs-badge--update {
  background-color: var(--info-light-color);
  color: var(--info-dark-color);
}

.logs-badge--delete {
  background-color: var(--danger-light-color);
  color: var(--danger-dark-color);
}

.logs-badge--search {
  background-color: var(--gray-300);
  color: var(--gray-800);
}

.config__logs-code {
  background-color: var(--code-bg-color);
  color: var(--code-text-color);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Fira Code', monospace;
  font-size: 0.8em;
}

.config__logs-null {
  color: var(--text-color-tertiary);
}

.config__logs-details,
.config__logs-query {
  display: block;
  max-width: 250px;
  /* Limit width for readability */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.config__logs-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.config__logs-pg-btn {
  background-color: var(--bg-color-light);
  border: 1px solid var(--border-color);
  color: var(--text-color-secondary);
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.config__logs-pg-btn:hover:not(:disabled) {
  background-color: var(--hover-bg-color);
  color: var(--text-color-primary);
}

.config__logs-pg-btn--active {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.config__logs-pg-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.config__logs-pg-ellipsis {
  color: var(--text-color-secondary);
  padding: 8px 0;
}

.config__logs-pg-info {
  font-size: 0.9rem;
  color: var(--text-color-secondary);
  margin-left: 10px;
}

/* Image Upload/Preview */
.config__upload-label {
  display: block;
  cursor: pointer;
  margin-top: 8px;
}

.config__upload-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background-color: var(--accent-color);
  color: var(--white);
  border-radius: 5px;
  font-size: 0.9rem;
  justify-content: center;
  transition: background-color 0.2s;
}

.config__upload-btn:hover {
  background-color: var(--accent-dark-color);
}

.config__upload-btn svg {
  width: 18px;
  height: 18px;
  stroke: var(--white);
}

.config__image-preview {
  width: 150px;
  height: 100px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--input-bg-color);
  flex-shrink: 0;
}

.config__image-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.config__image-preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-color-tertiary);
  font-size: 0.8rem;
}

.config__image-preview-placeholder svg {
  width: 30px;
  height: 30px;
  margin-bottom: 5px;
}

/* Technician Cards View */
.config__technicians-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.config__technician-card {
  background-color: var(--bg-color-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.config__technician-card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.config__technician-card-header h4 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text-color-primary);
}

.config__technician-card-header .config__technician-email {
  font-size: 0.9rem;
  color: var(--text-color-secondary);
}

.config__technician-card-body p {
  margin: 5px 0;
  font-size: 0.95rem;
  color: var(--text-color-primary);
}

.config__technician-card-body strong {
  color: var(--text-color-secondary);
  margin-right: 5px;
}

.config__technician-card-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.config__technician-card-actions .config__btn {
  flex-grow: 1;
}

.config__technician-card-actions .config__btn svg {
  width: 16px;
  height: 16px;
}

.config__loading-message,
.config__empty-message {
  grid-column: 1 / -1;
  /* Span across all columns */
  text-align: center;
  padding: 30px;
  color: var(--text-color-secondary);
  font-size: 1rem;
}

/* View Toggle Group */
.config__view-toggle-group {
  display: flex;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  overflow: hidden;
}

.config__view-toggle {
  padding: 8px 15px;
  background-color: var(--input-bg-color);
  color: var(--text-color-secondary);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.config__view-toggle:hover {
  background-color: var(--hover-bg-color);
}

.config__view-toggle--active {
  background-color: var(--primary-color);
  color: var(--white);
}

.config__view-toggle:first-child {
  border-right: 1px solid var(--border-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .config {
    flex-direction: column;
  }

  .config__navbar-container {
    width: 100%;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  .config__navbar {
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
  }

  .config__navbar::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
  }

  .config__nav-item {
    flex-shrink: 0;
    padding: 10px 15px;
  }

  .config__content {
    padding: 20px;
  }

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

  .config__logs-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .config__logs-search-wrap {
    width: 100%;
  }

  .config__logs-select,
  .config__logs-date {
    width: 100%;
  }

  .config__technicians-cards-grid {
    grid-template-columns: 1fr;
  }

  .config__section-header--actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .config__section-header--actions .config__technicians-actions {
    width: 100%;
    justify-content: space-between;
  }
}/* ==========================================================================
   CategoryTreeEditor.css
   Estilos visuais para a Árvore Real de Categorias & Subcategorias (Directory Tree View)
   ========================================================================== */

.cte-container {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 1.5rem;
    color: #f8fafc;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.cte-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cte-title-box h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #60a5fa;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cte-title-box p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}

.cte-header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.cte-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.cte-btn--primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.cte-btn--primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.5);
}

.cte-btn--secondary {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.cte-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    color: white;
}

/* Toast Notification */
.cte-toast {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.88rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    animation: fadeInToast 0.25s ease-out;
}

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

/* Painel de Filtros e Pesquisa */
.cte-filter-toolbar {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
    background: rgba(0, 0, 0, 0.25);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cte-search-box {
    position: relative;
    width: 100%;
}

.cte-search-input {
    width: 100%;
    padding: 0.65rem 2.5rem 0.65rem 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.cte-search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.cte-clear-search-btn {
    position: absolute;
    right: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.15s ease;
}

.cte-clear-search-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    color: white;
}

.cte-select-filters {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cte-filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cte-filter-group label {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    white-space: nowrap;
}

.cte-filter-select {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #f8fafc;
    padding: 0.45rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cte-filter-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.cte-filter-select option {
    background: #0f172a;
    color: #f8fafc;
}

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

.cte-btn--clear:hover {
    background: rgba(239, 68, 68, 0.3);
    color: white;
}

/* Barra de Ações em Massa */
.cte-bulk-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid rgba(59, 130, 246, 0.4);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.25);
    padding: 0.85rem 1.2rem;
    border-radius: 10px;
    margin-bottom: 1.25rem;
    animation: bulkBarSlideDown 0.25s ease-out;
}

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

.cte-bulk-info {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #f8fafc;
}

.cte-bulk-count-badge {
    background: #3b82f6;
    color: white;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 12px;
    font-size: 0.82rem;
}

.cte-bulk-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.cte-btn--bulk-move {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
}

.cte-btn--bulk-move:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.5);
}

.cte-btn--bulk-delete {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.35);
}

.cte-btn--bulk-delete:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.5);
}

/* Checkbox do Nó */
.cte-node-checkbox {
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
    cursor: pointer;
    margin-right: 0.2rem;
}

.cte-tree-item.cte-item--selected {
    background: rgba(59, 130, 246, 0.2) !important;
    border-color: rgba(59, 130, 246, 0.4) !important;
}

/* Container da Árvore */
.cte-tree {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Estrutura dos Ramos da Árvore */
.cte-tree-branch {
    position: relative;
    display: flex;
    flex-direction: column;
}

.cte-tree-children {
    position: relative;
    margin-left: 1.75rem;
    padding-left: 0.5rem;
    border-left: 1.5px dashed rgba(59, 130, 246, 0.3);
}

/* Item da Árvore (Linha Visual da Categoria) */
.cte-tree-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.75rem;
    border-radius: 6px;
    background: transparent;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease;
    position: relative;
    user-select: none;
}

.cte-tree-item:hover {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.25);
}

.cte-tree-item.cte-item--parent {
    font-weight: 600;
}

.cte-tree-item.cte-item--child {
    font-weight: 400;
}

.cte-tree-item.cte-item--dragging {
    opacity: 0.4;
    border: 1px dashed #3b82f6;
}

.cte-tree-item.cte-item--drop-target {
    background: rgba(59, 130, 246, 0.25) !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

/* Conectores de Árvore (├── e └──) */
.cte-branch-connector {
    font-family: monospace;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
    line-height: 1;
    margin-right: 0.1rem;
}

/* Manipulador de Arrastar */
.cte-drag-handle {
    cursor: grab;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
    padding: 0 0.2rem;
    transition: color 0.15s ease;
}

.cte-drag-handle:hover {
    color: #60a5fa;
}

/* Botão Toggle de Pasta */
.cte-folder-toggle {
    background: transparent;
    border: none;
    color: #60a5fa;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background 0.15s ease;
}

.cte-folder-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cte-folder-toggle .cte-arrow {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.cte-file-icon {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-right: 0.2rem;
}

/* Badges */
.cte-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.cte-badge--parent {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.cte-badge--category {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Título */
.cte-item-title {
    flex: 1;
    font-size: 0.92rem;
    color: #f1f5f9;
    cursor: pointer;
}

.cte-item-title:hover {
    color: #60a5fa;
    text-decoration: underline dotted;
}

/* Pilula de Contagem de Artigos */
.cte-count-pill {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.06);
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Caixa de Edição Inline */
.cte-edit-box {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex: 1;
}

.cte-edit-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.6);
    border: 1.5px solid #3b82f6;
    border-radius: 4px;
    color: white;
    padding: 0.3rem 0.6rem;
    font-size: 0.9rem;
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.cte-btn-save {
    background: #10b981;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.cte-btn-save:hover {
    background: #059669;
}

.cte-btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 0.3rem 0.5rem;
    font-size: 0.8rem;
    cursor: pointer;
}

.cte-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Ações Rápidas do Nó */
.cte-item-actions {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    opacity: 0.85;
    transition: opacity 0.15s ease;
}

.cte-tree-item:hover .cte-item-actions {
    opacity: 1;
}

.cte-icon-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.75);
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.cte-icon-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.cte-icon-btn--add {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.3);
}

.cte-icon-btn--add:hover {
    background: rgba(59, 130, 246, 0.3);
    color: white;
}

.cte-icon-btn--edit {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.3);
}

.cte-icon-btn--edit:hover {
    background: rgba(245, 158, 11, 0.3);
    color: white;
}

.cte-icon-btn--delete {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.3);
}

.cte-icon-btn--delete:hover {
    background: rgba(239, 68, 68, 0.3);
    color: white;
}
.artigos {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.artigos__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.artigos__header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.artigos__header h2 {
  margin: 0;
  font-size: 1.75rem;
}

.artigos__header p {
  margin: 4px 0 0;
  color: rgba(255,255,255,0.72);
}

.artigos__new-btn,
.artigos__import-btn {
  background: #2563eb;
  color: white;
  border: none;
  padding: 0.85rem 1.3rem;
  font-weight: 600;
  border-radius: 9999px;
  cursor: pointer;
}

.artigos__import-btn {
  background: #10b981;
}

.artigos__list {
  display: grid;
  grid-template-columns: repeat( auto-fit, minmax(280px, 1fr) );
  gap: 20px;
}

.artigos__card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Container de imagem padronizado nos cartões - Fundo Azul Escuro Veludo Suave */
.artigos__card-image {
  width: 100%;
  height: 180px;
  background: radial-gradient(circle at 50% 30%, #1e2942 0%, #0f172a 70%, #0a0f1d 100%);
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.4), 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

.artigos__card:hover .artigos__card-image {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.5), 0 6px 20px rgba(37, 99, 235, 0.2);
}

.artigos__card-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.artigos__card:hover .artigos__card-image img {
  transform: scale(1.06);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5));
}

.artigos__card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 30%, #1e2942 0%, #0f172a 100%);
  border: 1px dashed rgba(59, 130, 246, 0.25);
  border-radius: 14px;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Imagem padronizada na vista de tabela */
.artigos__table-image {
  width: 44px;
  height: 44px;
  background: radial-gradient(circle at 50% 30%, #1e2942 0%, #0f172a 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3);
}

.artigos__table-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.artigos__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

.artigos__category {
  padding: 0.25rem 0.75rem;
  background: rgba(37,99,235,0.12);
  color: #93c5fd;
  border-radius: 9999px;
}

.artigos__brand {
  padding: 0.25rem 0.75rem;
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
  border-radius: 9999px;
  font-weight: 500;
}

.artigos__date {
  color: rgba(255,255,255,0.6);
}

.artigos__card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.artigos__card p {
  margin: 0;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
}

.artigos__read-more {
  margin-top: auto;
  border: none;
  background: transparent;
  color: #60a5fa;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.artigos__overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.artigos__overview-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.artigos__overview-card--primary {
  background: rgba(37,99,235,0.12);
  border-color: rgba(37,99,235,0.24);
}

.artigos__overview-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
}

.artigos__overview-card strong {
  font-size: 2rem;
  color: white;
}

.artigos__overview-card p {
  margin: 0;
  color: rgba(255,255,255,0.72);
  font-size: 0.95rem;
}

/* Tabs */
.artigos__tabs {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 2px;
  margin-bottom: 16px;
}

.artigos__tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: rgba(255,255,255,0.6);
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.artigos__tab--active {
  color: #3b82f6;
  border-bottom-color: #3b82f6;
}

.artigos__tab-content {
  padding: 20px;
  background: rgba(255,255,255,0.02);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.05);
}
.artigos__sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.artigos__panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 20px;
}

.artigos__panel h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.artigos__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.artigos__chip {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border-radius: 9999px;
  background: rgba(37,99,235,0.12);
  color: #c7d2fe;
  font-size: 0.9rem;
}

.artigos__chip--outline {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.85);
}

.artigos__chips--multi {
  gap: 8px;
}

.artigos__model-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.artigos__model-list li {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 12px 14px;
  border-radius: 14px;
  color: rgba(255,255,255,0.88);
}

.artigos__error,
.artigos__loading,
.artigos__empty {
  padding: 18px;
  border-radius: 16px;
  background: rgba(220,38,38,0.12);
  color: #fee2e2;
  border: 1px solid rgba(220,38,38,0.25);
  text-align: center;
  grid-column: 1 / -1;
}

.artigos__loading {
  background: rgba(59,130,246,0.12);
  color: #bfdbfe;
  border-color: rgba(59,130,246,0.25);
}

.artigos__empty {
  background: rgba(107,114,128,0.12);
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.14);
}

.artigos__modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}

.artigos__modal {
  background: #0f172a;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  padding: 24px;
  width: min(760px, 100%);
  max-height: min(90vh, 720px);
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
}

.artigos__modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.artigos__modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
}

.artigos__modal-close {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.75);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.artigos__modal-textarea {
  width: 100%;
  min-height: 220px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  resize: vertical;
  font-family: inherit;
  margin-bottom: 16px;
}

.artigos__modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.artigos__modal-btn {
  border: none;
  padding: 0.9rem 1.4rem;
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
}

.artigos__modal-btn--secondary {
  background: rgba(255,255,255,0.08);
  color: #f8fafc;
}

.artigos__modal-btn--primary {
  background: #2563eb;
  color: white;
}

.artigos__modal-btn--danger {
  background: #dc2626;
  color: white;
}

.artigos__modal-btn--danger:hover {
  background: #b91c1c;
}

.artigos__import-status,
.artigos__import-errors {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  color: #f8fafc;
  border: 1px solid rgba(255,255,255,0.10);
}

.artigos__import-errors ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.artigos__import-errors li {
  margin-bottom: 8px;
}

.artigos__modal-stepper {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.artigos__modal-step {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.artigos__modal-step--active {
  background: rgba(37,99,235,0.16);
  border-color: rgba(37,99,235,0.3);
  color: #e2e8f0;
}

.artigos__modal-step span {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(255,255,255,0.08);
  margin-bottom: 8px;
  font-weight: 700;
}

.artigos__modal-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.artigos__modal-file-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #e2e8f0;
}

.artigos__modal-summary {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 16px;
}

.artigos__import-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.artigos__import-table th,
.artigos__import-table td {
  border: 1px solid rgba(255,255,255,0.08);
  padding: 10px 12px;
  text-align: left;
  color: #e2e8f0;
}

.artigos__import-table th {
  background: rgba(255,255,255,0.06);
}

/* Estilos para barra de pesquisa e filtros */
.artigos__filters {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 24px;
}

.artigos__search-container {
  position: relative;
  margin-bottom: 20px;
}

.artigos__search-input {
  width: 100%;
  padding: 14px 20px;
  padding-right: 50px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.artigos__search-input:focus {
  outline: none;
  border-color: #3b82f6;
  background: rgba(255,255,255,0.08);
}

.artigos__search-input::placeholder {
  color: rgba(255,255,255,0.5);
}

.artigos__search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: rgba(255,255,255,0.7);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.2s ease;
}

.artigos__search-clear:hover {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
}

.artigos__filter-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.artigos__filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.artigos__filter-group label {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  font-weight: 500;
}

.artigos__filter-select {
  padding: 12px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.artigos__filter-select:focus {
  outline: none;
  border-color: #3b82f6;
  background: rgba(255,255,255,0.08);
}

.artigos__filter-actions {
  display: flex;
  align-items: flex-end;
}

.artigos__filter-clear {
  padding: 12px 24px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.artigos__filter-clear:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
}

.artigos__filter-info {
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}

.artigos__filter-active {
  color: #60a5fa;
  font-weight: 500;
}

/* Estilos para a visualização em tabela */
.artigos__table-container {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 75vh;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
}

.artigos__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

.artigos__table thead {
  background: rgba(255,255,255,0.06);
}

.artigos__table th {
  padding: 16px;
  text-align: left;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 2px solid rgba(255,255,255,0.12);
  position: sticky;
  top: 0;
  background: #1e293b;
  z-index: 10;
}

.artigos__table td {
  padding: 16px;
  color: rgba(255,255,255,0.8);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.artigos__table tbody tr:hover {
  background: rgba(255,255,255,0.03);
}

.artigos__table-row-clickable {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.artigos__table-row-clickable:hover {
  background: rgba(255,255,255,0.05) !important;
}

.artigos__table tbody tr:last-child td {
  border-bottom: none;
}

/* Estilos para os botões de toggle */
.artigos__view-toggle-container {
  margin: 20px 0;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.artigos__view-toggle {
  padding: 10px 20px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.artigos__view-toggle:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
}

.artigos__view-toggle--active {
  background: #2563eb;
  color: white;
  border-color: #3b82f6;
}

.artigos__view-toggle--active:hover {
  background: #1d4ed8;
  border-color: #2563eb;
}

/* Botão Ver na tabela */
.artigos__table .artigos__read-more {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: #60a5fa;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.artigos__table .artigos__read-more:hover {
  background: rgba(96,165,250,0.1);
  border-color: #60a5fa;
}

/* Estilos para imagens nos cards */
.artigos__card-image {
  width: 100%;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  background: rgba(255,255,255,0.04);
}

.artigos__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.artigos__card-image img:hover {
  transform: scale(1.05);
}

.artigos__card-image-placeholder {
  width: 100%;
  height: 180px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

/* Estilos para imagens na tabela */
.artigos__table-image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}

.artigos__table-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artigos__table-image-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
}

/* Descrição na tabela */
.artigos__table-description {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}

/* Estilos para paginação */
.artigos__pagination {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
  padding: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
}

.artigos__pagination-info {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  text-align: center;
}

.artigos__pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.artigos__pagination-btn {
  padding: 10px 20px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.artigos__pagination-btn:hover:not(:disabled) {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
}

.artigos__pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.artigos__pagination-pages {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.artigos__pagination-page {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.artigos__pagination-page:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

.artigos__pagination-page--active {
  background: #2563eb;
  color: white;
  border-color: #3b82f6;
}

.artigos__pagination-page--active:hover {
  background: #1d4ed8;
  border-color: #2563eb;
}

.artigos__pagination-items-per-page {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
}

.artigos__pagination-select {
  padding: 8px 12px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
}

.artigos__pagination-select:focus {
  outline: none;
  border-color: #3b82f6;
}

/* Estilos para o modal de produto */
.artigos__product-modal {
  width: min(1100px, 95vw);
  max-height: min(94vh, 900px);
}

.artigos__product-details {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  margin-bottom: 20px;
}

.artigos__product-image {
  width: 100%;
  height: 280px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.artigos__product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artigos__product-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.1);
}

.artigos__product-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

.artigos__product-field--full {
  grid-column: 1 / -1;
}

.artigos__product-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.artigos__product-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.artigos__product-field strong {
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
}

.artigos__product-field p {
  margin: 0;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

.artigos__product-field label {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  font-weight: 500;
}

.artigos__product-input,
.artigos__product-textarea {
  padding: 12px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.artigos__product-input:focus,
.artigos__product-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  background: rgba(255,255,255,0.08);
}

.artigos__category-input-group {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
}

.artigos__category-input-group .artigos__product-input {
  flex: 1;
}

.artigos__add-category-btn {
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(37, 99, 235, 0.4);
  color: #60a5fa;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 1.25rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.artigos__add-category-btn:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.artigos__product-textarea {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

@media (max-width: 768px) {
  .artigos__product-details {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .artigos__product-image {
    height: 200px;
  }
}

@media (max-width: 1024px) {
  .artigos__overview,
  .artigos__sections,
  .artigos__list {
    grid-template-columns: 1fr;
  }
  
  .artigos__table-container {
    border-radius: 12px;
    margin: 0 -16px;
    border-left: none;
    border-right: none;
  }
}
/* ==========================================================================
   CategoriasPage.css
   Estilos visuais para a página dedicada de Gestão de Categorias e Modelos
   ========================================================================== */

.categorias-page {
    padding: 1.5rem 2rem;
    animation: fadeIn 0.3s ease-in-out;
}

.categorias-page__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.categorias-page__header h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
}

.categorias-page__header p {
    margin: 0.35rem 0 0 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.categorias-page__actions {
    display: flex;
    gap: 0.75rem;
}

.categorias-page__btn-refresh {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.categorias-page__btn-refresh:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: #3b82f6;
}

.categorias-page__error {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.categorias-page__loading {
    background: rgba(59, 130, 246, 0.1);
    color: #93c5fd;
    padding: 2.5rem;
    text-align: center;
    border-radius: 12px;
    font-style: italic;
}

.categorias-page__content {
    margin-top: 1rem;
}
/* ===== Relatorios Page Simplified ===== */
.relatorios-page {
  padding: 20px;
  background-color: #0f1017;
  color: #f1f5f9;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
}

.relatorios-header-container {
  margin-bottom: 25px;
}

.relatorios-header-container h1 {
  font-size: 2rem;
  margin: 0;
  color: #ffffff;
}

.relatorios-subtitle {
  color: #94a3b8;
  margin-top: 5px;
  font-size: 0.95rem;
}

/* Menu de Navegação Simplificado */
.relatorios-navigation {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  background-color: #1e293b;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #334155;
  flex-wrap: wrap;
}

.nav-btn {
  background-color: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-btn:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
}

.nav-btn.active {
  background-color: #3b82f6;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.relatorios-content-area {
  background-color: #16171d;
  animation: fadeIn 0.3s ease-in;
  border-radius: 8px;
  border: 1px solid #2e303a;
  min-height: 400px;
  padding: 20px;
}

/* ===== Responsive Overrides for ServicoDetalhe ===== */
.servico-detalhe-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 16px;
    align-items: start;
}
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.info-base-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.cliente-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 10px; }
.cliente-grid-secondary { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-top: 10px; }
.log-form-grid { display: grid; grid-template-columns: 1fr 120px 150px; gap: 10px; }
.log-item-add { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.log-item-add input { flex: 1 1 100px; }

@media (max-width: 900px) {
  .servico-detalhe-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .info-base-grid { grid-template-columns: 1fr; gap: 10px; }
  .cliente-grid { grid-template-columns: 1fr; }
  .cliente-grid-secondary { grid-template-columns: 1fr; }
  .log-form-grid { grid-template-columns: 1fr; }
  .log-item-add button { width: 100%; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Tabela Global de Relatórios (usada nos subcomponentes) ===== */
.table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid #334155;
  background-color: #1e293b;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th, 
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #334155;
  color: #f1f5f9;
  font-size: 0.9rem;
}

.data-table th {
  background-color: #0f172a;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

.data-table tr:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

.data-table tr:last-child td {
  border-bottom: none;
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-completed { background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); }
.status-pending { background: rgba(234, 179, 8, 0.15); color: #facc15; border: 1px solid rgba(234, 179, 8, 0.3); }
.status-draft { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.3); }

/* Headers Internos das abas */
.intervencao-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.intervencao-header h2 {
  font-size: 1.3rem;
  margin: 0;
  color: #e2e8f0;
}

/* Modais de PDF (Usado no ServicoPDF e IntervencaoPDF) */
.pdf-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 9999;
  padding: 20px;
  overflow-y: auto;
  backdrop-filter: blur(4px);
}

.pdf-modal-content {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  max-width: 100%;
}

.pdf-modal-actions {
  background: #1e293b;
  padding: 15px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid #334155;
}

.pdf-preview-container {
  padding: 30px;
  background: #475569;
  border-radius: 0 0 8px 8px;
  display: flex;
  justify-content: center;
  overflow-x: auto;
}

/* ===== Filtros Avançados ===== */
.relatorios-filters-bar {
  display: flex;
  gap: 15px;
  background-color: #1e293b;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #334155;
  margin-bottom: 25px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 150px;
}

.filter-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-input, .filter-select {
  background-color: #0f172a;
  border: 1px solid #334155;
  color: #f1f5f9;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  height: 38px;
}

.filter-input:focus, .filter-select:focus {
  border-color: #3b82f6;
}

.btn-clear-filters {
  background-color: #334155;
  border: 1px solid #475569;
  color: #f1f5f9;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-clear-filters:hover {
  background-color: #475569;
  border-color: #64748b;
}

/* ===== Audit Log styles ===== */
.action-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}
.action-login { background-color: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.action-insert { background-color: rgba(34, 197, 94, 0.2); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); }
.action-update { background-color: rgba(234, 179, 8, 0.2); color: #facc15; border: 1px solid rgba(234, 179, 8, 0.3); }
.action-delete { background-color: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }

.log-details-cell {
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.log-details-cell:hover {
  white-space: normal;
  word-break: break-all;
}

.json-value {
  font-family: monospace;
  font-size: 0.8rem;
  background-color: #0f172a;
  padding: 2px 4px;
  border-radius: 4px;
  color: #38bdf8;
}

/* Searchable dropdown hover effect */
.dropdown-item-hover:hover {
  background-color: #2563eb !important;
  color: #ffffff !important;
}
.create-budget {
    padding: 2rem;
    animation: fadeIn 0.3s ease-in-out;
}

.create-budget__container {
    max-width: 1000px;
    margin: 0 auto;
}

.create-budget__form-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    height: fit-content;
}

.create-budget__form-card--sticky {
    position: sticky;
    top: 1.5rem;
}

.create-budget__layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 1200px) {
    .create-budget__layout {
        display: grid;
        grid-template-columns: 1fr 400px;
        align-items: start;
    }
}

.create-budget__section {
    margin-bottom: 1.5rem;
}

.create-budget__section-title {
    font-size: 1rem;
    color: #3b82f6;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.create-budget__row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.create-budget__group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.create-budget__group.full-width {
    grid-column: 1 / -1;
}

.create-budget__group label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.create-budget__input,
.create-budget__textarea {
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white;
    font-size: 1rem;
    transition: all 0.2s;
}

.create-budget__input:focus,
.create-budget__textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.create-budget__input--total {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    font-weight: 600;
}

.create-budget__error-message {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.create-budget__footer {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.create-budget__footer .create-budget__btn {
    width: 100%;
}

.create-budget__btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.create-budget__btn--primary {
    background: #3b82f6;
    color: white;
}

.create-budget__btn--primary:hover:not(:disabled) {
    background: #2563eb;
}

.create-budget__btn--primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.create-budget__btn--ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.create-budget__btn--ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

/* Estilos para a tabela de itens */
.create-budget__items-table {
    margin-top: 1.5rem;
    overflow-x: auto;
}

.create-budget__items-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
}

.create-budget__items-table th {
    text-align: left;
    padding: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
}

.create-budget__items-table td {
    padding: 0.75rem;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.create-budget__items-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.create-budget__items-table tfoot {
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.create-budget__items-table tfoot td {
    padding: 0.75rem;
    font-weight: 600;
}

.create-budget__items-table .item-total {
    color: #60a5fa;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Estilos para a barra de pesquisa de artigos */
.create-budget__search-container {
    position: relative;
    display: flex;
    gap: 0.5rem;
}

.create-budget__search-btn {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 6px;
    color: #60a5fa;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
}

.create-budget__search-btn:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: #3b82f6;
}

.create-budget__search-wrapper {
    margin-top: 0.5rem;
    position: relative;
}

.create-budget__search-input-container {
    position: relative;
}

.create-budget__search-input {
    width: 100%;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.create-budget__search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.create-budget__search-loading {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.create-budget__search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(30, 30, 40, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    margin-top: 0.25rem;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.create-budget__search-result-item {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.2s;
}

.create-budget__search-result-item:hover {
    background: rgba(59, 130, 246, 0.1);
}

.create-budget__search-result-item:last-child {
    border-bottom: none;
}

.create-budget__search-result-name {
    font-weight: 500;
    color: white;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.create-budget__search-result-details {
    display: flex;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
}

.create-budget__search-result-brand,
.create-budget__search-result-category {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
}

.create-budget__search-result-price {
    color: #60a5fa;
    font-weight: 600;
    margin-left: auto;
}

.create-budget__search-result-description {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
    margin-top: 0.25rem;
}

.create-budget__search-result-content {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.create-budget__search-result-image {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.create-budget__search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.create-budget__search-result-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.5);
}

.create-budget__search-result-info {
    flex: 1;
    min-width: 0;
}

.create-budget__search-no-results {
    padding: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    margin-top: 0.25rem;
}

/* Estilos para imagens na tabela de itens */
.create-budget__item-image {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.create-budget__item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.create-budget__item-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.5);
}

.create-budget__items-table th:first-child,
.create-budget__items-table td:first-child {
    width: 60px;
    text-align: center;
}

/* Estilos para a nova interface integrada */
.create-budget__integrated-search {
    margin-bottom: 2rem;
}

.create-budget__search-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.create-budget__search-input-wrapper {
    flex: 1;
    position: relative;
}

.create-budget__integrated-search-input {
    width: 100%;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white;
    font-size: 1rem;
    transition: all 0.2s;
}

.create-budget__integrated-search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.create-budget__integrated-search-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 6px;
    color: #60a5fa;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.create-budget__integrated-search-btn:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: #3b82f6;
}

.create-budget__products-table,
.create-budget__budget-items-table {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.create-budget__table-header {
    display: grid;
    grid-template-columns: 80px 2fr 1fr 100px 120px;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.create-budget__budget-items-table .create-budget__table-header {
    grid-template-columns: 80px 2fr 80px 80px 100px 100px 60px;
}

.create-budget__table-col {
    padding: 0 0.5rem;
}

.create-budget__table-col--image {
    text-align: center;
}

.create-budget__table-col--name {
    flex: 1;
}

.create-budget__table-col--brand,
.create-budget__table-col--price,
.create-budget__table-col--quantity,
.create-budget__table-col--discount,
.create-budget__table-col--total {
    text-align: center;
}

.create-budget__table-col--actions {
    text-align: right;
}

.create-budget__table-body {
    max-height: 400px;
    overflow-y: auto;
}

.create-budget__table-row {
    display: grid;
    grid-template-columns: 80px 2fr 1fr 100px 120px;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    align-items: center;
    transition: background 0.2s;
}

.create-budget__budget-items-table .create-budget__table-row {
    grid-template-columns: 80px 2fr 80px 80px 100px 100px 60px;
}

.create-budget__table-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.create-budget__table-row:last-child {
    border-bottom: none;
}

.create-budget__product-image {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.create-budget__product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.create-budget__product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
}

.create-budget__product-name {
    font-weight: 500;
    color: white;
    margin-bottom: 0.25rem;
}

.create-budget__item-short-desc-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    width: 100%;
    padding: 0.25rem 0.5rem;
    outline: none;
    transition: all 0.2s;
}

.create-budget__item-short-desc-input:focus {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    color: white;
}

.create-budget__product-description {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.create-budget__product-category {
    font-size: 0.8rem;
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
}

.create-budget__product-type {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.25rem;
}

.create-budget__product-price {
    font-weight: 600;
    color: #60a5fa;
    font-size: 1rem;
}

.create-budget__add-product-btn {
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 4px;
    color: #60a5fa;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.create-budget__add-product-btn:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: #3b82f6;
}

.create-budget__quantity-input,
.create-budget__price-input {
    width: 100%;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: white;
    text-align: center;
}

.create-budget__quantity-input:focus,
.create-budget__price-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.create-budget__item-total {
    font-weight: 600;
    color: #60a5fa;
    font-size: 1rem;
}

.create-budget__remove-item-btn {
    width: 32px;
    height: 32px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 4px;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

.create-budget__remove-item-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
}

.create-budget__budget-items {
    margin-top: 2rem;
}

.create-budget__budget-items-title {
    font-size: 1rem;
    color: #3b82f6;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.create-budget__table-footer {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: right;
}

.create-budget__footer-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
}

.create-budget__footer-total span {
    color: rgba(255, 255, 255, 0.7);
}

.create-budget__footer-total strong {
    color: #60a5fa;
    font-size: 1.2rem;
}

.create-budget__no-results,
.create-budget__search-hint {
    padding: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    grid-column: 1 / -1;
}

.create-budget__no-results {
    color: #ef4444;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Abas, Grelha de Artigos e Imagens Clicáveis em CreateBudget
   ========================================================================== */

.create-budget__section-header-tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.75rem;
}

.create-budget__tabs {
    display: flex;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.25rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.create-budget__tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.create-budget__tab-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.create-budget__tab-btn.active {
    background: #3b82f6;
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.create-budget__tab-icon {
    font-size: 1rem;
}

/* Toast notification */
.create-budget__toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.92rem;
    font-weight: 500;
    animation: fadeIn 0.25s ease-out;
}

.create-budget__toast-icon {
    font-size: 1.1rem;
}

/* Alternador de Vista (Grelha / Tabela) */
.create-budget__view-toggle {
    display: flex;
    gap: 0.25rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.2rem;
}

.create-budget__view-toggle-btn {
    padding: 0.35rem 0.75rem;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.create-budget__view-toggle-btn:hover {
    color: white;
}

.create-budget__view-toggle-btn.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-weight: 600;
}

/* Grelha de Artigos */
.create-budget__artigos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
}

.create-budget__artigo-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.create-budget__artigo-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Imagem Clicável no Cartão de Artigo */
.create-budget__artigo-card-image-box {
    position: relative;
    width: 100%;
    height: 150px;
    background: rgba(15, 23, 42, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    user-select: none;
}

.create-budget__artigo-card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.create-budget__artigo-card:hover .create-budget__artigo-card-image-box img {
    transform: scale(1.08);
}

.create-budget__artigo-card-placeholder {
    font-size: 2.5rem;
    opacity: 0.4;
}

.create-budget__artigo-card-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    color: #60a5fa;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.create-budget__artigo-card-image-box:hover .create-budget__artigo-card-hover-overlay,
.create-budget__artigo-card-image-box:focus .create-budget__artigo-card-hover-overlay {
    opacity: 1;
}

.create-budget__overlay-icon {
    font-size: 1.8rem;
    line-height: 1;
    color: #3b82f6;
}

/* Informações do Cartão de Artigo */
.create-budget__artigo-card-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
    gap: 0.75rem;
}

.create-budget__artigo-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.create-budget__artigo-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.create-budget__badge-brand,
.create-budget__badge-cat {
    font-size: 0.72rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.create-budget__badge-brand {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.create-budget__badge-cat {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
}

.create-budget__artigo-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.create-budget__artigo-card-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #34d399;
}

/* Imagem Clicável na Vista de Tabela */
.create-budget__product-image--clickable {
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease;
    outline: none;
}

.create-budget__product-image--clickable:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    border-color: #3b82f6;
}

.create-budget__product-image-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.create-budget__artigos-loading {
    padding: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

/* ===== Logs Page ===== */
.logs-page {
  padding: 20px;
  background-color: #0f1017;
  color: #f1f5f9;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
}

.logs-header-container {
  margin-bottom: 25px;
}

.logs-header-container h1 {
  font-size: 2rem;
  margin: 0;
  color: #ffffff;
}

.logs-subtitle {
  color: #94a3b8;
  margin-top: 5px;
  font-size: 0.95rem;
}

/* ===== Filtros Avançados ===== */
.logs-filters-bar {
  display: flex;
  gap: 15px;
  background-color: #1e293b;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #334155;
  margin-bottom: 25px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 150px;
}

.filter-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-input, .filter-select {
  background-color: #0f172a;
  border: 1px solid #334155;
  color: #f1f5f9;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  height: 38px;
}

.filter-input:focus, .filter-select:focus {
  border-color: #3b82f6;
}

.btn-clear-filters {
  background-color: #334155;
  border: 1px solid #475569;
  color: #f1f5f9;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-clear-filters:hover {
  background-color: #475569;
  border-color: #64748b;
}

/* ===== Tabela Global de Relatórios (usada nos subcomponentes) ===== */
.table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid #334155;
  background-color: #1e293b;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th, 
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #334155;
  color: #f1f5f9;
  font-size: 0.9rem;
}

.data-table th {
  background-color: #0f172a;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

.data-table tr:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

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

/* Action Badges */
.action-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.action-login { background-color: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.action-insert { background-color: rgba(34, 197, 94, 0.2); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); }
.action-update { background-color: rgba(234, 179, 8, 0.2); color: #facc15; border: 1px solid rgba(234, 179, 8, 0.3); }
.action-delete { background-color: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }

.log-details-cell {
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.log-details-cell:hover {
  white-space: normal;
  word-break: break-all;
}
.orcamentos {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.orcamentos__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.orcamentos__header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
}

.orcamentos__header p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
}

.orcamentos__new-btn {
  display: flex;
  align-items: center;
  padding: 10px 18px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.orcamentos__new-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.orcamentos__stats {
  display: flex;
  gap: 16px;
}

.orcamentos__stat-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
}

.orcamentos__stat-card span { font-size: 12px; color: rgba(255,255,255,0.4); }
.orcamentos__stat-card strong { font-size: 20px; color: white; margin-top: 4px; }
.orcamentos__stat-card--accepted strong { color: #10b981; }

.orcamentos__filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.orcamentos__search {
  flex: 1;
}

.orcamentos__search input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: white;
}

.orcamentos__status-tabs {
  display: flex;
  background: rgba(255,255,255,0.02);
  padding: 4px;
  border-radius: 8px;
  gap: 4px;
}

.status-tab {
  padding: 8px 16px;
  background: none;
  border: none;
  border-radius: 6px;
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  cursor: pointer;
}

.status-tab.active {
  background: rgba(255,255,255,0.08);
  color: white;
}

.orcamentos__table-wrapper {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
}

.orcamentos__table {
  width: 100%;
  border-collapse: collapse;
}

.orcamentos__table th {
  padding: 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.orcamentos__row {
  transition: all 0.2s;
  cursor: pointer;
}

.orcamentos__row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.orcamentos__table td {
  padding: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.orcamentos__col-id { font-family: monospace; color: rgba(255,255,255,0.3); }
.orcamentos__col-total { font-weight: 700; color: #10b981; }

.orcamentos__error-alert {
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  color: #f87171;
  font-size: 14px;
}

.status-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

/* Status Colors */
.status-accepted { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.status-draft { background: rgba(255, 255, 255, 0.05); color: rgba(255,255,255,0.4); }
.status-sent { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.status-rejected { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

.orcamentos__empty, .orcamentos__loading {
  padding: 80px;
  text-align: center;
  color: rgba(255,255,255,0.3);
}

.orcamentos__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.orcamentos__btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s;
  padding: 0;
}

.orcamentos__btn-icon:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.1);
}

.orcamentos__btn-icon--print:hover { 
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.4);
}

.orcamentos__btn-icon--pdf:hover { 
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.4);
}

.orcamentos__btn-icon--clear:hover { 
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.4);
}

.orcamentos__btn-icon--email:hover { 
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.4);
}

.orcamentos__btn-icon--message:hover { 
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.4);
}

.orcamentos__btn-icon--duplicate:hover { 
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.4);
}

/* Message Modal Styles */
.message-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.message-modal {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.message-modal__header {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.message-modal__header h3 {
  margin: 0;
  font-size: 18px;
  color: white;
}

.message-modal__close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

.message-modal__close:hover {
  color: white;
}

.message-modal__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.message-modal__channels {
  display: flex;
  gap: 16px;
}

.channel-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  color: rgba(255, 255, 255, 0.6);
}

.channel-option input {
  display: none;
}

.channel-option.active {
  background: rgba(16, 185, 129, 0.1);
  border-color: #10b981;
  color: white;
}

.channel-option.active:has(input[value="sms"]) {
  background: rgba(59, 130, 246, 0.1);
  border-color: #3b82f6;
}

.message-modal__body input[type="text"],
.message-modal__body textarea {
  width: 100%;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: white;
  font-size: 14px;
}

.message-modal__body textarea {
  resize: vertical;
}

.message-modal__footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.message-modal__footer .btn-cancel {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
}

.message-modal__footer .btn-cancel:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

.message-modal__footer .btn-submit {
  background: #10b981;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
}

.message-modal__footer .btn-submit:hover {
  background: #059669;
}

@media (max-width: 768px) {
  .orcamentos__table-wrapper {
    overflow-x: auto;
  }
}
/* EditableItemsTable.css */

.eit-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.eit-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.eit-section-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary, #e2e8f0);
  letter-spacing: 0.03em;
}

.eit-btn-add {
  padding: 5px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  transition: opacity 0.2s, transform 0.1s;
}
.eit-btn-add:hover { opacity: 0.88; transform: translateY(-1px); }

/* ---- Table ---- */

.eit-table-scroll {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.07);
}

.eit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.eit-th {
  padding: 8px 10px;
  text-align: left;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  white-space: nowrap;
}
.eit-th--num { text-align: right; }
.eit-th--img { width: 52px; }
.eit-th--sku { width: 110px; }
.eit-th--action { width: 36px; }

.eit-tr {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.15s;
}
.eit-tr:hover { background: rgba(255,255,255,0.025); }
.eit-tr:last-child { border-bottom: none; }

.eit-td {
  padding: 6px 8px;
  vertical-align: middle;
}
.eit-td--name { min-width: 180px; }
.eit-td--img { padding: 6px; }
.eit-td--total {
  text-align: right;
  font-weight: 600;
  color: #10b981;
  white-space: nowrap;
  padding-right: 12px;
}

/* ---- Inputs ---- */

.eit-input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 5px;
  padding: 4px 7px;
  color: var(--text-primary, #e2e8f0);
  font-size: 0.82rem;
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
}
.eit-input:focus {
  outline: none;
  border-color: #10b981;
  background: rgba(16,185,129,0.08);
}
.eit-input--desc {
  margin-top: 3px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.03);
}
.eit-input--center { text-align: center; max-width: 70px; }
.eit-input--right { text-align: right; max-width: 90px; }

/* ---- Images ---- */

.eit-img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  display: block;
}
.eit-img-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* ---- Remove button ---- */

.eit-btn-remove {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: rgba(239,68,68,0.7);
  padding: 4px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.eit-btn-remove:hover {
  color: #ef4444;
  background: rgba(239,68,68,0.1);
}

/* ---- Empty state ---- */

.eit-empty {
  text-align: center;
  padding: 20px;
  color: rgba(255,255,255,0.35);
  font-style: italic;
}

/* ---- Footer ---- */

.eit-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  background: rgba(16,185,129,0.06);
  border: 1px solid rgba(16,185,129,0.18);
  border-top: none;
  border-radius: 0 0 10px 10px;
}

.eit-footer-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

.eit-footer-value {
  font-size: 1rem;
  font-weight: 700;
  color: #10b981;
}

.eit-mode-toggle {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: #10b981;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  margin-left: 4px;
  transition: all 0.2s ease;
}
.eit-mode-toggle:hover {
  background: rgba(16,185,129,0.25);
  border-color: #10b981;
}
.contabilidade {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contabilidade__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.contabilidade__header h2 {
  margin: 0;
  font-size: 1.75rem;
}

.contabilidade__header p {
  margin: 4px 0 0;
  color: var(--text);
}

.contabilidade__tabs-container {
  overflow-x: auto;
  padding-bottom: 4px;
}

.contabilidade__tabs {
  display: flex;
  gap: 6px;
  background: var(--bg-secondary);
  padding: 6px;
  border-radius: 12px;
  width: max-content;
}

.contabilidade__tab {
  padding: 10px 18px;
  background: transparent;
  border: none;
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.contabilidade__tab:hover {
  color: var(--text-h);
  background: var(--border);
}

.contabilidade__tab.active {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.contabilidade__content {
  animation: fadeIn 0.3s ease;
}

.content-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  min-height: 400px;
}

.tab-placeholder {
  padding: 40px;
  text-align: center;
  color: var(--text);
  border: 2px dashed var(--border);
  border-radius: 12px;
  margin-top: 20px;
}

/* Visão Global e Estrutura Comum */
.visao-global,
.compras,
.despesas,
.coimas,
.relatorios,
.salarios,
.fornecedores {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fadeIn 0.3s ease;
}

.visao-global__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.stats-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stats-card--highlight {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.2);
}

.stats-card__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text);
}

.stats-card__value {
  font-size: 1.4rem;
  font-weight: 700;
}

.text-success {
  color: #10b981;
}

.text-danger {
  color: #ef4444;
}

.text-warning {
  color: #f59e0b;
}

.text-dim {
  color: var(--text);
}

.text-center {
  text-align: center;
}

.visao-global__main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.chart-container {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border);
}

.account-item {
  background: rgba(255, 255, 255, 0.02);
  padding: 12px 16px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  border-left: 3px solid #2563eb;
}

.account-info {
  display: flex;
  flex-direction: column;
}

.account-info small {
  color: var(--text);
}

/* Listas e Tabelas */
.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.fornecedores__table-wrapper {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

.fornecedores__table {
  width: 100%;
  border-collapse: collapse;
}

.fornecedores__table th {
  padding: 14px;
  text-align: left;
  font-size: 0.75rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
}

.fornecedores__table td {
  padding: 14px;
  border-bottom: 1px solid var(--bg-secondary);
  font-size: 0.9rem;
}

.clickable-row {
  cursor: pointer;
  transition: background 0.2s;
}

.clickable-row:hover {
  background: var(--bg-secondary);
}

@media (max-width: 1024px) {
  .visao-global__main-grid {
    grid-template-columns: 1fr;
  }
}

.fornecedores-chart {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}


/* Calculadora de IVA */
.iva-calc {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.iva-calc__filters {
  display: flex;
  gap: 16px;
  background: rgba(255, 255, 255, 0.02);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.iva-calc__filters .budget-form-group {
  margin: 0;
}

.iva-calc__filters select {
  background: #1e293b;
  border: 1px solid var(--border);
  color: var(--text-h);
  padding: 8px 12px;
  border-radius: 8px;
  min-width: 120px;
}

.iva-value-box {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  padding: 14px;
  border-radius: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 4px;
}

.bg-success-soft {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: rgba(16, 185, 129, 0.25) !important;
}

.bg-danger-soft {
  background: rgba(239, 68, 68, 0.1) !important;
  border-color: rgba(239, 68, 68, 0.25) !important;
}

.iva-calc__period-info {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
  color: var(--text);
}

/* ── PDF Viewer Overlay ─────────────────────────────────────── */
.pdf-viewer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.pdf-viewer-modal {
  width: min(92vw, 1100px);
  height: min(90vh, 820px);
  background: #0f172a;
  border: 1px solid var(--border);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.pdf-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: var(--bg-secondary);
  flex-shrink: 0;
  gap: 12px;
}

.pdf-viewer-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-h);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdf-viewer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pdf-viewer-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.18s ease;
}

.pdf-viewer-btn--open {
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(37, 99, 235, 0.25);
}
.pdf-viewer-btn--open:hover {
  background: rgba(37, 99, 235, 0.3);
  color: #93c5fd;
}

.pdf-viewer-btn--download {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.pdf-viewer-btn--download:hover {
  background: rgba(16, 185, 129, 0.25);
}

.pdf-viewer-btn--close {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 1rem;
}
.pdf-viewer-btn--close:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}

.pdf-viewer-body {
  flex: 1;
  overflow: hidden;
  background: #1a1a2e;
}

.pdf-viewer-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}.rfm-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rfm-header-icon {
  font-size: 32px;
  background: #334155;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.rfm-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #f8fafc;
}

.rfm-subtitle {
  margin: 4px 0 0;
  font-size: 14px;
  color: #94a3b8;
}

.rfm-modal-footer {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
}

.rfm-choose {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  justify-content: center;
  height: 300px;
}

.rfm-upload-card {
  background: #0f172a;
  border: 2px dashed #334155;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  max-width: 400px;
}

.rfm-upload-card:hover {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.05);
}

.rfm-upload-emoji {
  font-size: 48px;
  margin-bottom: 16px;
}

.rfm-upload-card h3 {
  margin: 0 0 8px;
  color: #e2e8f0;
}

.rfm-upload-card p {
  margin: 0;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.5;
}

.hidden {
  display: none;
}

.rfm-processing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  text-align: center;
}

.rfm-preview-thumb {
  max-width: 200px;
  border-radius: 8px;
  margin-bottom: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid #334155;
}

.rfm-progress-wrap {
  width: 100%;
  max-width: 400px;
  height: 8px;
  background: #334155;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
}

.rfm-progress-bar {
  height: 100%;
  background: #3b82f6;
  transition: width 0.3s ease;
}

.rfm-status-txt {
  color: #e2e8f0;
  font-weight: 500;
  margin: 0;
}

.rfm-error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 14px;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.rfm-success {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(16, 185, 129, 0.4);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: rfmSlideIn 0.3s ease-out;
}

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

/* Popup Modal Notification Overlay */
.rfm-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rfmFadeIn 0.25s ease-out;
}

.rfm-popup-card {
  width: 90%;
  max-width: 440px;
  background: #1e293b;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  text-align: center;
  animation: rfmPopUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.rfm-popup-card--success {
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.rfm-popup-card--error {
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.rfm-popup-icon-wrapper {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.rfm-popup-card--success .rfm-popup-icon-wrapper {
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.rfm-popup-card--error .rfm-popup-icon-wrapper {
  background: rgba(239, 68, 68, 0.15);
  border: 2px solid rgba(239, 68, 68, 0.4);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.rfm-popup-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #f8fafc;
}

.rfm-popup-card--success .rfm-popup-title {
  color: #10b981;
}

.rfm-popup-card--error .rfm-popup-title {
  color: #ef4444;
}

.rfm-popup-msg {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 20px;
}

.rfm-popup-btn {
  width: 100%;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.rfm-popup-card--success .rfm-popup-btn {
  background: #10b981;
  color: #ffffff;
}

.rfm-popup-card--success .rfm-popup-btn:hover {
  background: #059669;
}

.rfm-popup-card--error .rfm-popup-btn {
  background: #ef4444;
  color: #ffffff;
}

.rfm-popup-card--error .rfm-popup-btn:hover {
  background: #dc2626;
}

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

@keyframes rfmPopUp {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

.rfm-section {
  background: #0f172a;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid #334155;
}

.rfm-section-title {
  font-size: 16px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #334155;
}

.rfm-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.rfm-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rfm-label {
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
}

.rfm-input {
  background: #1e293b;
  border: 1px solid #334155;
  color: #f8fafc;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
}

.rfm-input:focus {
  outline: none;
  border-color: #3b82f6;
}

.rfm-table-wrap {
  overflow-x: auto;
  border: 1px solid #334155;
  border-radius: 6px;
  margin-bottom: 16px;
}

.rfm-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.rfm-table th {
  background: #1e293b;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  border-bottom: 1px solid #334155;
}

.rfm-table td {
  padding: 8px;
  border-bottom: 1px solid #334155;
  background: #0f172a;
}

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

.rfm-th-num {
  text-align: center;
}

.rfm-td-input {
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  color: #e2e8f0;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 13px;
  transition: all 0.2s;
}

.rfm-td-input:hover, .rfm-td-input:focus {
  background: #1e293b;
  border-color: #334155;
  outline: none;
}

.rfm-td-input--center {
  text-align: center;
}

.rfm-td-input--right {
  text-align: right;
}

.rfm-td-total {
  font-weight: 600;
  color: #3b82f6;
  text-align: right;
  padding-right: 16px !important;
}

.rfm-remove-btn {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.rfm-remove-btn:hover {
  background: #ef4444;
  color: #fff;
}

.rfm-totals {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px dashed #334155;
}

.rfm-total-row {
  display: flex;
  justify-content: space-between;
  width: 300px;
  font-size: 14px;
  color: #94a3b8;
}

.rfm-total-row--grand {
  font-size: 18px;
  font-weight: 600;
  color: #10b981;
  padding-top: 8px;
  border-top: 1px solid #334155;
}

.rfm-footer {
  padding: 20px 24px;
  border-top: 1px solid #334155;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: #1e293b;
}

.rfm-btn-cancel {
  background: transparent;
  border: 1px solid #334155;
  color: #e2e8f0;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
}

.rfm-btn-cancel:hover {
  background: #334155;
}

.rfm-btn-save {
  background: #3b82f6;
  border: none;
  color: #fff;
  padding: 10px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

.rfm-btn-save:hover {
  background: #2563eb;
}

.rfm-btn-save:disabled {
  background: #475569;
  cursor: not-allowed;
  opacity: 0.7;
}

/* OCR Text Details Box */
.rfm-ocr-details {
  margin-top: 24px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  overflow: hidden;
}

.rfm-ocr-summary {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  background: #1e293b;
  user-select: none;
  outline: none;
  transition: background 0.2s;
}

.rfm-ocr-summary:hover {
  background: #334155;
  color: #f8fafc;
}

.rfm-ocr-textarea {
  width: 100%;
  height: 200px;
  background: #020617;
  color: #10b981;
  font-family: monospace;
  font-size: 12px;
  padding: 12px;
  border: none;
  border-top: 1px solid #334155;
  resize: vertical;
  outline: none;
}

/* Larguras de colunas da tabela */
.rfm-th-ref { width: 15%; }
.rfm-th-hs { width: 10%; }
.rfm-th-desc { width: 45%; }
.rfm-th-qty { width: 6%; }
.rfm-th-price { width: 10%; }
.rfm-th-disc { width: 6%; }
.rfm-th-total { width: 8%; }

/* Estilo para descrição longa sobreposta */
.rfm-td-desc-cell {
  position: relative;
}

.rfm-td-input-desc {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.rfm-td-input-desc:hover,
.rfm-td-input-desc:focus {
  position: absolute;
  left: 8px;
  top: 8px;
  width: calc(100% - 16px);
  min-width: 450px;
  background: #1e293b !important;
  border-color: #3b82f6 !important;
  z-index: 99;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.5);
}

/* Verification Box and Synchronization Button */
.rfm-verification-box {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed #334155;
  width: 100%;
}

.rfm-verification {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.rfm-verification--success {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.rfm-verification--warning {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.rfm-verification-icon {
  font-size: 18px;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 1px;
}

.rfm-verification-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.rfm-btn-sync-total {
  background: #f59e0b;
  color: #0f172a;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.rfm-btn-sync-total:hover {
  background: #d97706;
  transform: translateY(-1px);
}

.rfm-btn-sync-total:active {
  transform: translateY(0);
}
/* ── Split-Screen Layout (Step: form) ─────────────────── */
.rfm-splitscreen {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  min-height: 400px;
}

.rfm-splitscreen-preview {
  flex: 0 0 340px;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 14px;
  max-height: calc(90vh - 160px);
  overflow-y: auto;
}

.rfm-preview-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rfm-preview-doc {
  width: 100%;
  border-radius: 6px;
  border: 1px solid #334155;
  object-fit: contain;
  max-height: 480px;
  background: #020617;
}

.rfm-splitscreen-form {
  flex: 1;
  min-width: 0;
}

/* When no preview (manual entry), form takes full width */
.rfm-splitscreen:not(:has(.rfm-splitscreen-preview)) .rfm-splitscreen-form {
  flex: 1;
}

@media (max-width: 900px) {
  .rfm-splitscreen {
    flex-direction: column;
  }
  .rfm-splitscreen-preview {
    flex: none;
    width: 100%;
    position: static;
  }
  .rfm-preview-doc {
    max-height: 260px;
  }
}

.rfm-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.nf-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2100; /* Above RegistarFaturaModal if needed */
  animation: fadeIn 0.3s ease;
}

.nf-modal-container {
  background: #1e293b;
  width: 90%;
  max-width: 600px;
  max-height: 95vh;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nf-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nf-modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
  color: #fff;
}

.nf-close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  cursor: pointer;
}

.nf-modal-body {
  padding: 24px;
  overflow-y: auto;
}

/* Logo Section */
.nf-logo-section {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.nf-logo-preview {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s;
}

.nf-logo-preview:hover {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.05);
}

.nf-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nf-logo-placeholder {
  text-align: center;
  color: #94a3b8;
}

.nf-logo-placeholder span {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
}

.nf-logo-placeholder p {
  font-size: 0.75rem;
  margin-top: 4px;
}

/* Form Grid */
.nf-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.nf-col-span-2 {
  grid-column: span 2;
}

.nf-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nf-form-group label {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 500;
}

.nf-form-group input {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 12px;
  color: #fff;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

.nf-form-group input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

/* Footer */
.nf-modal-footer {
  margin-top: 32px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.nf-cancel-btn {
  padding: 10px 20px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
}

.nf-save-btn {
  padding: 10px 24px;
  background: #3b82f6;
  border: none;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nf-save-btn:hover {
  background: #2563eb;
}

.nf-save-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.nf-error-msg {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid #ef4444;
  color: #ef4444;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.85rem;
}

.hidden { display: none; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
/* ============================================
   Login Page Styles
   ============================================ */

.login-page {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #08090d;
  position: relative;
  overflow: hidden;
  font-family: var(--sans);
}

/* --- Animated Background Blobs --- */
.login-background {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.login-blob {
  position: absolute;
  filter: blur(80px);
  border-radius: 50%;
  opacity: 0.15;
  animation: blobFloat 20s infinite alternate cubic-bezier(0.45, 0, 0.55, 1);
}

.login-blob--1 {
  width: 500px;
  height: 500px;
  background: #a855f7;
  top: -10%;
  left: -10%;
}

.login-blob--2 {
  width: 400px;
  height: 400px;
  background: #3b82f6;
  bottom: -5%;
  right: -5%;
  animation-delay: -5s;
}

.login-blob--3 {
  width: 300px;
  height: 300px;
  background: #ec4899;
  top: 40%;
  right: 20%;
  animation-delay: -10s;
}

@keyframes blobFloat {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}

/* --- Container --- */
.login-container {
  width: 100%;
  max-width: 440px;
  padding: 20px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* --- Card --- */
.login-card {
  background: rgba(22, 23, 29, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: cardAppear 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 20px;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

.login-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
}

.login-header p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

/* --- Form --- */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.login-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f87171;
  font-size: 13px;
  animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

.login-error svg { width: 16px; height: 16px; flex-shrink: 0; }

.login-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.login-field label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  width: 100%;
}

.login-forgot {
  font-size: 12px;
  color: #a855f7;
  text-decoration: none;
  font-weight: 500;
}

.login-forgot:hover { color: #c084fc; text-decoration: underline; }

.login-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.25);
  pointer-events: none;
  transition: color 0.3s;
}

.login-input-wrapper input {
  width: 100%;
  padding: 12px 42px 12px 42px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s;
  outline: none;
}

.login-input-wrapper input:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.1);
}

.login-input-wrapper input:focus + .login-input-icon {
  color: #a855f7;
}

.login-password-toggle {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  padding: 0;
  color: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
  z-index: 2;
}

.login-password-toggle:hover {
  color: #a855f7;
}

.login-password-toggle svg {
  width: 18px;
  height: 18px;
}

/* --- Checkbox --- */
.login-remember {
  margin: 5px 0;
}

.login-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  user-select: none;
}

.login-checkbox input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }

.login-checkmark {
  width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  position: relative;
  transition: all 0.2s;
}

.login-checkbox:hover input ~ .login-checkmark { background: rgba(255, 255, 255, 0.08); }
.login-checkbox input:checked ~ .login-checkmark { background: #a855f7; border-color: #a855f7; }

.login-checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.login-checkbox input:checked ~ .login-checkmark:after { display: block; }

/* --- Submit Button --- */
.login-submit {
  margin-top: 10px;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 10px 15px -3px rgba(124, 58, 237, 0.3);
}

.login-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 15px 25px -5px rgba(124, 58, 237, 0.5);
  filter: brightness(1.1);
}

.login-submit:active:not(:disabled) { transform: translateY(0); }

.login-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.login-submit--loading {
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spinner 0.8s linear infinite;
}

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

/* --- Footer --- */
.login-footer {
  margin-top: 24px;
  text-align: center;
}

.login-footer p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

.login-footer a {
  color: #a855f7;
  text-decoration: none;
  font-weight: 600;
}

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

/* --- Info Row --- */
.login-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
  padding: 0 10px;
}

.login-info-links { display: flex; gap: 16px; }
.login-info-links a { color: inherit; text-decoration: none; }
.login-info-links a:hover { color: rgba(255, 255, 255, 0.4); }

/* --- Responsive --- */
@media (max-width: 480px) {
  .login-container { max-width: 100%; padding: 15px; }
  .login-card { padding: 30px 20px; }
  .login-info-row { flex-direction: column; gap: 12px; }
}
/* QuickTicketMobile.css */
.quick-ticket-container {
  min-height: 100vh;
  background: #0f172a;
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  padding-bottom: 30px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.quick-ticket-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quick-ticket-header__title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quick-ticket-header__title h1 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.quick-ticket-header__back-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.quick-ticket-header__back-btn:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.15);
}

.quick-ticket-badge {
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.4);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* PWA Navigation Tabs */
.pwa-tabs {
  display: flex;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 57px;
  z-index: 45;
  backdrop-filter: blur(10px);
}

.pwa-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: #94a3b8;
  padding: 12px 8px;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pwa-tab-btn--active {
  color: #818cf8;
  border-bottom-color: #6366f1;
  background: rgba(99, 102, 241, 0.1);
}

/* Mobile Tickets List / Table */
.mobile-ticket-item {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.mobile-ticket-item:active {
  transform: scale(0.98);
  border-color: rgba(99, 102, 241, 0.4);
}

.mobile-ticket-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-ticket-id {
  font-size: 0.8rem;
  font-weight: 700;
  color: #6366f1;
  background: rgba(99, 102, 241, 0.15);
  padding: 2px 8px;
  border-radius: 6px;
}

.mobile-ticket-subject {
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 2px 0;
}

.mobile-ticket-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #94a3b8;
}

.status-badge {
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
}
.status-badge--open { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.4); }
.status-badge--in_progress { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.status-badge--closed { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }

/* Mobile Agenda Timeline */
.agenda-timeline-item {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  align-items: flex-start;
}

.agenda-time-box {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #818cf8;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 10px;
  border-radius: 10px;
  text-align: center;
  min-width: 65px;
}

.agenda-content-box {
  flex: 1;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
}


/* Form Layout */
.quick-ticket-body {
  padding: 16px;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.quick-card {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
}

.quick-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-input, .quick-select, .quick-textarea {
  width: 100%;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 14px 16px;
  color: #ffffff;
  font-size: 1rem;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quick-input:focus, .quick-select:focus, .quick-textarea:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.quick-textarea {
  resize: vertical;
  min-height: 90px;
}

/* Chips & Quick Selectors */
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.chip-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip-btn:active {
  transform: scale(0.96);
}

.chip-btn--active {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  border-color: #818cf8;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.4);
}

/* Priority Colors */
.priority-chip--low.chip-btn--active {
  background: #059669;
  border-color: #34d399;
}
.priority-chip--medium.chip-btn--active {
  background: #d97706;
  border-color: #fbbf24;
}
.priority-chip--high.chip-btn--active {
  background: #dc2626;
  border-color: #f87171;
}
.priority-chip--urgent.chip-btn--active {
  background: #7c3aed;
  border-color: #a78bfa;
}

/* Autocomplete Dropdown */
.quick-dropdown {
  position: relative;
}

.quick-dropdown__list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  margin-top: 6px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 40;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.quick-dropdown__item {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.quick-dropdown__item:hover, .quick-dropdown__item:active {
  background: rgba(99, 102, 241, 0.15);
}

.quick-dropdown__item-name {
  font-weight: 600;
  color: #f1f5f9;
}

.quick-dropdown__item-sub {
  font-size: 0.8rem;
  color: #94a3b8;
}

/* Camera & Media Buttons */
.media-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.media-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 14px;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.media-btn:active {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(0.98);
}

.media-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.media-preview-item {
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.media-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-preview-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(0, 0, 0, 0.7);
  color: #ff4d4d;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Submit Action Floating Bar */
.submit-bar {
  position: sticky;
  bottom: 12px;
  margin-top: 10px;
}

.submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  border: none;
  border-radius: 16px;
  padding: 16px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.submit-btn:not(:disabled):active {
  transform: scale(0.98);
}

/* Success View */
.success-card {
  text-align: center;
  padding: 30px 20px;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 16px auto;
  border: 2px solid #10b981;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.offline-notice {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Status Badges for Services & Agenda */
.status-badge--scheduled { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.4); }
.status-badge--pending { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.status-badge--completed { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.status-badge--cancelled { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.4); }
.status-badge--service { background: rgba(168, 85, 247, 0.2); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.4); }

/* PWA Agenda Selector (Dia / Semana / Mensal) */
.agenda-mode-selector {
  display: flex;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 14px;
  gap: 4px;
}

.agenda-mode-btn {
  flex: 1;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: #94a3b8;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.agenda-mode-btn--active {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

/* Agenda Date Navigation Bar */
.agenda-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 14px;
  gap: 8px;
}

.agenda-nav-arrow {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.15s ease;
}

.agenda-nav-arrow:active {
  transform: scale(0.92);
  background: rgba(99, 102, 241, 0.3);
}

.agenda-nav-date-display {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.agenda-nav-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #f8fafc;
}

.agenda-nav-subtitle {
  font-size: 0.75rem;
  color: #94a3b8;
}

.agenda-nav-today {
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #818cf8;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.agenda-date-picker-inline {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 0.82rem;
  color-scheme: dark;
}

/* Stats Summary */
.agenda-stats-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.agenda-stat-pill {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 6px;
  text-align: center;
}

.agenda-stat-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f8fafc;
}

.agenda-stat-val--services { color: #c084fc; }
.agenda-stat-val--scheduled { color: #60a5fa; }
.agenda-stat-val--completed { color: #34d399; }

.agenda-stat-lbl {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 2px;
}

/* Day Group Container (Week & Month Views) */
.agenda-day-group {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
}

.agenda-day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.agenda-day-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.agenda-day-badge {
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

/* Calendar Grid for Month View */
.agenda-month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 16px;
}

.agenda-month-weekday {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  padding-bottom: 6px;
}

.agenda-month-daycell {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  aspect-ratio: 1;
  padding: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.15s ease;
}

.agenda-month-daycell--out {
  opacity: 0.3;
}

.agenda-month-daycell--today {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.15);
}

.agenda-month-daycell--selected {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.2);
}

.agenda-month-daynum {
  font-size: 0.75rem;
  font-weight: 600;
  color: #e2e8f0;
}

.agenda-month-dots {
  display: flex;
  gap: 2px;
}

.agenda-month-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #60a5fa;
}

.agenda-month-dot--service {
  background: #c084fc;
}

.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #16171d;
    border-top: 1px solid #2e303a;
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    padding: 0 4px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.4);
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #9ca3af;
    font-size: 11px;
    font-weight: 500;
    gap: 4px;
    flex: 1;
    height: 100%;
    transition: color 0.2s ease;
  }

  .mobile-nav-item svg {
    width: 20px;
    height: 20px;
  }

  .mobile-nav-item.active {
    color: #c084fc;
    font-weight: 600;
  }

  .mobile-nav-create {
    color: #ffffff;
    position: relative;
    top: -12px;
  }

  .create-fab-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.5);
    border: 2px solid #0f1017;
  }
}
/* ============================================
   App Layout Styles
   ============================================ */

.app-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
}

.app-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  min-height: 0; /* Ensure flex container handles overflow correctly */
  -webkit-overflow-scrolling: touch;

  /* Custom Scrollbar */
  &::-webkit-scrollbar {
    width: 5px;
    height: 5px;
  }
  &::-webkit-scrollbar-track {
    background: transparent;
  }
  &::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
  }
  &::-webkit-scrollbar-thumb:hover {
    background: var(--text);
  }
}

/* --- Content Area --- */
.app-content {
  flex: 1 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

/* --- Content Placeholder --- */
.content-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  border: 2px dashed var(--border);
  border-radius: 16px;
  background: var(--bg-secondary);
  text-align: center;
  padding: 40px;
  transition: border-color 0.3s ease;

  &:hover {
    border-color: rgba(168, 85, 247, 0.2);
  }
}

.content-placeholder__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(168, 85, 247, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;

  & svg {
    width: 32px;
    height: 32px;
    color: #c084fc;
  }
}

.content-placeholder h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-h);
  margin: 0 0 8px;
}

.content-placeholder p {
  font-size: 14px;
  color: var(--text);
  margin: 0;
}

/* Mobile Floating Action Button (FAB) */
.mobile-fab-quick-ticket {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.5);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mobile-fab-quick-ticket:active {
  transform: scale(0.92);
}

/* --- Sidebar Overlay --- */
.sidebar-overlay {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 998;
  display: none;
}

@media (max-width: 768px) {
  .mobile-fab-quick-ticket {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .sidebar-overlay {
    display: block;
  }

  .app-content {
    padding: 16px;
  }

  .content-placeholder {
    min-height: 250px;
    padding: 24px;
  }
}
