/* Enterprise Platform — professional admin theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ep-font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ep-sidebar-bg: #0f172a;
  --ep-sidebar-surface: #1e293b;
  --ep-sidebar-border: rgba(255, 255, 255, 0.06);
  --ep-sidebar-text: #cbd5e1;
  --ep-sidebar-muted: #94a3b8;
  --ep-sidebar-active-bg: rgba(37, 99, 235, 0.15);
  --ep-sidebar-active-text: #ffffff;
  --ep-sidebar-hover: rgba(255, 255, 255, 0.05);
  --ep-accent: #2563eb;
  --ep-accent-hover: #1d4ed8;
  --ep-accent-soft: #eff6ff;
  --ep-content-bg: #f1f5f9;
  --ep-surface: #ffffff;
  --ep-border: #e2e8f0;
  --ep-text: #0f172a;
  --ep-text-muted: #64748b;
  --ep-navbar-bg: #ffffff;
  --ep-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --ep-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --ep-shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
  --ep-radius: 0.5rem;
  --ep-radius-lg: 0.75rem;
}

*,
*::before,
*::after {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.hold-transition.sidebar-mini {
  background-color: var(--ep-content-bg);
  font-family: var(--ep-font);
  color: var(--ep-text);
  font-size: 0.9375rem;
}

/* —— Top bar —— */
.main-header.navbar {
  background: var(--ep-navbar-bg) !important;
  border-bottom: 1px solid var(--ep-border) !important;
  box-shadow: var(--ep-shadow-sm);
  min-height: 3.25rem;
}

.main-header .nav-link {
  color: var(--ep-text-muted) !important;
  font-weight: 500;
  font-size: 0.875rem;
}

.main-header .nav-link:hover {
  color: var(--ep-text) !important;
}

.main-header .navbar-nav .btn-outline-secondary {
  border-color: var(--ep-border);
  color: var(--ep-text-muted);
  font-weight: 500;
  font-size: 0.8125rem;
  border-radius: var(--ep-radius);
}

.main-header .navbar-nav .btn-outline-secondary:hover {
  background: var(--ep-content-bg);
  border-color: #cbd5e1;
  color: var(--ep-text);
}

.dropdown-menu {
  border: 1px solid var(--ep-border);
  box-shadow: var(--ep-shadow-lg);
  border-radius: var(--ep-radius);
  padding: 0.35rem 0;
}

.dropdown-item {
  font-size: 0.875rem;
  padding: 0.45rem 1rem;
}

.dropdown-item:hover {
  background: var(--ep-accent-soft);
  color: var(--ep-accent);
}

/* —— Top-bar inventory alerts —— */
.ep-alert-notifications {
  display: flex;
  align-items: center;
}

.main-header .ep-alert-trigger {
  position: relative;
  width: 2.35rem;
  height: 2.35rem;
  margin: 0 0.25rem;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.main-header .ep-alert-trigger:hover,
.main-header .ep-alert-trigger[aria-expanded="true"] {
  background: var(--ep-content-bg);
  color: var(--ep-text) !important;
}

.main-header .ep-alert-trigger.has-alerts {
  color: #b45309 !important;
  background: #fffbeb;
}

.ep-alert-count {
  position: absolute;
  top: -0.1rem;
  right: -0.15rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 0.9rem;
  text-align: center;
  box-sizing: content-box;
}

.ep-alert-menu {
  width: 24rem;
  max-width: calc(100vw - 1rem);
  margin-top: 0.45rem;
  padding: 0;
  overflow: hidden;
  border-radius: var(--ep-radius-lg);
}

.ep-alert-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem 0.9rem;
  border-bottom: 1px solid var(--ep-border);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.ep-alert-eyebrow {
  margin-bottom: 0.1rem;
  color: var(--ep-accent);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ep-alert-title {
  color: var(--ep-text);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.ep-alert-summary {
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--ep-text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.ep-alert-summary.has-alerts {
  background: #fef3c7;
  color: #92400e;
}

.dropdown-menu .ep-alert-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  color: var(--ep-text);
  white-space: normal;
  transition: background-color 0.15s ease;
}

.dropdown-menu .ep-alert-item:hover {
  background: #f8fafc;
  color: var(--ep-text);
}

.ep-alert-item-icon {
  flex: 0 0 2.25rem;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  background: #fff7ed;
  color: #c2410c;
  font-size: 0.9rem;
}

.ep-alert-item-body {
  min-width: 0;
  flex: 1 1 auto;
}

.ep-alert-item-topline,
.ep-alert-stock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ep-alert-item-topline strong {
  overflow: hidden;
  color: var(--ep-text);
  font-size: 0.84rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ep-alert-item-topline time {
  flex: 0 0 auto;
  color: #94a3b8;
  font-size: 0.65rem;
}

.ep-alert-item-code {
  display: block;
  margin: 0.08rem 0 0.45rem;
  color: var(--ep-text-muted);
  font-size: 0.68rem;
}

.ep-alert-stock {
  color: #475569;
  font-size: 0.7rem;
}

.ep-alert-stock b {
  color: #b45309;
  font-weight: 700;
}

.ep-alert-suggestion {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.17rem 0.42rem;
  border-radius: 0.3rem;
  background: var(--ep-accent-soft);
  color: #1d4ed8;
  font-size: 0.65rem;
  font-weight: 600;
}

.ep-alert-chevron {
  align-self: center;
  color: #cbd5e1;
  font-size: 0.65rem;
}

.ep-alert-item:hover .ep-alert-chevron {
  color: var(--ep-accent);
}

.ep-alert-more {
  padding: 0.5rem 1rem;
  background: #f8fafc;
  color: var(--ep-text-muted);
  font-size: 0.7rem;
  text-align: center;
}

.ep-alert-empty {
  padding: 2rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--ep-text-muted);
  font-size: 0.75rem;
  text-align: center;
}

.ep-alert-empty strong {
  margin: 0.65rem 0 0.2rem;
  color: var(--ep-text);
  font-size: 0.85rem;
}

.ep-alert-empty-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
}

.ep-alert-footer {
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #f8fafc;
  color: var(--ep-accent);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
}

.ep-alert-footer:hover {
  background: var(--ep-accent-soft);
  color: var(--ep-accent-hover);
  text-decoration: none;
}

/* —— Sidebar —— */
.main-sidebar {
  background: var(--ep-sidebar-bg) !important;
  border-right: 1px solid var(--ep-sidebar-border) !important;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.04);
}

.brand-link {
  background: transparent !important;
  border-bottom: 1px solid var(--ep-sidebar-border) !important;
  color: #fff !important;
  font-weight: 600;
  letter-spacing: -0.02em;
  padding: 0.85rem 1rem;
}

.brand-link .brand-text {
  font-size: 1.05rem;
}

.brand-link b {
  color: #fff;
  font-weight: 700;
}

.sidebar {
  padding-top: 0.25rem;
}

.user-panel {
  border-bottom: 1px solid var(--ep-sidebar-border) !important;
}

.user-panel .info a {
  color: #f1f5f9 !important;
  font-weight: 600;
  font-size: 0.875rem;
}

.user-panel .info small {
  color: var(--ep-sidebar-muted) !important;
}

.ep-nav-avatar {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.user-panel .image {
  padding-left: 0.85rem;
}

.ep-sidebar-avatar {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.ep-sidebar-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ep-sidebar-surface);
  color: var(--ep-sidebar-muted);
  font-size: 0.8rem;
}

.nav-sidebar .nav-link {
  color: var(--ep-sidebar-text) !important;
  border-radius: var(--ep-radius);
  margin: 0.125rem 0.625rem;
  width: calc(100% - 1.25rem);
  padding: 0.55rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-sidebar .nav-link:hover {
  background: var(--ep-sidebar-hover) !important;
  color: #fff !important;
}

.nav-sidebar .nav-link.active {
  background: var(--ep-sidebar-active-bg) !important;
  color: var(--ep-sidebar-active-text) !important;
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--ep-accent);
}

.nav-sidebar .nav-icon {
  color: var(--ep-sidebar-muted) !important;
  width: 1.35rem;
  font-size: 0.95rem;
}

.nav-sidebar .nav-link.active .nav-icon,
.nav-sidebar .nav-link:hover .nav-icon {
  color: #93c5fd !important;
}

[class*="sidebar-dark"] {
  background: var(--ep-sidebar-bg) !important;
}

[class*="sidebar-dark"] .nav-sidebar .nav-link,
[class*="sidebar-dark"] .brand-link {
  color: var(--ep-sidebar-text) !important;
}

.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active,
.sidebar-light-primary .nav-sidebar > .nav-item > .nav-link.active {
  background: var(--ep-sidebar-active-bg) !important;
  color: #fff !important;
}

.nav-sidebar .nav-treeview > .nav-item > .nav-link {
  padding-left: 2rem;
  font-size: 0.8125rem;
}

.nav-sidebar .has-treeview > .nav-link .right {
  color: var(--ep-sidebar-muted);
  transition: transform 0.15s ease;
}

.nav-sidebar .menu-open > .nav-link .right {
  transform: rotate(-90deg);
}

.nav-sidebar .has-treeview > .nav-link.active {
  background: transparent !important;
  box-shadow: none;
  color: #e2e8f0 !important;
}

.nav-sidebar .has-treeview.menu-open > .nav-link,
.nav-sidebar .has-treeview > .nav-link:hover {
  background: var(--ep-sidebar-hover) !important;
  color: #fff !important;
}

/* —— Content —— */
.content-wrapper {
  background-color: var(--ep-content-bg) !important;
}

.content-header {
  padding: 1rem 0 0.5rem;
}

.content-header h1 {
  color: var(--ep-text);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.content {
  padding-bottom: 1.5rem;
}

.content.content-compact {
  padding-top: 0.75rem;
}

.main-footer {
  background: var(--ep-surface) !important;
  border-top: 1px solid var(--ep-border);
  color: var(--ep-text-muted);
  font-size: 0.8125rem;
}

/* —— Cards —— */
.card {
  border: 1px solid var(--ep-border);
  box-shadow: var(--ep-shadow);
  border-radius: var(--ep-radius-lg);
  background: var(--ep-surface);
  margin-bottom: 1.25rem;
}

.card-header {
  background: var(--ep-surface);
  border-bottom: 1px solid var(--ep-border);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ep-text);
  padding: 0.875rem 1.25rem;
}

.card-body {
  padding: 1.25rem;
}

/* —— Tables —— */
.table {
  font-size: 0.875rem;
}

.table thead th {
  background: #f8fafc;
  color: var(--ep-text-muted);
  border-bottom: 1px solid var(--ep-border);
  border-top: none;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.65rem 0.75rem;
}

.table tbody td {
  border-top: 1px solid #f1f5f9;
  vertical-align: middle;
  padding: 0.65rem 0.75rem;
  color: var(--ep-text);
}

.table-hover tbody tr:hover {
  background-color: #f8fafc;
}

/* —— Buttons —— */
.btn {
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: var(--ep-radius);
  padding: 0.45rem 0.9rem;
}

.btn-primary {
  background-color: var(--ep-accent);
  border-color: var(--ep-accent);
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--ep-accent-hover);
  border-color: var(--ep-accent-hover);
}

.btn-sm {
  padding: 0.3rem 0.65rem;
  font-size: 0.8125rem;
}

.btn-default,
.btn-secondary {
  background: var(--ep-surface);
  border-color: var(--ep-border);
  color: var(--ep-text-muted);
}

.btn-default:hover {
  background: var(--ep-content-bg);
  border-color: #cbd5e1;
  color: var(--ep-text);
}

/* —— Forms —— */
.form-control {
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius);
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  color: var(--ep-text);
}

.form-control:focus {
  border-color: var(--ep-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-group label {
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--ep-text);
  margin-bottom: 0.35rem;
}

/* —— Alerts & badges —— */
.alert {
  border-radius: var(--ep-radius);
  border: none;
  font-size: 0.875rem;
}

.alert-success {
  background: #ecfdf5;
  color: #065f46;
}

.alert-danger {
  background: #fef2f2;
  color: #991b1b;
}

.alert-info {
  background: var(--ep-accent-soft);
  color: #1e40af;
}

.badge {
  font-weight: 500;
  font-size: 0.75rem;
  padding: 0.35em 0.65em;
  border-radius: 999px;
}

/* —— Dashboard stat cards —— */
.ep-stat-card {
  border-radius: var(--ep-radius-lg);
  border: 1px solid var(--ep-border);
  background: var(--ep-surface);
  box-shadow: var(--ep-shadow);
  padding: 1.25rem;
  height: 100%;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
}

.ep-stat-card:hover {
  box-shadow: var(--ep-shadow-lg);
  transform: translateY(-2px);
}

.ep-stat-card .ep-stat-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--ep-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.ep-stat-card .ep-stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ep-text-muted);
  margin-bottom: 0.25rem;
}

.ep-stat-card .ep-stat-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ep-text);
  margin-bottom: 0.75rem;
}

.ep-stat-card .ep-stat-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ep-accent);
  text-decoration: none;
}

.ep-stat-card .ep-stat-link:hover {
  color: var(--ep-accent-hover);
  text-decoration: none;
}

.ep-stat-card--blue .ep-stat-icon { background: #eff6ff; color: #2563eb; }
.ep-stat-card--violet .ep-stat-icon { background: #f5f3ff; color: #7c3aed; }
.ep-stat-card--emerald .ep-stat-icon { background: #ecfdf5; color: #059669; }
.ep-stat-card--amber .ep-stat-icon { background: #fffbeb; color: #d97706; }

.ep-stat-card .ep-stat-value {
  color: var(--ep-text);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.1;
  margin-top: 0.15rem;
}

.ep-stat-card.d-block:hover {
  text-decoration: none;
}

.ep-setup-list a {
  font-weight: 600;
}

/* —— Operations dashboard —— */
.ep-dashboard-section__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}

.ep-dashboard-section__heading .ep-dashboard__eyebrow {
  margin-bottom: 0.2rem;
}

.ep-dashboard-indicators {
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius);
  background: var(--ep-surface);
  box-shadow: var(--ep-shadow);
}

.ep-dashboard-indicators > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.25rem;
  padding: 0.8rem 1rem;
  color: var(--ep-text);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 600;
  list-style: none;
}

.ep-dashboard-indicators > summary::-webkit-details-marker {
  display: none;
}

.ep-dashboard-indicators > summary::after {
  content: "\f078";
  order: 3;
  color: var(--ep-text-muted);
  font-family: "Font Awesome 5 Free";
  font-size: 0.75rem;
  font-weight: 900;
}

.ep-dashboard-indicators[open] > summary::after {
  content: "\f077";
}

.ep-dashboard-indicators__body {
  padding: 0 1rem 0.25rem;
  border-top: 1px solid var(--ep-border);
}

.ep-dashboard-indicators__label {
  margin: 1rem 0 0.65rem;
  color: var(--ep-text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ep-stat-card--compact {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  column-gap: 0.75rem;
  padding: 0.9rem;
}

.ep-stat-card--compact .ep-stat-icon {
  grid-row: span 2;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  font-size: 0.9rem;
}

.ep-stat-card--compact .ep-stat-value {
  font-size: 1.3rem;
}

.ep-stat-card--compact .ep-stat-link {
  grid-column: 2;
  margin-top: 0.45rem;
}

.ep-dashboard__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.ep-dashboard__eyebrow {
  color: var(--ep-accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ep-dashboard__title {
  color: var(--ep-text);
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0.15rem 0 0;
}

.ep-dashboard__subtitle {
  color: var(--ep-text-muted);
  font-size: 0.82rem;
  margin: 0.35rem 0 0;
}

.ep-dashboard__filter {
  min-width: 16rem;
}

.ep-dashboard-panel .card-header {
  background: #f8fafc;
  font-size: 0.85rem;
  font-weight: 600;
}

.ep-dashboard-list-item {
  padding: 0.85rem 1rem;
}

.ep-dashboard-list-item strong {
  color: var(--ep-text);
  font-size: 0.82rem;
}

.ep-dashboard-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 9rem;
  padding: 1.5rem;
  text-align: center;
  color: var(--ep-text-muted);
}

.ep-dashboard-empty i {
  color: #059669;
  font-size: 1.25rem;
}

.ep-dashboard-empty strong {
  color: var(--ep-text);
  font-size: 0.9rem;
}

.ep-dashboard-empty span {
  font-size: 0.78rem;
  max-width: 18rem;
}

.ep-dashboard-footer-link {
  color: var(--ep-accent);
  font-size: 0.78rem;
  font-weight: 600;
}

.ep-dashboard-footer-link:hover {
  color: var(--ep-accent-hover);
  text-decoration: none;
}

.ep-dashboard__welcome .ep-page-intro {
  margin-bottom: 0;
}

/* —— Dashboard site weather —— */
.ep-weather-panel__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ep-weather-panel__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.ep-weather-panel__filter {
  min-width: 14rem;
  max-width: 22rem;
  flex: 1 1 14rem;
}

.ep-weather-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.ep-weather-panel__site {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ep-text);
  margin: 0 0 0.2rem;
}

.ep-weather-panel__meta {
  color: var(--ep-text-muted);
  font-size: 0.78rem;
}

.ep-weather-panel__head-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ep-weather-panel__level {
  font-size: 0.75rem;
  padding: 0.35em 0.65em;
}

.ep-weather-panel__decision {
  color: var(--ep-text);
  font-size: 0.86rem;
  margin-bottom: 1rem;
  padding: 0.65rem 0.85rem;
  background: #f8fafc;
  border-left: 3px solid var(--ep-accent, #2563eb);
  border-radius: 0 0.25rem 0.25rem 0;
}

.ep-weather-metrics {
  margin-bottom: 1.15rem;
}

.ep-weather-metric {
  height: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.35rem;
  background: #fff;
}

.ep-weather-metric__label {
  color: var(--ep-text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.ep-weather-metric__label span {
  display: block;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  margin-top: 0.1rem;
  color: #94a3b8;
}

.ep-weather-metric__value {
  color: var(--ep-text);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.ep-weather-metric__unit {
  color: var(--ep-text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: 0.15rem;
}

.ep-weather-fiveday {
  margin-top: 0.25rem;
}

.ep-weather-fiveday__heading {
  color: var(--ep-text);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.ep-weather-fiveday__table {
  font-size: 0.82rem;
}

.ep-weather-fiveday__table thead th {
  border-top: 0;
  color: var(--ep-text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  background: #f8fafc;
}

.ep-weather-fiveday__table td,
.ep-weather-fiveday__table th {
  vertical-align: middle;
  padding: 0.55rem 0.65rem;
}

.ep-weather-fiveday__dow {
  display: inline-block;
  min-width: 2.1rem;
  font-weight: 600;
  color: var(--ep-text);
  margin-right: 0.35rem;
}

.ep-weather-map-wrap {
  height: 100%;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ep-weather-map {
  flex: 1 1 auto;
  min-height: 260px;
  height: 280px;
  border: 1px solid #e2e8f0;
  border-radius: 0.35rem;
  background: #eef2f7;
  z-index: 0;
}

.ep-weather-map__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--ep-text-muted);
  font-size: 0.72rem;
}

.ep-weather-map__legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ep-weather-map__dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: 1px solid #fff;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.15);
}

.ep-weather-map__dot--warning { background: #dc2626; }
.ep-weather-map__dot--watch { background: #d97706; }
.ep-weather-map__dot--none { background: #2563eb; }

.ep-weather-map-marker {
  background: transparent;
  border: 0;
  overflow: visible;
}

.ep-weather-map-marker__inner {
  position: relative;
  display: block;
  width: 0;
  height: 0;
}

.ep-weather-map-marker__dot {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  border-radius: 50%;
  border-style: solid;
  border-color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
}

.ep-weather-map-marker__label {
  position: absolute;
  left: 10px;
  top: -0.55rem;
  max-width: 9.5rem;
  padding: 0.12rem 0.4rem;
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
  color: #0f172a;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.ep-weather-map-marker__label--selected {
  border-color: #94a3b8;
  background: #fff;
  font-weight: 700;
}

@media (min-width: 992px) {
  .ep-weather-map {
    height: 100%;
    min-height: 320px;
  }
}

.ep-period-check {
  min-height: 5.25rem;
  padding: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius-lg);
  background: #f8fafc;
}

.ep-period-check__icon {
  width: 2.4rem;
  height: 2.4rem;
  flex: 0 0 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
}

.ep-period-check.is-clear .ep-period-check__icon {
  background: #ecfdf5;
  color: #059669;
}

.ep-period-check.has-blockers {
  border-color: #fde68a;
  background: #fffbeb;
}

.ep-period-check.has-blockers .ep-period-check__icon {
  background: #fef3c7;
  color: #b45309;
}

.ep-period-check strong,
.ep-period-check span {
  display: block;
}

.ep-period-check strong {
  color: var(--ep-text);
  font-size: 1.25rem;
  line-height: 1.1;
}

.ep-period-check div > span {
  margin-top: 0.15rem;
  color: var(--ep-text-muted);
  font-size: 0.72rem;
}

.ep-freeze-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.ep-freeze-option__icon {
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
}

.ep-freeze-option__icon.soft {
  background: #eff6ff;
  color: #2563eb;
}

.ep-freeze-option__icon.hard {
  background: #fef2f2;
  color: #dc2626;
}

.ep-freeze-option strong {
  color: var(--ep-text);
  font-size: 0.82rem;
}

.ep-freeze-option p {
  margin: 0.15rem 0 0;
  color: var(--ep-text-muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.ep-period-action-column {
  min-width: 17rem;
}

.ep-period-reopen-form {
  display: flex;
  justify-content: flex-end;
  margin: 0;
}

.ep-period-reopen-form .input-group {
  width: 16rem;
  flex-wrap: nowrap;
}

.ep-period-reopen-form .form-control {
  min-width: 0;
}

.ep-period-reopen-form .btn {
  white-space: nowrap;
}

.ep-report-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 9rem;
  padding: 1.75rem 2rem;
  color: #fff;
  border-radius: var(--ep-radius-lg);
  background: linear-gradient(125deg, #0f3d68 0%, #165d91 58%, #167d91 100%);
  box-shadow: 0 0.5rem 1.4rem rgba(15, 61, 104, 0.18);
}

.ep-report-hero::after {
  content: "";
  position: absolute;
  right: -4rem;
  bottom: -6rem;
  width: 15rem;
  height: 15rem;
  border: 2.5rem solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
}

.ep-report-hero__eyebrow {
  display: block;
  margin-bottom: 0.35rem;
  color: #bae6fd;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ep-report-hero h2 {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 700;
}

.ep-report-hero p {
  max-width: 38rem;
  margin: 0.45rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
}

.ep-report-hero__icon {
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.25rem;
  height: 4.25rem;
  flex: 0 0 4.25rem;
  margin-left: 1.5rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.12);
  font-size: 1.5rem;
}

.ep-report-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.ep-report-section-heading h5 {
  margin: 0;
  color: var(--ep-text);
  font-size: 0.92rem;
  font-weight: 700;
}

.ep-report-section-heading div > span {
  color: var(--ep-text-muted);
  font-size: 0.72rem;
}

.ep-report-card {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 7rem;
  height: 100%;
  padding: 1rem 2.75rem 1rem 1rem;
  color: var(--ep-text);
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius-lg);
  background: #fff;
  box-shadow: var(--ep-shadow-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.ep-report-card:hover {
  color: var(--ep-text);
  text-decoration: none;
  border-color: #bfdbfe;
  box-shadow: 0 0.65rem 1.4rem rgba(15, 23, 42, 0.09);
  transform: translateY(-2px);
}

.ep-report-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  flex: 0 0 2.9rem;
  margin-right: 0.9rem;
  border-radius: 0.8rem;
  font-size: 1rem;
}

.ep-report-card__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.ep-report-card__body small {
  margin-bottom: 0.15rem;
  color: var(--ep-text-muted);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.ep-report-card__body strong {
  color: var(--ep-text);
  font-size: 0.85rem;
}

.ep-report-card__body span {
  margin-top: 0.2rem;
  color: var(--ep-text-muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.ep-report-card__arrow {
  position: absolute;
  right: 1rem;
  color: #94a3b8;
  font-size: 0.75rem;
  transition: transform 0.18s ease;
}

.ep-report-card:hover .ep-report-card__arrow {
  color: var(--ep-accent);
  transform: translateX(3px);
}

.ep-report-card--blue .ep-report-card__icon { color: #2563eb; background: #eff6ff; }
.ep-report-card--violet .ep-report-card__icon { color: #7c3aed; background: #f5f3ff; }
.ep-report-card--amber .ep-report-card__icon { color: #d97706; background: #fffbeb; }
.ep-report-card--emerald .ep-report-card__icon { color: #059669; background: #ecfdf5; }
.ep-report-card--red .ep-report-card__icon { color: #dc2626; background: #fef2f2; }
.ep-report-card--slate .ep-report-card__icon { color: #475569; background: #f1f5f9; }
.ep-report-card--cyan .ep-report-card__icon { color: #0891b2; background: #ecfeff; }

.ep-report-back-link {
  display: inline-block;
  margin-bottom: 0.4rem;
  color: var(--ep-text-muted);
  font-size: 0.74rem;
  font-weight: 600;
}

.ep-report-back-link:hover {
  color: var(--ep-accent);
  text-decoration: none;
}

.ep-report-title {
  margin: 0 0 0.2rem;
  color: var(--ep-text);
  font-size: 1.35rem;
  font-weight: 700;
}

.ep-report-stat {
  display: flex;
  align-items: center;
  min-height: 4.5rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius-lg);
  background: #fff;
  box-shadow: var(--ep-shadow-sm);
}

.ep-report-stat__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
  margin-right: 0.75rem;
  border-radius: 0.7rem;
}

.ep-report-stat__icon.blue { color: #2563eb; background: #eff6ff; }
.ep-report-stat__icon.violet { color: #7c3aed; background: #f5f3ff; }
.ep-report-stat__icon.emerald { color: #059669; background: #ecfdf5; }

.ep-report-stat strong,
.ep-report-stat div > span {
  display: block;
}

.ep-report-stat strong {
  color: var(--ep-text);
  font-size: 1.05rem;
  line-height: 1.1;
}

.ep-report-stat div > span {
  margin-top: 0.12rem;
  color: var(--ep-text-muted);
  font-size: 0.7rem;
}

.ep-movement-table {
  min-width: 69rem;
}

.ep-movement-table thead th {
  border-top: 1px solid var(--ep-border);
  white-space: nowrap;
}

.ep-movement-table td {
  vertical-align: middle;
}

.ep-running-balance {
  color: #0f3d68;
  font-weight: 700;
  white-space: nowrap;
}

.ep-running-balance span {
  display: block;
  color: var(--ep-text-muted);
  font-size: 0.62rem;
  font-weight: 500;
}

.ep-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  color: #64748b;
  border-radius: 50%;
  background: #f1f5f9;
}

.ep-page-intro {
  color: var(--ep-text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* —— Pagination —— */
.page-item .page-link {
  border-color: var(--ep-border);
  color: var(--ep-text-muted);
  font-size: 0.8125rem;
  border-radius: var(--ep-radius);
  margin: 0 0.1rem;
}

.page-item.active .page-link {
  background: var(--ep-accent);
  border-color: var(--ep-accent);
}

/* —— DPR wizard stepper —— */
.ep-dpr-stepper__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.ep-dpr-stepper__item {
  flex: 1 1 auto;
  min-width: 8rem;
}

.ep-dpr-stepper__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius);
  color: var(--ep-text-muted);
  text-decoration: none;
  font-size: 0.8125rem;
}

.ep-dpr-stepper__item.active .ep-dpr-stepper__link {
  border-color: var(--ep-accent);
  background: #eff6ff;
  color: var(--ep-accent);
  font-weight: 600;
}

.ep-dpr-stepper__item.completed .ep-dpr-stepper__link {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}

.ep-dpr-stepper__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--ep-border);
  font-size: 0.75rem;
  font-weight: 700;
}

.ep-dpr-stepper__item.active .ep-dpr-stepper__num {
  background: var(--ep-accent);
  color: #fff;
}

