/* APX Console UI layer: supplied by nginx and intentionally independent of New API data. */
:root {
  --background: #edf7f6 !important;
  --foreground: #122322 !important;
  --card: #ffffff !important;
  --card-foreground: #122322 !important;
  --popover: #ffffff !important;
  --popover-foreground: #122322 !important;
  --primary: #0f9f91 !important;
  --primary-foreground: #ffffff !important;
  --secondary: #e6f4f1 !important;
  --secondary-foreground: #0d5f58 !important;
  --muted: #f3f8f7 !important;
  --muted-foreground: #647674 !important;
  --accent: #def3ee !important;
  --accent-foreground: #0b6258 !important;
  --border: #dbeae7 !important;
  --input: #d4e6e2 !important;
  --ring: #20a99b !important;
  --sidebar: #f8fcfb !important;
  --sidebar-foreground: #243634 !important;
  --sidebar-primary: #0f9f91 !important;
  --sidebar-primary-foreground: #ffffff !important;
  --sidebar-accent: #dff4ef !important;
  --sidebar-accent-foreground: #0b6258 !important;
  --sidebar-border: #dbeae7 !important;
  --sidebar-ring: #20a99b !important;
  --radius: 0.5rem !important;
}

html, body {
  background: #edf7f6 !important;
  color: #122322 !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: #edf7f6;
  background-image: linear-gradient(rgba(255,255,255,.58) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.58) 1px, transparent 1px);
  background-size: 32px 32px;
}

header.sticky {
  height: 56px !important;
  border-bottom: 1px solid #dbeae7 !important;
  background: rgba(248, 252, 251, .96) !important;
  box-shadow: 0 1px 0 rgba(20, 80, 72, .03);
  backdrop-filter: blur(12px);
}

header.sticky nav a {
  color: #5d706d !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

header.sticky nav a:hover {
  color: #087c70 !important;
}

[data-slot=sidebar-wrapper] {
  --sidebar-width: 14rem !important;
  background: transparent !important;
}

[data-slot=sidebar-container] {
  padding: 10px 8px 10px 10px !important;
}

[data-slot=sidebar-inner] {
  border: 1px solid #dbeae7 !important;
  border-radius: 8px !important;
  background: rgba(250, 254, 253, .98) !important;
  box-shadow: 0 10px 30px rgba(32, 103, 93, .07) !important;
}

[data-slot=sidebar-content] {
  padding: 8px 5px 12px !important;
}

[data-slot=sidebar-group] {
  padding: 5px !important;
}

[data-slot=sidebar-group-label] {
  height: 28px !important;
  padding: 0 10px !important;
  color: #7a8b88 !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
}

[data-slot=sidebar-menu] {
  gap: 2px !important;
}

[data-slot=sidebar-menu-button] {
  min-height: 34px !important;
  border-radius: 6px !important;
  padding: 7px 9px !important;
  color: #425552 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

[data-slot=sidebar-menu-button]:hover {
  background: #edf8f5 !important;
  color: #087c70 !important;
}

[data-slot=sidebar-menu-button].active,
[data-slot=sidebar-menu-button][data-active=true] {
  background: #dff4ef !important;
  color: #087c70 !important;
  box-shadow: inset 3px 0 0 #16a394 !important;
  font-weight: 700 !important;
}

[data-slot=sidebar-inset] {
  margin: 10px 10px 10px 0 !important;
  border: 1px solid #dbeae7 !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, .94) !important;
  box-shadow: 0 12px 32px rgba(29, 93, 84, .08) !important;
}

main [class*='rounded-xl'][class*='border'],
main [class*='rounded-2xl'][class*='border'] {
  border-color: #dbeae7 !important;
  border-radius: 8px !important;
  background-color: #ffffff !important;
  box-shadow: 0 2px 7px rgba(21, 86, 77, .035) !important;
}

main h1, main h2 {
  color: #16322f !important;
  font-weight: 750 !important;
  letter-spacing: 0 !important;
}

main h2 {
  font-size: 20px !important;
}

main h3 {
  color: #23423e !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

button.bg-primary,
a.bg-primary,
[data-slot=button].bg-primary {
  background: #0f9f91 !important;
  border-color: #0f9f91 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(15, 159, 145, .18) !important;
}

button.bg-primary:hover,
a.bg-primary:hover,
[data-slot=button].bg-primary:hover {
  background: #07877b !important;
  border-color: #07877b !important;
}

button, [role=button] {
  border-radius: 6px !important;
}

input, textarea, select, [role=combobox] {
  border-color: #d4e6e2 !important;
  border-radius: 6px !important;
  background: #ffffff !important;
}

input:focus, textarea:focus, [role=combobox]:focus {
  border-color: #20a99b !important;
  box-shadow: 0 0 0 3px rgba(32, 169, 155, .13) !important;
}

table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden !important;
  border: 1px solid #dbeae7 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
}

thead, th {
  background: #f4faf8 !important;
  color: #657a76 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .02em !important;
}

th, td {
  border-color: #e5f0ed !important;
  vertical-align: middle !important;
}

tbody tr:hover td {
  background: #f5fbf9 !important;
}

[data-slot=badge] {
  border-radius: 999px !important;
  font-weight: 650 !important;
}

[role=dialog], [data-slot=dialog-content] {
  border-color: #dbeae7 !important;
  border-radius: 8px !important;
  box-shadow: 0 24px 60px rgba(20, 75, 67, .18) !important;
}

@media (max-width: 767px) {
  body::before { background-size: 24px 24px; }
  [data-slot=sidebar-inset] { margin: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
  main [class*='rounded-xl'][class*='border'], main [class*='rounded-2xl'][class*='border'] { border-radius: 6px !important; }
}
