:root {
  --pg-bg: #050812;
  --pg-bg-alt: #0a1020;
  --pg-panel: rgba(12, 18, 34, 0.9);
  --pg-panel-border: rgba(120, 159, 255, 0.16);
  --pg-card: rgba(11, 17, 30, 0.92);
  --pg-card-soft: rgba(17, 24, 42, 0.9);
  --pg-text: #f4f8ff;
  --pg-text-soft: #9fafcc;
  --pg-accent: #4e8cff;
  --pg-accent-2: #35d1c4;
  --pg-danger: #ff7f96;
  --pg-warning: #f6bf58;
  --pg-success: #45d39c;
  --pg-shadow: 0 28px 64px rgba(0, 0, 0, 0.45);
  --pg-radius-xl: 32px;
  --pg-radius-lg: 24px;
  --pg-radius-md: 16px;
  --pg-radius-sm: 12px;
  --pg-input-border: rgba(124, 149, 201, 0.24);
  --pg-grid-gap: 28px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(61, 104, 255, 0.18), transparent 34%),
    radial-gradient(circle at right 18%, rgba(53, 209, 196, 0.12), transparent 24%),
    linear-gradient(180deg, #050812 0%, #080d18 48%, #05070d 100%);
  color: var(--pg-text);
}

.loader-wrapper {
  display: none !important;
}

body.patanegra-login,
body.patanegra-dashboard {
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.row {
  display: flex;
  flex-wrap: wrap;
}

.p-0 {
  padding: 0;
}

.w-100,
.btn-block {
  width: 100%;
}

.m-auto {
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

.text-end {
  text-align: right;
}

.text-muted {
  color: var(--pg-text-soft) !important;
}

.mt-3 {
  margin-top: 1rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-0 {
  margin-bottom: 0;
}

.py-4 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.d-none {
  display: none !important;
}

.d-flex {
  display: flex;
}

.flex-column {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.justify-content-between {
  justify-content: space-between;
}

.align-items-center,
.align-items-lg-center {
  align-items: center;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 1rem;
}

.fw-bold {
  font-weight: 700;
}

.position-relative {
  position: relative;
}

.small,
small {
  font-size: 0.82rem;
}

.ms-lg-auto {
  margin-left: auto;
}

.img-fluid {
  height: auto;
}

.login-shell,
.container-fluid {
  width: 100%;
}

.login-shell {
  min-height: 100vh;
}

.login-shell > .row {
  min-height: 100vh;
  margin: 0;
}

.container-fluid > .row {
  margin: 0;
}

.col-xl-7,
.col-xl-5,
.col-12,
.col-sm-6,
.col-md-6,
.col-lg-4,
.col-xl-6,
.col-xl-12,
.col-sm-12 {
  position: relative;
  width: 100%;
}

@media (min-width: 576px) {
  .col-sm-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (min-width: 768px) {
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: 992px) {
  .col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

@media (min-width: 1200px) {
  .col-xl-7 {
    flex: 0 0 58%;
    max-width: 58%;
  }

  .col-xl-5 {
    flex: 0 0 42%;
    max-width: 42%;
  }

  .col-xl-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .col-xl-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.login_one_image {
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(78, 140, 255, 0.34), transparent 26%),
    radial-gradient(circle at 82% 22%, rgba(53, 209, 196, 0.18), transparent 26%),
    linear-gradient(155deg, #0a1431 0%, #08111f 48%, #04070f 100%);
}

.page-body .row > .col-12,
.page-body .row > .col-sm-6,
.page-body .row > .col-md-6,
.page-body .row > .col-lg-4,
.page-body .row > .col-xl-6,
.page-body .row > .col-xl-12,
.page-body .row > .col-sm-12 {
  padding: 14px;
}

.login-visual {
  position: relative;
  display: flex;
  min-height: 100%;
  align-items: flex-end;
  padding: 56px 44px;
}

.login-visual::before,
.login-visual::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(8px);
}

.login-visual::before {
  inset: 10% auto auto 8%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(78, 140, 255, 0.45) 0%, rgba(78, 140, 255, 0) 70%);
}

.login-visual::after {
  right: -80px;
  bottom: -80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(53, 209, 196, 0.28) 0%, rgba(53, 209, 196, 0) 72%);
}

.login-visual-copy {
  position: relative;
  z-index: 1;
  max-width: 420px;
}

.login-visual-logo {
  width: clamp(140px, 24vw, 240px);
  margin-bottom: 28px;
  filter: drop-shadow(0 18px 48px rgba(0, 0, 0, 0.4));
}

.login-visual-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.02;
}

.login-visual-copy p {
  margin: 0;
  color: rgba(244, 248, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.7;
}

.login-card {
  display: flex;
  min-height: 100%;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background:
    linear-gradient(180deg, rgba(4, 8, 18, 0.84) 0%, rgba(4, 8, 18, 0.96) 100%);
}

.login-card > div {
  width: min(100%, 480px);
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo img + img {
  display: none;
}

.login-main {
  margin-top: 20px;
}

.theme-form {
  background: linear-gradient(180deg, rgba(15, 22, 38, 0.92) 0%, rgba(10, 16, 28, 0.96) 100%);
  border: 1px solid var(--pg-panel-border);
  border-radius: var(--pg-radius-xl);
  box-shadow: var(--pg-shadow);
  padding: 34px 30px;
  backdrop-filter: blur(14px);
}

.theme-form h2 {
  margin: 0 0 10px;
  font-size: 2rem;
}

.theme-form p {
  margin: 0 0 28px;
  color: var(--pg-text-soft);
  line-height: 1.6;
}

.form-group {
  margin-bottom: 18px;
}

.col-form-label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--pg-text-soft);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.form-input {
  position: relative;
}

.form-control {
  width: 100%;
  border: 1px solid var(--pg-input-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--pg-text);
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.form-control::placeholder {
  color: rgba(159, 175, 204, 0.54);
}

.form-control:focus {
  border-color: rgba(78, 140, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(78, 140, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.show-hide {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: var(--pg-text-soft);
  font-size: 0.84rem;
  cursor: pointer;
  user-select: none;
}

.show-hide span::before {
  content: "Show";
}

.show-hide span.show::before {
  content: "Show";
}

.show-hide span:not(.show)::before {
  content: "Hide";
}

.checkbox-solid-info {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--pg-text-soft);
  font-size: 0.92rem;
}

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

.form-label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--pg-text-soft);
  font-size: 0.92rem;
  font-weight: 600;
}

.form-select {
  width: 100%;
  border: 1px solid var(--pg-input-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--pg-text);
  padding: 12px 14px;
  outline: none;
}

.form-select:focus {
  border-color: rgba(78, 140, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(78, 140, 255, 0.14);
}

select option,
select optgroup,
.form-select option,
.form-select optgroup,
.dataTables_wrapper .dataTables_length select option,
.dataTables_wrapper .dataTables_length select optgroup {
  background: #0f1729;
  color: #f4f8ff;
}

select option:checked,
.form-select option:checked,
.dataTables_wrapper .dataTables_length select option:checked {
  background: #1d315f;
  color: #ffffff;
}

.form-check-input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--pg-accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 13px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.1;
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.14);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--pg-accent) 0%, #6d73ff 100%);
  color: #fff;
  box-shadow: 0 14px 24px rgba(78, 140, 255, 0.24);
}

.btn-outline-primary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--pg-text);
  border: 1px solid rgba(120, 159, 255, 0.18);
}

.btn-success {
  background: rgba(69, 211, 156, 0.16);
  color: #bbffe2;
  border: 1px solid rgba(69, 211, 156, 0.3);
}

.btn-warning {
  background: rgba(246, 191, 88, 0.16);
  color: #ffe8b7;
  border: 1px solid rgba(246, 191, 88, 0.32);
}

.btn-info {
  background: rgba(78, 140, 255, 0.16);
  color: #d8e3ff;
  border: 1px solid rgba(78, 140, 255, 0.32);
}

.page-wrapper {
  min-height: 100vh;
}

.page-body-wrapper {
  min-height: 100vh;
}

.page-body {
  padding: 32px 0 48px;
}

.container-fluid {
  width: min(100%, 1380px);
  margin: 0 auto;
  padding: 0 24px;
}

.page-title {
  margin-bottom: 26px;
}

.pg-command-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px;
  border: 1px solid rgba(120, 159, 255, 0.14);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(78, 140, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(18, 27, 50, 0.92) 0%, rgba(9, 14, 27, 0.96) 100%);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.34);
}

.pg-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.pg-brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(120, 159, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.pg-brand-mark img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.pg-brand-copy {
  min-width: 0;
}

.pg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(159, 175, 204, 0.86);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pg-brand-title {
  margin: 6px 0 8px;
  font-size: clamp(1.65rem, 2.4vw, 2.4rem);
  line-height: 1;
}

.pg-brand-subtitle {
  margin: 0;
  max-width: 620px;
  color: rgba(212, 222, 244, 0.72);
  line-height: 1.55;
}

.pg-presence {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(120, 159, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(212, 222, 244, 0.88);
  font-size: 0.84rem;
  font-weight: 600;
}

.pg-presence-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--pg-success);
  box-shadow: 0 0 0 6px rgba(69, 211, 156, 0.12);
  animation: pgPulse 1.8s ease-in-out infinite;
}

.pg-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.pg-nav-btn {
  gap: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(236, 242, 255, 0.92);
  border-color: rgba(120, 159, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.pg-nav-btn i {
  color: rgba(167, 191, 255, 0.92);
  font-size: 0.88rem;
}

.pg-nav-btn:hover {
  border-color: rgba(120, 159, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.pg-nav-btn.is-active {
  border-color: rgba(120, 159, 255, 0.28);
  background: linear-gradient(135deg, rgba(78, 140, 255, 0.24) 0%, rgba(109, 115, 255, 0.18) 100%);
  color: #fff;
  box-shadow: 0 16px 28px rgba(45, 88, 196, 0.22);
}

.pg-nav-btn.is-active i {
  color: #fff;
}

.pg-action-cluster {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-icon-sm {
  min-height: 34px;
  padding: 8px 11px;
  border-radius: 11px;
  font-size: 0.81rem;
  box-shadow: none;
}

.btn-icon-sm i {
  font-size: 0.82rem;
}

.page-title .btn i {
  font-size: 0.92rem;
}

.card {
  height: 100%;
  border: 1px solid rgba(120, 159, 255, 0.14);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--pg-card-soft) 0%, var(--pg-card) 100%);
  box-shadow: var(--pg-shadow);
  overflow: hidden;
}

.card-header {
  padding: 20px 22px 0;
}

.card-header h3,
.card-header h4 {
  margin: 0;
}

.card-body {
  padding: 20px 22px 22px;
}

.pg-dashboard-shell {
  display: grid;
  gap: 16px;
}

.pg-dashboard-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(420px, 1.55fr);
  gap: 16px;
  align-items: stretch;
  padding: 20px;
  border: 1px solid rgba(120, 159, 255, 0.16);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 18%, rgba(78, 140, 255, 0.18), transparent 32%),
    radial-gradient(circle at 86% 22%, rgba(69, 211, 156, 0.12), transparent 24%),
    linear-gradient(135deg, rgba(12, 20, 42, 0.96), rgba(8, 13, 24, 0.92));
  box-shadow: var(--pg-shadow);
}

.pg-dashboard-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
}

.pg-dashboard-hero-copy h3 {
  margin: 2px 0 8px;
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  letter-spacing: -0.045em;
}

.pg-dashboard-hero-copy p {
  max-width: 600px;
  margin: 0;
  color: var(--pg-text-soft);
  line-height: 1.55;
}

.pg-hero-metrics,
.pg-compact-metrics {
  display: grid;
  gap: 12px;
}

.pg-hero-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pg-compact-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pg-metric-tile {
  position: relative;
  display: grid;
  align-content: space-between;
  min-height: 92px;
  padding: 13px;
  border: 1px solid rgba(120, 159, 255, 0.13);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.pg-metric-tile::after {
  content: "";
  position: absolute;
  inset: auto -20% -38% 36%;
  height: 74px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  filter: blur(2px);
  transform: rotate(-10deg);
}

.pg-metric-tile-label {
  position: relative;
  z-index: 1;
  color: var(--pg-text-soft);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pg-metric-tile-value {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  color: var(--pg-text);
  font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
  font-size: clamp(1.05rem, 1.45vw, 1.45rem);
  line-height: 1.15;
  word-break: break-word;
}

.pg-metric-tile small {
  position: relative;
  z-index: 1;
  color: var(--pg-text-soft);
}

.pg-metric-tile.is-accent,
.pg-ops-pill.is-accent {
  border-color: rgba(108, 136, 255, 0.22);
  background: linear-gradient(135deg, rgba(55, 80, 164, 0.24) 0%, rgba(20, 32, 61, 0.72) 100%);
}

.pg-metric-tile.is-success,
.pg-ops-pill.is-success {
  border-color: rgba(69, 211, 156, 0.25);
  background: linear-gradient(135deg, rgba(28, 95, 70, 0.28) 0%, rgba(15, 35, 28, 0.76) 100%);
}

.pg-metric-tile.is-warning,
.pg-ops-pill.is-warning {
  border-color: rgba(246, 191, 88, 0.28);
  background: linear-gradient(135deg, rgba(111, 77, 14, 0.28) 0%, rgba(38, 27, 12, 0.76) 100%);
}

.pg-metric-tile.is-danger,
.pg-ops-pill.is-danger {
  border-color: rgba(255, 127, 150, 0.3);
  background: linear-gradient(135deg, rgba(102, 29, 46, 0.3) 0%, rgba(42, 17, 24, 0.78) 100%);
}

.pg-ops-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pg-ops-pill {
  display: inline-grid;
  gap: 3px;
  min-width: 132px;
  padding: 11px 13px;
  border: 1px solid rgba(120, 159, 255, 0.16);
  border-radius: 16px;
}

.pg-ops-pill span {
  color: var(--pg-text-soft);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pg-ops-pill strong {
  color: var(--pg-text);
  font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
  font-size: 0.84rem;
  line-height: 1.25;
}

.pg-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(320px, 1fr) minmax(360px, 1.2fr);
  gap: 16px;
  align-items: stretch;
}

.pg-dashboard-card {
  min-height: 0;
}

.pg-dashboard-card-stock {
  grid-row: span 2;
}

.pg-dashboard-card-ops {
  grid-column: 1 / span 2;
}

.pg-stock-radar {
  max-height: 320px;
  padding-right: 6px;
  overflow-y: auto;
}

.pg-stock-radar::-webkit-scrollbar,
.pg-dashboard-alert-table::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.pg-stock-radar::-webkit-scrollbar-thumb,
.pg-dashboard-alert-table::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(120, 159, 255, 0.22);
}

.pg-dashboard-alert-table {
  max-height: 180px;
  overflow: auto;
}

.pg-dashboard-card .card-header {
  padding-top: 18px;
}

.pg-dashboard-card .card-body {
  padding-top: 16px;
  padding-bottom: 18px;
}

.list-group,
.list-group-numbered {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list-group-item {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(120, 159, 255, 0.1);
  color: var(--pg-text);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 14px;
  margin-bottom: 10px;
}

.list-group-item:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.pg-stat-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pg-stat-list .list-group-item {
  margin-bottom: 0;
}

.pg-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 14px 16px;
  border: 1px solid rgba(120, 159, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.pg-stat-copy {
  display: block;
  font-size: 0.87rem;
  font-weight: 700;
  line-height: 1.35;
}

.pg-stat-value {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  text-align: right;
  font-size: 0.95rem;
  font-weight: 800;
  white-space: nowrap;
}

.pg-stat-row.is-accent {
  border-color: rgba(108, 136, 255, 0.18);
  background: linear-gradient(135deg, rgba(55, 80, 164, 0.24) 0%, rgba(20, 32, 61, 0.7) 100%);
}

.pg-stat-row.is-accent .pg-stat-copy,
.pg-stat-row.is-accent .pg-stat-value {
  color: #d8e4ff;
}

.pg-stat-row.is-success {
  border-color: rgba(69, 211, 156, 0.22);
  background: linear-gradient(135deg, rgba(28, 95, 70, 0.26) 0%, rgba(15, 35, 28, 0.72) 100%);
}

.pg-stat-row.is-success .pg-stat-copy,
.pg-stat-row.is-success .pg-stat-value {
  color: #d6ffeb;
}

.pg-stat-row.is-warning {
  border-color: rgba(246, 191, 88, 0.22);
  background: linear-gradient(135deg, rgba(111, 77, 14, 0.28) 0%, rgba(38, 27, 12, 0.74) 100%);
}

.pg-stat-row.is-warning .pg-stat-copy,
.pg-stat-row.is-warning .pg-stat-value {
  color: #ffe9be;
}

.pg-stat-row.is-danger {
  border-color: rgba(255, 127, 150, 0.24);
  background: linear-gradient(135deg, rgba(102, 29, 46, 0.28) 0%, rgba(42, 17, 24, 0.76) 100%);
}

.pg-stat-row.is-danger .pg-stat-copy,
.pg-stat-row.is-danger .pg-stat-value {
  color: #ffdbe2;
}

.pg-stock-row {
  align-items: flex-start;
}

.pg-stock-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.pg-stock-meta {
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.82;
}

.pg-stock-value {
  font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
  letter-spacing: 0.03em;
}

.pg-business-list {
  max-height: 620px;
}

.pg-business-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pg-search-field {
  position: relative;
  flex: 1 1 auto;
}

.pg-search-field i {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: rgba(159, 175, 204, 0.68);
  pointer-events: none;
}

.pg-search-field .form-control {
  padding-left: 42px;
}

.pg-small-note {
  color: var(--pg-text-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pg-small-note.is-warning {
  color: #ffe8b7;
}

.pg-business-row {
  cursor: pointer;
}

.pg-business-row td {
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

.pg-business-row:hover td {
  background: rgba(78, 140, 255, 0.08) !important;
}

.pg-business-row-inactive td,
.pg-business-row-hidden td {
  background: rgba(246, 191, 88, 0.035);
}

.pg-business-row-disabled td {
  opacity: 0.68;
}

.pg-selected-row td {
  background: rgba(78, 140, 255, 0.13) !important;
  box-shadow: inset 3px 0 0 rgba(78, 140, 255, 0.82);
}

.pg-business-select-button {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
}

.pg-business-logo-mini {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.pg-business-logo-mini img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.pg-editor-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.pg-partner-preview {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(120, 159, 255, 0.14);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(78, 140, 255, 0.14), transparent 34%),
    rgba(255, 255, 255, 0.035);
}

.pg-partner-preview-logo {
  display: flex;
  width: 86px;
  height: 86px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.pg-partner-preview-logo img {
  max-width: 74px;
  max-height: 74px;
  object-fit: contain;
}

.pg-partner-preview-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.pg-partner-preview-copy p {
  color: var(--pg-text);
  line-height: 1.55;
}

.pg-partner-preview-copy small {
  color: var(--pg-text-soft);
  font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
}

.pg-editor-feedback {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(78, 140, 255, 0.2);
  border-radius: 16px;
  background: rgba(78, 140, 255, 0.1);
  color: #d9e4ff;
  font-weight: 700;
}

.pg-editor-feedback.is-success {
  border-color: rgba(69, 211, 156, 0.24);
  background: rgba(69, 211, 156, 0.12);
  color: #d3ffee;
}

.pg-editor-feedback.is-warning {
  border-color: rgba(246, 191, 88, 0.28);
  background: rgba(246, 191, 88, 0.12);
  color: #ffe8b7;
}

.pg-editor-feedback.is-danger {
  border-color: rgba(255, 127, 150, 0.26);
  background: rgba(255, 127, 150, 0.12);
  color: #ffd5de;
}

.btn-xs {
  padding: 7px 10px;
  border-radius: 11px;
  font-size: 0.78rem;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.table-responsive::-webkit-scrollbar {
  height: 8px;
}

.table-responsive::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(120, 159, 255, 0.22);
}

#status-message {
  margin-bottom: 16px;
}

.alert {
  border-radius: var(--pg-radius-md);
  border: 1px solid transparent;
  padding: 14px 16px;
}

.alert-danger {
  background: rgba(255, 127, 150, 0.14);
  border-color: rgba(255, 127, 150, 0.22);
  color: #ffd5de;
}

.alert-success {
  background: rgba(69, 211, 156, 0.14);
  border-color: rgba(69, 211, 156, 0.22);
  color: #d3ffee;
}

.alert-info {
  background: rgba(78, 140, 255, 0.14);
  border-color: rgba(78, 140, 255, 0.22);
  color: #d9e4ff;
}

.alert-warning {
  background: rgba(246, 191, 88, 0.14);
  border-color: rgba(246, 191, 88, 0.24);
  color: #ffe8b7;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-primary,
.badge-info {
  background: rgba(78, 140, 255, 0.18);
  color: #d8e3ff;
}

.badge-success {
  background: rgba(69, 211, 156, 0.18);
  color: #cbffea;
}

.badge-warning {
  background: rgba(246, 191, 88, 0.18);
  color: #ffe8b7;
}

.badge-danger {
  background: rgba(255, 127, 150, 0.18);
  color: #ffd5de;
}

.badge-secondary {
  background: rgba(159, 175, 204, 0.18);
  color: #d8def0;
}

.badge-light-primary {
  background: rgba(78, 140, 255, 0.12);
  color: #dce6ff;
}

.badge-light-success {
  background: rgba(69, 211, 156, 0.12);
  color: #cbffea;
}

.badge-light-warning {
  background: rgba(246, 191, 88, 0.12);
  color: #ffe9bc;
}

.badge-light-danger {
  background: rgba(255, 127, 150, 0.12);
  color: #ffd6df;
}

.table {
  width: 100%;
  border-collapse: collapse;
  color: var(--pg-text);
}

.table th,
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(120, 159, 255, 0.1);
  vertical-align: middle;
}

.table thead th {
  color: var(--pg-text-soft);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.table-striped tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.02);
}

.align-middle td,
.align-middle th {
  vertical-align: middle;
}

code {
  color: #d6e1ff;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 2px 6px;
}

table.dataTable {
  border-collapse: separate !important;
  border-spacing: 0;
  width: 100% !important;
  color: var(--pg-text);
}

table.dataTable thead th,
table.dataTable thead td {
  border-bottom: 1px solid rgba(120, 159, 255, 0.18) !important;
  color: var(--pg-text-soft);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

table.dataTable tbody td {
  border-top: 1px solid rgba(120, 159, 255, 0.08);
  background: transparent !important;
}

table.dataTable tbody tr:hover td {
  background: rgba(78, 140, 255, 0.05) !important;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  color: var(--pg-text-soft) !important;
  margin-bottom: 12px;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  border: 1px solid rgba(120, 159, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--pg-text);
  padding: 8px 10px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button,
.dt-buttons .dt-button {
  border: 1px solid rgba(120, 159, 255, 0.18) !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--pg-text) !important;
  box-shadow: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dt-buttons .dt-button:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: rgba(78, 140, 255, 0.18) !important;
  color: #fff !important;
}

.dt-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
  opacity: 0.55;
}

.pg-logs-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.pg-logs-header h3 {
  margin: 0;
  font-size: 1.08rem;
}

.pg-logs-header p {
  max-width: 560px;
  color: rgba(212, 222, 244, 0.68);
}

.pg-logs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.pg-logs-actions .form-select {
  min-width: 138px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.pg-log-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.pg-log-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(120, 159, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(228, 236, 252, 0.84);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.pg-log-tab i {
  color: rgba(167, 191, 255, 0.88);
}

.pg-log-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(120, 159, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
}

.pg-log-tab.is-active {
  border-color: rgba(120, 159, 255, 0.3);
  background: linear-gradient(135deg, rgba(78, 140, 255, 0.22) 0%, rgba(109, 115, 255, 0.16) 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(34, 74, 180, 0.2);
}

.pg-log-tab.is-active i {
  color: #fff;
}

.pg-log-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.pg-metric-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid rgba(120, 159, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.pg-metric-chip strong {
  font-size: 0.92rem;
  color: #fff;
}

.pg-metric-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(159, 175, 204, 0.84);
}

.pg-metric-chip.is-accent {
  border-color: rgba(120, 159, 255, 0.26);
  background: rgba(78, 140, 255, 0.12);
}

.pg-metric-chip.is-success {
  border-color: rgba(69, 211, 156, 0.22);
  background: rgba(69, 211, 156, 0.1);
}

.pg-metric-chip.is-warning {
  border-color: rgba(246, 191, 88, 0.22);
  background: rgba(246, 191, 88, 0.1);
}

.pg-metric-chip.is-danger {
  border-color: rgba(255, 127, 150, 0.22);
  background: rgba(255, 127, 150, 0.1);
}

.pg-log-updated {
  margin-left: auto;
  font-size: 0.82rem;
  color: rgba(159, 175, 204, 0.84);
}

.pg-log-table thead th {
  white-space: nowrap;
}

.pg-log-path {
  margin-bottom: 6px;
}

.pg-log-path code {
  display: inline-flex;
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 10px;
}

.pg-log-preview {
  color: rgba(201, 212, 236, 0.74);
  font-size: 0.83rem;
  line-height: 1.45;
}

.pg-terminal-window {
  position: relative;
  padding: 16px;
  border: 1px solid rgba(123, 245, 180, 0.12);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(6, 11, 16, 0.98) 0%, rgba(3, 7, 12, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(182, 255, 219, 0.04),
    0 24px 36px rgba(0, 0, 0, 0.26);
  overflow: hidden;
}

.pg-terminal-window::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(123, 245, 180, 0.015) 1px, transparent 1px);
  background-size: 100% 4px;
  pointer-events: none;
  opacity: 0.45;
}

.pg-terminal-topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 2px 14px;
}

.pg-terminal-dots {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pg-terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.pg-terminal-dots span:nth-child(1) {
  background: #ff7b90;
}

.pg-terminal-dots span:nth-child(2) {
  background: #f6bf58;
}

.pg-terminal-dots span:nth-child(3) {
  background: #45d39c;
}

.pg-terminal-title {
  font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(133, 244, 185, 0.84);
}

.pg-terminal-scroll,
.pg-log-tabs,
.pg-log-metrics {
  position: relative;
  z-index: 1;
}

.pg-log-tab {
  border-color: rgba(123, 245, 180, 0.12);
  background: rgba(37, 52, 44, 0.34);
  color: rgba(196, 255, 223, 0.76);
}

.pg-log-tab i {
  color: rgba(123, 245, 180, 0.9);
}

.pg-log-tab:hover {
  border-color: rgba(123, 245, 180, 0.22);
  background: rgba(46, 74, 60, 0.5);
}

.pg-log-tab.is-active {
  border-color: rgba(123, 245, 180, 0.3);
  background: linear-gradient(180deg, rgba(27, 58, 44, 0.88) 0%, rgba(16, 37, 29, 0.94) 100%);
  color: #d7ffe9;
  box-shadow: 0 16px 24px rgba(0, 0, 0, 0.28);
}

.pg-metric-chip {
  border-color: rgba(123, 245, 180, 0.1);
  background: rgba(18, 31, 25, 0.72);
}

.pg-metric-chip strong {
  color: #dbffe9;
}

.pg-metric-label,
.pg-log-updated {
  color: rgba(162, 204, 180, 0.82);
}

.pg-log-updated {
  font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
}

.pg-log-table {
  font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
}

.pg-log-table thead th {
  border-bottom-color: rgba(123, 245, 180, 0.14);
  color: rgba(161, 209, 184, 0.92);
  font-size: 0.74rem;
}

.pg-log-table tbody td {
  border-bottom-color: rgba(123, 245, 180, 0.08);
}

.pg-log-table tbody tr:nth-child(odd) {
  background: rgba(11, 20, 16, 0.5);
}

.pg-log-table tbody tr:hover td {
  background: rgba(24, 45, 35, 0.78) !important;
}

.pg-log-path code {
  color: #bfffd8;
  background: rgba(34, 55, 45, 0.62);
}

.pg-log-preview {
  color: rgba(181, 226, 202, 0.78);
}

.footer {
  height: 24px;
}

@keyframes pgPulse {
  0%,
  100% {
    transform: scale(0.96);
    box-shadow: 0 0 0 0 rgba(69, 211, 156, 0.18);
  }
  50% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(69, 211, 156, 0);
  }
}

@media (max-width: 1199.98px) {
  .login_one_image {
    min-height: 320px;
  }

  .login-visual {
    align-items: center;
    text-align: center;
  }

  .login-visual-copy {
    max-width: 560px;
  }

  .pg-dashboard-hero,
  .pg-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .pg-dashboard-card-stock,
  .pg-dashboard-card-ops {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 767.98px) {
  .login-card {
    padding: 20px;
  }

  .theme-form {
    padding: 24px 20px;
    border-radius: 24px;
  }

  .login-visual {
    padding: 36px 24px;
  }

  .container-fluid {
    padding: 0 16px;
  }

  .page-body {
    padding-top: 24px;
  }

  .page-title h2 {
    font-size: 1.4rem;
  }

  .pg-command-bar {
    padding: 20px 18px;
    border-radius: 24px;
  }

  .pg-brand {
    gap: 14px;
  }

  .pg-brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 18px;
  }

  .pg-brand-mark img {
    width: 38px;
    height: 38px;
  }

  .pg-log-updated {
    width: 100%;
    margin-left: 0;
  }

  .flex-sm-row,
  .flex-lg-row {
    flex-direction: column;
  }

  .card-header,
  .card-body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .pg-nav {
    gap: 8px;
  }

  .pg-nav-btn,
  .pg-log-tab {
    width: calc(50% - 4px);
    justify-content: center;
  }

  .pg-logs-actions {
    width: 100%;
  }

  .pg-logs-actions .form-select,
  .pg-logs-actions .btn {
    width: 100%;
  }

  .pg-dashboard-hero {
    padding: 18px;
    border-radius: 22px;
  }

  .pg-hero-metrics,
  .pg-compact-metrics {
    grid-template-columns: 1fr;
  }

  .pg-metric-tile {
    min-height: 96px;
  }

  .pg-ops-pill {
    width: 100%;
  }

  .pg-business-toolbar,
  .pg-editor-heading,
  .pg-partner-preview {
    align-items: stretch;
    flex-direction: column;
  }

  .pg-partner-preview-logo {
    width: 72px;
    height: 72px;
  }
}

@media (min-width: 576px) {
  .flex-sm-row {
    flex-direction: row;
  }
}

@media (min-width: 992px) {
  .flex-lg-row {
    flex-direction: row;
  }
}
