/* Admin — barra superior de ferramentas */
.admin-top-tools{
  position:fixed;
  top:10px;
  right:16px;
  z-index:210;
  display:flex;
  align-items:center;
  gap:10px;
}
@media(max-width:900px){
  .admin-top-tools{top:58px;right:10px}
}
body:has(.admin-top-tools)>main,
body:has(.admin-top-tools)>.pf-wrap{
  padding-top:52px;
}

html[data-theme="light"] .admin-top-tools .rw-tema-switch{
  background:var(--rw-l-surface,#e4e8e2);
  border-color:var(--rw-l-border,#b4bbb0);
}

/* Sidebar */
html[data-theme="light"] .admin-sidebar{
  background:var(--rw-l-surface,#e4e8e2);
  border-right-color:var(--rw-l-border,#b4bbb0);
  box-shadow:2px 0 8px rgba(40,48,36,.06);
}
html[data-theme="light"] .admin-sidebar-brand{border-bottom-color:var(--rw-l-border,#b4bbb0)}
html[data-theme="light"] .admin-sub{color:var(--rw-l-muted,#5a6158)}
html[data-theme="light"] .admin-user-chip{
  background:var(--rw-l-surface-2,#ecefe9);
  border-color:var(--rw-l-border,#b4bbb0);
  color:var(--rw-l-muted,#5a6158);
}
html[data-theme="light"] .admin-user-name{color:var(--rw-l-text,#2a2e28)}
html[data-theme="light"] .admin-user-badge{
  background:var(--rw-l-highlight,#d4c9a8);
  color:var(--rw-l-accent,#856d1a);
}
html[data-theme="light"] .admin-nav-label{color:var(--rw-l-muted,#5a6158)}
html[data-theme="light"] .admin-nav .nav-btn{color:var(--rw-l-muted,#5a6158)}
html[data-theme="light"] .admin-nav .nav-btn:hover{
  background:var(--rw-l-surface-2,#ecefe9);
  color:var(--rw-l-text,#2a2e28);
}
html[data-theme="light"] .admin-nav .nav-btn.active{
  background:linear-gradient(90deg,rgba(133,109,26,.14),transparent);
  color:var(--rw-l-accent,#856d1a);
  box-shadow:inset 3px 0 0 var(--rw-l-accent-soft,#c9b88a);
}
html[data-theme="light"] .admin-sidebar-foot{border-top-color:var(--rw-l-border,#b4bbb0)}
html[data-theme="light"] .admin-sidebar-foot .nav-store{
  background:var(--rw-l-surface-2,#ecefe9);
  border-color:var(--rw-l-border,#b4bbb0);
  color:var(--rw-l-text,#2a2e28);
}
html[data-theme="light"] .admin-sidebar-foot .btn-logout{
  border-color:var(--rw-l-border,#b4bbb0);
  color:var(--rw-l-muted,#5a6158);
}
html[data-theme="light"] .admin-menu-toggle{
  background:var(--rw-l-surface,#e4e8e2);
  border-color:var(--rw-l-border,#b4bbb0);
  color:var(--rw-l-accent,#856d1a);
}

/* Conteúdo principal */
html[data-theme="light"] body:has(.admin-sidebar){
  background:var(--rw-l-bg,#d2d8d0)!important;
  color:var(--rw-l-text,#2a2e28)!important;
}

html[data-theme="light"] .card,
html[data-theme="light"] .fat-card,
html[data-theme="light"] .config-section{
  background:var(--rw-l-surface,#e4e8e2)!important;
  border-color:var(--rw-l-border,#b4bbb0)!important;
  box-shadow:0 1px 2px rgba(40,48,36,.06)!important;
}
html[data-theme="light"] .card span,
html[data-theme="light"] .fat-card span{color:var(--rw-l-muted,#5a6158)!important}
html[data-theme="light"] .card b,
html[data-theme="light"] .fat-card b,
html[data-theme="light"] .section-titulo,
html[data-theme="light"] .config-titulo{color:var(--rw-l-accent,#856d1a)!important}

html[data-theme="light"] .table-wrap{
  border-color:var(--rw-l-border,#b4bbb0)!important;
  background:var(--rw-l-surface,#e4e8e2)!important;
}
html[data-theme="light"] th{
  background:var(--rw-l-surface-2,#ecefe9)!important;
  color:var(--rw-l-muted,#5a6158)!important;
}
html[data-theme="light"] td{
  border-bottom-color:var(--rw-l-border,#b4bbb0)!important;
  color:var(--rw-l-text,#2a2e28)!important;
}
html[data-theme="light"] tr:hover td{background:var(--rw-l-highlight,#d4c9a8)!important}

html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] select{
  background:var(--rw-l-surface-2,#ecefe9)!important;
  border-color:var(--rw-l-border,#b4bbb0)!important;
  color:var(--rw-l-text,#2a2e28)!important;
}
html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder{color:#8a9188!important}

html[data-theme="light"] .btn-outline{
  border-color:var(--rw-l-border,#b4bbb0)!important;
  color:var(--rw-l-text,#2a2e28)!important;
}
html[data-theme="light"] .btn-gray{
  background:var(--rw-l-border,#b4bbb0)!important;
  color:var(--rw-l-text,#2a2e28)!important;
}

html[data-theme="light"] .ped-tab{
  background:var(--rw-l-surface-2,#ecefe9)!important;
  border-color:var(--rw-l-border,#b4bbb0)!important;
  color:var(--rw-l-muted,#5a6158)!important;
}
html[data-theme="light"] .ped-tab.on{
  background:var(--rw-l-highlight,#d4c9a8)!important;
  border-color:var(--rw-l-accent-soft,#c9b88a)!important;
  color:var(--rw-l-accent,#856d1a)!important;
}

html[data-theme="light"] .modal{
  background:var(--rw-l-surface,#e4e8e2)!important;
  border-color:var(--rw-l-border,#b4bbb0)!important;
}
html[data-theme="light"] .modal-header{border-bottom-color:var(--rw-l-border,#b4bbb0)!important}
html[data-theme="light"] .modal-footer{border-top-color:var(--rw-l-border,#b4bbb0)!important}
html[data-theme="light"] .modal-body{color:var(--rw-l-text,#2a2e28)}
html[data-theme="light"] .foto-prev{
  background:var(--rw-l-surface-2,#ecefe9)!important;
  border-color:var(--rw-l-border,#b4bbb0)!important;
}

html[data-theme="light"] .tab{
  background:var(--rw-l-surface-2,#ecefe9)!important;
  border-color:var(--rw-l-border,#b4bbb0)!important;
  color:var(--rw-l-muted,#5a6158)!important;
}
html[data-theme="light"] .tab.on{
  background:var(--rw-l-accent-soft,#c9b88a)!important;
  color:var(--rw-l-text,#2a2e28)!important;
}

html[data-theme="light"] .intro{color:var(--rw-l-muted,#5a6158)!important}
html[data-theme="light"] .chk-row{
  background:var(--rw-l-surface-2,#ecefe9)!important;
  border-color:var(--rw-l-border,#b4bbb0)!important;
}
html[data-theme="light"] .perm-item{
  border-color:var(--rw-l-border,#b4bbb0)!important;
  color:var(--rw-l-text,#2a2e28)!important;
}
html[data-theme="light"] .perm-item.on{
  background:#c8d4c0!important;
  border-color:#8aa882!important;
}

html[data-theme="light"] .pf-wrap,
html[data-theme="light"] .pf-section,
html[data-theme="light"] .pf-checklist,
html[data-theme="light"] .pf-preview,
html[data-theme="light"] .pf-var-card{
  background:var(--rw-l-surface,#e4e8e2)!important;
  border-color:var(--rw-l-border,#b4bbb0)!important;
}
html[data-theme="light"] .pf-section h2,
html[data-theme="light"] .pf-title{color:var(--rw-l-text,#2a2e28)!important}
html[data-theme="light"] .pf-input,
html[data-theme="light"] .pf-select,
html[data-theme="light"] .pf-textarea{
  background:var(--rw-l-surface-2,#ecefe9)!important;
  border-color:var(--rw-l-border,#b4bbb0)!important;
  color:var(--rw-l-text,#2a2e28)!important;
}
html[data-theme="light"] .pf-footer-bar{
  background:var(--rw-l-surface,#e4e8e2)!important;
  border-top-color:var(--rw-l-border,#b4bbb0)!important;
}

html[data-theme="light"] .stat{background:var(--rw-l-surface,#e4e8e2)!important;border-color:var(--rw-l-border,#b4bbb0)!important}
html[data-theme="light"] .scan-box,
html[data-theme="light"] .mode,
html[data-theme="light"] .flow,
html[data-theme="light"] .log{
  background:var(--rw-l-surface,#e4e8e2)!important;
  border-color:var(--rw-l-border,#b4bbb0)!important;
  color:var(--rw-l-text,#2a2e28)!important;
}

/* Login admin */
html[data-theme="light"] body:not(:has(.admin-sidebar)){
  background:var(--rw-l-bg,#d2d8d0)!important;
}
html[data-theme="light"] .box{
  background:var(--rw-l-surface,#e4e8e2)!important;
  border-color:var(--rw-l-border,#b4bbb0)!important;
  color:var(--rw-l-text,#2a2e28)!important;
}
html[data-theme="light"] .box label{color:var(--rw-l-muted,#5a6158)!important}
html[data-theme="light"] .box input{
  background:var(--rw-l-surface-2,#ecefe9)!important;
  border-color:var(--rw-l-border,#b4bbb0)!important;
  color:var(--rw-l-text,#2a2e28)!important;
}
