:root {
  --brand: #e5680c;
  --brand-dark: #b84f08;
  --bg: #f6f4f1;
  --card: #ffffff;
  --text: #2b2320;
  --muted: #7a7168;
  --border: #e7e0d8;
  --ok: #2e7d32;
  --warn: #b8860b;
  --danger: #c62828;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.login-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 32px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.login-card img.logo {
  max-width: 220px;
  margin-bottom: 24px;
}

.login-card h1 {
  font-size: 18px;
  margin: 0 0 24px;
  color: var(--muted);
  font-weight: 500;
}

input, select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 14px;
}

button {
  cursor: pointer;
  border: none;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 600;
}

button:hover { background: var(--brand-dark); }

button.secondary {
  background: #fff;
  color: var(--brand);
  border: 1px solid var(--brand);
}

.error {
  color: var(--danger);
  font-size: 13px;
  min-height: 18px;
  margin-bottom: 8px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.topbar img.logo { height: 36px; }

.topbar .who { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }

.layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: calc(100vh - 61px);
}

.sidebar {
  border-right: 1px solid var(--border);
  padding: 16px;
  overflow-y: auto;
}

.sidebar input[type="search"] { margin-bottom: 12px; }

.store-item {
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 4px;
  font-size: 14px;
}

.store-item:hover { background: var(--bg); }
.store-item.active { background: #fdece0; color: var(--brand-dark); font-weight: 600; }
.store-item small { display: block; color: var(--muted); font-weight: 400; }

.main { padding: 24px; overflow-y: auto; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.badge.programada { background: #fff4e0; color: var(--warn); }
.badge.realizada { background: #e6f4ea; color: var(--ok); }
.badge.cancelada { background: #fde8e8; color: var(--danger); }

.evidence-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.evidence-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  font-size: 12px;
  width: 130px;
  text-align: center;
}
.evidence-item img { width: 100%; height: 90px; object-fit: cover; border-radius: 6px; margin-bottom: 6px; }
.evidence-item a { color: var(--brand); text-decoration: none; font-weight: 600; }

.row-actions button { margin-right: 6px; padding: 6px 10px; font-size: 12px; }

.empty { color: var(--muted); font-size: 14px; padding: 20px 0; text-align: center; }

.admin-panel { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--border); }
.admin-panel h3 { font-size: 13px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-form input, .inline-form select { width: auto; flex: 1; min-width: 120px; margin-bottom: 0; }
