/* Pro POS Demo Stylesheet — Advanced Features & Financial Reporting */

:root {
  --pro-primary: #123B2A;
  --pro-accent: #0F766E;
  --pro-gold: #D97706;
  --pro-blue: #2563EB;
  --pro-purple: #7C3AED;
}

/* Header & Navigation */
.pos-pro-mark {
  background: linear-gradient(135deg, #0F766E, #059669) !important;
  font-size: 0.82rem !important;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
}
.pos-shop-name-wrap { display: flex; align-items: center; gap: 8px; }
.pos-pro-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}

.pos-pro-nav { display: flex; gap: 2px; flex-wrap: wrap; }
.pos-pro-nav a { font-size: 0.84rem; padding: 7px 11px; }

/* Dashboard KPI Grid */
.pos-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.pos-kpi-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pos-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.05);
}
.pos-kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--line);
}
.pos-kpi-card.kpi-emerald::before { background: #10B981; }
.pos-kpi-card.kpi-blue::before { background: #3B82F6; }
.pos-kpi-card.kpi-amber::before { background: #F59E0B; }
.pos-kpi-card.kpi-purple::before { background: #8B5CF6; }
.pos-kpi-card.kpi-teal::before { background: #14B8A6; }

.pos-kpi-title { font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.pos-kpi-value { font-family: var(--font-display); font-size: 1.65rem; color: var(--ink); margin-bottom: 4px; line-height: 1.2; }
.pos-kpi-meta { font-size: 0.78rem; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; }
.pos-kpi-badge { font-weight: 600; padding: 2px 6px; border-radius: 4px; font-size: 0.74rem; }
.pos-kpi-badge.is-pos { background: #DCFCE7; color: #166534; }
.pos-kpi-badge.is-neg { background: #FEE2E2; color: #991B1B; }

/* Dashboard Sections */
.pos-dash-split {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
@media (max-width: 991px) {
  .pos-dash-split { grid-template-columns: minmax(0, 1fr); }
  .pos-dash-split > * { min-width: 0; }
}

/* Reports Screen & Financial Statement */
.pos-report-filterbar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.pos-preset-group { display: flex; gap: 6px; flex-wrap: wrap; }
.pos-report-custom { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pos-report-custom input[type="date"] {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.86rem;
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
}
@media (pointer: coarse), (max-width: 900px) {
  .pos-report-custom { width: 100%; }
  .pos-report-custom input[type="date"] { flex: 1 1 150px; min-height: 46px; font-size: 16px; }
}
.pos-preset-btn {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.12s ease;
}
.pos-preset-btn:hover { background: #e2e8e4; color: var(--ink); }
.pos-preset-btn.active {
  background: var(--pro-primary);
  color: #fff;
  border-color: var(--pro-primary);
}

.pos-pnl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.pos-pnl-table tr td { padding: 12px 18px; border-bottom: 1px solid var(--line); }
.pos-pnl-table tr.pnl-heading td {
  background: var(--surface);
  font-weight: 700;
  color: var(--ink);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 18px;
}
.pos-pnl-table tr.pnl-sub td { padding-left: 36px; color: var(--ink-soft); font-size: 0.88rem; }
.pos-pnl-table tr.pnl-total td {
  font-weight: 700;
  background: #F8FAF9;
  border-top: 2px solid var(--line);
  font-size: 0.95rem;
}
.pos-pnl-table tr.pnl-net td {
  font-weight: 700;
  font-size: 1.12rem;
  background: #E8F5EE;
  color: #0E5A35;
  border-top: 2px solid #73C991;
  border-bottom: 2px solid #73C991;
}

/* Margin pill */
.pos-margin-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: #E0F2FE;
  color: #0369A1;
}

/* Action pills and buttons */
.pos-filter-pill-group { display: flex; gap: 8px; flex-wrap: wrap; }
.pos-filter-pill {
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink-soft);
  background: var(--white);
}
.pos-filter-pill.active {
  background: var(--pro-primary);
  color: #fff;
  border-color: var(--pro-primary);
}

.pos-table-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Pro Counter touch enhancements */
.pos-pro-counter-notes { margin-top: 8px; }
.pos-pro-counter-notes textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
  font-family: var(--font-body);
  font-size: 0.84rem;
  resize: vertical;
  min-height: 54px;
}

/* Footer links */
.pos-pro-footer-info { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 6px; }
.pos-pro-footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.pos-footer-link { color: var(--green); text-decoration: none; font-weight: 600; font-size: 0.82rem; }
.pos-footer-link:hover { text-decoration: underline; }

/* ===== Report charts ===== */
.pos-report-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}
.pos-chart-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}
.pos-chart-card.pos-chart-wide { grid-column: 1 / -1; }
.pos-chart-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.pos-chart-head h3 { margin: 0; font-size: 0.98rem; }
.pos-chart-head .pos-note { display: block; width: 100%; }
.pos-chart-actions { display: flex; gap: 8px; }
.pos-chart-body { padding: 14px 16px 18px; }
.pos-chart-body canvas { display: block; width: 100%; height: 300px; }
.pos-chart-wide .pos-chart-body canvas { height: 340px; }
.pos-chart-empty { padding: 46px 16px; text-align: center; color: var(--ink-soft); font-size: 0.88rem; }
.pos-report-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

@media (max-width: 640px) {
  .pos-report-charts { grid-template-columns: 1fr; }
  .pos-chart-body canvas, .pos-chart-wide .pos-chart-body canvas { height: 260px; }
}

/* Responsive adjustments */
@media (max-width: 1400px) and (min-width: 901px) {
  .pos-kpi-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
}
@media (max-width: 900px) {
  .pos-kpi-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .pos-dash-split { grid-template-columns: minmax(0, 1fr); }
  .pos-dash-split > * { min-width: 0; }
  .pos-pnl-table { font-size: 0.88rem; }
  .pos-pnl-table tr td { padding: 11px 14px; }
  .pos-report-filterbar { flex-direction: column; align-items: stretch; }
  .pos-report-filterbar form { flex-wrap: wrap; }
  .pos-preset-btn { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 560px) {
  .pos-kpi-grid { grid-template-columns: 1fr; }
  .pos-pnl-table tr.pnl-sub td { padding-left: 20px; }
  .pos-pnl-table tr.pnl-net td { font-size: 1rem; }
}

/* Pro POS Modal Theme Overrides */
.pos-pro-body .pos-modal-total-card {
  background: linear-gradient(135deg, #0F766E 0%, #064E3B 100%);
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.22);
}

.pos-pro-body .pos-modal-icon {
  background: #E6F4F1;
  color: var(--pro-accent);
}

.pos-pro-body .pos-payment-pill.is-active {
  border-color: var(--pro-accent);
  background: #E6F4F1;
  box-shadow: 0 0 0 1px var(--pro-accent);
}

.pos-pro-body .pos-payment-pill.is-active .pos-payment-pill-name {
  color: #0F766E;
}

.pos-pro-body .pos-quick-btn.is-exact {
  background: #E6F4F1;
  border-color: #6EE7B7;
  color: #064E3B;
}

.pos-pro-body .pos-modal-change-val {
  color: var(--pro-accent);
}

/* ═══════════════════════════════════════════════════════════════════════════
   REPORT SECTION NAVIGATION
   ═══════════════════════════════════════════════════════════════════════════ */
.rpt-section-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.rpt-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.rpt-nav-pill:hover {
  background: var(--surface);
  border-color: #AAB9AD;
  color: var(--ink);
}

/* ═══════════════════════════════════════════════════════════════════════════
   REPORT SECTIONS
   ═══════════════════════════════════════════════════════════════════════════ */
.rpt-section {
  margin-bottom: 52px;
  scroll-margin-top: 80px;
}

.rpt-section-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--line);
}

.rpt-section-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.rpt-icon-inventory { background: #ECFDF5; }
.rpt-icon-sales     { background: #EFF6FF; }
.rpt-icon-financial { background: #FFF7ED; }
.rpt-icon-cashier   { background: #F5F3FF; }

.rpt-section-title {
  font-size: 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 3px;
  color: var(--ink);
}

/* ═══════════════════════════════════════════════════════════════════════════
   REPORT KPI CARDS (Compact 6-col row)
   ═══════════════════════════════════════════════════════════════════════════ */
.rpt-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.rpt-kpi-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px 13px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.rpt-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.rpt-kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 10px 10px 0 0;
}

.rpt-kpi-emerald::before { background: linear-gradient(90deg, #10B981, #34D399); }
.rpt-kpi-teal::before    { background: linear-gradient(90deg, #14B8A6, #2DD4BF); }
.rpt-kpi-blue::before    { background: linear-gradient(90deg, #3B82F6, #60A5FA); }
.rpt-kpi-purple::before  { background: linear-gradient(90deg, #8B5CF6, #A78BFA); }
.rpt-kpi-amber::before   { background: linear-gradient(90deg, #F59E0B, #FCD34D); }
.rpt-kpi-danger::before  { background: linear-gradient(90deg, #EF4444, #F87171); }

.rpt-kpi-icon {
  font-size: 1.2rem;
  margin-bottom: 6px;
  line-height: 1;
}

.rpt-kpi-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 5px;
  line-height: 1.3;
}

.rpt-kpi-value {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
}

.rpt-kpi-sub {
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin-top: 3px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CASHIER LEADERBOARD
   ═══════════════════════════════════════════════════════════════════════════ */
.rpt-leader-row td {
  background: linear-gradient(90deg, #FFFBF0 0%, #FEFCE8 100%) !important;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .rpt-kpi-row { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
  .rpt-section-title { font-size: 1.1rem; }
}

@media (max-width: 640px) {
  .rpt-kpi-row { grid-template-columns: 1fr 1fr; }
  .rpt-section-nav { gap: 6px; }
  .rpt-nav-pill { padding: 7px 12px; font-size: 0.78rem; }
  .rpt-section { margin-bottom: 36px; }
}

@media (max-width: 420px) {
  .rpt-kpi-row { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PAGINATION (Next / Back buttons, page numbers, status bar)
   ═══════════════════════════════════════════════════════════════════════════ */
.pos-panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 20px;
  background: #FFFFFF;
}

.pos-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  flex-wrap: wrap;
}

.pos-pagination-info {
  font-size: 0.85rem;
  color: #64748B;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pos-pagination-info strong {
  color: #1E293B;
  font-weight: 600;
}

.pos-pagination-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* Next and Back action buttons */
.pos-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  user-select: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.pos-page-btn svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: currentColor;
  transition: transform 0.15s ease;
}

.pos-page-btn:hover:not(.is-disabled) {
  border-color: #0F766E;
  background: #F0FDFA;
  color: #0F766E;
  box-shadow: 0 2px 4px rgba(15, 118, 110, 0.12);
}

.pos-page-prev:hover:not(.is-disabled) svg {
  transform: translateX(-2px);
}

.pos-page-next:hover:not(.is-disabled) svg {
  transform: translateX(2px);
}

.pos-page-btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #F8FAFC;
  border-color: #E2E8F0;
  color: #94A3B8;
  box-shadow: none;
}

/* Numeric page pills */
.pos-page-numbers {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pos-page-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: #475569;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.pos-page-item:hover:not(.is-active):not(.pos-page-dots) {
  background: #F1F5F9;
  color: #0F172A;
}

.pos-page-item.is-active {
  background: #0F766E;
  border-color: #0F766E;
  color: #FFFFFF;
  box-shadow: 0 2px 4px rgba(15, 118, 110, 0.25);
  cursor: default;
}

.pos-page-item.pos-page-dots {
  color: #94A3B8;
  cursor: default;
  border: none;
  padding: 0 4px;
}

/* Robust fallback if default Tailwind pagination markup is rendered */
.pos-panel-foot nav[role="navigation"] {
  width: 100%;
}

.pos-panel-foot nav[role="navigation"] svg {
  width: 16px !important;
  height: 16px !important;
  display: inline-block !important;
  vertical-align: middle;
}

.pos-panel-foot nav[role="navigation"] .flex {
  display: flex !important;
  align-items: center !important;
}

.pos-panel-foot nav[role="navigation"] .justify-between {
  justify-content: space-between !important;
}

.pos-panel-foot nav[role="navigation"] .sm\:hidden {
  display: none !important;
}

.pos-panel-foot nav[role="navigation"] a,
.pos-panel-foot nav[role="navigation"] span {
  font-size: 0.84rem;
}

@media (max-width: 640px) {
  .pos-pagination {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .pos-pagination-info {
    justify-content: center;
  }
  .pos-pagination-controls {
    justify-content: space-between;
    width: 100%;
  }
  .pos-page-numbers {
    display: none;
  }
}

/* Staff Management & Human Resources Styles */
.pos-staff-subnav {
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.pos-staff-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pos-staff-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: var(--radius) var(--radius) 0 0;
  border: 1px solid transparent;
  border-bottom: none;
  transition: all 0.15s ease;
}
.pos-staff-tab:hover {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.02);
}
.pos-staff-tab.is-active {
  color: #0F766E;
  background: var(--white);
  border-color: var(--line);
  border-bottom: 2px solid #0F766E;
  margin-bottom: -1px;
}
.pos-tab-icon {
  font-size: 1rem;
}

.pos-staff-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0F766E, #14B8A6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.pos-staff-avatar-lg {
  width: 48px;
  height: 48px;
  font-size: 1.15rem;
}

.pos-dossier-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pos-dossier-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}
.pos-dossier-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.pos-dossier-label {
  color: var(--ink-soft);
  font-size: 0.82rem;
}
.pos-dossier-val {
  color: var(--ink);
  text-align: right;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE POLISH
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .pos-pro-body .pos-kpi-grid { gap: 12px; margin-bottom: 18px; }
  .pos-pro-body .pos-kpi-card { padding: 15px 16px; }
  .pos-pro-body .pos-kpi-title { font-size: 0.74rem; }
  .pos-pro-body .pos-kpi-value { font-size: 1.45rem; }
  .pos-pro-body .pos-report-charts { gap: 14px; margin-bottom: 20px; }
  .pos-pro-body .pos-chart-head { padding: 12px 14px; }
  .pos-pro-body .pos-chart-body { padding: 12px 12px 16px; }
  .pos-pro-body .pos-chart-body canvas { height: 260px; }
  .pos-pro-body .pos-pnl-table { font-size: 0.86rem; }
  .pos-pro-body .pos-pnl-table tr td { padding: 10px 12px; }
  .pos-pro-body .pos-pnl-table tr.pnl-sub td { padding-left: 22px; }
  .pos-pro-body .pos-report-filterbar { gap: 12px; padding: 14px; }
  .pos-pro-body .pos-staff-subnav { margin-bottom: 16px; }
  .pos-pro-body .rpt-section { scroll-margin-top: 120px; }
}

@media (max-width: 560px) {
  .pos-pro-body .pos-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pos-pro-body .pos-kpi-value { font-size: 1.18rem; word-break: break-word; }
  .pos-pro-body .pos-kpi-meta { font-size: 0.72rem; flex-wrap: wrap; }
  .pos-pro-body .pos-chart-body canvas,
  .pos-pro-body .pos-chart-wide .pos-chart-body canvas { height: 225px; }
  .pos-pro-body .pos-preset-btn { flex: 1 1 calc(50% - 6px); text-align: center; }
  .pos-pro-body .pos-preset-group { width: 100%; }
  .pos-pro-body .pos-report-toolbar { width: 100%; }
  .pos-pro-body .pos-chart-actions { margin-left: auto; }
  .pos-pro-body .pos-pnl-table { font-size: 0.82rem; }
  .pos-pro-body .pos-pnl-table tr td { padding: 9px 10px; }
  .pos-pro-body .rpt-section-header { gap: 10px; }
  .pos-pro-body .rpt-section-icon { width: 38px; height: 38px; font-size: 1.1rem; }
  .pos-pro-body .rpt-section-title { font-size: 1.05rem; }
  .pos-pro-body .pos-dossier-item { align-items: flex-start; }
}

@media (max-width: 380px) {
  .pos-pro-body .pos-kpi-grid { grid-template-columns: minmax(0, 1fr); }
  .pos-pro-body .pos-preset-btn { flex-basis: 100%; }
}

.pos-badge-emerald { background: #DCFCE7; color: #166534; border: 1px solid #BBF7D0; }
.pos-badge-blue { background: #DBEAFE; color: #1E40AF; border: 1px solid #BFDBFE; }
.pos-badge-teal { background: #CCFBF1; color: #115E59; border: 1px solid #99F6E4; }
.pos-badge-purple { background: #F3E8FF; color: #6B21A8; border: 1px solid #E9D5FF; }
.pos-badge-red { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.pos-badge-amber { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
.pos-badge-gray { background: #F1F5F9; color: #475569; border: 1px solid #E2E8F0; }



