* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, sans-serif; background: #f0f2f5; color: #333; }

.header {
  background: linear-gradient(135deg, #1a3c7d, #0f2b5e);
  color: white; padding: 15px 30px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.header h1 { font-size: 22px; font-weight: 600; }
.header .subtitle { font-size: 13px; opacity: 0.85; }
.header-actions { display: flex; gap: 10px; align-items: center; }
.header-actions button {
  background: rgba(255,255,255,0.2); color: white; border: 1px solid rgba(255,255,255,0.3);
  padding: 8px 16px; border-radius: 6px; cursor: pointer; font-size: 13px;
  transition: background 0.2s;
}
.header-actions button:hover { background: rgba(255,255,255,0.35); }

.tabs {
  display: flex; background: white; border-bottom: 2px solid #e0e0e0;
  padding: 0 30px;
}
.tab {
  padding: 14px 28px; cursor: pointer; font-weight: 500; font-size: 14px;
  border-bottom: 3px solid transparent; color: #666; transition: all 0.2s;
  user-select: none;
}
.tab:hover { color: #1a3c7d; }
.tab.active { color: #1a3c7d; border-bottom-color: #1a3c7d; }

.content { padding: 20px 30px; }

.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 5px; margin-bottom: 6px;
}
.stat-card {
  background: white; border-radius: 5px; padding: 5px 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
}
.stat-card .label { font-size: 9px; color: #888; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-card .value { font-size: 14px; font-weight: 700; color: #333; margin-top: 0; }
.stat-card .value.orange { color: #1a3c7d; }
.stat-card .value.green { color: #27ae60; }
.stat-card .value.blue { color: #2980b9; }

.toolbar {
  display: flex; gap: 12px; margin-bottom: 15px; flex-wrap: wrap; align-items: center;
}
.toolbar input, .toolbar select {
  padding: 8px 14px; border: 1px solid #ddd; border-radius: 6px;
  font-size: 13px; background: white;
}
.toolbar input { min-width: 250px; }
.btn {
  padding: 8px 18px; border: none; border-radius: 6px; cursor: pointer;
  font-size: 13px; font-weight: 500; transition: all 0.2s;
}
.btn-primary { background: #1a3c7d; color: white; }
.btn-primary:hover { background: #0f2b5e; }
.btn-success { background: #27ae60; color: white; }
.btn-success:hover { background: #219a52; }
.btn-danger { background: #e74c3c; color: white; }
.btn-danger:hover { background: #c0392b; }
.btn-outline { background: white; color: #666; border: 1px solid #ddd; }
.btn-outline:hover { background: #f8f8f8; }

table {
  width: 100%; border-collapse: collapse; background: white;
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
th {
  background: #f8f9fa; padding: 12px 14px; text-align: left;
  font-size: 12px; text-transform: uppercase; color: #666;
  letter-spacing: 0.5px; border-bottom: 2px solid #e0e0e0;
  position: sticky; top: 0;
}
td {
  padding: 12px 14px; border-bottom: 1px solid #f0f0f0;
  font-size: 13px; vertical-align: middle;
}
tr:hover td { background: #fef9f4; }

.badge {
  display: inline-block; padding: 4px 10px; border-radius: 12px;
  font-size: 11px; font-weight: 600; text-transform: uppercase;
}
.badge-orcamento { background: #ffeaa7; color: #856404; }
.badge-aprovado { background: #81ecec; color: #00695c; }
.badge-producao { background: #74b9ff; color: #1a5276; }
.badge-faturado { background: #a8e6cf; color: #1b5e20; }
.badge-cancelado { background: #fab1a0; color: #7b241c; }

.progress-bar-container {
  width: 100%; height: 22px; background: #e9ecef; border-radius: 11px;
  overflow: hidden; position: relative; min-width: 80px;
}
.progress-bar-fill {
  height: 100%; border-radius: 11px; transition: width 0.3s;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: white; min-width: 30px;
}
.progress-0 { background: #e9ecef; }
.progress-low { background: linear-gradient(90deg, #e74c3c, #1a3c7d); }
.progress-mid { background: linear-gradient(90deg, #1a3c7d, #f1c40f); }
.progress-high { background: linear-gradient(90deg, #27ae60, #2ecc71); }
.progress-done { background: linear-gradient(90deg, #2ecc71, #27ae60); }

.prod-cell { display: flex; align-items: center; gap: 6px; }
.prod-cell input[type=range] {
  width: 60px; accent-color: #1a3c7d; cursor: pointer;
}

