/* Shared 2D column system — no decorative 3D caps or side faces.
   Covers only chart bars that previously rendered fake extrusion with
   ::before and ::after. Do not alter zero guides, data dots or chart values. */

/* Remove ALL 2.5D geometry, including earlier skew and clip-path fixes.
   content:none also protects against stale face dimensions and layering. */
:is(
  .assets-bar,
  .cash-column-bar,
  .warehouse-column-bar,
  .fabric-bar,
  .monthly-personnel-bar,
  .furniture-bar
)::before,
:is(
  .assets-bar,
  .cash-column-bar,
  .warehouse-column-bar,
  .fabric-bar,
  .monthly-personnel-bar,
  .furniture-bar
)::after{
    content:none!important;
    display:none!important;
    clip-path:none!important;
    transform:none!important;
}

/* One softly rounded front surface. The selected bar retains its existing
   outline/interaction, and bar heights remain governed by the data. */
.assets-bar:not(.zero),
.cash-column-bar,
.warehouse-column-bar:not(.zero),
.fabric-bar,
.monthly-personnel-bar,
.furniture-bar{
    border-radius:6px 6px 0 0!important;
    overflow:visible;
    isolation:auto!important;
    background-image:none!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.16)!important;
    background-clip:padding-box;
}

.assets-bar:not(.zero){background-color:var(--assets-fill,#358d76)!important}
.cash-column-bar{background-color:var(--cash-fill,#358d76)!important}
.warehouse-column-bar:not(.zero){background-color:var(--wh-fill,#358d76)!important}
.fabric-bar{background-color:var(--fabric-color,#358d76)!important}
.monthly-personnel-bar{background-color:var(--salary-color,#358d76)!important}
.furniture-bar{background-color:var(--furniture-fill,#358d76)!important}

/* Negative and zero states keep their own meanings. */
.assets-bar.negative:not(.zero),
.warehouse-column-bar.negative:not(.zero),
.fabric-bar.negative,
.monthly-personnel-bar.negative,
.furniture-bar.negative{
    background-image:none!important;
}
.assets-bar.zero,
.warehouse-column-bar.zero{
    border-radius:2px!important;
    box-shadow:none!important;
}

/* Keep the existing value labels independent from the bars, never from
   the removed cap/side surfaces. */
.assets-bar .assets-bar-value{
    bottom:calc(100% + 8px)!important;
    z-index:4!important;
    text-shadow:none!important;
    line-height:1.55;
}
.cash-column-value,
.warehouse-column-value,
.fabric-bar-amount,
.monthly-personnel-value,
.furniture-value{
    z-index:3;
    text-shadow:none!important;
    line-height:1.55;
}

/* Existing 2D charts (sales, cheques, profit/loss, cost and forecasting)
   already have front-only columns; unify their upper corners too. */
.sales-bar:not(.negative),
.cheque-bar,
.finance-bar-fill.expense,
.hd-expense-totals-fill,
.profit-column-bar.gain {
    border-radius:6px 6px 0 0;
}
.profit-column-bar.loss{
    border-radius:0 0 6px 6px;
}

/* Avoid animation flashes during first load and respect reduced motion. */
@media (prefers-reduced-motion:reduce){
    .assets-bar,.cash-column-bar,.warehouse-column-bar,.fabric-bar,
    .monthly-personnel-bar,.furniture-bar{
        transition:none!important;
    }
}
