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

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

:root {
  --sidebar-bg: #1a2e4a;
  --primary: #e87b2d;
  --primary-hover: #d06b1e;
  --bg: #f4f6f9;
  --text: #2c3e50;
  --green: #27ae60;
  --yellow: #f39c12;
  --red: #e74c3c;
  --white: #ffffff;
  --border: #dee2e6;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --sidebar-w: 220px;
}

body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); font-size: 14px; }

/* ── Sidebar ──────────────────────────────────────────────────────────────── */
.sidebar {
  position: fixed; top: 0; left: 0;
  width: var(--sidebar-w); height: 100vh;
  background: var(--sidebar-bg);
  display: flex; flex-direction: column;
  z-index: 100; overflow-y: auto;
}
.sidebar-logo { padding: 24px 20px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.logo-text { color: var(--white); font-size: 18px; font-weight: 700; line-height: 1.2; }
.logo-sub { color: rgba(255,255,255,0.6); font-size: 11px; font-weight: 400; margin-top: 2px; }
.sidebar-nav { padding: 16px 0; flex: 1; }
.nav-section { padding: 8px 20px 4px; color: rgba(255,255,255,0.4); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; color: rgba(255,255,255,0.75);
  text-decoration: none; font-size: 13px; font-weight: 500;
  transition: all 0.15s; cursor: pointer;
  border: none; background: none; width: 100%; text-align: left;
}
.nav-item:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.nav-item.active { background: var(--primary); color: var(--white); }
.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-subitem { padding-left: 36px; font-size: 12px; opacity: 0.9; }

/* ── Layout ───────────────────────────────────────────────────────────────── */
.main-content { margin-left: var(--sidebar-w); padding: 24px; min-height: 100vh; }
.page-header { margin-bottom: 24px; }
.page-title { font-size: 22px; font-weight: 700; color: var(--text); }
.breadcrumb { font-size: 13px; color: #6c757d; margin-bottom: 8px; }
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ── KPIs ─────────────────────────────────────────────────────────────────── */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.kpi-card { background: var(--white); border-radius: 10px; padding: 20px; box-shadow: var(--shadow); }
.kpi-label { font-size: 12px; font-weight: 500; color: #6c757d; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.kpi-value { font-size: 24px; font-weight: 700; color: var(--text); line-height: 1; }
.kpi-value.primary { color: var(--primary); }
.kpi-value.green { color: var(--green); }
.kpi-value.red { color: var(--red); }

/* ── Cards ────────────────────────────────────────────────────────────────── */
.card { background: var(--white); border-radius: 10px; box-shadow: var(--shadow); margin-bottom: 20px; }
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-title { font-size: 15px; font-weight: 600; }
.card-body { padding: 20px; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 6px; border: none; font-size: 13px; font-weight: 500; font-family: inherit; cursor: pointer; transition: all 0.15s; text-decoration: none; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: #6c757d; color: var(--white); }
.btn-secondary:hover { background: #5a6268; }
.btn-danger { background: var(--red); color: var(--white); }
.btn-danger:hover { background: #c0392b; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { background: var(--bg); }

/* ── Tables ───────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th { background: #f8f9fa; padding: 10px 12px; text-align: left; font-weight: 600; color: #495057; border-bottom: 2px solid var(--border); white-space: nowrap; }
tbody td { padding: 10px 12px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
tbody tr:hover { background: #fafafa; }
tbody tr { cursor: pointer; }
tbody tr.no-click { cursor: default; }

/* ── Badges ───────────────────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }
.badge-planificacion { background: #e3f2fd; color: #1565c0; }
.badge-ejecucion { background: #e8f5e9; color: #2e7d32; }
.badge-terminada { background: #f3e5f5; color: #6a1b9a; }
.badge-pausada { background: #fff3e0; color: #e65100; }
.badge-sin_iniciar { background: #f5f5f5; color: #616161; }
.badge-en_ejecucion { background: #e8f5e9; color: #2e7d32; }
.badge-completada { background: #e3f2fd; color: #1565c0; }
.badge-borrador { background: #f5f5f5; color: #616161; }
.badge-enviada { background: #e3f2fd; color: #1565c0; }
.badge-aceptada { background: #e8f5e9; color: #2e7d32; }
.badge-rechazada { background: #fdecea; color: #c0392b; }
.badge-vencida { background: #fff3e0; color: #e65100; }

/* ── Progress Bar ─────────────────────────────────────────────────────────── */
.progress-bar-wrap { background: #e9ecef; border-radius: 10px; overflow: hidden; height: 8px; min-width: 80px; }
.progress-bar-fill { height: 100%; border-radius: 10px; transition: width 0.3s ease; }
.progress-bar-fill.green { background: var(--green); }
.progress-bar-fill.yellow { background: var(--yellow); }
.progress-bar-fill.red { background: var(--red); }
.progress-bar-fill.blue { background: #3498db; }
.progress-bar-fill.orange { background: var(--primary); }
.progress-bar-fill.gray { background: #adb5bd; }
.progress-label { display: flex; align-items: center; gap: 8px; font-size: 12px; }

/* ── Forms ────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--text); }
.form-control { width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; font-family: inherit; color: var(--text); background: var(--white); transition: border-color 0.15s; outline: none; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(232,123,45,0.15); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* ── Modals ───────────────────────────────────────────────────────────────── */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal { background: var(--white); border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.2); width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; }
.modal-lg { max-width: 780px; }
.modal-header { padding: 20px 24px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-size: 16px; font-weight: 600; }
.modal-close { background: none; border: none; font-size: 22px; cursor: pointer; color: #6c757d; line-height: 1; padding: 0 4px; }
.modal-body { padding: 20px 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

/* ── Drag & Drop ──────────────────────────────────────────────────────────── */
.drop-zone { border: 2px dashed var(--border); border-radius: 8px; padding: 32px; text-align: center; cursor: pointer; transition: all 0.2s; color: #6c757d; }
.drop-zone:hover, .drop-zone.drag-over { border-color: var(--primary); background: rgba(232,123,45,0.04); color: var(--primary); }
.drop-zone input { display: none; }

/* ── Toolbar ──────────────────────────────────────────────────────────────── */
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.search-input { padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; font-family: inherit; outline: none; width: 240px; }
.search-input:focus { border-color: var(--primary); }

/* ── Login ────────────────────────────────────────────────────────────────── */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); }
.login-card { background: var(--white); border-radius: 14px; box-shadow: 0 8px 40px rgba(0,0,0,0.12); padding: 48px 40px; width: 100%; max-width: 400px; }
.login-logo { text-align: center; margin-bottom: 32px; }
.login-logo-badge { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; background: var(--sidebar-bg); border-radius: 16px; margin-bottom: 12px; }
.login-logo-badge span { color: var(--white); font-size: 20px; font-weight: 800; }
.login-title { font-size: 22px; font-weight: 700; color: var(--text); text-align: center; }
.login-subtitle { font-size: 13px; color: #6c757d; text-align: center; margin-top: 4px; }
.error-msg { background: #fdecea; color: var(--red); padding: 10px 14px; border-radius: 6px; font-size: 13px; margin-bottom: 16px; display: none; }

/* ── Deviation ────────────────────────────────────────────────────────────── */
.desv-ok { color: var(--green); font-weight: 600; }
.desv-warn { color: var(--yellow); font-weight: 600; }
.desv-danger { color: var(--red); font-weight: 600; }
.actions-cell { white-space: nowrap; }
.actions-cell button { margin-right: 4px; }

/* ── Dual progress ────────────────────────────────────────────────────────── */
.dual-progress { margin-bottom: 20px; }
.dual-progress-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.dual-progress-label { width: 140px; font-size: 12px; font-weight: 500; color: #6c757d; flex-shrink: 0; }
.dual-progress-bar { flex: 1; }

/* ── CSV info ─────────────────────────────────────────────────────────────── */
.csv-info { background: #f8f9fa; border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; font-size: 12px; color: #495057; }
.csv-info code { background: #e9ecef; padding: 2px 6px; border-radius: 4px; font-family: monospace; font-size: 11px; }

/* ── Tipo Trabajo Badges ──────────────────────────────────────────────────── */
.badge-construccion { background: #e3f2fd; color: #1565c0; }
.badge-suministro_aridos { background: #fff8e1; color: #e65100; }
.badge-arriendo_maquinarias { background: #f3e5f5; color: #6a1b9a; }
.neto-note { font-size: 11px; color: #6c757d; background: #f8f9fa; padding: 5px 10px; border-radius: 4px; margin-bottom: 12px; }

/* ── Utilidad Panel ───────────────────────────────────────────────────────── */
.utilidad-warning-banner { background: #fff8e1; border: 1px solid #f9a825; color: #e65100; border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; font-size: 13px; font-weight: 500; }
.utilidad-danger-banner { background: #fdecea; border: 1px solid var(--red); color: #c0392b; border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; font-size: 13px; font-weight: 500; }
.utilidad-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.utilidad-kpi-card { background: #f8f9fa; border-radius: 8px; padding: 14px 16px; border-left: 4px solid var(--border); }
.utilidad-kpi-card.blue { border-left-color: #1a2e4a; }
.utilidad-kpi-card.green { border-left-color: var(--green); }
.utilidad-kpi-card.red { border-left-color: var(--red); }
.utilidad-kpi-card.orange { border-left-color: var(--primary); }
.utilidad-kpi-label { font-size: 10px; font-weight: 600; color: #6c757d; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.utilidad-kpi-value { font-size: 18px; font-weight: 700; line-height: 1.2; word-break: break-all; }
.utilidad-kpi-sub { font-size: 11px; color: #6c757d; margin-top: 4px; }
.utilidad-bar-wrap { background: #e9ecef; border-radius: 6px; overflow: hidden; height: 26px; display: flex; margin-bottom: 8px; }
.utilidad-bar-segment { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: white; white-space: nowrap; overflow: hidden; transition: width 0.4s ease; }
.utilidad-bar-labels { display: flex; gap: 20px; flex-wrap: wrap; font-size: 11px; }
.utilidad-bar-legend { display: flex; align-items: center; gap: 5px; }
.utilidad-bar-legend-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }

/* ── Notas y Condiciones ──────────────────────────────────────────────────── */
.nota-block { background: #f8f9fa; border-radius: 8px; padding: 16px; margin-bottom: 12px; border: 1px solid #e9ecef; }
.nota-block.pago { background: #f0f7f4; border-left: 4px solid #27ae60; }
.nota-block-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.nota-block-actions { display: flex; gap: 4px; }
.nota-content { white-space: pre-wrap; font-size: 13px; color: #495057; line-height: 1.7; margin: 0; }
.nota-badge-condiciones_venta { background: #e3f2fd; color: #1565c0; padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.nota-badge-responsabilidad_mandante { background: #fff8e1; color: #e65100; padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.nota-badge-informacion_pago { background: #e8f5e9; color: #2e7d32; padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.nota-badge-observaciones { background: #f5f5f5; color: #616161; padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.nota-badge-otro { background: #fafafa; color: #9e9e9e; padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; border: 1px solid #e0e0e0; }

/* ── Curva S / Alertas ────────────────────────────────────────────────────── */
.ev-kpi-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin:16px 0 0; }
.ev-kpi-card { background:#f8f9fa; border-radius:8px; padding:14px 16px; border-left:4px solid #dee2e6; }
.ev-kpi-card.green { border-left-color:var(--green); }
.ev-kpi-card.yellow { border-left-color:var(--yellow); }
.ev-kpi-card.red { border-left-color:var(--red); }
.ev-kpi-card.blue { border-left-color:#1a2e4a; }
.ev-kpi-label { font-size:10px; font-weight:600; color:#6c757d; text-transform:uppercase; letter-spacing:0.5px; margin-bottom:4px; }
.ev-kpi-value { font-size:22px; font-weight:700; line-height:1.2; }
.ev-kpi-sub { font-size:11px; color:#6c757d; margin-top:3px; }
.alerta-item { display:flex; align-items:flex-start; gap:10px; padding:10px 14px; border-radius:6px; margin-bottom:8px; border-left:4px solid #dee2e6; background:#f8f9fa; }
.alerta-item.alerta-critico { border-left-color:var(--red); background:#fff5f5; }
.alerta-item.alerta-atraso { border-left-color:var(--yellow); background:#fffdf0; }
.alerta-item.alerta-sobrecosto { border-left-color:#e87b2d; background:#fff8f0; }
.alerta-item.alerta-sin_iniciar { border-left-color:#6c757d; background:#f8f9fa; }
.alerta-icon { font-size:16px; flex-shrink:0; margin-top:1px; }
.alerta-msg { font-size:12px; color:#6c757d; margin-top:2px; }
.alerta-ok { color:var(--green); font-weight:600; padding:16px; text-align:center; }
.tiempo-badge { display:inline-block; padding:2px 8px; border-radius:10px; font-size:11px; font-weight:600; }
.tiempo-en-plazo { background:#e8f5e9; color:#2e7d32; }
.tiempo-en-riesgo { background:#fff8e1; color:#e65100; }
.tiempo-atrasada { background:#ffebee; color:#c62828; }
.tiempo-sin-programa { background:#f5f5f5; color:#757575; }

/* ── Estados de Pago ──────────────────────────────────────────────────────── */
.ep-badge-borrador { background:#f5f5f5; color:#616161; padding:2px 8px; border-radius:10px; font-size:11px; font-weight:600; }
.ep-badge-enviado { background:#e3f2fd; color:#1565c0; padding:2px 8px; border-radius:10px; font-size:11px; font-weight:600; }
.ep-badge-aprobado { background:#e8f5e9; color:#2e7d32; padding:2px 8px; border-radius:10px; font-size:11px; font-weight:600; }
.ep-badge-facturado { background:#1b5e20; color:white; padding:2px 8px; border-radius:10px; font-size:11px; font-weight:600; }
.ep-badge-pagado { background:#27ae60; color:white; padding:2px 8px; border-radius:10px; font-size:11px; font-weight:600; }
.ep-badge-rechazado { background:#ffebee; color:#c62828; padding:2px 8px; border-radius:10px; font-size:11px; font-weight:600; }
.ep-totales-grid { display:flex; flex-direction:column; gap:6px; max-width:340px; margin:16px 0 0 auto; }
.ep-totales-row { display:flex; justify-content:space-between; padding:6px 10px; background:#f8f9fa; border-radius:4px; font-size:13px; }
.ep-totales-row.highlight { background:#1a2e4a; color:white; font-weight:700; font-size:15px; border-radius:6px; }
.ep-totales-row.highlight span:last-child { color:#e87b2d; }

/* ── Galería ──────────────────────────────────────────────────────────────── */
.galeria-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:12px; }
.galeria-item { border-radius:8px; overflow:hidden; border:1px solid #dee2e6; cursor:pointer; background:#f8f9fa; transition:box-shadow 0.15s; }
.galeria-item:hover { box-shadow:0 4px 12px rgba(0,0,0,0.15); }
.galeria-item img { width:100%; height:120px; object-fit:cover; display:block; }
.galeria-item-footer { padding:6px 8px 8px; }
.lightbox { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.88); z-index:2000; align-items:center; justify-content:center; flex-direction:column; }
.lightbox.open { display:flex; }
.lightbox img { max-width:90vw; max-height:80vh; border-radius:8px; object-fit:contain; }
.lightbox-close { position:absolute; top:16px; right:24px; background:none; border:none; color:white; font-size:36px; cursor:pointer; line-height:1; }
.lightbox-caption { color:#dee2e6; margin-top:12px; font-size:13px; text-align:center; max-width:600px; }

/* ── Gastos Pendientes ────────────────────────────────────────────────────── */
.gasto-badge-pendiente { background:#fff8e1; color:#e65100; padding:2px 8px; border-radius:10px; font-size:11px; font-weight:600; }
.gasto-badge-asignado { background:#e8f5e9; color:#2e7d32; padding:2px 8px; border-radius:10px; font-size:11px; font-weight:600; }
.gasto-badge-descartado { background:#f5f5f5; color:#9e9e9e; padding:2px 8px; border-radius:10px; font-size:11px; font-weight:600; }

/* ── Mobile Header ────────────────────────────────────────────────────────── */
.mobile-header {
  display: none;
  position: fixed; top: 0; left: 0; right: 0;
  height: 50px;
  background: var(--sidebar-bg);
  z-index: 200;
  align-items: center;
  padding: 0 12px;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.hamburger-btn {
  background: none; border: none;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--white); flex-shrink: 0; padding: 0;
  border-radius: 6px; -webkit-tap-highlight-color: transparent;
}
.hamburger-btn:active { background: rgba(255,255,255,0.12); }
.mobile-header-title {
  color: var(--white); font-size: 14px; font-weight: 600;
  flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ── Sidebar Overlay ──────────────────────────────────────────────────────── */
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); z-index: 99;
}
.sidebar-overlay.open { display: block; }

/* ── Responsive ≤768px ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .mobile-header { display: flex; }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 150;
  }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; padding: 16px; padding-top: 66px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
}

/* ── Portrait ≤480px ─────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  /* Tipografía */
  body { font-size: 13px; }
  h1 { font-size: 18px; }
  h2 { font-size: 15px; }
  .page-title { font-size: 17px; }
  .btn { font-size: 12px; padding: 7px 10px; }
  .btn-sm { font-size: 11px; padding: 4px 8px; }
  .badge { font-size: 10px; padding: 2px 6px; }

  /* Layout */
  .main-content { padding: 10px; padding-top: 62px; }
  .card-header { padding: 10px 12px; }
  .card-body { padding: 10px 12px; }
  .card-title { font-size: 13px; }
  .page-header { margin-bottom: 14px; }
  .toolbar { gap: 6px; }
  .search-input { width: 100%; font-size: 13px; }

  /* KPIs — 2 columnas */
  .kpi-grid { grid-template-columns: repeat(2,1fr); gap: 8px; margin-bottom: 12px; }
  .kpi-card { padding: 10px 10px; }
  .kpi-label { font-size: 10px; }
  .kpi-value { font-size: 18px; }
  .utilidad-kpi-grid { grid-template-columns: repeat(2,1fr); gap: 8px; }
  .ev-kpi-grid { grid-template-columns: repeat(2,1fr); gap: 8px; }
  .utilidad-kpi-value { font-size: 15px; }

  /* Modales — pantalla completa desde abajo */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal, .modal-lg {
    max-width: 100%; width: 100%;
    max-height: 92vh;
    border-radius: 16px 16px 0 0;
    margin: 0;
  }
  .modal-header { padding: 14px 16px 10px; }
  .modal-body { padding: 12px 16px; max-height: calc(92vh - 115px); overflow-y: auto; }
  .modal-footer { padding: 10px 16px; }
  .modal-title { font-size: 15px; }

  /* Progress bars */
  .progress-bar-wrap { min-width: 54px; }
  .dual-progress-label { width: 90px; font-size: 11px; }

  /* EP Totales */
  .ep-totales-grid { max-width: 100%; }

  /* Tabla OBRAS — solo Nombre, Estado, Avance, Acciones */
  #obras-table th:nth-child(1), #obras-table td:nth-child(1),     /* Código */
  #obras-table th:nth-child(4), #obras-table td:nth-child(4),     /* Tipo */
  #obras-table th:nth-child(5), #obras-table td:nth-child(5),     /* Presupuesto */
  #obras-table th:nth-child(6), #obras-table td:nth-child(6),     /* Gasto Real */
  #obras-table th:nth-child(7), #obras-table td:nth-child(7),     /* % Financiero */
  #obras-table th:nth-child(9), #obras-table td:nth-child(9),     /* Cotización */
  #obras-table th:nth-child(10), #obras-table td:nth-child(10),   /* Último EP */
  #obras-table th:nth-child(11), #obras-table td:nth-child(11),   /* Última Factura */
  #obras-table th:nth-child(12), #obras-table td:nth-child(12)    /* Días sin Cobrar */
  { display: none; }

  /* Tabla FACTURAS — solo N°, Fecha, Cliente, Monto Neto, Estado, Acciones */
  #facturas-table th:nth-child(4), #facturas-table td:nth-child(4),   /* Obra */
  #facturas-table th:nth-child(5), #facturas-table td:nth-child(5),   /* EP */
  #facturas-table th:nth-child(7), #facturas-table td:nth-child(7),   /* IVA */
  #facturas-table th:nth-child(8), #facturas-table td:nth-child(8),   /* Monto Total */
  #facturas-table th:nth-child(9), #facturas-table td:nth-child(9),   /* Líquido */
  #facturas-table th:nth-child(10), #facturas-table td:nth-child(10), /* Método */
  #facturas-table th:nth-child(11), #facturas-table td:nth-child(11)  /* Fecha Pago */
  { display: none; }

  /* Tabla COTIZACIONES — solo N°, Cliente, Monto, Estado, Acciones */
  #cotizaciones-table th:nth-child(3), #cotizaciones-table td:nth-child(3), /* Obra */
  #cotizaciones-table th:nth-child(5), #cotizaciones-table td:nth-child(5), /* Válida Hasta */
  #cotizaciones-table th:nth-child(6), #cotizaciones-table td:nth-child(6)  /* Tipo Trabajo */
  { display: none; }

  /* Tabla MAQUINARIA — solo Código, Nombre, Estado, Acciones */
  #maquinaria-table th:nth-child(3), #maquinaria-table td:nth-child(3),    /* Prop/Arr */
  #maquinaria-table th:nth-child(4), #maquinaria-table td:nth-child(4),    /* Horas Tot */
  #maquinaria-table th:nth-child(5), #maquinaria-table td:nth-child(5),    /* Consumo Real */
  #maquinaria-table th:nth-child(6), #maquinaria-table td:nth-child(6),    /* Est L/h */
  #maquinaria-table th:nth-child(7), #maquinaria-table td:nth-child(7),    /* Desv% */
  #maquinaria-table th:nth-child(8), #maquinaria-table td:nth-child(8)     /* Próx. Mant */
  { display: none; }

  /* Galería — 2 columnas */
  .galeria-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .galeria-item img { height: 90px; }

  /* Login */
  .login-card { padding: 28px 20px; }
}

/* ── Autocomplete dropdown ───────────────────────────────────────────────── */
.autocomplete-dropdown { font-family: 'Inter', sans-serif; }
