
/* ==========================================================
   V37 CLEAN OPERATOR — SCREEN CLEANUP
   Цел: махаме dev/noise панели и оставяме само работните екрани.
   ========================================================== */

/* 1) Hide V36 Import Memory / Auto Converter development panel */
#dashboard > .panel:first-child,
.v36-import,
.import-memory,
[id*="memory" i],
[class*="memory" i]{
  display:none!important;
}

/* 2) Hide secondary dashboard/analytics panels from screenshots */
.clean-main-grid,
.clean-main-grid.lower,
.merge-mode-grid,
#mergeAiWrap,
#dashMerge,
#dashLines,
#dashUncovered,
#dailyPlanWrap{
  display:none!important;
}

/* 3) Hide chart/visual noise panels */
.chart-card,
.fake-chart,
.sparkline,
[id*="chart" i],
[class*="chart" i]{
  display:none!important;
}

/* 4) Hide Merge Color Intelligence blocks */
.ph h3,
.panel h3{
  visibility:visible;
}

.panel:has(#mergeAiWrap),
.panel:has(.merge-mode-grid),
.panel:has(#dashMerge),
.panel:has(#dashLines),
.panel:has(#dashUncovered),
.panel:has(#dailyPlanWrap){
  display:none!important;
}

/* 5) Hide “Допълнителна информация” card if present */
.panel:has(button[onclick*="additional"]),
.panel:has(.additional-info),
.panel:has([id*="additional" i]),
.panel:has([class*="additional" i]){
  display:none!important;
}

/* Fallback text-based hiding for modern browsers */
.panel:has(h3):has(.fake-chart){
  display:none!important;
}

/* 6) Keep KPI area compact and useful */
.clean-kpi-grid,
.cards{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:16px!important;
  margin-bottom:18px!important;
}

.clean-kpi-card:nth-child(n+4),
.cards .kpi:nth-child(n+4){
  display:none!important;
}

.clean-kpi-card{
  min-height:150px!important;
  padding:22px!important;
}

.clean-kpi-card:after{
  opacity:.9!important;
}

.kpi-icon{
  display:none!important;
}

.kpi-copy{
  padding-left:0!important;
}

.kpi-value{
  font-size:44px!important;
  margin:14px 0 4px!important;
}

/* 7) Cleaner page header */
.top{
  margin-bottom:18px!important;
}

.top h2{
  font-size:34px!important;
}

.userbar{
  transform:scale(.92);
  transform-origin:right top;
}

/* 8) Make main working panels easier to read */
.panel{
  margin-bottom:18px!important;
}

.ph{
  min-height:64px!important;
}

.pb{
  padding:18px!important;
}

/* 9) Compact table view */
.table table{
  min-width:720px!important;
}

th,td{
  padding:10px 12px!important;
  font-size:13px!important;
}

.recipe{
  max-height:90px!important;
}

/* 10) Cleaner buttons */
button{
  min-height:42px;
}

.primary{
  box-shadow:0 0 0 1px rgba(0,224,164,.12);
}

/* 11) Operator-focused empty state */
.notice{
  display:none!important;
}

/* 12) Mobile/smaller screen */
@media(max-width:980px){
  .clean-kpi-grid,
  .cards{
    grid-template-columns:1fr!important;
  }
  .clean-kpi-card{
    min-height:130px!important;
  }
}

/* 13) HARD CLEAN: specific visible noise blocks from screenshots */
section#dashboard .panel:nth-of-type(n+2){
  display:none!important;
}

section#optimizer .panel:has(.merge-mode-card),
section#optimizer .panel:has([id*="merge" i]){
  display:none!important;
}

/* 14) Keep only actual working form/table panels on schedule/leftovers */
section#schedule > .panel,
section#leftovers > .panel,
section#mixing > .panel,
section#components > .panel,
section#settings > .panel,
section#help > .panel{
  display:block!important;
}

/* 15) Hide decorative KPI graph bars */
.bar{
  display:none!important;
}
