:root,
.theme-drpet {
  --bs-theme: #e89512;
  --bs-theme-rgb: 232, 149, 18;
  --bs-theme-color: #201107;
  --bs-body-bg: #f7f1eb;
  --bs-body-bg-rgb: 247, 241, 235;
  --bs-body-color: #14110f;
  --bs-body-color-rgb: 20, 17, 15;
  --bs-border-color: #e7ded5;
  --bs-border-radius: 8px;
  --bs-font-sans-serif: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --drpet-sidebar: #21130b;
  --drpet-sidebar-soft: #382315;
  --drpet-muted: #7d746d;
  --drpet-card: #fffdfb;
  --drpet-amber: #d58b21;
  --drpet-blue: #32a8d2;
  --drpet-green: #55a867;
  --drpet-red: #d76555;
  --drpet-gray: #817e78;
}

body {
  background: var(--bs-body-bg);
  letter-spacing: 0;
}

body:before {
  opacity: .22;
}

.app {
  padding-top: 72px;
}

.app-header {
  height: 72px;
  margin-left: 0;
  padding: 0 28px 0 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--bs-border-color);
  box-shadow: 0 1px 2px rgba(34, 22, 14, .04);
  pointer-events: auto;
}

.app-header .brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.app-header .desktop-toggler {
  position: static;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  padding: 0;
  z-index: 1030;
}

.app-header .menu {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.app-header .menu-toggler {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  box-shadow: none;
}

.app-header .menu-toggler:hover {
  background: rgba(34, 22, 14, .06);
}

.app-header .brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--bs-body-color);
  text-decoration: none;
  font-weight: 800;
}

.app-header .brand .brand-logo .brand-text,
.app-header .brand-text {
  font-size: 20px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  color: var(--bs-body-color) !important;
}

.app-header .brand-img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--drpet-amber);
  color: var(--drpet-sidebar);
  font-size: 11px;
  font-weight: 900;
}

.app-header .menu .menu-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--bs-body-color);
  text-decoration: none;
}

.app-header .menu-img {
  width: 32px;
  height: 32px;
}

.app-header .menu-img img {
  width: 32px;
  height: 32px;
  object-fit: cover;
}

.drpet-header-user .menu-text {
  width: auto !important;
  min-width: 0;
  font-weight: 750;
}

.app.app-sidebar-minified .app-header {
  margin-left: 0;
}

.app-sidebar {
  top: 72px;
  bottom: 0;
  width: 282px;
  padding: 0;
  background: var(--drpet-sidebar);
  color: rgba(255, 255, 255, .72);
}

.app-sidebar .app-sidebar-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px 16px 18px;
}

.app.app-sidebar-minified .app-sidebar {
  width: 74px;
}

.app.app-sidebar-minified .app-sidebar .app-sidebar-content {
  padding: 34px 10px 18px;
  overflow: hidden;
}

.drpet-sidebar-brand {
  display: none;
  align-items: center;
  gap: 12px;
  margin: 0 8px 36px;
  color: #fff;
  text-decoration: none;
}

.drpet-sidebar-brand:hover {
  color: #fff;
}

.drpet-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--drpet-amber);
  flex: 0 0 auto;
}

.drpet-brand-mark span {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: var(--drpet-sidebar);
}

.drpet-sidebar-brand strong {
  display: block;
  font-size: 18px;
  line-height: 1.1;
}

.app.app-sidebar-minified .drpet-sidebar-brand {
  justify-content: center;
  margin: 0 0 36px;
}

.app.app-sidebar-minified .drpet-sidebar-brand > span:last-child,
.app.app-sidebar-minified .app-sidebar .menu .menu-header,
.app.app-sidebar-minified .app-sidebar .menu .menu-text,
.app.app-sidebar-minified .drpet-sidebar-footer {
  display: none;
}

.drpet-sidebar-brand small,
.drpet-user small,
.drpet-bot-status small {
  display: block;
  color: rgba(255, 255, 255, .48);
  line-height: 1.2;
}

.app-sidebar .menu {
  flex: 1;
}

.app-sidebar .menu .menu-header,
.app-sidebar .menu .menu-item .menu-link,
.app-sidebar .menu .menu-item .menu-link .menu-text,
.app-sidebar .menu .menu-item .menu-link .menu-icon,
.app-sidebar .menu .menu-item .menu-link .menu-icon i {
  text-shadow: none;
}

.app-sidebar .menu .menu-header {
  margin: 24px 12px 10px;
  padding: 0;
  color: rgba(255, 255, 255, .52) !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.app-sidebar .menu .menu-item .menu-link,
.app-sidebar .menu .menu-item .menu-link .menu-text {
  min-height: 40px;
  color: rgba(255, 255, 255, .72) !important;
  font-size: 15px;
  font-weight: 750;
}

.app-sidebar .menu .menu-item .menu-link {
  padding: 10px 12px;
  border-radius: 8px;
  transition: background-color .15s ease, color .15s ease;
}

.app-sidebar .menu .menu-item .menu-link:hover {
  background: rgba(255, 255, 255, .08);
}

.app-sidebar .menu .menu-item.active > .menu-link,
.app-sidebar .menu .menu-item.active > .menu-link .menu-text {
  background: #5a3515;
  color: #ffd18a !important;
}

.app-sidebar .menu .menu-icon {
  width: 28px;
  color: rgba(255, 255, 255, .58) !important;
  opacity: 1;
}

.app-sidebar .menu .menu-icon i {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: inherit !important;
}

.app-sidebar .menu .menu-item.active > .menu-link .menu-icon {
  color: var(--drpet-amber) !important;
}

.drpet-sidebar-footer {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.drpet-bot-status {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--drpet-sidebar-soft);
}

.drpet-bot-status strong {
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
}

.drpet-status-line {
  margin-top: 10px;
  color: #d8f0d9;
  font-weight: 800;
}

.drpet-status-line span {
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 6px;
  border-radius: 999px;
  background: #62c96f;
}

.drpet-bot-status.is-offline .drpet-status-line {
  color: #ffd2c9;
}

.drpet-bot-status.is-offline .drpet-status-line span {
  background: var(--drpet-red);
}

.drpet-bot-status.is-unknown .drpet-status-line {
  color: #f6d6a4;
}

.drpet-bot-status.is-unknown .drpet-status-line span {
  background: var(--drpet-amber);
}

.drpet-toggle {
  width: 32px;
  height: 18px;
  border-radius: 999px;
  background: #62c96f;
  position: relative;
}

.drpet-toggle:after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #fff;
}

.drpet-bot-status.is-offline .drpet-toggle,
.drpet-bot-status.is-unknown .drpet-toggle {
  background: rgba(255, 255, 255, .18);
}

.drpet-bot-status.is-offline .drpet-toggle:after,
.drpet-bot-status.is-unknown .drpet-toggle:after {
  right: 17px;
}

.drpet-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  color: inherit;
  text-decoration: none;
}

.drpet-user:hover {
  color: inherit;
}

.drpet-user strong {
  display: block;
  color: #fff;
  line-height: 1.1;
}

.drpet-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1da4c9;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.app-content {
  margin-left: 282px;
  padding: 38px 48px;
  min-height: calc(100vh - 72px);
}

.app.app-sidebar-minified .app-content {
  margin-left: 74px;
}

.page-header {
  margin-bottom: 22px;
  color: var(--bs-body-color);
  font-size: 30px;
  font-weight: 850;
}

.page-header small {
  color: var(--drpet-muted);
  font-size: 15px;
  font-weight: 600;
}

.card {
  border: 1px solid var(--bs-border-color);
  border-radius: 12px;
  background: var(--drpet-card);
  box-shadow: 0 1px 2px rgba(34, 22, 14, .04);
}

.card-body {
  padding: 20px;
}

.card-arrow {
  display: none;
}

.card-body > .table-responsive:only-child {
  margin: -20px;
}

.table-responsive {
  border-radius: 12px;
}

.table {
  margin: 0;
  color: #251f1b;
  --bs-table-bg: transparent;
  --bs-table-hover-bg: #fbf5ed;
  --bs-table-border-color: #eee5dd;
}

.table > :not(caption) > * > * {
  padding: 16px 20px;
  border-bottom-color: #eee5dd;
  vertical-align: middle;
}

.table thead th {
  border-bottom: 1px solid #ded4c9;
  background: #fffaf4;
  color: #493d35;
  font-size: 13px;
  font-weight: 900;
}

.table tbody tr:last-child > * {
  border-bottom: 0;
}

.table strong {
  font-weight: 850;
}

.badge {
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 800;
}

.text-body-secondary {
  color: var(--drpet-muted) !important;
}

.btn-drpet-primary,
.btn-outline-theme,
.btn-theme {
  border-color: var(--drpet-amber);
  background: var(--drpet-amber);
  color: #241407;
  font-weight: 800;
}

.btn-drpet-primary:hover,
.btn-outline-theme:hover,
.btn-theme:hover {
  border-color: #c67d12;
  background: #c67d12;
  color: #241407;
}

.drpet-dashboard-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.drpet-date {
  margin-bottom: 4px;
  color: var(--drpet-muted);
  font-weight: 800;
}

.drpet-dashboard h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.12;
  font-weight: 900;
}

.drpet-dashboard p {
  margin: 8px 0 0;
  color: var(--drpet-muted);
  font-size: 16px;
  font-weight: 600;
}

.drpet-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.drpet-card {
  border: 1px solid var(--bs-border-color);
  border-radius: 12px;
  background: var(--drpet-card);
  box-shadow: 0 1px 2px rgba(34, 22, 14, .04);
}

.drpet-metric {
  min-height: 134px;
  padding: 22px 24px;
}

.drpet-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--drpet-muted);
  font-weight: 800;
}

.drpet-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
}

.dot-amber { background: var(--drpet-amber); }
.dot-blue { background: var(--drpet-blue); }
.dot-green { background: var(--drpet-green); }
.dot-red { background: var(--drpet-red); }
.dot-gray { background: var(--drpet-gray); }

.drpet-metric strong {
  display: block;
  margin-top: 14px;
  color: #0d0b09;
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
}

.drpet-metric small {
  display: block;
  margin-top: 10px;
  color: var(--drpet-muted);
  font-weight: 800;
}

.drpet-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, .95fr);
  gap: 22px;
}

.drpet-panel {
  padding: 24px 26px;
}

.drpet-panel header {
  margin-bottom: 18px;
}

.drpet-panel h2 {
  margin: 0;
  color: #14110f;
  font-size: 19px;
  font-weight: 900;
}

.drpet-panel header p {
  margin-top: 2px;
  font-size: 14px;
}

.drpet-filter-panel {
  padding-bottom: 22px;
}

.drpet-filter-panel .form-label {
  color: #493d35;
  font-weight: 850;
}

.drpet-filter-panel .form-control,
.drpet-filter-panel .form-select {
  border-color: #e6ddd4;
  border-radius: 8px;
  background-color: #fffdfb;
}

.drpet-table-panel {
  padding-bottom: 18px;
}

.drpet-table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid #eee5dd;
  border-radius: 10px;
  background: #fffdfb;
}

.drpet-table-panel .dataTables_wrapper > .row:first-child,
.drpet-table-panel .dataTables_wrapper > .d-flex:last-child {
  padding: 0 2px;
}

.drpet-table-panel .dataTables_wrapper > .row:first-child {
  margin-bottom: 14px !important;
}

.drpet-table-panel .dataTables_filter input,
.drpet-table-panel .dataTables_length select {
  border-color: #e6ddd4;
  border-radius: 8px;
  background-color: #fffdfb;
}

.drpet-table-panel table.dataTable {
  border-collapse: collapse !important;
}

.drpet-table-panel .table thead th {
  background: #fbf5ed;
}

.card:has(table) {
  border-radius: 12px;
  background: var(--drpet-card);
  box-shadow: 0 1px 2px rgba(34, 22, 14, .04);
}

.card:has(table) .table-responsive {
  border: 1px solid #eee5dd;
  border-radius: 10px;
  background: #fffdfb;
}

.card:has(table) .table thead th {
  background: #fbf5ed;
}

.drpet-activity-list {
  display: grid;
}

.drpet-activity-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #eee7df;
}

.drpet-activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f6eadb;
}

.drpet-activity-icon i {
  font-size: 10px;
  color: inherit;
}

.drpet-activity-icon.dot-amber { color: var(--drpet-amber); background: #fbf0dc; }
.drpet-activity-icon.dot-blue { color: var(--drpet-blue); background: #e5f5fa; }
.drpet-activity-icon.dot-green { color: var(--drpet-green); background: #e8f5eb; }
.drpet-activity-icon.dot-red { color: var(--drpet-red); background: #fae8e4; }

.drpet-activity-item strong {
  display: block;
  overflow: hidden;
  color: #27211d;
  font-size: 16px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drpet-activity-item small {
  color: var(--drpet-muted);
  font-size: 14px;
  font-weight: 600;
}

.drpet-empty {
  padding: 24px 0;
  color: var(--drpet-muted);
  font-weight: 700;
}

.drpet-stage-list {
  display: grid;
  gap: 16px;
}

.drpet-stage-row > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  font-weight: 850;
}

.drpet-stage-row span {
  color: var(--drpet-muted);
}

.drpet-stage-row progress {
  width: 100%;
  height: 7px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #ece8e2;
}

.drpet-stage-row progress::-webkit-progress-bar {
  background: #ece8e2;
}

.drpet-stage-row progress::-webkit-progress-value {
  border-radius: 999px;
}

.drpet-stage-row progress::-moz-progress-bar {
  border-radius: 999px;
}

.stage-amber::-webkit-progress-value { background: var(--drpet-amber); }
.stage-blue::-webkit-progress-value { background: var(--drpet-blue); }
.stage-green::-webkit-progress-value { background: var(--drpet-green); }
.stage-gray::-webkit-progress-value { background: var(--drpet-gray); }
.stage-amber::-moz-progress-bar { background: var(--drpet-amber); }
.stage-blue::-moz-progress-bar { background: var(--drpet-blue); }
.stage-green::-moz-progress-bar { background: var(--drpet-green); }
.stage-gray::-moz-progress-bar { background: var(--drpet-gray); }

.drpet-knowledge-note {
  display: grid;
  gap: 2px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #eee7df;
}

.drpet-knowledge-note strong {
  font-weight: 900;
}

.drpet-knowledge-note span {
  color: var(--drpet-muted);
  font-weight: 600;
}

@media (max-width: 1199.98px) {
  .drpet-metric-grid,
  .drpet-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .app-header {
    height: 62px;
    margin-left: 0;
  }

  .app-header .mobile-toggler {
    display: flex;
  }

  .app-sidebar {
    top: 0;
  }

  .app-content {
    margin-left: 0;
    padding: 76px 22px 28px;
  }

  .drpet-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .drpet-dashboard-top {
    flex-direction: column;
  }

  .drpet-metric-grid {
    grid-template-columns: 1fr;
  }
}
