/* Pochivkata Analytics — force Page Insight look */
:root{
  --poch-olive:#63692f;
  --poch-border:#e5e7eb; /* тонкая рамка */
  --poch-shadow:0 1px 2px rgba(16,24,40,.05), 0 8px 20px rgba(16,24,40,.06);
  --poch-text:#1f2937;
  --poch-muted:#6b7280;
  --poch-bg:#fff;
}

/* Тот же контейнер/рамка/тень, повышаем специфичность */
.page-template-page-dashboard #themesflat-content .poch-card-wrap .poch-card{
  background:var(--poch-bg) !important;
  border:1px solid var(--poch-border) !important;
  box-shadow:var(--poch-shadow) !important;
  border-radius:16px !important;
  padding:20px 24px !important;
  margin-top:24px !important;
}

/* Заголовок */
.page-template-page-dashboard #themesflat-content .poch-card .poch-title{
  margin:0 0 12px 0 !important;
  font-family:inherit !important;
  font-size:28px !important;
  line-height:1.25 !important;
  font-weight:700 !important;
  color:var(--poch-text) !important;
}

/* Табы — размер/высота как в Page Insight */
.page-template-page-dashboard #themesflat-content .poch-card .poch-tabs{
  display:flex; flex-wrap:wrap; gap:10px; margin:2px 0 16px !important;
}
.page-template-page-dashboard #themesflat-content .poch-card .poch-pill{
  display:inline-flex; align-items:center; justify-content:center;
  height:40px; padding:0 16px; min-width:76px;
  border-radius:999px; border:1px solid #e6e6e6 !important;
  background:#fff; color:var(--poch-text) !important;
  font-size:14px !important; font-weight:600 !important; letter-spacing:.2px;
  cursor:pointer; user-select:none; white-space:nowrap;
}
.page-template-page-dashboard #themesflat-content .poch-card .poch-pill.is-active{
  background:var(--poch-olive) !important; border-color:var(--poch-olive) !important; color:#fff !important;
}

/* KPI плитки */
.page-template-page-dashboard #themesflat-content #poch-stats .metrics{ display:flex; gap:12px; margin:4px 0 10px; flex-wrap:wrap; }
.page-template-page-dashboard #themesflat-content #poch-stats .metric{
  display:flex; flex-direction:column; gap:4px;
  padding:8px 12px; border:1px solid #ededed !important; border-radius:10px; background:#fff;
}
.page-template-page-dashboard #themesflat-content #poch-stats .metric>span{ font-size:18px; font-weight:700; color:var(--poch-text); }
.page-template-page-dashboard #themesflat-content #poch-stats .metric>small{ opacity:.8; color:var(--poch-muted); font-size:12px; }

/* График */
.page-template-page-dashboard #themesflat-content #pochChart{
  display:block; width:100% !important; height:260px !important; max-height:260px;
}

/* Таблица */
.page-template-page-dashboard #themesflat-content #poch-stats .table-wrap{
  overflow:auto; margin-top:12px; max-height:420px;
  border:1px solid #ededed !important; border-radius:12px; background:#fff;
}
.page-template-page-dashboard #themesflat-content #poch-stats table{ width:100%; border-collapse:collapse; }
.page-template-page-dashboard #themesflat-content #poch-stats table th,
.page-template-page-dashboard #themesflat-content #poch-stats table td{
  padding:10px 12px; text-align:left; border-bottom:1px solid #ededed !important;
  font-size:13px !important; color:var(--poch-text) !important;
}
.page-template-page-dashboard #themesflat-content #poch-stats table thead th{
  position:sticky; top:0; z-index:1; background:#fafafa; font-weight:700;
}

/* Кнопка */
.page-template-page-dashboard #themesflat-content #poch-stats .button{
  margin-top:12px; background:var(--poch-olive) !important; border-color:var(--poch-olive) !important;
}

/* Мобилка */
@media (max-width: 767px){
  .page-template-page-dashboard #themesflat-content .poch-card{ padding:16px 18px !important; }
  .page-template-page-dashboard #themesflat-content .poch-card .poch-title{ font-size:22px !important; }
  .page-template-page-dashboard #themesflat-content .poch-card .poch-pill{ height:36px; min-width:70px; font-size:13px !important; padding:0 14px; }
  .page-template-page-dashboard #themesflat-content #pochChart{ height:210px !important; max-height:210px; }
}