/* ============================================================
   AUTOMART GLOBAL TYPOGRAPHY REFERENCE V1
   MASTER REFERENCE: ALL USERS ADMIN UI — 2026-10-01
   ============================================================ */

:root {
    --am-font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    --am-font-regular: 400;
    --am-font-medium: 500;
    --am-font-semibold: 600;
    --am-font-bold: 700;

    --am-text-body: 15px;
    --am-text-secondary: 14px;
    --am-text-ui: 14px;
    --am-text-table: 13px;
    --am-text-label: 12px;

    --am-title-page: 32px;
    --am-title-section: 24px;
    --am-title-card: 18px;

    --am-kpi: 24px;

    --am-line-body: 1.55;
    --am-line-ui: 1.4;
    --am-line-table: 1.4;
    --am-line-label: 1.35;
}

/* ============================================================
   GLOBAL FONT AUTHORITY
   ============================================================ */

html,
body,
button,
input,
select,
textarea {
    font-family: var(--am-font-family) !important;
}

body {
    font-size: var(--am-text-body);
    line-height: var(--am-line-body);
    font-weight: var(--am-font-regular);

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ============================================================
   GLOBAL HEADING AUTHORITY
   ============================================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--am-font-family) !important;
}

h1 {
    font-size: var(--am-title-page);
    line-height: 1.20;
    font-weight: var(--am-font-bold);
    letter-spacing: -0.025em;
}

h2 {
    font-size: var(--am-title-section);
    line-height: 1.25;
    font-weight: var(--am-font-bold);
    letter-spacing: -0.02em;
}

h3 {
    font-size: var(--am-title-card);
    line-height: 1.35;
    font-weight: var(--am-font-bold);
}

/* ============================================================
   ADMIN TYPOGRAPHY
   ============================================================ */

.admin-page,
.admin-page * {
    font-family: var(--am-font-family) !important;
}

/* Page title */

.admin-page .admin-title-row h1,
.admin-page .admin-content h1 {
    font-size: 32px !important;
    line-height: 1.20 !important;
    font-weight: 700 !important;
    letter-spacing: -0.025em !important;
}

/* Supporting page text */

.admin-page .admin-title-row p,
.admin-page .admin-top p,
.admin-page .page-subtitle {
    font-size: 14px !important;
    line-height: 1.50 !important;
    font-weight: 400 !important;
}

/* Section titles */

.admin-page .dash-card h2,
.admin-page .admin-content h2,
.admin-page .section-title {
    font-size: 24px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
}

/* Card headings */

.admin-page .card-title,
.admin-page .module-title,
.admin-page h3 {
    font-size: 18px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
}

/* ============================================================
   KPI TYPOGRAPHY
   ============================================================ */

.admin-page .kpi small {
    font-size: 12px !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
}

.admin-page .kpi strong {
    font-size: 24px !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
    font-variant-numeric: tabular-nums;
}

.admin-page .kpi span {
    font-size: 12px !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
}

/* ============================================================
   SIDEBAR
   ============================================================ */

.admin-page .admin-side {
    font-size: 14px !important;
    line-height: 1.40 !important;
}

.admin-page .admin-side a {
    font-size: 13px !important;
    line-height: 1.40 !important;
    font-weight: 600 !important;
}

.admin-page .admin-side small {
    font-size: 12px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em !important;
}

/* ============================================================
   TABLES
   ============================================================ */

.admin-page table {
    font-size: 13px !important;
    line-height: 1.40 !important;
}

.admin-page table th {
    font-size: 12px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
}

.admin-page table td {
    font-size: 13px !important;
    line-height: 1.40 !important;
    font-weight: 400 !important;
}

.admin-page table td b,
.admin-page table td strong {
    font-size: 13px !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
}

.admin-page table td small {
    font-size: 12px !important;
    line-height: 1.35 !important;
}

/* ============================================================
   BADGES / STATUS / CHIPS
   ============================================================ */

.admin-page .status,
.admin-page .badge,
.admin-page .chip {
    font-size: 12px !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
}

/* ============================================================
   BUTTONS / INPUTS / SELECTS
   ============================================================ */

.admin-page button,
.admin-page .btn,
.admin-page input,
.admin-page select,
.admin-page textarea {
    font-family: var(--am-font-family) !important;
    font-size: 13px !important;
    line-height: 1.40 !important;
}

.admin-page button,
.admin-page .btn {
    font-weight: 600 !important;
}

.admin-page input,
.admin-page select,
.admin-page textarea {
    font-weight: 400 !important;
}

/* ============================================================
   HELPERS / META
   ============================================================ */

.admin-page .helper,
.admin-page .description,
.admin-page .dash-card p,
.admin-page .module-card p {
    font-size: 13px !important;
    line-height: 1.50 !important;
    font-weight: 400 !important;
}

/* ============================================================
   NUMERIC CONSISTENCY
   ============================================================ */

.admin-page .kpi,
.admin-page table,
.admin-page .price,
.admin-page .count,
.admin-page .date,
.admin-page .amount {
    font-variant-numeric: tabular-nums;
}

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 767px) {

    body {
        font-size: 14px;
    }

    h1 {
        font-size: 29px;
    }

    h2 {
        font-size: 22px;
    }

    h3 {
        font-size: 17px;
    }

    .admin-page .admin-title-row h1,
    .admin-page .admin-content h1 {
        font-size: 27px !important;
    }

    .admin-page .dash-card h2,
    .admin-page .admin-content h2 {
        font-size: 21px !important;
    }

    .admin-page .admin-side a {
        font-size: 13px !important;
    }

    .admin-page table td {
        font-size: 12px !important;
    }

    .admin-page table th {
        font-size: 12px !important;
    }

    .admin-page .kpi strong {
        font-size: 22px !important;
    }
}

/* ============================================================
   TYPOGRAPHY FLOOR
   NO DIRECT TEXT BELOW 12PX
   ============================================================ */

.admin-page small {
    font-size: 12px;
}
