body {
  font-family: Arial, sans-serif;
  background: #f4f6fb;
  color: #18202a;
  margin: 0;
}
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 250px;
  background: #ffffff;
  border-right: 1px solid #d7dfeb;
  padding: 20px 16px;
  box-sizing: border-box;
}
.sidebar-brand { font-size: 28px; font-weight: 700; margin-bottom: 24px; }
.sidebar-section-title {
  font-size: 12px; color: #6b7280; text-transform: uppercase; margin: 20px 0 10px; font-weight: 700;
}
.sidebar-nav a {
  display: block; padding: 10px 12px; margin-bottom: 6px; border-radius: 8px; text-decoration: none; color: #18202a; background: transparent;
}
.sidebar-nav a:hover, .sidebar-nav a.active { background: #e9eef8; }
.main-area { flex: 1; min-width: 0; }
.topbar { background: #fff; border-bottom: 1px solid #d7dfeb; }
.topbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 20px; display: flex; justify-content: space-between; align-items: center;
}
.topbar-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 30px 20px; }
.card {
  background: #ffffff; border: 1px solid #d7dfeb; border-radius: 14px; padding: 24px; box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}
.login-wrap { max-width: 480px; margin: 60px auto; }
h1, h2, h3 { margin-top: 0; margin-bottom: 20px; }
label { display: block; margin: 14px 0 6px; font-weight: 700; }
input, select, textarea {
  width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #bcc7d6; border-radius: 8px; background: #fff;
}
button, .button {
  display: inline-block; margin-top: 18px; padding: 10px 14px; border: 0; border-radius: 8px; background: #245dff; color: #fff; text-decoration: none; font-weight: 700; cursor: pointer;
}
.button.secondary { background: #6b7280; }
.button.small { margin-top: 0; padding: 6px 10px; font-size: 13px; }
.muted { color: #5e6b7c; }
.alert {
  border: 1px solid #f3c8c8; background: #fff1f1; color: #8b1e1e; border-radius: 8px; padding: 12px 14px; margin-bottom: 16px; white-space: pre-wrap; word-break: break-word;
}
.ok { border: 1px solid #b9e0c5; background: #ecfff1; color: #1f6b33; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-1 { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (max-width: 980px) {
  .app-shell { display: block; }
  .sidebar { width: auto; border-right: 0; border-bottom: 1px solid #d7dfeb; }
}
@media (max-width: 800px) { .grid { grid-template-columns: 1fr; } }
.data-list { margin: 0; padding: 0; list-style: none; }
.data-list li { padding: 8px 0; border-bottom: 1px solid #eef2f7; }
.badge {
  display: inline-block; padding: 4px 8px; border-radius: 999px; background: #eef4ff; color: #1d4ed8; font-size: 12px; font-weight: 700;
}
.badge.admin { background: #fff3cd; color: #8a5b00; }
table { width: 100%; border-collapse: collapse; }
th, td {
  text-align: left; padding: 10px 12px; border-bottom: 1px solid #eef2f7; vertical-align: top;
}
th { background: #f8fafc; }
.header-dropdown { position: relative; }
.header-dropdown summary { list-style: none; cursor: pointer; font-weight: 700; }
.header-dropdown summary::-webkit-details-marker { display:none; }
.header-dropdown-menu {
  position: absolute; top: 28px; left: 0; min-width: 240px; background: #fff; border: 1px solid #d7dfeb; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.08); padding: 8px; z-index: 50;
}
.header-dropdown-menu a {
  display: block; padding: 8px 10px; text-decoration: none; color: #18202a; border-radius: 8px;
}
.header-dropdown-menu a:hover, .header-dropdown-menu a.active { background:#eef4ff; }
.row-actions { text-align: right; white-space: nowrap; }
.kebab { position: relative; display: inline-block; }
.kebab summary {
  list-style: none; cursor: pointer; padding: 4px 8px; border-radius: 8px; border: 1px solid #d7dfeb; background: #fff;
}
.kebab summary::-webkit-details-marker { display:none; }
.kebab-menu {
  position: absolute; right: 0; top: 30px; min-width: 180px; background: #fff; border: 1px solid #d7dfeb; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.08); padding: 8px; z-index: 50;
}
.kebab-menu a { display: block; padding: 8px 10px; text-decoration: none; color: #18202a; border-radius: 8px; }
.kebab-menu a:hover { background:#eef4ff; }


.menu-button {
  display: block;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.menu-button:hover {
  background: #f3f4f6;
}

.menu-button.danger {
  color: #b42318;
}
