/* ==========================================================================
   Figure boxes: one figure each (label above, value below), the same colours everywhere an item's figures show
   (order lines, Check items, invoices, the customer's invoice copy, products). components/fig.blade.php.
     Qty        #10243A on #DDE6EF (slate)       Rate         #0B5B75 on #E3F0F5
     MRP, Amount #10243A on #F3F6F9              Margin, Off MRP #0F6E8C on #E3F2F7
     Cost / pc  #15803D on #E8F7EE               Free, Scheme off #15803D on #DCFCE7
     HSN, GST   #344B5E on white                 Missing (no HSN, no rate) #9A4A07 on #FFF4E0
   ========================================================================== */

.figs {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.fig {
    min-width: 0;
    padding: 6px 8px;
    border: 1px solid #C9D6E0;
    border-radius: 8px;
    background: #F3F6F9;
    color: #10243A;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.fig__label {
    font-size: 11px;
    font-weight: 700;
    opacity: 0.8;
}

.fig__value {
    font-size: 14px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.fig--qty { border-color: #B6C6D6; background: #DDE6EF; color: #10243A; }
.fig--rate { border-color: #B5D5E3; background: #E3F0F5; color: #0B5B75; }
.fig--margin { border-color: #B9DDE9; background: #E3F2F7; color: #0F6E8C; }
.fig--cost { border-color: #B7E1C6; background: #E8F7EE; color: #15803D; }
.fig--free { border-color: #A7E3BC; background: #DCFCE7; color: #15803D; }
.fig--tax { border-color: #C9D6E0; background: #FFFFFF; color: #344B5E; }
.fig--missing { border-color: #F6D9A8; background: #FFF4E0; color: #9A4A07; }
.fig--change { border-color: #DDD0F7; background: #F5F0FF; color: #6D28D9; }
.fig--wide { grid-column: span 2; }
.fig--full { grid-column: 1 / -1; }

@media (max-width: 340px) {
    .figs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
