#erp-app {
  margin: 0;
  display: flex;
  flex-direction: column;
}

body {
  margin: 0;
  font-family: Inter, sans-serif;
  background: #0b1220;
  color: white;
  padding-top: 70px; /* 👈 ajusta según altura real navbar */
}

.layout {
  display: flex;
  height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: 240px;
  background: #111a2e;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar button {
  background: #1c2a45;
  border: none;
  color: white;
  padding: 10px;
  cursor: pointer;
  border-radius: 8px;
  text-align: left;
}

.sidebar button:hover {
  background: #2a3d66;
}

/* MAIN */
.main {
  flex: 1;
  padding: 20px;
  overflow: auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

/* PANELS */
.panel {
  background: #121c33;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
}

/* TABLES */
table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 10px;
  border-bottom: 1px solid #223;
}

th {
  background: #1b2742;
}

/* =========================
   SAAS DASHBOARD LAYOUT
========================= */

.app {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: 240px;
  background: #0a0f1c;
  border-right: 1px solid rgba(255,255,255,0.06);

  display: flex;
  flex-direction: column;
  padding: 16px;
}

.brand {
  font-weight: 600;
  margin-bottom: 20px;
  color: white;
}

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

.nav a {
  padding: 10px 12px;
  border-radius: 10px;
  color: #94a3b8;
  cursor: pointer;
}

.nav a:hover {
  background: rgba(255,255,255,0.06);
  color: white;
}

.nav a.active {
  background: #1d4ed8;
  color: white;
}

/* MAIN */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* TOPBAR */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);

  background: rgba(10,15,28,0.6);
  backdrop-filter: blur(10px);
}

.topbar input {
  width: 300px;
  padding: 8px 10px;

  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);

  background: #0f172a;
  color: white;
}

/* CONTENT */
.content {
  padding: 16px;
  display: grid;
  gap: 16px;
}

/* PROJECT ITEM */
.project {
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;

  cursor: pointer;
}

.project:hover {
  background: rgba(255,255,255,0.04);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.actions button {
  white-space: nowrap;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

header {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid #333;
}

#view-container {
  flex: 1;
  overflow: auto;
  padding: 16px;
}


.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  z-index: 1000;
  flex-shrink: 0;
}


.erp-header {
  margin-top: 20px;
  padding-top: 20px;
  flex-shrink: 0;
}
footer.footer {
  flex-shrink: 0;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid #333;
  font-size: 12px;
  opacity: 0.7;
}
.modal-backdrop {
  position: fixed;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(3px);
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #0f172a;
  padding: 20px;
  border-radius: 12px;
  width: 320px;
  color: white;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.modal input {
  width: 100%;
  margin: 5px 0;
  padding: 8px;
  border-radius: 6px;
}

:root {
  --bg: #0b1220;
  --panel: #111a2e;
  --card: #16213a;
  --text: #e6edf7;
  --muted: #93a4bf;
  --primary: #4f8cff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: ui-sans-serif, system-ui;
}

body {
  background: var(--bg);
  color: var(--text);
}

.app {
  display: flex;
  height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: 260px;
  background: var(--panel);
  padding: 20px;
  border-right: 1px solid rgba(255,255,255,0.06);
}

.logo {
  font-weight: 700;
  margin-bottom: 30px;
  font-size: 16px;
}

.sidebar nav a {
  display: block;
  padding: 10px 12px;
  margin-bottom: 6px;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
}

.sidebar nav a.active {
  background: rgba(79,140,255,0.15);
  color: var(--text);
}

/* MAIN */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(17,26,46,0.6);
  backdrop-filter: blur(10px);
}

.topbar h1 {
  font-size: 18px;
  font-weight: 600;
}

/* BUTTON */
.primary {
  background: var(--primary);
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  font-weight: 600;
}

.primary:hover {
  opacity: 0.9;
}

/* CONTENT */
.content {
  padding: 24px;
}

.section-title {
  font-size: 14px;
  font-weight: 600;
  margin-top: 10px;
  color: #7dd3fc;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 5px;
}

.factor-badge {
  font-size: 11px;
  opacity: 0.7;
  display: block;
}

.stage-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.stage-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 6px;
}

.stage-item input.stage {
  margin: 0;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.stage-text {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 13px;
}
