/**
 * font-overrides.css
 *
 * Aliases Inter under the family names "Roboto" and "Nunito" so existing
 * DashLite rules (font-family: Roboto/Nunito) resolve to Inter without any
 * selector changes. Adds JetBrainsMono for monospace contexts.
 *
 * Load AFTER dashlite.css so these @font-face blocks shadow the originals.
 */

/* Inter aliased as "Roboto" — DashLite body font */
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/inter/Inter_18pt-Regular.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/inter/Inter_18pt-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/inter/Inter_18pt-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/inter/Inter_18pt-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Inter aliased as "Nunito" — DashLite headings/buttons */
@font-face {
    font-family: 'Nunito';
    src: url('../fonts/inter/Inter_18pt-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Nunito';
    src: url('../fonts/inter/Inter_18pt-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* JetBrainsMono — monospace contexts */
@font-face {
    font-family: 'JetBrainsMono';
    src: url('../fonts/mono/JetBrainsMono-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

code, kbd, samp, pre, .text-monospace {
    font-family: 'JetBrainsMono', 'Consolas', 'Courier New', monospace;
}

/* ========================================================================
 * Order History tables — first-row-touching-border fix.
 *
 * .table-responsive strips inherited padding from its .card-bordered parent,
 * leaving the first thead row flush against the card's top border. Pad the
 * first/last cell of each row to restore breathing room from the card edges.
 * ====================================================================== */
.card.card-bordered > .table-responsive,
.card.card-bordered > .table-responsive > .table {
    margin-bottom: 0;
}

.card.card-bordered .table-orders > thead.tb-odr-head > tr > th:first-child,
.card.card-bordered .table-orders > tbody.tb-odr-body > tr > td:first-child {
    padding-left: 1.5rem;
}
.card.card-bordered .table-orders > thead.tb-odr-head > tr > th:last-child,
.card.card-bordered .table-orders > tbody.tb-odr-body > tr > td:last-child {
    padding-right: 1.5rem;
}
.card.card-bordered .table-orders > thead.tb-odr-head > tr > th {
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.card.card-bordered .table-orders > tbody.tb-odr-body > tr:first-child > td {
    padding-top: 1rem;
}
.card.card-bordered .table-orders > tbody.tb-odr-body > tr:last-child > td {
    padding-bottom: 1rem;
}
