/**
 * Sistem Parking Management Dashboard Styles
 * Based on Sistem Parking Client App UI
 * Ohio Child Theme
 */

:root {
  --pk-bg: #f5f7fa;
  --pk-card-bg: #ffffff;
  --pk-border: #e8ecf2;
  --pk-border-light: #f0f3f7;
  --pk-text-primary: rgb(27, 31, 59);
  --pk-text-secondary: rgba(27, 31, 59, 0.65);
  --pk-text-tertiary: rgba(27, 31, 59, 0.45);
  --pk-primary: #3b5bfd;
  --pk-primary-hover: #2b49e0;
  --pk-primary-light: #eef2ff;
  --pk-success: rgb(74, 201, 155);
  --pk-success-light: rgba(74, 201, 155, 0.1);
  --pk-danger: #ef4444;
  --pk-warning: #f59e0b;
  --pk-warning-light: #fffbeb;

  /* Exact Font Family: Inter */
  --pk-font-family: 'Inter', sans-serif;
  --pk-font-body: 'Inter', sans-serif;
  --pk-font-heading: 'Inter', sans-serif;

  --pk-radius-sm: 8px;
  --pk-radius-md: 12px;
  --pk-radius-lg: 16px;
  --pk-radius-xl: 20px;
  --pk-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --pk-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  --pk-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.03);
}

/* Reset & Scope */
html,
body,
.sistem-parking-dashboard-body,
.pk-dashboard-wrapper,
.pk-dashboard-wrapper *,
.pk-dashboard-wrapper *::before,
.pk-dashboard-wrapper *::after,
.apexcharts-canvas,
.apexcharts-text,
.apexcharts-tooltip {
  font-family: 'Inter', sans-serif !important;
}

.pk-dashboard-wrapper {
  background-color: #fff;
  color: var(--pk-text-primary);
  /* min-height: 100vh; */
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  max-height: 700px;
  border-radius: 24px;
}

.pk-dashboard-wrapper *,
.pk-dashboard-wrapper *::before,
.pk-dashboard-wrapper *::after {
  box-sizing: border-box;
}

/* ==========================================================================
   TOP HEADER COMPONENT (48px Height, Matching Angular Dashboard)
   ========================================================================== */
.pk-header {
  height: 48px;
  background-color: #ffffff;
  border-bottom: 0.56px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-sizing: border-box;
  border-radius: 20px 20px 0 0;
}

body.admin-bar .pk-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .pk-header {
    top: 46px;
  }
}

/* Header Left: Logo + Facility Dropdown */
.pk-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pk-header-brand {
  display: flex;
  align-items: center;
  gap: .25rem;
  text-decoration: none;
  user-select: none;
  margin-right: 4px;
}

.pk-brand-icon-img {
  height: 32px;
  width: 32px;
  object-fit: contain;
  display: block;
}

.pk-brand-logo-img {
  height: 16px !important;
  width: auto;
  display: block;
}

/* Facility Switcher Dropdown */
.pk-facility-dropdown-container {
  position: relative;
}

.pk-facility-pill {
  height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background-color: #ffffff;
  color: #1b1f3b;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.pk-facility-pill:hover {
  border-color: rgba(0, 0, 0, 0.25);
  background-color: #fafbfc;
}

.pk-facility-chevron {
  width: 13px;
  height: 13px;
  color: rgba(27, 31, 59, 0.65);
  transition: transform 0.2s ease;
}

.pk-facility-dropdown-container.open .pk-facility-chevron {
  transform: rotate(180deg);
}

.pk-facility-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 230px;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 6px;
  display: none;
  z-index: 1100;
}

.pk-facility-dropdown-container.open .pk-facility-dropdown-menu,
.pk-facility-dropdown-menu.active {
  display: block;
  animation: pkFadeIn 0.15s ease-out;
}

.pk-facility-option {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #1b1f3b;
  cursor: pointer;
  transition: background-color 0.15s;
}

.pk-facility-option:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.pk-facility-option.active {
  background-color: rgba(82, 110, 211, 0.08);
  color: #526ed3;
  font-weight: 600;
}

/* Header Center: Plan badge and expiry */
.pk-header-center {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pk-plan-chip {
  background-color: #ff7043;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 4px;
  text-transform: capitalize;
}

.pk-plan-expiry {
  font-size: 11px;
  font-weight: 400;
  color: rgba(27, 31, 59, 0.65);
}

/* Header Right: Actions */
.pk-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pk-btn-upgrade {
  background-color: #526ed3;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pk-btn-upgrade:hover {
  background-color: #435ebf;
}

.pk-btn-upgrade:active {
  transform: scale(0.98);
}

.pk-header-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.04);
  color: #1b1f3b;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
  padding: 0;
}

.pk-header-icon-btn:hover {
  background-color: rgba(0, 0, 0, 0.08);
}

.pk-header-icon-btn svg {
  width: 17px;
  height: 17px;
}

/* User Avatar & Menu */
.pk-user-dropdown-container {
  position: relative;
}

.pk-user-avatar-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.04);
  color: #1b1f3b;
  border: none;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
  padding: 0;
}

.pk-user-avatar-btn:hover {
  background-color: rgba(0, 0, 0, 0.08);
}

.pk-user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 270px;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  padding: 12px;
  display: none;
  z-index: 1100;
}

.pk-user-dropdown-container.open .pk-user-dropdown-menu,
.pk-user-dropdown-menu.active {
  display: block;
  animation: pkFadeIn 0.15s ease-out;
}

.pk-user-dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
}

.pk-user-dropdown-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #526ed3;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.pk-user-dropdown-details {
  flex: 1;
  min-width: 0;
}

.pk-user-dropdown-name {
  font-size: 14px;
  font-weight: 600;
  color: #1b1f3b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pk-user-dropdown-email {
  font-size: 12px;
  color: rgba(27, 31, 59, 0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pk-user-dropdown-role {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  background-color: rgba(0, 0, 0, 0.06);
  color: #1b1f3b;
  border-radius: 4px;
  padding: 1px 5px;
  margin-top: 4px;
}

.pk-user-dropdown-divider {
  height: 1px;
  background-color: rgba(0, 0, 0, 0.08);
  margin: 8px -12px;
}

.pk-user-theme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
}

.pk-theme-label {
  font-size: 13px;
  font-weight: 500;
  color: #1b1f3b;
}

.pk-theme-toggle-group {
  display: flex;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  padding: 2px;
}

.pk-theme-btn {
  border: none;
  background: transparent;
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 5px;
  color: rgba(27, 31, 59, 0.65);
  cursor: pointer;
  transition: all 0.15s;
}

.pk-theme-btn.active {
  background-color: #ffffff;
  color: #1b1f3b;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pk-user-org-info {
  font-size: 11.5px;
  color: rgba(27, 31, 59, 0.6);
  padding: 6px 0 4px 0;
}

.pk-user-menu-item {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #1b1f3b;
  text-decoration: none;
  padding: 7px 8px;
  border-radius: 6px;
  transition: background-color 0.15s;
}

.pk-user-menu-item:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.pk-user-menu-logout {
  color: #ef4444;
}

.pk-user-menu-logout:hover {
  background-color: rgba(239, 68, 68, 0.08);
}


/* ==========================================================================
   BODY LAYOUT & LEFT SIDEBAR COMPONENT (Matching Angular Dashboard)
   ========================================================================== */
.pk-app-layout {
  display: flex;
  width: 100%;
  /* min-height: calc(100vh - 48px); */
  background-color: #f5f7fa;
  position: relative;
}

.pk-sidebar {
  width: 230px;
  background-color: #ffffff;
  border-right: 0.56px solid rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px;
  position: sticky;
  top: 0px;
  /* height: calc(100vh - 48px); */
  z-index: 50;
  flex-shrink: 0;
  box-sizing: border-box;
  transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-x: hidden;
}

body.admin-bar .pk-sidebar {
  top: 80px;
  height: calc(100vh - 80px);
}

@media screen and (max-width: 782px) {
  body.admin-bar .pk-sidebar {
    top: 94px;
    height: calc(100vh - 94px);
  }
}

/* Sidebar Top Section */
.pk-sidebar-top {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.pk-sidebar-org {
  padding: 5px 10px 9px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pk-sidebar-org-name {
  font-size: 13px;
  font-weight: 500;
  color: #1b1f3b;
}

.pk-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
}

.pk-nav-item {
  height: 32px;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 500;
  color: #1b1f3b;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  background-color: transparent;
  transition: background-color 0.15s;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}

.pk-nav-item:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.pk-nav-item.active {
  background-color: rgba(0, 0, 0, 0.08);
  font-weight: 600;
  color: #1b1f3b;
}

.pk-nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #1b1f3b;
}

.pk-nav-icon svg,
.pk-nav-icon img,
.pk-nav-icon-img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  display: block;
}

.pk-nav-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  line-height: 1;
}

.pk-nav-divider {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin: 6px 4px;
}

/* Sidebar Footer & Collapse */
.pk-sidebar-footer {
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  width: 100%;
}

.pk-sidebar-collapse-btn {
  height: 32px;
  width: 100%;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 500;
  color: #1b1f3b;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s;
  user-select: none;
}

.pk-sidebar-collapse-btn:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.pk-collapse-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.22s ease;
}

.pk-collapse-label {
  font-size: 13px;
  line-height: 1;
}

/* Collapsed Sidebar State */
.pk-sidebar.collapsed {
  width: 48px;
  padding: .5rem .5rem .25rem;
}

.pk-sidebar.collapsed .pk-sidebar-org {
  text-align: center;
  padding: 5px 0 9px 0;
}

.pk-sidebar.collapsed .pk-sidebar-org-name {
  display: none;
}

.pk-sidebar.collapsed .pk-nav-item {
  justify-content: center;
  padding: 0;
}

.pk-sidebar.collapsed .pk-nav-label {
  display: none;
}

.pk-sidebar.collapsed .pk-sidebar-collapse-btn {
  justify-content: center;
  padding: 0;
}

.pk-sidebar.collapsed .pk-collapse-label {
  display: none;
}

.pk-sidebar.collapsed .pk-collapse-chevron {
  transform: rotate(180deg);
}

/* Full Page Mode on dedicated dashboard page */
body.sistem-parking-dashboard-body .pk-dashboard-wrapper {
  max-height: none !important;
  min-height: 100vh !important;
  border-radius: 20px !important;
  background-color: #f5f7fa !important;
}

/* Main Dashboard Canvas */
.pk-main-canvas {
  flex: 1;
  padding: 20px;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}

/* Welcome Header Banner */
.pk-welcome-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.pk-dashboard-wrapper h2.pk-welcome-title,
.pk-welcome-title {
  font-family: 'Inter', sans-serif !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  line-height: 28px !important;
  letter-spacing: normal !important;
  color: var(--pk-text-primary) !important;
  margin: 0 0 4px 0 !important;
}

.pk-dashboard-wrapper .pk-welcome-subtitle,
.pk-welcome-subtitle {
  font-family: 'Inter', sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 24px !important;
  letter-spacing: normal !important;
  color: var(--pk-text-secondary) !important;
  margin: 0 !important;
}

.pk-report-date-box {
  background: var(--pk-card-bg);
  border: 1px solid var(--pk-border);
  border-radius: var(--pk-radius-md);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--pk-shadow-sm);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pk-report-date-label {
  font-family: var(--pk-font-body);
  font-size: 13px;
  font-weight: 400;
  line-height: 16px;
  color: var(--pk-text-secondary);
  margin-bottom: 2px;
}

.pk-report-date-value {
  font-family: var(--pk-font-heading);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--pk-text-primary);
}

.pk-refresh-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pk-text-secondary);
  transition: color 0.2s, transform 0.2s;
}

.pk-refresh-icon-btn svg {
  width: 25px;
  height: 25px;
}

.pk-refresh-icon-btn.spinning svg {
  animation: pkSpin 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dashboard Cards General */
.pk-card {
  background: var(--pk-card-bg);
  border: 1px solid var(--pk-border);
  border-radius: var(--pk-radius-lg);
  box-shadow: var(--pk-shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s;
  overflow: hidden;
  position: relative;
}

/* Top Row Grid: 8 col / 4 col */
.pk-top-grid {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 20px;
  margin-bottom: 22px;
}

/* 8-col Cash Flow / Revenue Card */
.pk-revenue-card {
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
}

.pk-metric-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--pk-border-light);
}

.pk-metric-item {
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--pk-radius-sm);
  transition: background-color 0.15s;
}


.pk-metric-label {
  font-family: var(--pk-font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  color: var(--pk-text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
}

.pk-metric-value {
  font-family: var(--pk-font-heading);
  font-size: 17.6px;
  font-weight: 700;
  line-height: 28px;
  color: var(--pk-text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 2px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.pk-metric-growth {
  font-family: var(--pk-font-body);
  font-size: 11px;
  font-weight: 400;
  line-height: 16px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--pk-text-tertiary);
}

.pk-metric-growth.positive {
  color: var(--pk-success);
}

.pk-metric-growth.negative {
  color: var(--pk-danger);
}

.pk-chart-area {
  min-height: 210px;
  margin-top: 8px;
  position: relative;
}

.pk-custom-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 6px;
}

.pk-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--pk-font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: var(--pk-text-secondary);
  cursor: pointer;
}

.pk-legend-marker {
  width: 10px;
  height: 10px;
  display: inline-block;
}

.pk-legend-marker.circle {
  border-radius: 50%;
  background: #3b5bfd;
}

.pk-legend-marker.square {
  border-radius: 2px;
  background: #10b981;
}

.pk-legend-marker.diamond {
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  background: #f97316;
}

.pk-card-footer {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
}

/* Date filter dropdown */
.pk-filter-dropdown {
  position: relative;
}

.pk-filter-btn {
  background: transparent;
  border: none;
  font-family: var(--pk-font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  color: var(--pk-text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: background-color 0.15s;
}



.pk-filter-btn svg {
  width: 14px;
  height: 14px;
  color: var(--pk-text-secondary);
}

.pk-filter-menu {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  width: 160px;
  background: #ffffff;
  border: 1px solid var(--pk-border);
  border-radius: var(--pk-radius-md);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
  padding: 6px;
  z-index: 9999 !important;
  display: none;
}

.pk-filter-menu.active {
  display: block;
  animation: pkFadeIn 0.15s ease-out;
}

.pk-filter-option {
  padding: 8px 12px;
  font-size: 12.5px;
  border-radius: var(--pk-radius-sm);
  color: var(--pk-text-primary);
  cursor: pointer;
  transition: background-color 0.15s;
}


.pk-filter-option.active {
  font-weight: 600;
  color: var(--pk-primary);
}

/* 4-col Active Vehicles Card */
.pk-active-vehicles-card {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
}

.pk-active-metric-header {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--pk-border-light);
}

.pk-active-metric-header .pk-metric-label {
  font-family: var(--pk-font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  color: var(--pk-text-primary);
}

.pk-dashboard-wrapper .pk-active-metric-header .pk-metric-value,
.pk-active-metric-header .pk-metric-value {
  font-family: 'Inter', sans-serif !important;
  font-size: 17.6px !important;
  font-weight: 700 !important;
  line-height: 28px !important;
  letter-spacing: normal !important;
  color: var(--pk-text-primary) !important;
  margin: 2px 0 4px 0 !important;
}

.pk-dashboard-wrapper .pk-section-mini-title,
.pk-section-mini-title {
  font-family: 'Inter', sans-serif !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 16px !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  color: var(--pk-text-secondary) !important;
  margin: 10px 0 6px 0 !important;
}

.pk-hourly-chart-area+.pk-section-mini-title {
  margin: 6px 0 6px 0 !important;
}

.pk-hourly-chart-area {
  min-height: 135px;
  position: relative;
  margin-bottom: 0px;
}

.pk-payment-collection-list {
  display: flex;
  flex-direction: column;
  /* gap: 8px; */
}

.pk-payment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 20px !important;
  letter-spacing: normal !important;
  color: var(--pk-text-secondary) !important;
  padding: 2.5px 0;
}

.pk-payment-val {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  color: var(--pk-text-primary) !important;
  font-variant-numeric: tabular-nums;
}

.pk-empty-state-text {
  font-family: 'Inter', sans-serif !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 16px !important;
  letter-spacing: normal !important;
  color: var(--pk-text-tertiary) !important;
  padding: 8px 0;
}

/* Section Title Headers */
.pk-section-header {
  margin: 0 0 14px 0;
}

.pk-dashboard-wrapper h5.pk-section-title,
.pk-section-title {
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 16px !important;
  letter-spacing: normal !important;
  text-transform: uppercase !important;
  color: var(--pk-text-secondary) !important;
  margin: 0 !important;
}

/* Today's Activity Grid (4 Columns) */
.pk-activity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.pk-activity-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.pk-activity-card-header {
  margin-bottom: 14px;
}

.pk-dashboard-wrapper h6.pk-activity-card-title,
.pk-activity-card-title {
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 20px !important;
  letter-spacing: normal !important;
  color: var(--pk-text-primary) !important;
  margin: 0 !important;
}

.pk-activity-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.pk-activity-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 20px !important;
  letter-spacing: normal !important;
  color: var(--pk-text-secondary) !important;
}

.pk-activity-count {
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 20px !important;
  letter-spacing: normal !important;
  color: var(--pk-text-secondary) !important;
  font-variant-numeric: tabular-nums;
}

/* Custom Scrollbar for Active Services */
.pk-scrollable-list {
  max-height: 120px;
  overflow-y: auto;
  padding-right: 6px;
}

.pk-scrollable-list::-webkit-scrollbar {
  width: 4px;
}

.pk-scrollable-list::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.pk-scrollable-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}


/* Operational Breakdown Grid (3 Columns) */
.pk-operational-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.pk-table-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  overflow: visible !important;
}

.pk-table-card-header {
  margin-bottom: 14px;
}

.pk-dashboard-wrapper h6.pk-table-card-title,
.pk-table-card-title {
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 20px !important;
  letter-spacing: normal !important;
  color: var(--pk-text-primary) !important;
  margin: 0 !important;
}

.pk-data-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.pk-data-table th {
  font-family: 'Inter', sans-serif !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 16px !important;
  color: var(--pk-text-secondary) !important;
  letter-spacing: normal !important;
  text-transform: uppercase !important;
  text-align: left;
  padding: 6px 0 10px 0;
  border-bottom: 1px solid var(--pk-border-light);
}

.pk-data-table th:last-child {
  text-align: right;
}

.pk-data-table th:nth-child(2) {
  text-align: center;
}

.pk-data-table td {
  padding: 10px 0;
  font-family: var(--pk-font-body);
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  color: var(--pk-text-secondary);
  border-bottom: 1px solid #f8fafc;
  font-variant-numeric: tabular-nums;
}

.pk-data-table td:first-child {
  color: var(--pk-text-primary);
}

.pk-data-table td:last-child {
  text-align: right;
  font-weight: 400;
  color: var(--pk-text-primary);
}

.pk-data-table td:nth-child(2) {
  text-align: center;
  color: var(--pk-text-secondary);
}

/* Floating Action Button */
.pk-floating-action-btn {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 48px;
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
  transition: width 0.2s, background-color 0.2s;
  z-index: 200;
}

.pk-floating-action-btn svg {
  width: 16px;
  height: 16px;
}

/* Animations */
@keyframes pkSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes pkFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Media Queries */
@media (max-width: 1200px) {
  .pk-top-grid {
    grid-template-columns: 1fr;
  }

  .pk-operational-grid {
    grid-template-columns: 1fr;
  }

  .pk-activity-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .pk-topbar {
    padding: 0 16px;
  }

  .pk-plan-badge-wrapper {
    display: none;
  }

  .pk-main-canvas {
    padding: 16px;
  }

  .pk-welcome-banner {
    flex-direction: column;
    gap: 16px;
  }

  .pk-metric-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .pk-activity-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   ApexCharts Custom Tooltip - Compact Gaps & Polished Aesthetics
   ========================================================================== */
.apexcharts-tooltip {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: visible !important;
  white-space: normal !important;
  filter: none !important;
}

.apexcharts-tooltip.apexcharts-theme-light,
.apexcharts-tooltip.apexcharts-theme-dark {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.pk-custom-tooltip-card {
  background: #ffffff !important;
  border: 1px solid #e8ecf2 !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 25px rgba(27, 31, 59, 0.08), 0 2px 6px rgba(27, 31, 59, 0.04) !important;
  padding: 10px 14px !important;
  min-width: 175px !important;
  font-family: 'Inter', sans-serif !important;
  pointer-events: none !important;
}

.pk-tip-header {
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  line-height: 18px !important;
  color: rgb(27, 31, 59) !important;
  margin: 0 !important;
  padding: 0 0 4px 0 !important;
}

.pk-tip-divider {
  height: 1px !important;
  background-color: #e8ecf2 !important;
  margin: 0 0 5px 0 !important;
  border: none !important;
}

.pk-tip-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  /* Compact vertical gap between series rows */
  margin: 0 !important;
  padding: 0 !important;
}

.pk-tip-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 2px 0 !important;
  line-height: 1.25 !important;
}

.pk-tip-left {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.pk-tip-dot {
  width: 9px !important;
  height: 9px !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
}

.pk-tip-name {
  font-family: 'Inter', sans-serif !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  color: rgba(27, 31, 59, 0.65) !important;
}

.pk-tip-val {
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: rgb(27, 31, 59) !important;
  text-align: right !important;
}

.pk-tip-header-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 12px !important;
}

.pk-tip-total {
  font-family: 'Inter', sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: var(--pk-primary) !important;
}