:root{--dg-green-dark:#58e52d;--dg-green-light:#287d1a;--dg-danger:#d64049;--dg-radius:12px;--dg-transition:.2s ease}
html[data-dg-theme=dark]{color-scheme:dark;--dg-bg:#07131f;--dg-side:#0b1b29;--dg-card:#102536;--dg-card2:#163044;--dg-text:#f5faf5;--dg-muted:#a9bbc4;--dg-border:#2b485c;--dg-primary:var(--dg-green-dark);--dg-primary-hover:#73f04d;--dg-primary-text:#071108;--dg-input:#0d202f;--dg-head:#173247;--dg-shadow:0 10px 28px rgba(0,0,0,.23)}
html[data-dg-theme=light]{color-scheme:light;--dg-bg:#f3f7f3;--dg-side:#e8f0e9;--dg-card:#fff;--dg-card2:#edf5ee;--dg-text:#18251a;--dg-muted:#607064;--dg-border:#ccd9ce;--dg-primary:var(--dg-green-light);--dg-primary-hover:#1e6514;--dg-primary-text:#fff;--dg-input:#fff;--dg-head:#e7f1e8;--dg-shadow:0 9px 25px rgba(30,55,34,.10)}
html[data-dg-theme] body,html[data-dg-theme] #app{background:var(--dg-bg)!important;color:var(--dg-text)!important;transition:background-color var(--dg-transition),color var(--dg-transition)}
html[data-dg-theme] :is(header,aside,#menu,.sidebar,.side-menu){background:var(--dg-side)!important;color:var(--dg-text)!important;border-color:var(--dg-border)!important}
html[data-dg-theme] :is(.card,.panel,.stat,.summary-card,.modal-content,.modal-box,.dropdown-menu,.dg-admin40-card,.dg-admin40-panel,.dg-ps-modal,.dg-pl-modal){background:var(--dg-card)!important;color:var(--dg-text)!important;border-color:var(--dg-border)!important;box-shadow:var(--dg-shadow)!important}
html[data-dg-theme] :is(small,.muted,.subtitle,.description,.empty){color:var(--dg-muted)!important}
html[data-dg-theme] :is(input,select,textarea){min-height:42px;padding:9px 12px!important;background:var(--dg-input)!important;color:var(--dg-text)!important;border:1px solid var(--dg-border)!important;border-radius:8px!important}
html[data-dg-theme] :is(input,select,textarea):focus{outline:2px solid var(--dg-primary);outline-offset:1px}
html[data-dg-theme] :is(button,.button,.btn,[role=button]){min-height:40px;max-width:100%;padding:9px 15px;border-radius:8px!important;font:700 14px/1.2 inherit;text-align:center;white-space:normal;overflow:visible;cursor:pointer;transition:transform .15s ease}
html[data-dg-theme] :is(button,.button,.btn,[role=button]):hover{transform:translateY(-1px)}
html[data-dg-theme] :is(.primary,.btn-primary,.dg-btn-primary){background:var(--dg-primary)!important;color:var(--dg-primary-text)!important;border:1px solid var(--dg-primary)!important}
html[data-dg-theme] :is(.primary,.btn-primary,.dg-btn-primary):hover{background:var(--dg-primary-hover)!important;border-color:var(--dg-primary-hover)!important}
html[data-dg-theme] :is(.secondary,.btn-secondary,.dg-btn-secondary){background:var(--dg-card2)!important;color:var(--dg-text)!important;border:1px solid var(--dg-primary)!important}
html[data-dg-theme] :is(.danger,.btn-danger,.dg-btn-danger){background:var(--dg-danger)!important;color:#fff!important;border:1px solid var(--dg-danger)!important}
html[data-dg-theme] table{width:100%;background:var(--dg-card)!important;color:var(--dg-text)!important;border:1px solid var(--dg-border)!important;border-collapse:separate;border-spacing:0;border-radius:var(--dg-radius)}
html[data-dg-theme] :is(thead,th){background:var(--dg-head)!important;color:var(--dg-text)!important}
html[data-dg-theme] :is(td,th){padding:11px 12px;border-color:var(--dg-border)!important}
html[data-dg-theme] :is(.toolbar,.modal-actions,.actions,.header-actions){gap:10px;flex-wrap:wrap}
html[data-dg-theme] #menu button{width:100%;justify-content:flex-start;background:transparent!important;color:var(--dg-muted)!important;border:1px solid transparent!important}
html[data-dg-theme] #menu button:hover{background:var(--dg-card2)!important;color:var(--dg-text)!important}
html[data-dg-theme] #menu button.active{background:var(--dg-primary)!important;color:var(--dg-primary-text)!important}
.dg-theme-control{display:inline-flex;align-items:center;gap:8px;padding:5px 7px 5px 11px;background:var(--dg-card);color:var(--dg-text);border:1px solid var(--dg-border);border-radius:var(--dg-radius);box-shadow:var(--dg-shadow)}
.dg-theme-control label{margin:0!important;font-size:12px;font-weight:800}.dg-theme-control select{min-height:32px!important;padding:4px 28px 4px 8px!important;font-size:12px}
#dg-business-overview{display:flex;flex-direction:column;gap:16px;margin:0 0 22px}.dg-overview-heading{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap}.dg-overview-heading h2,.dg-overview-heading p{margin:0}.dg-overview-heading p,.dg-overview-updated{color:var(--dg-muted)}
.dg-overview-metrics,.dg-overview-analyses{display:grid;grid-template-columns:repeat(4,minmax(180px,1fr));gap:12px}.dg-overview-card{min-width:0;padding:16px;background:var(--dg-card);color:var(--dg-text);border:1px solid var(--dg-border);border-radius:16px;box-shadow:var(--dg-shadow)}
.dg-overview-card:before{content:"";display:block;width:42px;height:4px;margin-bottom:13px;background:var(--dg-primary);border-radius:999px}.dg-overview-card small{display:block;min-height:34px;color:var(--dg-muted)!important;font-size:12px;font-weight:800;text-transform:uppercase}.dg-overview-card strong{display:block;margin:9px 0 6px;font-size:clamp(24px,2vw,38px);line-height:1}.dg-overview-card p{margin:0;color:var(--dg-muted);font-size:13px;line-height:1.4}.dg-overview-analysis h3{margin:0 0 12px;padding-bottom:9px;border-bottom:1px solid var(--dg-border);font-size:15px}
.dg-overview-error{padding:14px;border:1px solid var(--dg-danger);border-radius:var(--dg-radius)}
@media(max-width:1380px){.dg-overview-metrics,.dg-overview-analyses{grid-template-columns:repeat(2,minmax(180px,1fr))}}@media(max-width:760px){.dg-overview-metrics,.dg-overview-analyses{grid-template-columns:1fr}.dg-theme-control{width:100%}}

/* DG_VISAO_GERAL_OFICIAL_V3 */

#visao > :not(#dg-overview-oficial) {
  display: none !important;
}

#dg-overview-oficial {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.dg-vg-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.dg-vg-heading h2,
.dg-vg-heading p {
  margin: 0;
}

.dg-vg-heading p,
.dg-vg-heading > small {
  color:
    var(
      --dg-muted,
      var(--dg-text-muted, #68736a)
    );
}

.dg-vg-grid {
  display: grid;
  grid-template-columns:
    repeat(
      5,
      minmax(170px, 1fr)
    );
  gap: 12px;
}

.dg-vg-card,
.dg-vg-panel {
  background:
    var(
      --dg-card,
      var(--dg-surface, #ffffff)
    );
  color:
    var(--dg-text, #172018);
  border:
    1px solid
    var(--dg-border, #d5dfd6);
  border-radius: 14px;
  box-shadow:
    var(
      --dg-shadow,
      0 8px 22px rgba(0, 0, 0, .08)
    );
}

.dg-vg-card {
  padding: 16px;
  min-width: 0;
}

.dg-vg-line {
  width: 40px;
  height: 4px;
  margin-bottom: 12px;
  background:
    var(--dg-primary, #287d1a);
  border-radius: 999px;
}

.dg-vg-card small {
  display: block;
  min-height: 32px;
  color:
    var(
      --dg-muted,
      var(--dg-text-muted, #68736a)
    );
  font-weight: 800;
  text-transform: uppercase;
  font-size: 11px;
}

.dg-vg-card strong {
  display: block;
  margin: 9px 0 7px;
  font-size:
    clamp(23px, 2vw, 34px);
  overflow-wrap: anywhere;
}

.dg-vg-card p {
  margin: 0;
  color:
    var(
      --dg-muted,
      var(--dg-text-muted, #68736a)
    );
  font-size: 13px;
  line-height: 1.4;
}

.dg-vg-panels {
  display: grid;
  grid-template-columns:
    repeat(
      2,
      minmax(260px, 1fr)
    );
  gap: 12px;
}

.dg-vg-panel {
  padding: 16px;
}

.dg-vg-panel-wide {
  grid-column: 1 / -1;
}

.dg-vg-panel h3 {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom:
    1px solid
    var(--dg-border, #d5dfd6);
  font-size: 15px;
}

.dg-vg-kpis {
  display: grid;
  grid-template-columns:
    repeat(2, 1fr);
  gap: 10px;
}

.dg-vg-kpis > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
  background:
    var(
      --dg-card-soft,
      var(--dg-surface-secondary, rgba(40, 125, 26, .08))
    );
  border-radius: 10px;
}

.dg-vg-kpis small,
.dg-vg-kpis span,
.dg-vg-note {
  color:
    var(
      --dg-muted,
      var(--dg-text-muted, #68736a)
    );
}

.dg-vg-note {
  margin: 12px 0 0;
}

.dg-vg-summary {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.dg-vg-summary p {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin: 0;
  padding: 10px 0;
  border-bottom:
    1px solid
    var(--dg-border, #d5dfd6);
}

.dg-vg-activities {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 370px;
  overflow: auto;
}

.dg-vg-activity {
  display: grid;
  grid-template-columns:
    minmax(80px, auto)
    minmax(180px, 1fr)
    auto;
  align-items: center;
  gap: 12px;
  padding: 11px;
  background:
    var(
      --dg-card-soft,
      var(--dg-surface-secondary, rgba(40, 125, 26, .08))
    );
  border:
    1px solid
    var(--dg-border, #d5dfd6);
  border-radius: 9px;
}

.dg-vg-activity span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.dg-vg-activity small,
.dg-vg-empty {
  color:
    var(
      --dg-muted,
      var(--dg-text-muted, #68736a)
    );
}

.dg-vg-error {
  padding: 15px;
  border:
    1px solid #d64049;
  border-radius: 10px;
}

@media (max-width: 1400px) {
  .dg-vg-grid {
    grid-template-columns:
      repeat(
        3,
        minmax(170px, 1fr)
      );
  }
}

@media (max-width: 900px) {
  .dg-vg-grid,
  .dg-vg-panels {
    grid-template-columns:
      repeat(
        2,
        minmax(160px, 1fr)
      );
  }

  .dg-vg-panel-wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 650px) {
  .dg-vg-grid,
  .dg-vg-panels,
  .dg-vg-kpis {
    grid-template-columns: 1fr;
  }

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

/* DG_FIX_TEMA_CLARO_CONTRASTE_V1 */

:root[data-dg-theme='light'],
html[data-dg-theme='light'],
body[data-dg-theme='light'],
:root[data-theme='light'],
html[data-theme='light'],
body[data-theme='light'] {
  --dg-text: #102235;
  --dg-text-muted: #4f647d;
  --dg-border: #c9d5e2;
  --dg-surface: #ffffff;
  --dg-surface-secondary: #eef4fa;
  --dg-card-soft: #edf3f8;
}

/* Base geral do tema claro */
html[data-dg-theme='light'] body,
body[data-dg-theme='light'],
html[data-theme='light'] body,
body[data-theme='light'] {
  color: #102235 !important;
}

html[data-dg-theme='light'] h1,
html[data-dg-theme='light'] h2,
html[data-dg-theme='light'] h3,
html[data-dg-theme='light'] h4,
html[data-dg-theme='light'] h5,
html[data-dg-theme='light'] h6,
html[data-dg-theme='light'] strong,
html[data-dg-theme='light'] label,
html[data-dg-theme='light'] .title,
html[data-dg-theme='light'] .subtitle,
html[data-dg-theme='light'] .section-title,
html[data-dg-theme='light'] .section-subtitle,
html[data-dg-theme='light'] .menu-title,
html[data-dg-theme='light'] .menu-item,
html[data-dg-theme='light'] .nav-link,
html[data-dg-theme='light'] .card-title,
html[data-dg-theme='light'] .panel-title,
html[data-dg-theme='light'] .page-title,
body[data-dg-theme='light'] h1,
body[data-dg-theme='light'] h2,
body[data-dg-theme='light'] h3,
body[data-dg-theme='light'] h4,
body[data-dg-theme='light'] h5,
body[data-dg-theme='light'] h6,
body[data-dg-theme='light'] strong,
body[data-dg-theme='light'] label,
body[data-dg-theme='light'] .title,
body[data-dg-theme='light'] .subtitle,
body[data-dg-theme='light'] .section-title,
body[data-dg-theme='light'] .section-subtitle,
body[data-dg-theme='light'] .menu-title,
body[data-dg-theme='light'] .menu-item,
body[data-dg-theme='light'] .nav-link,
body[data-dg-theme='light'] .card-title,
body[data-dg-theme='light'] .panel-title,
body[data-dg-theme='light'] .page-title,
html[data-theme='light'] h1,
html[data-theme='light'] h2,
html[data-theme='light'] h3,
html[data-theme='light'] h4,
html[data-theme='light'] h5,
html[data-theme='light'] h6,
html[data-theme='light'] strong,
html[data-theme='light'] label,
html[data-theme='light'] .title,
html[data-theme='light'] .subtitle,
html[data-theme='light'] .section-title,
html[data-theme='light'] .section-subtitle,
html[data-theme='light'] .menu-title,
html[data-theme='light'] .menu-item,
html[data-theme='light'] .nav-link,
html[data-theme='light'] .card-title,
html[data-theme='light'] .panel-title,
html[data-theme='light'] .page-title,
body[data-theme='light'] h1,
body[data-theme='light'] h2,
body[data-theme='light'] h3,
body[data-theme='light'] h4,
body[data-theme='light'] h5,
body[data-theme='light'] h6,
body[data-theme='light'] strong,
body[data-theme='light'] label,
body[data-theme='light'] .title,
body[data-theme='light'] .subtitle,
body[data-theme='light'] .section-title,
body[data-theme='light'] .section-subtitle,
body[data-theme='light'] .menu-title,
body[data-theme='light'] .menu-item,
body[data-theme='light'] .nav-link,
body[data-theme='light'] .card-title,
body[data-theme='light'] .panel-title,
body[data-theme='light'] .page-title {
  color: #102235 !important;
}

html[data-dg-theme='light'] p,
html[data-dg-theme='light'] span,
html[data-dg-theme='light'] small,
html[data-dg-theme='light'] li,
html[data-dg-theme='light'] td,
html[data-dg-theme='light'] th,
html[data-dg-theme='light'] .muted,
html[data-dg-theme='light'] .hint,
html[data-dg-theme='light'] .description,
body[data-dg-theme='light'] p,
body[data-dg-theme='light'] span,
body[data-dg-theme='light'] small,
body[data-dg-theme='light'] li,
body[data-dg-theme='light'] td,
body[data-dg-theme='light'] th,
body[data-dg-theme='light'] .muted,
body[data-dg-theme='light'] .hint,
body[data-dg-theme='light'] .description,
html[data-theme='light'] p,
html[data-theme='light'] span,
html[data-theme='light'] small,
html[data-theme='light'] li,
html[data-theme='light'] td,
html[data-theme='light'] th,
html[data-theme='light'] .muted,
html[data-theme='light'] .hint,
html[data-theme='light'] .description,
body[data-theme='light'] p,
body[data-theme='light'] span,
body[data-theme='light'] small,
body[data-theme='light'] li,
body[data-theme='light'] td,
body[data-theme='light'] th,
body[data-theme='light'] .muted,
body[data-theme='light'] .hint,
body[data-theme='light'] .description {
  color: #4f647d !important;
}

/* Sidebar / navegação no claro */
html[data-dg-theme='light'] aside,
html[data-dg-theme='light'] .sidebar,
html[data-dg-theme='light'] .side-menu,
body[data-dg-theme='light'] aside,
body[data-dg-theme='light'] .sidebar,
body[data-dg-theme='light'] .side-menu,
html[data-theme='light'] aside,
html[data-theme='light'] .sidebar,
html[data-theme='light'] .side-menu,
body[data-theme='light'] aside,
body[data-theme='light'] .sidebar,
body[data-theme='light'] .side-menu {
  color: #20364d !important;
}

html[data-dg-theme='light'] aside a,
html[data-dg-theme='light'] .sidebar a,
html[data-dg-theme='light'] .side-menu a,
body[data-dg-theme='light'] aside a,
body[data-dg-theme='light'] .sidebar a,
body[data-dg-theme='light'] .side-menu a,
html[data-theme='light'] aside a,
html[data-theme='light'] .sidebar a,
html[data-theme='light'] .side-menu a,
body[data-theme='light'] aside a,
body[data-theme='light'] .sidebar a,
body[data-theme='light'] .side-menu a {
  color: #5b7087 !important;
}

html[data-dg-theme='light'] aside .active,
html[data-dg-theme='light'] .sidebar .active,
html[data-dg-theme='light'] .side-menu .active,
html[data-dg-theme='light'] aside a.active,
html[data-dg-theme='light'] .sidebar a.active,
html[data-dg-theme='light'] .side-menu a.active,
body[data-dg-theme='light'] aside .active,
body[data-dg-theme='light'] .sidebar .active,
body[data-dg-theme='light'] .side-menu .active,
body[data-dg-theme='light'] aside a.active,
body[data-dg-theme='light'] .sidebar a.active,
body[data-dg-theme='light'] .side-menu a.active,
html[data-theme='light'] aside .active,
html[data-theme='light'] .sidebar .active,
html[data-theme='light'] .side-menu .active,
html[data-theme='light'] aside a.active,
html[data-theme='light'] .sidebar a.active,
html[data-theme='light'] .side-menu a.active,
body[data-theme='light'] aside .active,
body[data-theme='light'] .sidebar .active,
body[data-theme='light'] .side-menu .active,
body[data-theme='light'] aside a.active,
body[data-theme='light'] .sidebar a.active,
body[data-theme='light'] .side-menu a.active {
  color: #102235 !important;
  font-weight: 700 !important;
}

/* Cards gerais no claro — útil para TV e telas com fundo branco */
html[data-dg-theme='light'] .card,
html[data-dg-theme='light'] .panel,
html[data-dg-theme='light'] .tile,
html[data-dg-theme='light'] .tv-card,
html[data-dg-theme='light'] .screen-card,
html[data-dg-theme='light'] .ranking-item,
html[data-dg-theme='light'] .setor-card,
html[data-dg-theme='light'] .sector-card,
body[data-dg-theme='light'] .card,
body[data-dg-theme='light'] .panel,
body[data-dg-theme='light'] .tile,
body[data-dg-theme='light'] .tv-card,
body[data-dg-theme='light'] .screen-card,
body[data-dg-theme='light'] .ranking-item,
body[data-dg-theme='light'] .setor-card,
body[data-dg-theme='light'] .sector-card,
html[data-theme='light'] .card,
html[data-theme='light'] .panel,
html[data-theme='light'] .tile,
html[data-theme='light'] .tv-card,
html[data-theme='light'] .screen-card,
html[data-theme='light'] .ranking-item,
html[data-theme='light'] .setor-card,
html[data-theme='light'] .sector-card,
body[data-theme='light'] .card,
body[data-theme='light'] .panel,
body[data-theme='light'] .tile,
body[data-theme='light'] .tv-card,
body[data-theme='light'] .screen-card,
body[data-theme='light'] .ranking-item,
body[data-theme='light'] .setor-card,
body[data-theme='light'] .sector-card {
  color: #102235 !important;
}

html[data-dg-theme='light'] .card *,
html[data-dg-theme='light'] .panel *,
html[data-dg-theme='light'] .tile *,
html[data-dg-theme='light'] .tv-card *,
html[data-dg-theme='light'] .screen-card *,
html[data-dg-theme='light'] .ranking-item *,
html[data-dg-theme='light'] .setor-card *,
html[data-dg-theme='light'] .sector-card *,
body[data-dg-theme='light'] .card *,
body[data-dg-theme='light'] .panel *,
body[data-dg-theme='light'] .tile *,
body[data-dg-theme='light'] .tv-card *,
body[data-dg-theme='light'] .screen-card *,
body[data-dg-theme='light'] .ranking-item *,
body[data-dg-theme='light'] .setor-card *,
body[data-dg-theme='light'] .sector-card *,
html[data-theme='light'] .card *,
html[data-theme='light'] .panel *,
html[data-theme='light'] .tile *,
html[data-theme='light'] .tv-card *,
html[data-theme='light'] .screen-card *,
html[data-theme='light'] .ranking-item *,
html[data-theme='light'] .setor-card *,
html[data-theme='light'] .sector-card *,
body[data-theme='light'] .card *,
body[data-theme='light'] .panel *,
body[data-theme='light'] .tile *,
body[data-theme='light'] .tv-card *,
body[data-theme='light'] .screen-card *,
body[data-theme='light'] .ranking-item *,
body[data-theme='light'] .setor-card *,
body[data-theme='light'] .sector-card * {
  color: inherit;
}

/* Títulos, números e cronômetro da TV no claro */
html[data-dg-theme='light'] .timer,
html[data-dg-theme='light'] .countdown,
html[data-dg-theme='light'] .clock,
html[data-dg-theme='light'] .progress-value,
html[data-dg-theme='light'] .progress-number,
html[data-dg-theme='light'] .screen-title,
html[data-dg-theme='light'] .tv-title,
html[data-dg-theme='light'] .tv-subtitle,
html[data-dg-theme='light'] .setor-nome,
html[data-dg-theme='light'] .sector-name,
body[data-dg-theme='light'] .timer,
body[data-dg-theme='light'] .countdown,
body[data-dg-theme='light'] .clock,
body[data-dg-theme='light'] .progress-value,
body[data-dg-theme='light'] .progress-number,
body[data-dg-theme='light'] .screen-title,
body[data-dg-theme='light'] .tv-title,
body[data-dg-theme='light'] .tv-subtitle,
body[data-dg-theme='light'] .setor-nome,
body[data-dg-theme='light'] .sector-name,
html[data-theme='light'] .timer,
html[data-theme='light'] .countdown,
html[data-theme='light'] .clock,
html[data-theme='light'] .progress-value,
html[data-theme='light'] .progress-number,
html[data-theme='light'] .screen-title,
html[data-theme='light'] .tv-title,
html[data-theme='light'] .tv-subtitle,
html[data-theme='light'] .setor-nome,
html[data-theme='light'] .sector-name,
body[data-theme='light'] .timer,
body[data-theme='light'] .countdown,
body[data-theme='light'] .clock,
body[data-theme='light'] .progress-value,
body[data-theme='light'] .progress-number,
body[data-theme='light'] .screen-title,
body[data-theme='light'] .tv-title,
body[data-theme='light'] .tv-subtitle,
body[data-theme='light'] .setor-nome,
body[data-theme='light'] .sector-name {
  color: #102235 !important;
}

/* Visão Geral oficial — manter boa leitura com cards azul-escuros no claro */
html[data-dg-theme='light'] #dg-overview-oficial .dg-vg-card,
html[data-dg-theme='light'] #dg-overview-oficial .dg-vg-panel,
body[data-dg-theme='light'] #dg-overview-oficial .dg-vg-card,
body[data-dg-theme='light'] #dg-overview-oficial .dg-vg-panel,
html[data-theme='light'] #dg-overview-oficial .dg-vg-card,
html[data-theme='light'] #dg-overview-oficial .dg-vg-panel,
body[data-theme='light'] #dg-overview-oficial .dg-vg-card,
body[data-theme='light'] #dg-overview-oficial .dg-vg-panel {
  color: #ffffff !important;
  background: linear-gradient(135deg, #0d2341 0%, #0b1c34 100%) !important;
  border-color: rgba(255,255,255,.12) !important;
}

html[data-dg-theme='light'] #dg-overview-oficial .dg-vg-card *,
html[data-dg-theme='light'] #dg-overview-oficial .dg-vg-panel *,
body[data-dg-theme='light'] #dg-overview-oficial .dg-vg-card *,
body[data-dg-theme='light'] #dg-overview-oficial .dg-vg-panel *,
html[data-theme='light'] #dg-overview-oficial .dg-vg-card *,
html[data-theme='light'] #dg-overview-oficial .dg-vg-panel *,
body[data-theme='light'] #dg-overview-oficial .dg-vg-card *,
body[data-theme='light'] #dg-overview-oficial .dg-vg-panel * {
  color: inherit;
}

html[data-dg-theme='light'] #dg-overview-oficial .dg-vg-card small,
html[data-dg-theme='light'] #dg-overview-oficial .dg-vg-card p,
html[data-dg-theme='light'] #dg-overview-oficial .dg-vg-card span,
html[data-dg-theme='light'] #dg-overview-oficial .dg-vg-panel small,
html[data-dg-theme='light'] #dg-overview-oficial .dg-vg-panel p,
html[data-dg-theme='light'] #dg-overview-oficial .dg-vg-panel span,
body[data-dg-theme='light'] #dg-overview-oficial .dg-vg-card small,
body[data-dg-theme='light'] #dg-overview-oficial .dg-vg-card p,
body[data-dg-theme='light'] #dg-overview-oficial .dg-vg-card span,
body[data-dg-theme='light'] #dg-overview-oficial .dg-vg-panel small,
body[data-dg-theme='light'] #dg-overview-oficial .dg-vg-panel p,
body[data-dg-theme='light'] #dg-overview-oficial .dg-vg-panel span,
html[data-theme='light'] #dg-overview-oficial .dg-vg-card small,
html[data-theme='light'] #dg-overview-oficial .dg-vg-card p,
html[data-theme='light'] #dg-overview-oficial .dg-vg-card span,
html[data-theme='light'] #dg-overview-oficial .dg-vg-panel small,
html[data-theme='light'] #dg-overview-oficial .dg-vg-panel p,
html[data-theme='light'] #dg-overview-oficial .dg-vg-panel span,
body[data-theme='light'] #dg-overview-oficial .dg-vg-card small,
body[data-theme='light'] #dg-overview-oficial .dg-vg-card p,
body[data-theme='light'] #dg-overview-oficial .dg-vg-card span,
body[data-theme='light'] #dg-overview-oficial .dg-vg-panel small,
body[data-theme='light'] #dg-overview-oficial .dg-vg-panel p,
body[data-theme='light'] #dg-overview-oficial .dg-vg-panel span {
  color: #d7e6fb !important;
}

html[data-dg-theme='light'] #dg-overview-oficial .dg-vg-card strong,
html[data-dg-theme='light'] #dg-overview-oficial .dg-vg-panel strong,
html[data-dg-theme='light'] #dg-overview-oficial .dg-vg-panel h3,
body[data-dg-theme='light'] #dg-overview-oficial .dg-vg-card strong,
body[data-dg-theme='light'] #dg-overview-oficial .dg-vg-panel strong,
body[data-dg-theme='light'] #dg-overview-oficial .dg-vg-panel h3,
html[data-theme='light'] #dg-overview-oficial .dg-vg-card strong,
html[data-theme='light'] #dg-overview-oficial .dg-vg-panel strong,
html[data-theme='light'] #dg-overview-oficial .dg-vg-panel h3,
body[data-theme='light'] #dg-overview-oficial .dg-vg-card strong,
body[data-theme='light'] #dg-overview-oficial .dg-vg-panel strong,
body[data-theme='light'] #dg-overview-oficial .dg-vg-panel h3 {
  color: #ffffff !important;
}

html[data-dg-theme='light'] #dg-overview-oficial .dg-vg-panel h3,
body[data-dg-theme='light'] #dg-overview-oficial .dg-vg-panel h3,
html[data-theme='light'] #dg-overview-oficial .dg-vg-panel h3,
body[data-theme='light'] #dg-overview-oficial .dg-vg-panel h3,
html[data-dg-theme='light'] #dg-overview-oficial .dg-vg-summary p,
body[data-dg-theme='light'] #dg-overview-oficial .dg-vg-summary p,
html[data-theme='light'] #dg-overview-oficial .dg-vg-summary p,
body[data-theme='light'] #dg-overview-oficial .dg-vg-summary p {
  border-color: rgba(255,255,255,.16) !important;
}

html[data-dg-theme='light'] #dg-overview-oficial .dg-vg-kpis > div,
html[data-dg-theme='light'] #dg-overview-oficial .dg-vg-activity,
body[data-dg-theme='light'] #dg-overview-oficial .dg-vg-kpis > div,
body[data-dg-theme='light'] #dg-overview-oficial .dg-vg-activity,
html[data-theme='light'] #dg-overview-oficial .dg-vg-kpis > div,
html[data-theme='light'] #dg-overview-oficial .dg-vg-activity,
body[data-theme='light'] #dg-overview-oficial .dg-vg-kpis > div,
body[data-theme='light'] #dg-overview-oficial .dg-vg-activity {
  background: rgba(255,255,255,.06) !important;
  border-color: rgba(255,255,255,.10) !important;
}

/* Ajuste do card de meta para não ficar exagerado */
html[data-dg-theme='light'] #dg-overview-oficial .dg-vg-card strong,
body[data-dg-theme='light'] #dg-overview-oficial .dg-vg-card strong,
html[data-theme='light'] #dg-overview-oficial .dg-vg-card strong,
body[data-theme='light'] #dg-overview-oficial .dg-vg-card strong {
  line-height: 1.1;
  word-break: break-word;
}

/* DG_FASE5_VISAO_GERAL_GRADE_REAL_V4
   Seis indicadores em uma linha em monitores grandes.
   Seletor real confirmado no módulo da Visão Geral.
*/
@media screen and (min-width: 1500px) {
  body #dg-overview-oficial .dg-vg-grid {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: 100% !important;
    align-items: stretch !important;
  }

  body #dg-overview-oficial .dg-vg-grid > .dg-vg-card {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }
}

/* DG_FASE5_META_CARD_TEXTO_V2
   Preserva a palavra configurada inteira no sexto indicador.
*/
@media screen and (min-width: 1500px) {
  body #dg-overview-oficial
  .dg-vg-grid > .dg-vg-card:nth-child(6) strong {
    font-size: 28px !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02em !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    white-space: normal !important;
    hyphens: none !important;
  }
}

/* DG_FASE5_TEMA_CLARO_GLOBAL_V1_START */

/*
  DG Sports Tech — tema claro global.

  Base:
  fundo geral:         #f4f7fb
  superfícies:         #ffffff
  superfície suave:    #eef4fa
  texto principal:     #102235
  texto secundário:    #4f647d
  bordas:              #c9d5e2
  verde institucional: #2f8f00
  verde decorativo:    #7cff00
*/

html[data-theme='light'],
body[data-theme='light'],
html[data-dg-theme='light'],
body[data-dg-theme='light'] {
  --dg-bg: #f4f7fb !important;
  --dg-surface: #ffffff !important;
  --dg-surface-secondary: #eef4fa !important;
  --dg-card-soft: #edf3f8 !important;

  --dg-text: #102235 !important;
  --dg-text-muted: #4f647d !important;
  --dg-border: #c9d5e2 !important;

  --dg-accent: #2f8f00 !important;
  --dg-accent-bright: #7cff00 !important;
  --dg-accent-soft: #e9f7df !important;

  color-scheme: light;
}

html[data-theme='light'] body,
body[data-theme='light'],
html[data-dg-theme='light'] body,
body[data-dg-theme='light'] {
  background: #f4f7fb !important;
  color: #102235 !important;

  font-family:
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif !important;
}

html[data-theme='light'] body :is(
  button,
  input,
  select,
  textarea,
  table,
  th,
  td
),
body[data-theme='light'] :is(
  button,
  input,
  select,
  textarea,
  table,
  th,
  td
),
html[data-dg-theme='light'] body :is(
  button,
  input,
  select,
  textarea,
  table,
  th,
  td
),
body[data-dg-theme='light'] :is(
  button,
  input,
  select,
  textarea,
  table,
  th,
  td
) {
  font-family: inherit !important;
}

/* Cabeçalho e navegação */

html[data-theme='light'] body :is(header, aside),
body[data-theme='light'] :is(header, aside),
html[data-dg-theme='light'] body :is(header, aside),
body[data-dg-theme='light'] :is(header, aside) {
  background: #ffffff !important;
  color: #102235 !important;
  border-color: #c9d5e2 !important;
}

html[data-theme='light'] body :is(aside, nav) a,
html[data-theme='light'] body :is(aside, nav) button,
body[data-theme='light'] :is(aside, nav) a,
body[data-theme='light'] :is(aside, nav) button,
html[data-dg-theme='light'] body :is(aside, nav) a,
html[data-dg-theme='light'] body :is(aside, nav) button,
body[data-dg-theme='light'] :is(aside, nav) a,
body[data-dg-theme='light'] :is(aside, nav) button {
  color: #20364d !important;
}

html[data-theme='light'] body :is(aside, nav) :is(.active, .is-active, [aria-current='page']),
body[data-theme='light'] :is(aside, nav) :is(.active, .is-active, [aria-current='page']),
html[data-dg-theme='light'] body :is(aside, nav) :is(.active, .is-active, [aria-current='page']),
body[data-dg-theme='light'] :is(aside, nav) :is(.active, .is-active, [aria-current='page']) {
  background: #e9f7df !important;
  color: #183200 !important;
  border-color: #64bd00 !important;
}

/* Cards e painéis */

html[data-theme='light'] body :is(
  .dg-vg-card,
  .dg-vg-panel,
  .dg-vg-kpis > div,
  .dg-admin40-shell,
  .dg-admin40-col,
  .dg-admin40-metric,
  .dg-admin40-health,
  .card,
  .panel,
  article
),
body[data-theme='light'] :is(
  .dg-vg-card,
  .dg-vg-panel,
  .dg-vg-kpis > div,
  .dg-admin40-shell,
  .dg-admin40-col,
  .dg-admin40-metric,
  .dg-admin40-health,
  .card,
  .panel,
  article
),
html[data-dg-theme='light'] body :is(
  .dg-vg-card,
  .dg-vg-panel,
  .dg-vg-kpis > div,
  .dg-admin40-shell,
  .dg-admin40-col,
  .dg-admin40-metric,
  .dg-admin40-health,
  .card,
  .panel,
  article
),
body[data-dg-theme='light'] :is(
  .dg-vg-card,
  .dg-vg-panel,
  .dg-vg-kpis > div,
  .dg-admin40-shell,
  .dg-admin40-col,
  .dg-admin40-metric,
  .dg-admin40-health,
  .card,
  .panel,
  article
) {
  background: #ffffff !important;
  color: #102235 !important;
  border-color: #c9d5e2 !important;

  box-shadow:
    0 8px 24px rgba(15, 34, 53, 0.07) !important;
}

/* Títulos */

html[data-theme='light'] body :is(
  .dg-vg-card,
  .dg-vg-panel,
  .dg-admin40-shell,
  .dg-admin40-col,
  .card,
  .panel,
  article
) :is(h1, h2, h3, h4, strong),
body[data-theme='light'] :is(
  .dg-vg-card,
  .dg-vg-panel,
  .dg-admin40-shell,
  .dg-admin40-col,
  .card,
  .panel,
  article
) :is(h1, h2, h3, h4, strong),
html[data-dg-theme='light'] body :is(
  .dg-vg-card,
  .dg-vg-panel,
  .dg-admin40-shell,
  .dg-admin40-col,
  .card,
  .panel,
  article
) :is(h1, h2, h3, h4, strong),
body[data-dg-theme='light'] :is(
  .dg-vg-card,
  .dg-vg-panel,
  .dg-admin40-shell,
  .dg-admin40-col,
  .card,
  .panel,
  article
) :is(h1, h2, h3, h4, strong) {
  color: #102235 !important;
}

/* Textos secundários */

html[data-theme='light'] body :is(
  .dg-vg-card,
  .dg-vg-panel,
  .dg-admin40-shell,
  .dg-admin40-col,
  .card,
  .panel,
  article
) :is(p, small, label, li),
body[data-theme='light'] :is(
  .dg-vg-card,
  .dg-vg-panel,
  .dg-admin40-shell,
  .dg-admin40-col,
  .card,
  .panel,
  article
) :is(p, small, label, li),
html[data-dg-theme='light'] body :is(
  .dg-vg-card,
  .dg-vg-panel,
  .dg-admin40-shell,
  .dg-admin40-col,
  .card,
  .panel,
  article
) :is(p, small, label, li),
body[data-dg-theme='light'] :is(
  .dg-vg-card,
  .dg-vg-panel,
  .dg-admin40-shell,
  .dg-admin40-col,
  .card,
  .panel,
  article
) :is(p, small, label, li) {
  color: #4f647d !important;
}

/* Formulários */

html[data-theme='light'] body :is(input, select, textarea),
body[data-theme='light'] :is(input, select, textarea),
html[data-dg-theme='light'] body :is(input, select, textarea),
body[data-dg-theme='light'] :is(input, select, textarea) {
  background: #ffffff !important;
  color: #102235 !important;
  border-color: #b8c8d8 !important;
}

html[data-theme='light'] body :is(input, textarea)::placeholder,
body[data-theme='light'] :is(input, textarea)::placeholder,
html[data-dg-theme='light'] body :is(input, textarea)::placeholder,
body[data-dg-theme='light'] :is(input, textarea)::placeholder {
  color: #687b90 !important;
  opacity: 1 !important;
}

html[data-theme='light'] body option,
body[data-theme='light'] option,
html[data-dg-theme='light'] body option,
body[data-dg-theme='light'] option {
  background: #ffffff !important;
  color: #102235 !important;
}

/* Tabelas */

html[data-theme='light'] body table,
body[data-theme='light'] table,
html[data-dg-theme='light'] body table,
body[data-dg-theme='light'] table {
  background: #ffffff !important;
  color: #102235 !important;
  border-color: #c9d5e2 !important;
}

html[data-theme='light'] body th,
body[data-theme='light'] th,
html[data-dg-theme='light'] body th,
body[data-dg-theme='light'] th {
  background: #eef4fa !important;
  color: #102235 !important;
  border-color: #c9d5e2 !important;
}

html[data-theme='light'] body td,
body[data-theme='light'] td,
html[data-dg-theme='light'] body td,
body[data-dg-theme='light'] td {
  background: #ffffff !important;
  color: #334a61 !important;
  border-color: #d9e2ec !important;
}

/* Links e foco acessível */

html[data-theme='light'] body a,
body[data-theme='light'] a,
html[data-dg-theme='light'] body a,
body[data-dg-theme='light'] a {
  text-decoration-color: #2f8f00;
}

html[data-theme='light'] body :focus-visible,
body[data-theme='light'] :focus-visible,
html[data-dg-theme='light'] body :focus-visible,
body[data-dg-theme='light'] :focus-visible {
  outline: 3px solid rgba(47, 143, 0, 0.35) !important;
  outline-offset: 2px !important;
}

/* DG_FASE5_TEMA_CLARO_GLOBAL_V1_END */

/* DG_FASE5_CONTRASTE_CLARO_PRODUCAO_METAS_V1
   Correção específica de contraste dos módulos Produção e Metas.
   Aplicada exclusivamente no modo claro.
*/

:where(
  html[data-theme="light"],
  body[data-theme="light"],
  html[data-dg-theme="light"],
  body[data-dg-theme="light"]
) #producao {
  color: #102235 !important;
}

/* Produção — títulos e textos */

:where(
  html[data-theme="light"],
  body[data-theme="light"],
  html[data-dg-theme="light"],
  body[data-dg-theme="light"]
) #producao :is(
  .dg-admin40-title,
  .dg-admin40-toolbar-title,
  h1,
  h2,
  h3,
  h4,
  strong
) {
  color: #102235 !important;
}

:where(
  html[data-theme="light"],
  body[data-theme="light"],
  html[data-dg-theme="light"],
  body[data-dg-theme="light"]
) #producao :is(
  .dg-admin40-subtitle,
  .dg-admin40-meta,
  p,
  small,
  label
) {
  color: #4f647d !important;
}

/* Produção — superfícies */

:where(
  html[data-theme="light"],
  body[data-theme="light"],
  html[data-dg-theme="light"],
  body[data-dg-theme="light"]
) #producao :is(
  .dg-admin40-shell,
  .dg-admin40-overview,
  .dg-admin40-metric,
  .dg-admin40-col:not([hidden])
) {
  background: #ffffff !important;
  color: #102235 !important;
  border-color: #c9d5e2 !important;
}

/* Barra Setores da Produção */

:where(
  html[data-theme="light"],
  body[data-theme="light"],
  html[data-dg-theme="light"],
  body[data-dg-theme="light"]
) #producao .dg-admin40-toolbar-wrap {
  background: #eef4fa !important;
  color: #102235 !important;
  border-color: #c9d5e2 !important;
}

/* Leitura da operação */

:where(
  html[data-theme="light"],
  body[data-theme="light"],
  html[data-dg-theme="light"],
  body[data-dg-theme="light"]
) #producao .dg-admin40-grid2 > * {
  background: #f7fafc !important;
  color: #102235 !important;
  border: 1px solid #c9d5e2 !important;
}

:where(
  html[data-theme="light"],
  body[data-theme="light"],
  html[data-dg-theme="light"],
  body[data-dg-theme="light"]
) #producao .dg-admin40-grid2 > * :is(
  h1,
  h2,
  h3,
  h4,
  strong
) {
  color: #102235 !important;
}

:where(
  html[data-theme="light"],
  body[data-theme="light"],
  html[data-dg-theme="light"],
  body[data-dg-theme="light"]
) #producao .dg-admin40-grid2 > * :is(
  p,
  span,
  small
) {
  color: #4f647d !important;
}

/* Indicadores */

:where(
  html[data-theme="light"],
  body[data-theme="light"],
  html[data-dg-theme="light"],
  body[data-dg-theme="light"]
) #producao .dg-admin40-metric :is(p, span, small) {
  color: #52677d !important;
}

/* Alertas coloridos continuam com texto branco */

:where(
  html[data-theme="light"],
  body[data-theme="light"],
  html[data-dg-theme="light"],
  body[data-dg-theme="light"]
) #producao .dg-admin40-alert,
:where(
  html[data-theme="light"],
  body[data-theme="light"],
  html[data-dg-theme="light"],
  body[data-dg-theme="light"]
) #producao .dg-admin40-alert * {
  color: #ffffff !important;
}

/* Metas */

:where(
  html[data-theme="light"],
  body[data-theme="light"],
  html[data-dg-theme="light"],
  body[data-dg-theme="light"]
) #metas {
  background: #f4f7fb !important;
  color: #102235 !important;
}

:where(
  html[data-theme="light"],
  body[data-theme="light"],
  html[data-dg-theme="light"],
  body[data-dg-theme="light"]
) #metas :is(h1, h2, h3, h4, strong) {
  color: #102235 !important;
}

:where(
  html[data-theme="light"],
  body[data-theme="light"],
  html[data-dg-theme="light"],
  body[data-dg-theme="light"]
) #metas :is(
  p,
  span,
  small,
  label,
  li,
  [class*="empty"]
) {
  color: #4f647d !important;
}

/* Botões de Metas */

:where(
  html[data-theme="light"],
  body[data-theme="light"],
  html[data-dg-theme="light"],
  body[data-dg-theme="light"]
) #metas button:not(:disabled) {
  background: #2f8f00 !important;
  color: #ffffff !important;
  border-color: #267700 !important;
  font-weight: 800 !important;
}

:where(
  html[data-theme="light"],
  body[data-theme="light"],
  html[data-dg-theme="light"],
  body[data-dg-theme="light"]
) #metas button:not(:disabled):hover {
  background: #267700 !important;
  color: #ffffff !important;
}

:where(
  html[data-theme="light"],
  body[data-theme="light"],
  html[data-dg-theme="light"],
  body[data-dg-theme="light"]
) #metas button:disabled {
  background: #d9e2ec !important;
  color: #64748b !important;
  border-color: #c3cfdb !important;
}
