/* =====================================================================
   Tema "Preto e dourado" do painel (padrão das adegas)
   Carregado depois do admin.css somente quando o tema está ativo.
   ===================================================================== */
.theme-noir{
  --g:#d6a648; --g-hi:#f2d58e; --g-lo:#8f6a27;
  --g-line:rgba(214,166,72,.32); --g-line-soft:rgba(214,166,72,.16); --g-fill:rgba(214,166,72,.09);
  --tx:#f1e9da; --tx-soft:#a99d8a; --tx-dim:#7a7061;
  --panel:linear-gradient(180deg,rgba(30,26,21,.94),rgba(13,12,10,.96));
  --field:#0d0c0a;
  --dp-ink:var(--tx); --dp-ink-soft:var(--tx-soft); --dp-line:var(--g-line-soft); --dp-bg:#070605;
  --dp-pink-50:rgba(214,166,72,.06); --dp-pink-100:rgba(214,166,72,.13); --dp-pink-200:rgba(214,166,72,.35);
  --dp-pink-600:var(--g); --dp-pink-700:var(--g-hi);
  --dp-shadow:0 18px 40px -24px #000,inset 0 1px 0 rgba(255,220,150,.07);
  --bs-body-bg:#070605; --bs-body-color:var(--tx); --bs-border-color:var(--g-line-soft);
  --bs-secondary-color:var(--tx-soft); --bs-tertiary-bg:#14110d; --bs-secondary-bg:#14110d;
  --bs-link-color:var(--g); --bs-link-hover-color:var(--g-hi); --bs-link-color-rgb:214,166,72; --bs-link-hover-color-rgb:242,213,142;
  --bs-emphasis-color:#fff; --bs-heading-color:var(--tx);
  background:radial-gradient(90% 60% at 70% -10%,rgba(150,105,35,.14),transparent 60%),radial-gradient(60% 50% at 110% 100%,rgba(120,80,25,.12),transparent 70%),#070605 fixed;
  color:var(--tx);
}
.theme-noir .t-gold{color:var(--g)}
.theme-noir h1,.theme-noir .dp-page-title h1,.theme-noir .dp-card-head h2,.theme-noir .dp-card-head h3{font-family:"Playfair Display",Georgia,serif;font-weight:700;letter-spacing:0}
.theme-noir .dp-page-title h1{font-size:1.6rem}
.theme-noir .dp-card-head h2,.theme-noir .dp-card-head h3{font-size:1.08rem}
.theme-noir ::selection{background:rgba(214,166,72,.35);color:#fff}
.theme-noir .text-muted,.theme-noir .form-text,.theme-noir .small-muted{color:var(--tx-soft)!important}
.theme-noir .text-dark{color:var(--tx)!important}
.theme-noir .bg-light{background:#14110d!important}
.theme-noir hr{border-color:var(--g-line-soft);opacity:1}

/* Barra lateral */
.theme-noir .dp-sidebar{background:linear-gradient(180deg,#0b0907 0%,#060504 60%,#030302 100%);border-right:1px solid var(--g-line);color:var(--tx);box-shadow:8px 0 40px -20px rgba(0,0,0,.9)}
.theme-noir .dp-nav{flex:0 1 auto}
.theme-noir .dp-side-art{flex:1 0 120px;min-height:120px;order:3;background:url(../img/noir-side.jpg) center bottom/cover no-repeat;-webkit-mask-image:linear-gradient(180deg,transparent 0%,#000 45%);mask-image:linear-gradient(180deg,transparent 0%,#000 45%)}
.theme-noir .dp-sidebar-foot{order:2}
.theme-noir .dp-logo-sm.dp-logo-serif .dp-logo-name,.theme-noir .dp-sidebar .dp-logo-name{font-size:1.75rem}
.theme-noir .dp-sidebar .dp-logo .dp-crown{width:34px;height:22px}
.theme-noir .dp-sidebar-brand{position:relative;border-bottom:1px solid var(--g-line-soft);justify-content:center}
.theme-noir .dp-sidebar-brand::after{content:"";position:absolute;left:22%;right:22%;bottom:-1px;height:1px;background:linear-gradient(90deg,transparent,var(--g),transparent)}
.theme-noir .dp-nav{scrollbar-color:var(--g-lo) transparent}
.theme-noir .dp-nav-group{color:var(--g);font-weight:700;letter-spacing:.12em}
.theme-noir .dp-nav-link{color:#e9dfcc;font-weight:500}
.theme-noir .dp-nav-link i{color:var(--g)}
.theme-noir .dp-nav-link:hover{background:var(--g-fill);color:#fff}
.theme-noir .dp-nav-link.active{background:linear-gradient(90deg,#f0cf85,#d39f3e 60%,#b8862e);color:#1a1206;font-weight:600;box-shadow:0 8px 22px -10px rgba(214,166,72,.8),inset 0 1px 0 rgba(255,255,255,.4)}
.theme-noir .dp-nav-link.active i{color:#1a1206}
.theme-noir .dp-nav-badge{background:var(--g);color:#1a1206}
.theme-noir .dp-sidebar-foot{border-top:1px solid var(--g-line-soft)}
.theme-noir .pf-credit{color:var(--g-hi);text-shadow:0 1px 6px #000}
@media (max-width:991.98px){.theme-noir.dp-sidebar-open .dp-backdrop,.theme-noir .dp-backdrop{background:rgba(0,0,0,.6)}}

/* Topo */
.theme-noir .dp-topbar{background:rgba(7,6,5,.82);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid var(--g-line-soft)}
.theme-noir .dp-page-title p{color:var(--tx-soft)}
.theme-noir .dp-icon-btn,.theme-noir .dp-user-btn,.theme-noir .dp-chip{background:rgba(20,17,13,.8);border:1px solid var(--g-line);color:var(--tx)}
.theme-noir .dp-icon-btn:hover{border-color:var(--g);color:var(--g-hi)}
.theme-noir .dp-user-btn small{color:var(--tx-soft)}
.theme-noir .dp-avatar{background:radial-gradient(circle at 30% 30%,#2a2116,#0d0b08);color:var(--g-hi);border:1px solid var(--g)}
.theme-noir .dp-dot{background:#d9443b;color:#fff;border-color:#070605}
.theme-noir .dp-store-select i{color:var(--g)}

/* Botões */
.theme-noir .btn-pink{background:linear-gradient(180deg,#f2d28a,#d6a648 55%,#b9872f);color:#1a1206;font-weight:600;box-shadow:0 10px 24px -12px rgba(214,166,72,.9),inset 0 1px 0 rgba(255,255,255,.45)}
.theme-noir .btn-pink:hover,.theme-noir .btn-pink:focus{background:linear-gradient(180deg,#f6dc9c,#dcae52 55%,#c08f35);color:#120c03}
.theme-noir .btn-pink:disabled{color:#1a1206}
.theme-noir .btn-light,.theme-noir .btn-outline-pink,.theme-noir .btn-outline-secondary{background:rgba(14,12,10,.7);border:1px solid var(--g-line);color:var(--tx)}
.theme-noir .btn-light:hover,.theme-noir .btn-outline-pink:hover,.theme-noir .btn-outline-secondary:hover{background:var(--g-fill);border-color:var(--g);color:var(--g-hi)}
.theme-noir .btn-soft{background:var(--g-fill);color:var(--g-hi);border:1px solid var(--g-line-soft)}
.theme-noir .btn-soft:hover{background:rgba(214,166,72,.18);color:#fff}
.theme-noir .btn-link{color:var(--g)}
.theme-noir .btn-close{filter:invert(1) sepia(1) saturate(2) hue-rotate(5deg)}

/* Cartões */
.theme-noir .dp-card{background:var(--panel);border:1px solid var(--g-line);box-shadow:var(--dp-shadow),0 0 0 1px rgba(0,0,0,.6)}
.theme-noir .dp-card-head{border-bottom:1px solid var(--g-line-soft)}
.theme-noir .dp-card-head i{color:var(--g)}
.theme-noir .dp-kpi .dp-kpi-icon{background:var(--g-fill)!important;color:var(--g)!important;border:1px solid var(--g-line-soft)}
.theme-noir .dp-kpi.is-hero{background:radial-gradient(120% 120% at 100% 0%,rgba(214,166,72,.35),transparent 55%),linear-gradient(135deg,#1c160d,#0c0a07);border-color:var(--g)}
.theme-noir .dp-kpi.is-hero .dp-kpi-label,.theme-noir .dp-kpi.is-hero .dp-kpi-sub{color:var(--g-hi)}
.theme-noir .dp-kpi .text-up{color:#5ad48a}.theme-noir .dp-kpi .text-down{color:#f07a6e}

/* Tabelas */
.theme-noir .table{--bs-table-color:var(--tx);--bs-table-bg:transparent;--bs-table-border-color:var(--g-line-soft);--bs-table-striped-bg:rgba(214,166,72,.03);--bs-table-hover-bg:rgba(214,166,72,.05);--bs-table-hover-color:var(--tx)}
.theme-noir .dp-table thead th{background:rgba(214,166,72,.07);color:var(--g);border-bottom:1px solid var(--g-line)}
.theme-noir .dp-table td{border-color:var(--g-line-soft)}
.theme-noir .dp-table tbody tr:hover{background:rgba(214,166,72,.05)}
.theme-noir .dp-table tfoot td{background:rgba(214,166,72,.07)}
.theme-noir .dp-thumb{background:#14110d;border-color:var(--g-line-soft)}
.theme-noir .dp-thumb-ph{color:var(--g-lo)}

/* Etiquetas */
.theme-noir .badge-soft-success{background:rgba(52,168,95,.16);color:#7ee2a5}
.theme-noir .badge-soft-warning{background:rgba(214,166,72,.18);color:#f2d58e}
.theme-noir .badge-soft-danger{background:rgba(220,70,60,.18);color:#ff9a8f}
.theme-noir .badge-soft-info{background:rgba(70,150,220,.16);color:#9fd0ff}
.theme-noir .badge-soft-pink,.theme-noir .badge-kind{background:var(--g-fill);color:var(--g-hi);border:1px solid var(--g-line-soft)}
.theme-noir .badge-soft-secondary{background:rgba(255,255,255,.07);color:#cfc6b6}

/* Formulários */
.theme-noir .form-control,.theme-noir .form-select{background-color:var(--field);border-color:var(--g-line);color:var(--tx)}
.theme-noir .form-control::placeholder{color:var(--tx-dim)}
.theme-noir .form-control:focus,.theme-noir .form-select:focus{background-color:#100e0b;border-color:var(--g);color:#fff;box-shadow:0 0 0 .2rem rgba(214,166,72,.18),0 0 18px -6px rgba(214,166,72,.6)}
.theme-noir .form-control:disabled,.theme-noir .form-control[readonly]{background-color:#12100d;color:#d9cfbd}
.theme-noir .form-select{--bs-form-select-bg-img:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23d6a648' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e")}
.theme-noir .form-select option{background:#12100d;color:var(--tx)}
.theme-noir .form-label{color:#e9dfcc}
.theme-noir .input-group-text{background:rgba(214,166,72,.1);border-color:var(--g-line);color:var(--g)}
.theme-noir .form-check-input{background-color:#16130f;border-color:var(--g-line)}
.theme-noir .form-check-input:checked{background-color:var(--g);border-color:var(--g)}
.theme-noir .form-switch .form-check-input{--bs-form-switch-bg:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23605645'/%3e%3c/svg%3e")}
.theme-noir .form-switch .form-check-input:checked{--bs-form-switch-bg:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff8e6'/%3e%3c/svg%3e");background-color:var(--g)}
.theme-noir .form-control-color{background:var(--field)}
.theme-noir .dp-section-title{color:var(--g)}
.theme-noir input[type=date]::-webkit-calendar-picker-indicator,.theme-noir input[type=time]::-webkit-calendar-picker-indicator,.theme-noir input[type=datetime-local]::-webkit-calendar-picker-indicator{filter:invert(.75) sepia(1) saturate(3) hue-rotate(5deg)}

/* Filtros, paginação, abas */
.theme-noir .dp-filters .btn{background:rgba(14,12,10,.7);border-color:var(--g-line-soft);color:var(--tx-soft)}
.theme-noir .dp-filters .btn.active{background:var(--g);border-color:var(--g);color:#1a1206}
.theme-noir .pagination{--bs-pagination-bg:#0e0c0a;--bs-pagination-border-color:var(--g-line-soft);--bs-pagination-color:var(--g);--bs-pagination-hover-bg:var(--g-fill);--bs-pagination-hover-color:var(--g-hi);--bs-pagination-disabled-bg:#0b0a08}
.theme-noir .pagination .active .page-link{background:var(--g);border-color:var(--g);color:#1a1206}
.theme-noir .nav-pills .nav-link{color:var(--tx-soft)}
.theme-noir .nav-pills .nav-link.active{background:var(--g);color:#1a1206}
.theme-noir .nav-tabs{--bs-nav-tabs-border-color:var(--g-line-soft);--bs-nav-tabs-link-active-bg:transparent;--bs-nav-tabs-link-active-color:var(--g);--bs-nav-tabs-link-active-border-color:var(--g-line) var(--g-line) transparent}
.theme-noir .nav-link{color:var(--tx-soft)}

/* Menus suspensos, janelas e avisos */
.theme-noir .dropdown-menu{--bs-dropdown-bg:#12100d;--bs-dropdown-border-color:var(--g-line);--bs-dropdown-link-color:var(--tx);--bs-dropdown-link-hover-bg:var(--g-fill);--bs-dropdown-link-hover-color:#fff;--bs-dropdown-link-active-bg:var(--g);--bs-dropdown-link-active-color:#1a1206;--bs-dropdown-divider-bg:var(--g-line-soft);box-shadow:0 20px 40px -16px #000}
.theme-noir .modal-content{background:linear-gradient(180deg,#1a1611,#0c0b09);border:1px solid var(--g-line);color:var(--tx)}
.theme-noir .modal-header,.theme-noir .modal-footer{border-color:var(--g-line-soft)}
.theme-noir .modal-backdrop{--bs-backdrop-opacity:.7}
.theme-noir .dp-toast{box-shadow:0 18px 40px -14px #000;border:1px solid var(--g-line-soft)}
.theme-noir .dp-toast-success{background:#0f1f15;color:#bff0cf}
.theme-noir .dp-toast-danger{background:#241110;color:#ffc2bb}.theme-noir .dp-toast-danger i{color:#ff8a7d}
.theme-noir .dp-toast-warning{background:#221a0b;color:#f6dc9c}.theme-noir .dp-toast-warning i{color:var(--g)}
.theme-noir .dp-toast-info{background:#0e1823;color:#c4e2ff}
.theme-noir .alert{border-color:var(--g-line-soft)}
.theme-noir .list-group{--bs-list-group-bg:transparent;--bs-list-group-border-color:var(--g-line-soft);--bs-list-group-color:var(--tx);--bs-list-group-action-hover-bg:var(--g-fill);--bs-list-group-active-bg:var(--g);--bs-list-group-active-border-color:var(--g)}
.theme-noir .dp-empty i{color:var(--g-lo)}
.theme-noir .text-pink{color:var(--g)!important}
.theme-noir .progress{--bs-progress-bg:#1a1610;--bs-progress-bar-bg:var(--g)}

/* Produto: foto, calculadora e tipo de venda */
.theme-noir .dp-upload{background:rgba(214,166,72,.03);border:2px dashed rgba(214,166,72,.55)}
.theme-noir .dp-upload:hover{border-color:var(--g-hi);background:rgba(214,166,72,.06)}
.theme-noir .dp-upload .dp-upload-hint{color:#e9dfcc}
.theme-noir .dp-upload .dp-upload-hint i{color:var(--g)}
.theme-noir .dp-calc{background:linear-gradient(180deg,#15120e,#0b0a08);border:1px solid var(--g-line)}
.theme-noir .dp-calc small{color:var(--tx-soft)!important}
.theme-noir .dp-kind span{border-color:var(--g-line-soft);background:linear-gradient(180deg,#16130f,#0d0c0a)}
.theme-noir .dp-kind small{color:var(--tx-soft)}
.theme-noir .dp-kind i{color:var(--g)}
.theme-noir .dp-kind input:checked+span{border-color:var(--g);background:radial-gradient(120% 120% at 50% 0%,rgba(214,166,72,.2),rgba(14,12,10,.95) 70%);box-shadow:0 0 0 1px var(--g),0 0 24px -6px rgba(214,166,72,.65)}
.theme-noir .quick-price .btn,.theme-noir [data-price-step]{background:linear-gradient(180deg,#e9c779,#b9872f);color:#1a1206;border:0}

/* PDV */
.theme-noir .pdv-search i{color:var(--g)}
.theme-noir .pdv-cats button{background:#0e0c0a;border-color:var(--g-line-soft);color:var(--tx-soft)}
.theme-noir .pdv-cats button.active{background:var(--g);border-color:var(--g);color:#1a1206}
.theme-noir .pdv-item{background:var(--panel);border-color:var(--g-line-soft);color:var(--tx)}
.theme-noir .pdv-item:hover{border-color:var(--g);box-shadow:0 14px 30px -18px rgba(214,166,72,.6)}
.theme-noir .pdv-item img,.theme-noir .pdv-item .ph{background:#14110d}
.theme-noir .pdv-item .p{color:var(--g)}
.theme-noir .pdv-item .q{background:var(--g);color:#1a1206}
.theme-noir .pdv-line{border-bottom-color:var(--g-line-soft)}
.theme-noir .pdv-qty{border-color:var(--g-line)}
.theme-noir .pdv-qty button{background:var(--g-fill);color:var(--g-hi)}
.theme-noir .pdv-qty input{background:transparent;color:var(--tx)}
.theme-noir .pdv-total{background:radial-gradient(120% 140% at 100% 0%,rgba(214,166,72,.25),transparent 60%),#0b0907;border-top:1px solid var(--g-line)}
.theme-noir .pdv-total .big{color:var(--g-hi)}
.theme-noir .pay-methods label{border-color:var(--g-line-soft);background:#0e0c0a;color:var(--tx)}
.theme-noir .pay-methods label i{color:var(--g)}
.theme-noir .pay-methods input:checked+label{border-color:var(--g);background:var(--g-fill);box-shadow:0 0 0 2px rgba(214,166,72,.3)}

/* Diversos */
.theme-noir .rank-n{background:var(--g-fill);color:var(--g)}
.theme-noir .rank-n.top{background:linear-gradient(180deg,#f2d28a,#b9872f);color:#1a1206}
.theme-noir .notif-item{border-bottom-color:var(--g-line-soft)}
.theme-noir .notif-ic{background:var(--g-fill)!important;color:var(--g)!important}
.theme-noir .seg-opt{background:#0e0c0a;border-color:var(--g-line-soft)}

/* Login */
.theme-noir .dp-login{background:#070605}
.theme-noir .dp-login-art{background:radial-gradient(60% 45% at 50% 50%,rgba(7,6,5,.78),rgba(7,6,5,.35) 70%),linear-gradient(180deg,rgba(7,6,5,.35),rgba(7,6,5,.85)),url(../img/noir-side.jpg) center/cover no-repeat}
.theme-noir .dp-login-art .ring{border-color:rgba(214,166,72,.35);box-shadow:0 0 60px rgba(214,166,72,.18)}
