/*
 * AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY.
 * Source: static/css/main.css (+ imported modules)
 */

/* ============================================
   CELANO CANTIERE - Design System v2
   Entrypoint: importa moduli in ordine.
   Vedi static/css/modules/ per i file sorgente.
   ============================================ */


/* --- BEGIN IMPORT: css/modules/00-foundations.css --- */
/* ============================================
   CELANO CANTIERE - Design System v2
   Modern, Apple-inspired UI
   ============================================ */

:root {
  --primary: #d97706;
  --primary-light: #f59e0b;
  --primary-dark: #b45309;
  --primary-50: #fffbeb;
  --primary-100: #fef3c7;

  --accent: #1e40af;
  --accent-light: #3b82f6;

  --success: #22c55e;
  --success-bg: #ecfdf5;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --danger: #ef4444;
  --danger-bg: #fef2f2;
  --info: #3b82f6;
  --info-bg: #eff6ff;

  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --bg-secondary: var(--gray-100);
  --text-secondary: var(--gray-600);

  --shadow-xs: 0 1px 2px rgb(0 0 0 / 0.04);
  --shadow-sm: 0 1px 3px rgb(0 0 0 / 0.06), 0 1px 2px rgb(0 0 0 / 0.04);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-md: 0 8px 16px -4px rgb(0 0 0 / 0.08), 0 4px 6px -2px rgb(0 0 0 / 0.04);
  --shadow-lg: 0 16px 32px -8px rgb(0 0 0 / 0.1), 0 8px 16px -4px rgb(0 0 0 / 0.06);
  --shadow-xl: 0 24px 48px -12px rgb(0 0 0 / 0.15);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--gray-50);
  min-height: 100vh;
  color: var(--gray-800);
  line-height: 1.6;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes slideIn {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes pulseRing {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

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

.animate-in {
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--delay, 0) * 80ms);
}


/* --- END IMPORT: css/modules/00-foundations.css --- */

/* --- BEGIN IMPORT: css/modules/10-navbar.css --- */
/* ===== NAVBAR ===== */
.cel-navbar {
  background: linear-gradient(135deg, var(--gray-900) 0%, #0f172a 100%);
  padding: 0 24px;
  height: 64px;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.05);
  backdrop-filter: blur(20px);
}

.cel-navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.cel-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.cel-brand-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  transition: var(--transition);
}

.cel-brand:hover .cel-brand-icon { transform: rotate(-5deg) scale(1.05); }

.cel-brand-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.3px;
}

.cel-brand-accent { color: var(--primary-light); }

.cel-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.cel-nav-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  color: var(--gray-400);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
}

.cel-nav-link:hover { color: white; background: rgb(255 255 255 / 0.08); }

.cel-nav-link.active {
  color: white;
  background: var(--primary);
  box-shadow: 0 2px 8px rgb(217 119 6 / 0.35);
}

.cel-nav-link i { font-size: 0.9rem; }

.cel-quick-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgb(217 119 6 / 0.3);
}

.cel-quick-add:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgb(217 119 6 / 0.4);
}

.cel-quick-add:active { transform: translateY(0) scale(0.98); }

.cel-user-menu { position: relative; flex-shrink: 0; }

.cel-user-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  background: transparent;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.cel-user-toggle:hover { color: white; background: rgb(255 255 255 / 0.08); }

.cel-user-avatar {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
}

.cel-user-avatar-lg {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1rem;
}

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

.cel-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 8px;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.96);
  transition: var(--transition);
  z-index: 1001;
  border: 1px solid var(--gray-100);
}

.cel-user-menu:hover .cel-user-dropdown,
.cel-user-dropdown.show {
  opacity: 1; visibility: visible; transform: translateY(0) scale(1);
}

.cel-user-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
}

.cel-user-fullname { font-weight: 600; font-size: 0.9rem; }
.cel-user-role { font-size: 0.8rem; color: var(--gray-500); }
.cel-user-divider { height: 1px; background: var(--gray-100); margin: 4px 0; }

.cel-user-action {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: var(--gray-700);
  text-decoration: none;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.cel-user-action:hover { background: var(--gray-50); color: var(--gray-900); }
.cel-user-action.logout { color: var(--danger); }
.cel-user-action.logout:hover { background: var(--danger-bg); }

/* --- END IMPORT: css/modules/10-navbar.css --- */

/* --- BEGIN IMPORT: css/modules/20-layout.css --- */
/* ===== MAIN CONTENT ===== */
.main-content {
  padding: 82px 24px 112px;
  max-width: 1400px;
  margin: 0 auto;
}

.main-content.no-navbar { padding-top: 24px; }

/* ===== APP BREADCRUMB ===== */
.app-breadcrumb {
  margin-bottom: 14px;
}

.app-breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
}

.app-breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--gray-500);
}

.app-breadcrumb-item:not(:last-child)::after {
  content: "/";
  color: var(--gray-300);
}

.app-breadcrumb-item a {
  color: var(--gray-500);
  text-decoration: none;
  transition: var(--transition-fast);
}

.app-breadcrumb-item a:hover { color: var(--primary); }

.app-breadcrumb-item.is-current span {
  color: var(--gray-700);
  font-weight: 600;
}

/* ===== PAGE HEADER ===== */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 16px;
  flex-wrap: wrap;
}

.page-header h1 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.5px;
}

.page-subtitle {
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-top: 1px;
  line-height: 1.35;
}

.page-header + .filter-bar,
.page-header + .dash-section-header {
  margin-top: -2px;
}

/* --- END IMPORT: css/modules/20-layout.css --- */

/* --- BEGIN IMPORT: css/modules/30-dashboard.css --- */
/* ===== DASHBOARD HERO ===== */
.dash-hero {
  margin-bottom: 28px;
}

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

.dash-greeting h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.5px;
}

.dash-date {
  font-size: 0.95rem;
  color: var(--gray-500);
  margin-top: 2px;
  text-transform: capitalize;
}

.dash-hero-actions {
  display: flex;
  gap: 12px;
}

/* ===== KPI CARDS ===== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.kpi-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
  cursor: default;
}

.kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.kpi-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.kpi-card:hover .kpi-icon { transform: scale(1.1); }

.kpi-icon-amber { background: var(--primary-50); color: var(--primary); }
.kpi-icon-green { background: var(--success-bg); color: #059669; }
.kpi-icon-blue { background: var(--info-bg); color: var(--info); }
.kpi-icon-purple {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(139, 92, 246, 0.06));
  color: #8b5cf6;
}

.kpi-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.kpi-label { font-size: 0.8rem; color: var(--gray-500); margin-top: 1px; }

.kpi-sub {
  font-size: 0.72rem;
  color: var(--gray-400);
  margin-top: 2px;
}

.kpi-grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

.kpi-trend {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
}

.kpi-trend.up { color: #16a34a; }
.kpi-trend.down { color: #dc2626; }
.kpi-trend i { font-size: 0.6em; }

/* ===== DASHBOARD GRID LAYOUT ===== */
.dash-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

/* ── RANKING LIST ── */
.dash-ranking {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dash-ranking-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dash-ranking-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-ranking-pos {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-ranking-name {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-ranking-val {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}

/* ── COST GRID ── */
.dash-cost-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dash-cost-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 12px;
  background: var(--bg-secondary);
  transition: background 0.15s;
}

.dash-cost-item:hover {
  background: var(--gray-100);
}

.dash-cost-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(212, 160, 23, 0.12), rgba(212, 160, 23, 0.04));
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.dash-cost-icon-amber {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.04));
  color: #d97706;
}

.dash-cost-info {
  flex: 1;
  min-width: 0;
}

.dash-cost-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.dash-cost-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.dash-cost-link {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.15s;
  flex-shrink: 0;
}

.dash-cost-link:hover {
  background: white;
  color: var(--primary);
}

/* ── CHART BAR CURRENT MONTH HIGHLIGHT ── */
.chart-bar-current .chart-bar-fill {
  background: linear-gradient(180deg, var(--primary-light, #e6c44d), var(--primary));
  box-shadow: 0 0 8px rgba(212, 160, 23, 0.3);
}

.chart-bar-current .chart-bar-label {
  color: var(--primary);
  font-weight: 700;
}

/* ── EMPTY STATE INLINE ── */
.empty-state-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.empty-state-inline i {
  font-size: 1.2rem;
  opacity: 0.5;
}

/* ===== DASHBOARD SECTIONS ===== */
.dash-section {
  margin-bottom: 32px;
}

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

.dash-section-header h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-800);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-section-header h2 i { color: var(--primary); font-size: 1rem; }

/* ===== RAPPORTINI GRID (DASHBOARD) ===== */
.rapportini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.rapportino-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rapportino-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-100);
  color: inherit;
}

.rapportino-card:active { transform: translateY(-1px) scale(0.99); }

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

.rapportino-card-body h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.3;
}

.rapportino-card-committente {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 2px;
}

.rapportino-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--gray-400);
  padding-top: 10px;
  border-top: 1px solid var(--gray-100);
}

.rapportino-card-date,
.rapportino-card-crew {
  display: flex;
  align-items: center;
  gap: 5px;
}

.meteo-badge {
  width: 30px; height: 30px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.meteo-sole { background: #fef3c7; color: #d97706; }
.meteo-nuvole { background: var(--gray-100); color: var(--gray-500); }
.meteo-pioggia { background: #dbeafe; color: #3b82f6; }
.meteo-neve { background: #e0f2fe; color: #0284c7; }
.meteo-vento { background: #f0fdf4; color: #16a34a; }
.meteo-nebbia { background: var(--gray-100); color: var(--gray-400); }

/* ===== QUICK LINKS ===== */
.dash-quick-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.quick-link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--gray-100);
  text-decoration: none;
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
}

.quick-link-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--primary-100);
  color: var(--gray-900);
}

.quick-link-card:active { transform: translateY(0) scale(0.98); }

.quick-link-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: var(--primary-50);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}

.quick-link-card:hover .quick-link-icon { transform: scale(1.1); }

.quick-link-card .fa-chevron-right {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--gray-400);
  transition: var(--transition);
}

.quick-link-card:hover .fa-chevron-right {
  transform: translateX(3px);
  color: var(--primary);
}

/* --- END IMPORT: css/modules/30-dashboard.css --- */

/* --- BEGIN IMPORT: css/modules/40-components.css --- */
/* ===== CARDS ===== */
.card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  margin-bottom: 20px;
  transition: var(--transition);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
  gap: 12px;
}

.card-header h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-header h2 i { color: var(--primary); font-size: 0.95rem; }

.card-body { padding: 20px; }
.card-body.p-0 { padding: 0; }

/* ===== CANTIERI CARDS ===== */
.cantieri-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.cantiere-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.cantiere-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-100);
}

.cantiere-card.inactive {
  opacity: 0.6;
}

.cantiere-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.cantiere-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.3;
  text-decoration: none;
}

.cantiere-card-title:hover {
  color: var(--primary);
}

.cantiere-card-codice {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: 2px;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.cantiere-card-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.cantiere-card-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--gray-600);
}

.cantiere-card-info-row i {
  width: 16px;
  text-align: center;
  color: var(--gray-400);
  font-size: 0.8rem;
}

.cantiere-card-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-100);
}

.cantiere-stat {
  display: flex;
  flex-direction: column;
}

.cantiere-stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
}

.cantiere-stat-label {
  font-size: 0.7rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cantiere-card-actions {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.cantiere-progress {
  width: 70px;
  margin-top: 0;
}

.cantiere-progress-bar {
  height: 4px;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.cantiere-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-full);
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.cantiere-progress-label {
  font-size: 0.7rem;
  color: var(--gray-400);
  margin-top: 4px;
}

/* ===== STATUS DOT ===== */
.status-dot {
  width: 8px; height: 8px;
  border-radius: var(--radius-full);
  display: inline-block;
  flex-shrink: 0;
}

.status-dot.active {
  background: var(--success);
  position: relative;
}

.status-dot.active::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-full);
  border: 2px solid var(--success);
  animation: pulseRing 2s ease-out infinite;
}

.status-dot.inactive { background: var(--gray-300); }

/* ===== FILTER BAR ===== */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.search-box i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 0.85rem;
  transition: var(--transition);
}

.search-box .form-control:focus + i,
.search-box:focus-within i { color: var(--primary); }

.search-box .form-control { padding-left: 40px; }

.filter-bar .form-select { max-width: 250px; }

.filter-tabs {
  display: flex;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 2px;
}

.filter-tab {
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-500);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.filter-tab:hover { color: var(--gray-700); }

.filter-tab.active {
  background: white;
  color: var(--gray-900);
  box-shadow: var(--shadow-xs);
}

/* ===== TABLES ===== */
.table-responsive { overflow-x: auto; }

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

.table th {
  padding: 10px 16px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  text-align: left;
  white-space: nowrap;
}

.table td {
  padding: 12px 16px;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}

.table tbody tr { transition: var(--transition-fast); }
.table tbody tr:hover { background: var(--gray-50); }
.table tbody tr:last-child td { border-bottom: none; }

.table-total td {
  background: var(--primary-50);
  font-weight: 600;
  border-top: 2px solid var(--primary-100);
}

.row-inactive { opacity: 0.5; }

/* ===== FORM TABLE ===== */
.form-table td { padding: 6px 8px; }
.form-table th { padding: 8px; }

/* ===== BADGES ===== */
.badge-id {
  display: inline-block;
  padding: 4px 10px;
  background: var(--primary-50);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-family: 'SF Mono', 'Fira Code', monospace;
  transition: var(--transition);
}

.badge-id:hover { background: var(--primary-100); color: var(--primary-dark); }

.badge-id-lg {
  display: inline-block;
  padding: 4px 14px;
  background: var(--primary);
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.badge-sigla {
  display: inline-block;
  padding: 3px 10px;
  background: var(--gray-100);
  color: var(--gray-700);
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.badge-status.active { background: var(--success-bg); color: #059669; }
.badge-status.inactive { background: var(--gray-100); color: var(--gray-500); }

.badge-fase {
  display: inline-block;
  padding: 2px 8px;
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.badge-tipo-entrata {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  background: #dcfce7;
  color: #16a34a;
}

.badge-tipo-uscita {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  background: #fee2e2;
  color: #dc2626;
}

/* ===== CELL DATE ===== */
.cell-date { display: flex; flex-direction: column; }
.cell-date small { color: var(--gray-400); font-size: 0.75rem; }

/* ===== DETAIL GRID ===== */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.detail-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.detail-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-800);
}

/* ===== ANNOTATIONS ===== */
.annotation-item {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 8px;
  border-left: 3px solid;
}

.annotation-annotazione { background: var(--info-bg); border-color: var(--info); }
.annotation-spesa { background: var(--warning-bg); border-color: var(--warning); }
.annotation-anomalia { background: var(--danger-bg); border-color: var(--danger); }
.annotation-guasto { background: var(--danger-bg); border-color: #991b1b; }

.annotation-type {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 4px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  font-family: inherit;
  line-height: 1.2;
  position: relative;
  overflow: hidden;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 4px rgb(217 119 6 / 0.2);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
  box-shadow: 0 4px 8px rgb(217 119 6 / 0.3);
  transform: translateY(-1px);
}

.btn-primary:active { transform: translateY(0) scale(0.97); }

.btn-lg {
  padding: 12px 24px;
  font-size: 0.95rem;
  border-radius: var(--radius);
}

.btn-outline {
  background: white;
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}

.btn-outline:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
  color: var(--gray-900);
  transform: translateY(-1px);
}

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

.btn-danger:hover { background: #dc2626; }

.btn-sm { padding: 6px 12px; font-size: 0.8rem; }

.btn-block { width: 100%; justify-content: center; }

.btn-group-sm { display: flex; gap: 8px; flex-wrap: wrap; }

.btn-icon-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: transparent;
  color: var(--gray-400);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-icon-danger:hover {
  background: var(--danger-bg);
  color: var(--danger);
  transform: scale(1.1);
}

.action-btns { display: flex; gap: 4px; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 20px; flex: 1; }
.form-group.flex-2 { flex: 2; }

.form-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 6px;
}

.form-group label i {
  color: var(--primary);
  font-size: 0.82rem;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.form-row > .form-group {
  margin-bottom: 16px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-family: inherit;
  transition: var(--transition);
  background: white;
  color: var(--gray-800);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-100);
}

.form-control::placeholder { color: var(--gray-400); }

/* ===== FLATPICKR (DATEPICKER) ===== */
input[data-date-picker="true"] {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3e%3crect x='3' y='5' width='18' height='16' rx='2' stroke='%239ca3af' stroke-width='1.8'/%3e%3cpath d='M8 3v4M16 3v4M3 10h18' stroke='%239ca3af' stroke-width='1.8' stroke-linecap='round'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
}

.flatpickr-calendar {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  font-family: inherit;
}

.flatpickr-months {
  padding: 6px 6px 0;
}

.flatpickr-current-month {
  font-size: 0.95rem;
  font-weight: 600;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
  font-weight: 600;
}

.flatpickr-weekdays {
  margin-top: 4px;
}

span.flatpickr-weekday {
  color: var(--gray-500);
  font-size: 0.72rem;
  font-weight: 700;
}

.flatpickr-day {
  border-radius: 8px;
  color: var(--gray-700);
  font-weight: 500;
}

.flatpickr-day.today {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.flatpickr-day:hover {
  background: var(--primary-50);
  border-color: var(--primary-50);
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange,
.flatpickr-day.endRange:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 10px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 36px;
}

textarea.form-control { resize: vertical; min-height: 60px; }

.form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 0;
}

.checkbox-label {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 500 !important;
}

/* ===== PAGINATION ===== */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px;
  border-top: 1px solid var(--gray-100);
}

.pagination-info { font-size: 0.85rem; color: var(--gray-500); }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 48px 24px;
}

.empty-state-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius-xl);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.empty-state-icon i,
.empty-state > i {
  font-size: 1.8rem;
  color: var(--gray-300);
}

.empty-state > i { margin-bottom: 16px; }

.empty-state h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 20px;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast-notification {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid;
  animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 320px;
  font-size: 0.875rem;
  position: relative;
  overflow: hidden;
}

.toast-notification.success { border-color: var(--success); }
.toast-notification.danger { border-color: var(--danger); }
.toast-notification.info { border-color: var(--info); }
.toast-notification.warning { border-color: var(--warning); }

.toast-notification .fa-check-circle { color: var(--success); }
.toast-notification .fa-exclamation-circle { color: var(--danger); }
.toast-notification .fa-info-circle { color: var(--info); }

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 0 3px 0 0;
  animation: toastProgress 5s linear forwards;
}

.toast-notification.success .toast-progress { background: var(--success); }
.toast-notification.danger .toast-progress { background: var(--danger); }
.toast-notification.info .toast-progress { background: var(--info); }
.toast-notification.warning .toast-progress { background: var(--warning); }

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

.toast-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.toast-close:hover { background: var(--gray-100); color: var(--gray-600); }

/* --- END IMPORT: css/modules/40-components.css --- */

/* --- BEGIN IMPORT: css/modules/50-rapportino-form.css --- */
/* ===== RAPPORTINO FORM v2 ===== */
.form-section {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  margin-bottom: 24px;
  overflow: visible;
}

.form-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--gray-100);
  gap: 12px;
}

.form-section-header h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-section-header h2 i {
  color: var(--primary);
  font-size: 0.95rem;
}

.form-section-body { padding: 24px; }

/* Meteo Selector */
.meteo-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.meteo-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  background: white;
  min-width: 70px;
}

.meteo-option:hover {
  border-color: var(--gray-300);
  transform: translateY(-2px);
}

.meteo-option.selected {
  border-color: var(--primary);
  background: var(--primary-50);
  box-shadow: 0 0 0 3px var(--primary-100);
}

.meteo-option i { font-size: 1.4rem; }
.meteo-option span { font-size: 0.7rem; font-weight: 500; color: var(--gray-600); }

.meteo-option input[type="radio"] { display: none; }

/* Personnel / Mezzi / Lavori Cards */
.item-cards { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }

.item-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px;
  position: relative;
  transition: var(--transition);
  animation: fadeInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.item-card:hover { border-color: var(--gray-300); }

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

.item-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 6px;
}

.item-card-title .item-number {
  width: 24px; height: 24px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
}

.item-card-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: end;
}

.item-card-fields.cols-3 {
  grid-template-columns: 2fr 1fr 1fr;
}

.item-card-fields.cols-4 {
  grid-template-columns: 2fr 1fr 1fr 1fr;
}

.item-card-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.item-card-field.full-width { grid-column: 1 / -1; }

.item-card-field label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.item-card .form-control {
  padding: 8px 12px;
  font-size: 0.85rem;
  border-width: 1.5px;
  background: white;
}

.item-card-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: transparent;
  color: var(--gray-400);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.item-card-remove:hover {
  background: var(--danger-bg);
  color: var(--danger);
}

.add-item-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius);
  background: transparent;
  color: var(--gray-500);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  font-family: inherit;
}

.add-item-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-50);
}

.add-item-btn:active { transform: scale(0.98); }

/* Ore input with +/- */
.ore-input-group {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: white;
  transition: var(--transition);
}

.ore-input-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-100);
}

.ore-input-group .ore-btn {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  border: none;
  color: var(--gray-600);
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition);
  flex-shrink: 0;
}

.ore-input-group .ore-btn:hover { background: var(--gray-100); color: var(--gray-900); }
.ore-input-group .ore-btn:active { background: var(--gray-200); }

.ore-input-group input {
  width: 50px;
  text-align: center;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--gray-900);
  padding: 8px 4px;
  background: white;
}

.ore-input-group input:focus { outline: none; }

/* Annotation tabs */
.annotation-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 3px;
}

.annotation-tab {
  flex: 1;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gray-500);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.annotation-tab:hover { color: var(--gray-700); }

.annotation-tab.active {
  background: white;
  color: var(--gray-900);
  box-shadow: var(--shadow-xs);
}

.annotation-content { display: none; }
.annotation-content.active { display: block; }

/* Sticky save bar */
.sticky-save-bar {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--gray-200);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  z-index: 100;
  box-shadow: 0 -4px 12px rgb(0 0 0 / 0.06);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  margin: 0 -20px -20px;
}

/* Material card */
.material-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.material-type-badge.entrata { background: var(--success-bg); color: #059669; }
.material-type-badge.uscita { background: var(--danger-bg); color: #dc2626; }


/* --- END IMPORT: css/modules/50-rapportino-form.css --- */

/* --- BEGIN IMPORT: css/modules/60-auth-mobile.css --- */
/* ===== AUTH PAGE ===== */
.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--gray-900) 0%, #0f172a 100%);
}

.auth-card {
  background: white;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  padding: 40px;
  width: 100%;
  max-width: 400px;
  margin: 24px;
  animation: scaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: white;
  font-size: 1.8rem;
}

.auth-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
}

.auth-header p {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-top: 4px;
}

.auth-form .form-group { margin-bottom: 20px; }

.auth-form .form-group label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.auth-form .btn { margin-top: 8px; padding: 12px; font-size: 1rem; }

/* ===== MOBILE BOTTOM NAV ===== */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: white;
  border-top: 1px solid var(--gray-200);
  z-index: 1000;
  padding: 4px 8px;
  padding-bottom: env(safe-area-inset-bottom, 4px);
  justify-content: space-around;
  box-shadow: 0 -2px 16px rgb(0 0 0 / 0.06);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 12px;
  color: var(--gray-400);
  text-decoration: none;
  font-size: 0.62rem;
  font-weight: 500;
  transition: var(--transition);
}

.mobile-nav-item i { font-size: 1.2rem; }
.mobile-nav-item.active { color: var(--primary); }

.mobile-nav-item.add-btn {
  background: var(--primary);
  color: white;
  border-radius: var(--radius-full);
  width: 48px; height: 48px;
  margin-top: -16px;
  justify-content: center;
  box-shadow: 0 4px 12px rgb(217 119 6 / 0.35);
  transition: var(--transition);
}

.mobile-nav-item.add-btn:active { transform: scale(0.92); }
.mobile-nav-item.add-btn i { font-size: 1.3rem; }
.mobile-nav-item.add-btn span { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .kpi-grid-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .cel-navbar { display: none; }
  .mobile-nav { display: flex; }
  .main-content { padding: 12px 14px 96px; }
  .app-breadcrumb {
    margin-bottom: 10px;
  }
  .app-breadcrumb-item {
    font-size: 0.74rem;
  }
  .page-header {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
  }
  .page-header h1 { font-size: 1.25rem; }
  .page-header .btn { align-self: flex-start; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi-grid-5 { grid-template-columns: repeat(2, 1fr); }
  .dash-grid-2 { grid-template-columns: 1fr; }
  .form-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .form-row > .form-group {
    width: 100%;
    margin-bottom: 0;
  }
  .form-group { margin-bottom: 12px; }
  .form-group label { margin-bottom: 4px; }
  .form-control { padding: 8px 11px; }
  .form-section { margin-bottom: 14px; }
  .form-section-header { padding: 10px 14px; }
  .form-section-body { padding: 14px; }
  .form-section-header h2 { font-size: 0.92rem; }
  .form-section-header h2 i {
    width: 24px;
    height: 24px;
    font-size: 0.72rem;
    border-radius: 7px;
  }
  .btn-group-sm { gap: 6px; }
  .btn-group-sm .btn { padding: 5px 10px; }
  .meteo-selector {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .meteo-option {
    min-width: 0;
    padding: 8px 6px;
    border-width: 1.5px;
    gap: 3px;
  }
  .meteo-option i { font-size: 1.15rem; }
  .meteo-option span { font-size: 0.66rem; }
  .item-cards {
    gap: 10px;
    margin-bottom: 12px;
  }
  .item-card { padding: 12px; }
  .item-card-header { margin-bottom: 8px; }
  .item-card-fields { gap: 10px; }
  .item-card-field { gap: 4px; }
  .item-card-field label { font-size: 0.68rem; }
  .item-card .form-control {
    font-size: 0.82rem;
    padding: 7px 10px;
  }
  .item-card-remove { width: 26px; height: 26px; }
  .add-item-btn {
    padding: 10px;
    font-size: 0.8rem;
  }
  .ore-input-group .ore-btn {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
  .ore-input-group input {
    width: 46px;
    padding: 6px 4px;
    font-size: 0.85rem;
  }
  .annotation-tabs {
    margin-bottom: 10px;
    padding: 2px;
  }
  .annotation-tab {
    padding: 7px 8px;
    font-size: 0.75rem;
  }
  .annotation-tab i { display: none; }
  .cel-quick-add span { display: none; }
  .cel-user-name { display: none; }
  .detail-grid { grid-template-columns: repeat(2, 1fr); }
  .form-table { font-size: 0.8rem; }
  .form-table .form-control { padding: 6px 8px; font-size: 0.8rem; }
  .rapportini-grid { grid-template-columns: 1fr; }
  .cantieri-grid { grid-template-columns: 1fr; }
  .dash-quick-links { grid-template-columns: 1fr 1fr; }
  .item-card-fields { grid-template-columns: 1fr; }
  .item-card-fields.cols-3,
  .item-card-fields.cols-4 { grid-template-columns: 1fr 1fr; }
  .dash-greeting h1 { font-size: 1.4rem; }
  .sticky-save-bar {
    position: fixed;
    bottom: 58px;
    left: 0;
    right: 0;
    margin: 0;
    border-radius: 0;
    padding: 10px 12px;
    gap: 8px;
  }
  .sticky-save-bar .btn {
    min-height: 40px;
    padding: 9px 12px;
  }
  .sticky-save-bar .btn.btn-outline {
    min-width: 96px;
  }
  .filter-tabs { overflow-x: auto; white-space: nowrap; }
  .chart-bars {
    height: 150px;
    overflow-x: auto;
  }
  .chart-bar-col {
    min-width: 32px;
  }
  .filter-form {
    width: 100%;
  }
  .filter-form .form-group {
    flex: 1;
    min-width: 100px !important;
  }
  .analytics-manodopera-page .page-header {
    margin-bottom: 10px;
  }
  .analytics-manodopera-page .filter-bar {
    margin-bottom: 10px;
  }
  .analytics-manodopera-page .kpi-grid {
    margin-bottom: 14px;
  }
  .analytics-manodopera-page .kpi-card {
    padding: 14px 15px;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .kpi-grid,
  .kpi-grid-5 { grid-template-columns: 1fr; }
  .dash-quick-links { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .main-content { padding: 10px 10px 94px; }
  .page-header h1 { font-size: 1.16rem; }
  .page-subtitle { font-size: 0.76rem; }
  .form-section-header {
    padding: 9px 12px;
    gap: 8px;
  }
  .form-section-body { padding: 12px; }
  .meteo-selector { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meteo-option { padding: 7px 6px; }
  .sticky-save-bar {
    padding: 9px 10px;
    bottom: 56px;
  }
  .sticky-save-bar .btn {
    font-size: 0.9rem;
    min-height: 38px;
  }
  .item-card-fields.cols-3,
  .item-card-fields.cols-4 { grid-template-columns: 1fr; }
}

@media (min-width: 769px) {
  .rapportini-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

/* ===== OPERAI CHIPS (lavori) ===== */
.operai-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.operaio-chip {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.operaio-chip input[type="checkbox"] {
  display: none;
}

.operaio-chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--gray-300);
  background: var(--gray-50);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-500);
  transition: var(--transition);
  min-width: 40px;
}

.operaio-chip input:checked + span {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 2px 6px rgb(217 119 6 / 0.3);
}

.operaio-chip:hover span {
  border-color: var(--primary);
}


/* --- END IMPORT: css/modules/60-auth-mobile.css --- */

/* --- BEGIN IMPORT: css/modules/70-tomselect.css --- */
/* ===== TOM SELECT — CELANO THEME ===== */
.ts-wrapper { font-family: inherit; }

/* Remove Bootstrap-like box styles from Tom Select wrapper */
.ts-wrapper.form-control,
.ts-wrapper.form-select {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  height: auto !important;
}

.ts-wrapper.single .ts-control,
.ts-wrapper.multi .ts-control {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.875rem;
  font-family: inherit;
  background-color: white;
  min-height: 0 !important;
  box-shadow: none !important;
  transition: border-color 250ms ease, box-shadow 250ms ease;
  cursor: pointer;
  line-height: 1.6;
}

.ts-wrapper .ts-control > input {
  min-height: 0 !important;
  padding: 0 !important;
  line-height: inherit;
}

.ts-wrapper.single .ts-control {
  padding-right: 40px;
}

.ts-wrapper.single .ts-control::after {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  top: 50% !important;
  right: 12px !important;
  width: 20px !important;
  height: 20px !important;
  margin-top: -10px !important;
  border: none !important;
  background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%239ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") no-repeat center / contain !important;
  transition: transform 200ms ease;
}

.ts-wrapper.dropdown-active.single .ts-control::after {
  transform: rotate(180deg);
}

.ts-wrapper.single .ts-control:hover,
.ts-wrapper.multi .ts-control:hover {
  border-color: var(--gray-300);
}

.ts-wrapper.focus .ts-control {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px var(--primary-100) !important;
}

.ts-wrapper.focus.single .ts-control::after {
  background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23d97706' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") no-repeat center / contain !important;
}

.ts-wrapper .ts-control > input {
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--gray-800);
}

.ts-wrapper .ts-control > input::placeholder {
  color: var(--gray-400);
}

.ts-dropdown {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  margin-top: 4px;
  z-index: 1050;
  background: white;
  overflow: hidden;
}

.ts-dropdown .ts-dropdown-content {
  max-height: 260px;
  padding: 4px;
  scroll-behavior: smooth;
}

.ts-dropdown [data-selectable] {
  padding: 9px 14px;
  font-size: 0.875rem;
  border-radius: 6px;
  margin: 1px 0;
  transition: background 150ms ease, color 150ms ease;
  cursor: pointer;
  color: var(--gray-700);
}

.ts-dropdown [data-selectable].active {
  background: var(--primary-50);
  color: var(--primary-dark);
}

.ts-dropdown .option.selected {
  background: var(--primary);
  color: white;
  font-weight: 500;
}

.ts-dropdown .option.selected.active {
  background: var(--primary-dark);
  color: white;
}

.ts-wrapper.multi .ts-control > .item {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 2px 10px;
  font-size: 0.8rem;
  font-weight: 500;
}

.ts-wrapper.multi .ts-control > .item .remove {
  color: rgba(255, 255, 255, 0.7);
  border-left-color: rgba(255, 255, 255, 0.2);
}

.ts-dropdown .no-results {
  padding: 16px;
  font-size: 0.85rem;
  color: var(--gray-400);
  text-align: center;
}

.ts-dropdown .optgroup-header {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  padding: 8px 14px 4px;
}

.item-card .ts-wrapper.single .ts-control,
.item-card .ts-wrapper.multi .ts-control {
  padding: 8px 12px;
  font-size: 0.85rem;
  border-width: 1.5px;
}

.item-card .ts-wrapper.single .ts-control {
  padding-right: 34px;
}

.item-card .ts-wrapper.single .ts-control::after {
  right: 10px !important;
  width: 16px !important;
  height: 16px !important;
  margin-top: -8px !important;
}

.item-card .ts-dropdown [data-selectable] {
  padding: 7px 12px;
  font-size: 0.85rem;
}

.filter-bar .ts-wrapper {
  max-width: 280px;
  min-width: 200px;
}

.filter-bar .ts-wrapper.single .ts-control {
  min-height: 40px;
}

/* --- END IMPORT: css/modules/70-tomselect.css --- */

/* --- BEGIN IMPORT: css/modules/80-enhanced-form.css --- */
/* ===== ENHANCED FORM DESIGN ===== */
.form-control:hover {
  border-color: var(--gray-300);
}

.form-section {
  border-left: 3px solid transparent;
  transition: border-left-color var(--transition);
}

.form-section:focus-within {
  border-left-color: var(--primary);
}

.form-section-header {
  background: linear-gradient(to right, var(--primary-50), transparent 60%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.form-section-header h2 i {
  background: var(--primary);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  flex-shrink: 0;
}

.item-card {
  background: white;
  border: 1.5px solid var(--gray-200);
  box-shadow: var(--shadow-xs);
}

.item-card:hover {
  border-color: var(--primary-100);
  box-shadow: var(--shadow-sm);
}

.item-card-title .item-number {
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.3);
}

input[type="checkbox"] {
  accent-color: var(--primary);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  cursor: pointer;
}

.form-actions {
  border-top: 2px solid var(--gray-100);
  margin-top: 24px;
  padding: 20px 0 0;
}

.card > .card-body > form .form-actions .btn {
  min-width: 120px;
  justify-content: center;
}

/* --- END IMPORT: css/modules/80-enhanced-form.css --- */

/* --- BEGIN IMPORT: css/modules/90-print.css --- */
/* ===== PRINT-ONLY / SCREEN-ONLY ===== */
.print-only { display: none; }

/* ===== PRINT STYLES ===== */
@media print {
  *, *::before, *::after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  @page {
    size: A4 landscape;
    margin: 6mm 8mm;
  }

  html, body {
    background: white !important;
    margin: 0; padding: 0;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    font-size: 7pt;
    line-height: 1.25;
    color: #1a1a1a;
    width: 100%;
  }

  .cel-navbar, .mobile-nav, .toast-container, .screen-only {
    display: none !important;
  }

  .print-only { display: block !important; }

  .main-content {
    padding: 0 !important;
    max-width: none !important;
  }

  .animate-in {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  a { text-decoration: none !important; color: inherit !important; }

  /* ── Page container ── */
  .p-page {
    width: 100%;
  }

  /* ── HEADER BAR ── */
  .p-header {
    display: flex;
    align-items: center;
    background: #1e293b;
    color: white;
    padding: 6px 10px;
    border-radius: 4px 4px 0 0;
    gap: 12px;
  }

  .p-header-logo {
    font-size: 13pt;
    font-weight: 800;
    letter-spacing: 1px;
    color: #f59e0b;
    flex-shrink: 0;
    padding-right: 10px;
    border-right: 2px solid rgba(255,255,255,0.2);
  }

  .p-header-title {
    font-size: 14pt;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    flex: 1;
    text-align: center;
  }

  /* ── INFO ROW ── */
  .p-info-row {
    width: 100%;
    border-collapse: collapse;
    border: 1.5px solid #1e293b;
    table-layout: fixed;
  }

  .p-info-cell {
    padding: 3px 6px;
    border-right: 1px solid #cbd5e1;
    vertical-align: top;
  }

  .p-info-cell:last-child { border-right: none; }

  .p-info-id {
    background: #f8fafc;
  }

  .p-label {
    display: block;
    font-size: 5.5pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #64748b;
    margin-bottom: 1px;
  }

  .p-val {
    display: block;
    font-size: 7.5pt;
    font-weight: 600;
    color: #0f172a;
  }

  .p-val-lg {
    font-size: 9pt;
    font-weight: 700;
  }

  .p-val-sub {
    display: block;
    font-size: 6pt;
    color: #64748b;
  }

  .p-val-id {
    font-size: 11pt;
    font-weight: 800;
    color: #1e293b;
  }

  /* ── MAIN 3-COL BODY GRID ── */
  .p-body-grid {
    width: 100%;
    border-collapse: collapse;
    border: 1.5px solid #1e293b;
    table-layout: fixed;
    margin-top: 4px;
  }

  .p-section-hdr {
    background: #1e293b;
    color: white;
    font-size: 6.5pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    padding: 3px 4px;
    border: 1px solid #1e293b;
  }

  .p-sub-hdr td {
    background: #e2e8f0;
    font-size: 5.5pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #334155;
    padding: 2px 3px;
    border: 1px solid #cbd5e1;
    text-align: center;
    white-space: nowrap;
  }

  .p-data-row td {
    padding: 1.5px 3px;
    border: 1px solid #e2e8f0;
    font-size: 6.5pt;
    height: 13px;
    vertical-align: middle;
  }

  .p-cell-num {
    text-align: center;
    font-size: 6pt;
    color: #94a3b8;
    width: 16px;
  }

  .p-cell-bold { font-weight: 600; }
  .p-cell-center { text-align: center; }

  .p-col-border {
    border-right: 1.5px solid #94a3b8 !important;
  }

  .p-total-row td {
    background: #f1f5f9;
    border-top: 1.5px solid #64748b;
    font-size: 6.5pt;
    padding: 2px 3px;
    border-bottom: 1.5px solid #1e293b;
  }

  /* ── DUAL BOX (Annotazioni, Materiali, etc) ── */
  .p-dual-box {
    width: 100%;
    border-collapse: collapse;
    border: 1.5px solid #1e293b;
    table-layout: fixed;
    margin-top: 4px;
  }

  .p-text-cell {
    padding: 3px 5px;
    font-size: 6.5pt;
    vertical-align: top;
    min-height: 20px;
    border: 1px solid #e2e8f0;
    line-height: 1.4;
  }

  /* ── INNER TABLES (materiali, noli, cottimisti) ── */
  .p-inner-table {
    width: 100%;
    border-collapse: collapse;
  }

  .p-inner-table td {
    padding: 1.5px 3px;
    border: 1px solid #e2e8f0;
    font-size: 6.5pt;
    vertical-align: middle;
  }

  .p-inner-table .p-sub-hdr td {
    background: #e2e8f0;
    font-size: 5pt;
    padding: 1.5px 2px;
  }

  /* ── FIRMA BAR ── */
  .p-firma-bar {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    border: 1.5px solid #1e293b;
  }

  .p-firma-label {
    font-size: 6.5pt;
    font-weight: 600;
    color: #334155;
    padding: 2px 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    width: 12%;
    vertical-align: middle;
    border: 1px solid #e2e8f0;
  }

  .p-firma-space {
    height: 30px;
    border: 1px solid #e2e8f0;
    width: 38%;
  }
}

/* --- END IMPORT: css/modules/90-print.css --- */

/* --- BEGIN IMPORT: css/modules/95-analytics.css --- */
/* ═══════════════════════════════════════════
   ANALYTICS & COST COMPONENTS
   ═══════════════════════════════════════════ */

.filter-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-form .form-group {
  margin-bottom: 0;
}

/* ── MANODOPERA LAYOUT TUNING ── */
.analytics-manodopera-page .page-header {
  margin-bottom: 14px;
}

.analytics-manodopera-page .page-subtitle {
  margin-top: 0;
}

.analytics-manodopera-page .filter-bar {
  margin-bottom: 14px;
}

.analytics-manodopera-page .filter-form {
  gap: 10px;
}

.analytics-manodopera-page .kpi-grid {
  margin-bottom: 20px;
}

.analytics-manodopera-page .kpi-card {
  padding: 16px 18px;
}

.analytics-manodopera-page .card {
  margin-bottom: 16px;
}

/* ── CHART BARS ── */
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 200px;
  padding: 0 4px;
}

.chart-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
}

.chart-bar-value {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  min-height: 18px;
}

.chart-bar-track {
  flex: 1;
  width: 100%;
  max-width: 40px;
  background: var(--bg-secondary);
  border-radius: 6px 6px 0 0;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.chart-bar-fill {
  width: 100%;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark, #b8941a));
  border-radius: 6px 6px 0 0;
  min-height: 2px;
  transition: height 0.8s cubic-bezier(.4, 0, .2, 1);
}

.chart-bar-fill-amber {
  background: linear-gradient(180deg, #f59e0b, #d97706);
}

.chart-bar-label {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ── PROGRESS BAR MINI ── */
.progress-bar-mini {
  width: 100%;
  max-width: 120px;
  height: 6px;
  background: var(--bg-secondary);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  transition: width 0.6s ease;
}

/* ── FORM SECTION TITLE ── */
.form-section-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 24px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-section-title i {
  color: var(--primary);
}

/* ── NAV DROPDOWN ── */
.cel-nav-divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.15);
  margin: 0 4px;
}

.cel-chevron {
  font-size: 0.55em;
  margin-left: 3px;
  opacity: 0.7;
  transition: transform 0.2s;
}

.cel-nav-dropdown.open .cel-chevron {
  transform: rotate(180deg);
}

.cel-nav-dropdown {
  position: relative;
}

.cel-nav-dropdown > .cel-nav-link {
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

.cel-nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.15);
  min-width: 230px;
  padding: 8px;
  padding-top: 16px;
  z-index: 1000;
  animation: dropdownFade 0.15s ease;
}

.cel-nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 18px;
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateX(-50%) translateY(-4px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.cel-nav-dropdown.open .cel-nav-dropdown-menu {
  display: block;
}

.cel-nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.15s;
}

.cel-nav-dropdown-menu a:hover,
.cel-nav-dropdown-menu a.dd-active {
  background: var(--bg-secondary);
  color: var(--primary);
}

.cel-nav-dropdown-menu a i {
  width: 18px;
  text-align: center;
  color: var(--primary);
  font-size: 0.8rem;
}

.cel-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 8px;
}

.cel-dropdown-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  padding: 8px 14px 4px;
}

/* ── MOBILE "MORE" BUTTON ── */
.mobile-nav-more {
  border: none;
  background: none;
  font-family: inherit;
}

.mobile-nav-dots {
  display: grid;
  grid-template-columns: repeat(2, 5px);
  gap: 3px;
}

.mobile-nav-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gray-400);
  transition: var(--transition);
}

.mobile-nav-more.active .mobile-nav-dots span {
  background: var(--primary);
}

/* ── MOBILE SLIDE-UP MENU ── */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9998;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.mobile-menu-overlay.show {
  display: block;
  animation: fadeIn 0.2s ease;
}

.mobile-menu-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -8px 40px rgba(0,0,0,.18);
  z-index: 9999;
  max-height: 85vh;
  overflow-y: auto;
  padding: 0 0 env(safe-area-inset-bottom, 20px);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

.mobile-menu-panel.show {
  transform: translateY(0);
}

.mobile-menu-handle {
  width: 36px;
  height: 4px;
  background: var(--gray-300);
  border-radius: 2px;
  margin: 10px auto 6px;
}

.mobile-menu-user {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px 20px;
  border-bottom: 1px solid var(--gray-100);
}

.mobile-menu-user-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gray-900);
}

.mobile-menu-user-role {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 1px;
}

.mobile-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 16px 12px;
  border-bottom: 1px solid var(--gray-100);
}

.mobile-menu-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  text-decoration: none;
  color: var(--gray-700);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 14px;
  transition: background 0.15s;
}

.mobile-menu-grid-item:active {
  background: var(--gray-50);
  transform: scale(0.96);
}

.mobile-menu-grid-item:hover {
  color: var(--gray-700);
}

.mobile-menu-grid-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: transform 0.2s;
}

.mobile-menu-grid-item:active .mobile-menu-grid-icon {
  transform: scale(1.08);
}

.mobile-menu-section {
  padding: 12px 12px 4px;
}

.mobile-menu-section + .mobile-menu-section {
  border-top: 1px solid var(--gray-100);
}

.mobile-menu-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-400);
  padding: 4px 12px 8px;
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 12px;
  color: var(--gray-700);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 12px;
  transition: background 0.15s;
}

.mobile-menu-link:hover,
.mobile-menu-link:active {
  background: var(--gray-50);
  color: var(--gray-900);
}

.mobile-menu-link i {
  width: 22px;
  text-align: center;
  color: var(--primary);
  font-size: 0.95rem;
}

.mobile-menu-logout {
  color: var(--danger);
}

.mobile-menu-logout i {
  color: var(--danger);
}

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


/* --- END IMPORT: css/modules/95-analytics.css --- */
