:root{--store-theme-faint:rgba(21,92,73,.055);--store-theme-border:rgba(21,92,73,.28)}
body{background:radial-gradient(circle at 92% 4%,var(--store-theme-soft) 0,transparent 25%),var(--bg)!important}
.primary,.login button,.entity-form-actions button[type=submit],.processing-editor-actions .primary{background:linear-gradient(135deg,var(--store-theme),var(--store-theme-light))!important;color:#fff!important;border-color:transparent!important;box-shadow:0 6px 16px var(--store-theme-soft)!important}
.ghost,.link,.doc-link,.internal-profit,.profit-detail-button,.account-open-cell,.account-filter-title,.report,.profit-value,.processing-check-value{color:var(--store-theme)!important}

/* The sidebar is always dark, so session actions must not inherit the theme ink. */
aside .user{
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;gap:10px!important;min-height:64px;
  padding:12px 14px!important;background:rgba(255,255,255,.075)!important;
  border:1px solid rgba(255,255,255,.06)!important;border-radius:12px!important
}
aside .user #who{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff!important;font-weight:650}
aside .user .link{
  display:inline-flex!important;visibility:visible!important;opacity:1!important;
  align-items:center;justify-content:center;width:auto!important;min-width:max-content;
  padding:8px 10px!important;color:#fff!important;background:rgba(255,255,255,.1)!important;
  border:1px solid rgba(255,255,255,.16)!important;border-radius:8px!important;
  cursor:pointer;line-height:1.2;transition:background .18s ease,transform .18s ease
}
aside .user .link:hover,aside .user .link:focus-visible{color:#fff!important;background:rgba(255,255,255,.2)!important;transform:translateY(-1px);outline:none}
@media(max-width:850px){aside .user{margin-top:auto!important}}
.ghost{border-color:var(--store-theme-border)!important}.ghost:hover{background:var(--store-theme-faint)!important}
.sale-doc-head,.delivery-head,.delivery-foot,.stamp-paper>div{border-color:var(--store-theme)!important}.sale-doc-meta b,.delivery-head>div:last-child b,.sale-doc-totals .grand strong,.expense-pie-center strong,.stamp-upload-zone label b{color:var(--store-theme)!important}
.sale-doc-meta>b{color:#fff!important}
.sale-document{--paper-green:var(--store-theme)!important;--paper-green-2:var(--store-theme-light)!important}.sale-doc-table th{background:linear-gradient(180deg,var(--store-theme-light),var(--store-theme-dark))!important}.sale-doc-customer:before{background-color:var(--store-theme)!important}.sale-doc-totals .grand,.delivery-document tfoot td{background:var(--store-theme-faint)!important}
.card.green,.document-summary .profit-total,.profit-result,.delivery-profit-grid .delivery-total{background:linear-gradient(135deg,var(--store-theme-soft),#fff)!important;border-color:var(--store-theme-border)!important}.card.green strong,.document-summary .profit-total strong,.profit-result strong,.delivery-profit-grid .delivery-total b,.profit-flow .final{color:var(--store-theme)!important}
.contact-switch-card.active,.account-status-filter,.stamp-upload-zone,.supplier-chip,.delivery-type-chip{border-color:var(--store-theme-border)!important;background:linear-gradient(135deg,var(--store-theme-soft),#fff)!important;color:var(--store-theme)!important}
.badge.ok{background:var(--store-theme-soft)!important;color:var(--store-theme)!important;box-shadow:inset 0 0 0 1px var(--store-theme-border)!important}.account-open-cell:hover,table tbody tr:hover{background:var(--store-theme-faint)!important}.internal-profit,.profit-detail-button{background:var(--store-theme-soft)!important;border-color:var(--store-theme-border)!important}
.toolbar input:focus,.toolbar select:focus,.field input:focus,.field select:focus,.field textarea:focus,.invoice-table input:focus,.invoice-table select:focus{border-color:var(--store-theme)!important;box-shadow:0 0 0 3px var(--store-theme-soft)!important}
.bar.sales{background:linear-gradient(180deg,color-mix(in srgb,var(--bar-sales,var(--store-theme)) 70%,#fff),var(--bar-sales,var(--store-theme)))!important;box-shadow:0 5px 13px color-mix(in srgb,var(--bar-sales,var(--store-theme)) 28%,transparent)}.bar.profit{background:linear-gradient(180deg,color-mix(in srgb,var(--bar-profit,var(--chart-2)) 68%,#fff),var(--bar-profit,var(--chart-2)))!important;box-shadow:0 5px 13px color-mix(in srgb,var(--bar-profit,var(--chart-2)) 25%,transparent)}
.expense-slice:nth-of-type(2){stroke:var(--chart-1)!important}.expense-slice:nth-of-type(3){stroke:var(--chart-2)!important}.expense-slice:nth-of-type(4){stroke:var(--chart-3)!important}.expense-slice:nth-of-type(5){stroke:var(--chart-4)!important}.expense-slice:nth-of-type(6){stroke:var(--chart-5)!important}.expense-slice:nth-of-type(7){stroke:var(--chart-6)!important}.expense-slice:nth-of-type(8){stroke:var(--chart-7)!important}.expense-slice:nth-of-type(9){stroke:var(--chart-8)!important}.expense-slice:nth-of-type(10){stroke:var(--chart-9)!important}.expense-slice:nth-of-type(11){stroke:var(--chart-10)!important}.expense-slice:nth-of-type(12){stroke:var(--chart-11)!important}.expense-slice:nth-of-type(13){stroke:var(--chart-12)!important}
.expense-pie-legend>div{background:var(--store-theme-faint)!important}.expense-pie-legend>div:nth-child(1) i{background:var(--chart-1)!important}.expense-pie-legend>div:nth-child(2) i{background:var(--chart-2)!important}.expense-pie-legend>div:nth-child(3) i{background:var(--chart-3)!important}.expense-pie-legend>div:nth-child(4) i{background:var(--chart-4)!important}.expense-pie-legend>div:nth-child(5) i{background:var(--chart-5)!important}.expense-pie-legend>div:nth-child(6) i{background:var(--chart-6)!important}.expense-pie-legend>div:nth-child(7) i{background:var(--chart-7)!important}.expense-pie-legend>div:nth-child(8) i{background:var(--chart-8)!important}.expense-pie-legend>div:nth-child(9) i{background:var(--chart-9)!important}.expense-pie-legend>div:nth-child(10) i{background:var(--chart-10)!important}.expense-pie-legend>div:nth-child(11) i{background:var(--chart-11)!important}.expense-pie-legend>div:nth-child(12) i{background:var(--chart-12)!important}
.sale-action-dock .delivery-note-button{border:1px solid var(--store-theme-border)!important;background:var(--store-theme-faint)!important;color:var(--store-theme)!important}.sale-action-dock .delete-sale-detail{border:1px solid #e7c5c1!important;background:#fff!important;color:#b84b43!important;box-shadow:none!important}
