/* AI NEURO admin skin: RuangAdmin layout + product-specific components. */
:root {
  --admin-indigo: #6777ef;
  --admin-indigo-dark: #3f51b5;
  --admin-ink: #3d405b;
  --admin-muted: #858796;
  --admin-line: #e3e6f0;
  --admin-surface: #ffffff;
  --admin-bg: #f8f9fc;
  --admin-success: #1cc88a;
  --admin-warning: #f6c23e;
  --admin-danger: #e74a3b;
}

body.ruang-admin-shell {
  min-height: 100vh;
  padding-left: 0 !important;
  color: var(--admin-ink) !important;
  background: var(--admin-bg) !important;
  font-family: Nunito, "Segoe UI", sans-serif !important;
}

body.ruang-admin-shell #wrapper {
  min-height: 100vh;
}

body.ruang-admin-shell #content-wrapper {
  min-height: 100vh;
  background: var(--admin-bg);
}

body.ruang-admin-shell #content {
  min-width: 0;
}

body.ruang-admin-shell:not(.with-sidebar) #sidebarToggleTop {
  display: none;
}

body.ruang-admin-shell .section-nav,
body.ruang-admin-shell .nav-overlay,
body.ruang-admin-shell .nav-burger {
  display: none !important;
}

body.ruang-admin-shell .sidebar {
  position: sticky;
  top: 0;
  z-index: 1020;
  flex: 0 0 14rem;
  width: 14rem !important;
  min-height: 100vh;
  align-self: flex-start;
}

body.ruang-admin-shell .sidebar-brand {
  min-height: 4.375rem;
  padding: 1.5rem 1rem;
  text-decoration: none;
}

body.ruang-admin-shell .sidebar-brand-text {
  color: #3d405b;
  font-weight: 800;
  letter-spacing: .02em;
}

body.ruang-admin-shell .admin-brand-mark {
  display: inline-flex;
  width: 2.15rem;
  height: 2.15rem;
  align-items: center;
  justify-content: center;
  border-radius: .7rem;
  color: #fff;
  background: linear-gradient(135deg, #6777ef 0%, #3f51b5 100%);
  font-weight: 900;
  font-size: .78rem;
  box-shadow: 0 .35rem .8rem rgba(63, 81, 181, .22);
}

body.ruang-admin-shell .sidebar .sidebar-heading {
  color: #b7b9cc;
  font-size: .64rem;
  letter-spacing: .09em;
}

body.ruang-admin-shell .sidebar .nav-item .nav-link {
  min-height: 2.65rem;
  padding: .72rem 1rem;
  color: #858796;
  font-size: .86rem;
}

body.ruang-admin-shell .sidebar .nav-item .nav-link i {
  width: 1.25rem;
  margin-right: .35rem;
  color: #b7b9cc;
}

body.ruang-admin-shell .sidebar .nav-item.active .nav-link,
body.ruang-admin-shell .sidebar .nav-item .nav-link:hover {
  color: var(--admin-indigo-dark);
  font-weight: 800;
  background: rgba(103, 119, 239, .09);
}

body.ruang-admin-shell .sidebar .nav-item.active .nav-link i,
body.ruang-admin-shell .sidebar .nav-item .nav-link:hover i {
  color: var(--admin-indigo);
}

body.ruang-admin-shell .sidebar .sidebar-divider {
  margin: .7rem 1rem;
}

body.ruang-admin-shell .sidebar .version {
  color: #b7b9cc;
  font-size: .67rem;
  letter-spacing: .04em;
}

body.ruang-admin-shell .topbar {
  position: sticky;
  top: 0;
  z-index: 1010;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 1.5rem;
  min-height: 4.375rem;
  border-bottom: 1px solid var(--admin-line);
  background: #fff !important;
  box-shadow: 0 .15rem .75rem rgba(58, 59, 69, .08);
}

body.ruang-admin-shell .topbar-inner {
  width: 100%;
  min-height: 4.375rem;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body.ruang-admin-shell .topbar-context {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: .85rem;
  line-height: 1.15;
}

body.ruang-admin-shell .topbar-context small {
  color: #b7b9cc;
  font-size: .65rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.ruang-admin-shell .topbar-context strong {
  color: #5a5c69;
  font-size: .95rem;
}

body.ruang-admin-shell .topbar-search {
  display: flex;
  align-items: center;
  max-width: 15rem;
  margin-right: .65rem;
}

body.ruang-admin-shell .topbar-search .form-control {
  height: 2.25rem;
  border-right: 0;
  border-radius: .35rem 0 0 .35rem;
  font-size: .78rem;
}

body.ruang-admin-shell .topbar-search .btn {
  height: 2.25rem;
  border-radius: 0 .35rem .35rem 0;
}

body.ruang-admin-shell .topbar-admin {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding-left: .85rem;
  border-left: 1px solid var(--admin-line);
  color: #858796;
  font-size: .78rem;
}

body.ruang-admin-shell .topbar-admin .admin-chip {
  padding: 0;
  border: 0;
  background: transparent;
  color: #5a5c69;
  font-size: .78rem;
}

body.ruang-admin-shell .admin-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 1.5rem 1.5rem 2.5rem !important;
}

body.ruang-admin-shell .shell,
body.ruang-admin-shell .shell.has-sidebar {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

body.ruang-admin-shell .page-intro {
  margin-bottom: 1.25rem;
  padding: 0 0 .9rem;
  border: 0;
  border-bottom: 1px solid var(--admin-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.ruang-admin-shell .page-intro-head {
  margin-bottom: .7rem;
}

body.ruang-admin-shell .page-eyebrow {
  margin-bottom: .35rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--admin-indigo);
  background: transparent;
  font-size: .68rem;
  letter-spacing: .09em;
}

body.ruang-admin-shell .page-title {
  margin-bottom: .25rem;
  color: #3d405b;
  font-family: Nunito, "Segoe UI", sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0;
}

body.ruang-admin-shell .subtitle {
  margin: 0;
  color: #858796;
  font-size: .86rem;
}

body.ruang-admin-shell .subnav-link {
  min-height: 2rem;
  padding: .4rem .7rem;
  border-radius: .25rem;
  border-color: var(--admin-line);
  color: #858796;
  background: #fff;
  font-size: .75rem;
}

body.ruang-admin-shell .subnav-link.is-active {
  color: #fff;
  border-color: var(--admin-indigo);
  background: var(--admin-indigo);
  box-shadow: none;
}

body.ruang-admin-shell .work-card,
body.ruang-admin-shell .panel,
body.ruang-admin-shell .focus-card,
body.ruang-admin-shell .hero {
  border: 1px solid var(--admin-line) !important;
  border-radius: .35rem !important;
  background: var(--admin-surface) !important;
  box-shadow: 0 .15rem 1.25rem rgba(58, 59, 69, .08) !important;
  backdrop-filter: none !important;
}

body.ruang-admin-shell .work-card,
body.ruang-admin-shell .panel {
  padding: 1.25rem !important;
}

body.ruang-admin-shell .focus-card {
  min-height: 10rem;
  padding: 1.25rem !important;
}

body.ruang-admin-shell .focus-card.is-primary {
  border-left: .28rem solid var(--admin-indigo) !important;
}

body.ruang-admin-shell .focus-label,
body.ruang-admin-shell .metric-kicker {
  color: #858796 !important;
  font-size: .7rem !important;
  letter-spacing: .07em;
  text-transform: uppercase;
}

body.ruang-admin-shell .focus-value,
body.ruang-admin-shell .metric-value {
  color: #5a5c69 !important;
  font-family: Nunito, "Segoe UI", sans-serif !important;
  font-size: 1.75rem !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

body.ruang-admin-shell .focus-meta,
body.ruang-admin-shell .metric-meta,
body.ruang-admin-shell .help,
body.ruang-admin-shell .panel-subtitle {
  color: #858796 !important;
  font-size: .76rem !important;
}

body.ruang-admin-shell .work-title h2,
body.ruang-admin-shell .work-card h2,
body.ruang-admin-shell .work-card h3,
body.ruang-admin-shell .panel h2,
body.ruang-admin-shell .panel h3 {
  color: #5a5c69;
  font-family: Nunito, "Segoe UI", sans-serif;
  font-weight: 800;
}

body.ruang-admin-shell .work-title small {
  color: #b7b9cc;
}

body.ruang-admin-shell .admin-metric-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
}

body.ruang-admin-shell .admin-metric-heading h3 {
  margin: 0;
  color: #858796;
  font-size: .7rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}

body.ruang-admin-shell .admin-metric-icon {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: .35rem;
  color: var(--admin-indigo);
  background: rgba(103, 119, 239, .1);
}

body.ruang-admin-shell .btn {
  border-radius: .25rem !important;
  font-size: .78rem;
  font-weight: 700;
}

body.ruang-admin-shell .btn-primary {
  border-color: var(--admin-indigo) !important;
  background-color: var(--admin-indigo) !important;
}

body.ruang-admin-shell .btn-primary:hover {
  border-color: var(--admin-indigo-dark) !important;
  background-color: var(--admin-indigo-dark) !important;
}

body.ruang-admin-shell .btn-secondary,
body.ruang-admin-shell .btn-ghost {
  border-color: var(--admin-line) !important;
  color: #6e707e !important;
  background: #fff !important;
}

body.ruang-admin-shell .btn-secondary:hover,
body.ruang-admin-shell .btn-ghost:hover {
  border-color: #cfd2dc !important;
  background: #f8f9fc !important;
}

body.ruang-admin-shell .input,
body.ruang-admin-shell .select,
body.ruang-admin-shell .field input,
body.ruang-admin-shell .field select,
body.ruang-admin-shell .field textarea {
  min-height: 2.35rem;
  border: 1px solid #d1d3e2 !important;
  border-radius: .25rem !important;
  color: #6e707e;
  background: #fff;
  font-size: .8rem;
}

body.ruang-admin-shell .field textarea {
  min-height: 5rem;
}

body.ruang-admin-shell .input:focus,
body.ruang-admin-shell .select:focus,
body.ruang-admin-shell .field input:focus,
body.ruang-admin-shell .field select:focus,
body.ruang-admin-shell .field textarea:focus {
  border-color: #a7b0f5 !important;
  box-shadow: 0 0 0 .2rem rgba(103, 119, 239, .16) !important;
}

body.ruang-admin-shell .label {
  color: #5a5c69;
  font-size: .72rem;
  font-weight: 800;
}

body.ruang-admin-shell .table-wrap {
  overflow-x: auto;
  border: 1px solid var(--admin-line);
  border-radius: .25rem;
}

body.ruang-admin-shell .admin-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  background: #fff;
}

body.ruang-admin-shell .admin-table th,
body.ruang-admin-shell .admin-table td {
  border-bottom: 1px solid var(--admin-line);
  padding: .78rem .85rem;
  color: #6e707e;
  font-size: .77rem;
  vertical-align: middle;
}

body.ruang-admin-shell .admin-table th {
  color: #858796;
  background: #f8f9fc;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}

body.ruang-admin-shell .admin-table tbody tr:hover {
  background: #fbfbfe;
}

body.ruang-admin-shell .admin-table tbody tr:last-child td {
  border-bottom: 0;
}

body.ruang-admin-shell .link,
body.ruang-admin-shell a {
  color: var(--admin-indigo-dark);
}

body.ruang-admin-shell .link:hover,
body.ruang-admin-shell a:hover {
  color: #273593;
}

body.ruang-admin-shell .chip {
  border: 0 !important;
  border-radius: 999px !important;
  padding: .3rem .55rem !important;
  color: #6e707e !important;
  background: #eaecf4 !important;
  font-size: .68rem !important;
}

body.ruang-admin-shell .chip-accent,
body.ruang-admin-shell .chip-success,
body.ruang-admin-shell .chip-ok {
  color: #0f6849 !important;
  background: rgba(28, 200, 138, .14) !important;
}

body.ruang-admin-shell .chip-warning {
  color: #8a6d1d !important;
  background: rgba(246, 194, 62, .2) !important;
}

body.ruang-admin-shell .chip-danger {
  color: #a13a31 !important;
  background: rgba(231, 74, 59, .12) !important;
}

body.ruang-admin-shell .notice {
  border: 0 !important;
  border-left: .25rem solid var(--admin-indigo) !important;
  border-radius: .25rem !important;
  box-shadow: 0 .1rem .5rem rgba(58, 59, 69, .06);
}

body.ruang-admin-shell .notice-success { border-left-color: var(--admin-success) !important; }
body.ruang-admin-shell .notice-warning { border-left-color: var(--admin-warning) !important; }
body.ruang-admin-shell .notice-danger { border-left-color: var(--admin-danger) !important; }

body.ruang-admin-shell .drawer {
  overflow: hidden;
  border-color: var(--admin-line);
  border-radius: .35rem;
  background: #fff;
  box-shadow: 0 .15rem 1.25rem rgba(58, 59, 69, .06);
}

body.ruang-admin-shell .drawer summary {
  padding: 1rem 1.25rem;
  color: #5a5c69;
  background: #fff;
  font-size: .82rem;
}

body.ruang-admin-shell .drawer-body {
  border-top-color: var(--admin-line);
}

body.ruang-admin-shell .action-list,
body.ruang-admin-shell .insight-list {
  gap: .6rem;
}

body.ruang-admin-shell .action-list li,
body.ruang-admin-shell .insight-list li {
  border-color: var(--admin-line);
  border-radius: .25rem;
  background: #fff;
}

body.ruang-admin-shell .product-signal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin: 1rem 0;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--admin-line);
  border-left: .28rem solid var(--admin-indigo);
  border-radius: .35rem;
  background: #fff;
  box-shadow: 0 .15rem 1.25rem rgba(58, 59, 69, .06);
}

body.ruang-admin-shell .product-signal.is-warning {
  border-left-color: var(--admin-warning);
  background: #fffdf7;
}

body.ruang-admin-shell .product-signal.is-ok {
  border-left-color: var(--admin-success);
}

body.ruang-admin-shell .signal-kicker {
  margin-bottom: .25rem;
  color: var(--admin-muted);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.ruang-admin-shell .product-signal h2 {
  margin: 0 0 .25rem;
  color: #5a5c69;
  font-size: 1rem;
  font-weight: 800;
}

body.ruang-admin-shell .product-signal p {
  max-width: 52rem;
  margin: 0;
  color: var(--admin-muted);
  font-size: .8rem;
  line-height: 1.55;
}

body.ruang-admin-shell .human-error {
  display: grid;
  gap: .2rem;
  margin: .9rem 0 1rem;
  padding: .8rem 1rem;
  border-left: .25rem solid var(--admin-danger);
  border-radius: .25rem;
  background: #fff4f2;
}

body.ruang-admin-shell .human-error.is-neutral {
  border-left-color: var(--admin-success);
  background: #f3fcf8;
}

body.ruang-admin-shell .human-error strong {
  color: #8d3028;
  font-size: .82rem;
}

body.ruang-admin-shell .human-error.is-neutral strong {
  color: #0f6849;
}

body.ruang-admin-shell .human-error span {
  color: #6e707e;
  font-size: .76rem;
}

@media (max-width: 767.98px) {
  body.ruang-admin-shell .sidebar {
    position: fixed;
    left: -14rem;
    transition: left .2s ease;
  }

  body.ruang-admin-shell.sidebar-toggled .sidebar {
    left: 0;
  }

  body.ruang-admin-shell .topbar {
    padding: 0 .9rem;
  }

  body.ruang-admin-shell .topbar-search {
    display: none;
  }

  body.ruang-admin-shell .admin-content {
    padding: 1.1rem .9rem 2rem !important;
  }

  body.ruang-admin-shell .product-signal {
    align-items: flex-start;
    flex-direction: column;
  }
}
