:root {
  --sidebar: #1e293b;
  --bg: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(15, 23, 42, .08), 0 2px 10px rgba(15, 23, 42, .04);
  --radius: 8px;
  --border: rgba(15, 23, 42, .08);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

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

.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: #0b1220;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  z-index: 50;
}

.app-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.app-badge {
  color: #fff;
  font-weight: 700;
  letter-spacing: .2px;
}

.app-header__right {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
}

.app-user__name {
  font-weight: 600;
}

.app-user__role {
  font-size: 12px;
  color: rgba(255, 255, 255, .7);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .2);
  color: #fff;
}

.btn-primary {
  background: #2563eb;
  color: #fff;
}

.btn-danger {
  background: #dc2626;
  color: #fff;
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.app-sidebar {
  position: fixed;
  top: 64px;
  left: 0;
  bottom: 0;
  width: 240px;
  background: var(--sidebar);
  color: #fff;
  z-index: 40;
  overflow: auto;
  padding: 14px 12px;
}

.app-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.app-sidebar__logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.app-sidebar__title {
  font-weight: 800;
}

.app-sidebar__nav,
.app-sidebar__section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app-sidebar__section {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.app-sidebar__section-title {
  font-size: 12px;
  color: rgba(255, 255, 255, .7);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.app-sidebar__link {
  color: rgba(255, 255, 255, .88);
  text-decoration: none;
  padding: 10px 10px;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid transparent;
}

.app-sidebar__link:hover {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .12);
}

.content {
  margin-top: 64px;
  margin-left: 240px;
  padding: 22px;
}

.content--no-chrome {
  margin-top: 0;
  margin-left: 0;
  padding: 22px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card__body {
  padding: 18px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.kpi {
  padding: 16px;
}

.kpi__label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.kpi__value {
  font-size: 26px;
  margin-top: 6px;
  font-weight: 800;
}

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

.table th,
.table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
}

.table th {
  text-align: left;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.table td {
  vertical-align: middle;
}

.alert {
  border-radius: var(--radius);
  padding: 12px 14px;
  border: 1px solid var(--border);
  margin-bottom: 14px;
}

.alert-danger {
  background: #fee2e2;
  color: #991b1b;
  border-color: rgba(153, 27, 27, .25);
}

.alert-success {
  background: #dcfce7;
  color: #166534;
  border-color: rgba(22, 101, 52, .25);
}

.alert-warning {
  background: #fef3c7;
  color: #92400e;
  border-color: rgba(146, 64, 14, .25);
}

.text-muted {
  color: var(--muted);
}

.form-label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.input,
select,
input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  outline: none;
}

.input:focus {
  border-color: rgba(37, 99, 235, .5);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.tag {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  border: 1px solid var(--border);
}

.tag-success {
  background: #dcfce7;
  color: #166534;
  border-color: rgba(22, 101, 52, .25);
}

.tag-secondary {
  background: #e2e8f0;
  color: #334155;
  border-color: rgba(51, 65, 85, .18);
}

@media (max-width: 1100px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}