:root, [data-bs-theme] {
    --tblr-font-sans-serif: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --tblr-body-font-family: var(--tblr-font-sans-serif);
    --tblr-body-font-size: 16px;
    --tblr-body-font-weight: 400;
}
body {
    font-family: var(--tblr-body-font-family);
    font-size: var(--tblr-body-font-size);
    font-weight: var(--tblr-body-font-weight);
}
h1.page-title, main h1.h2 {
    font-family: "Inter Display", "Inter", sans-serif;
    font-size: 40px;
    font-weight: 500;
    line-height: 1.2;
    overflow-wrap: anywhere;
}
.page-header .row > .col { min-width: 0; }
.navbar-vertical .nav-link, .navbar nav .btn, .section-navigation .nav-link {
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 500;
}
.form-control, .form-select, .form-label, .form-check-label {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 400;
}
.form-control, .form-select { line-height: 1.5; }
.empty-img img { object-fit: contain; max-width: 100%; }
.theme-sun, .illustration-dark { display: none; }
[data-bs-theme="dark"] .theme-moon, [data-bs-theme="dark"] .illustration-light { display: none; }
[data-bs-theme="dark"] .theme-sun, [data-bs-theme="dark"] .illustration-dark { display: inline-block; }
.skip-link { position: fixed; z-index: 9999; left: 1rem; top: -5rem; }
.skip-link:focus { top: 1rem; }
#main-content:focus { outline: none; }
.nav-link:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--tblr-primary); outline-offset: 3px; }
[hidden] { display: none !important; }

/* Compact staff workspace; the customer shop keeps its own scale. */
.admin-ui {
    --tblr-body-font-size: 14px;
    font-size: 14px;
}
.admin-ui h1.page-title { font-size: 24px; line-height: 1.3; }
.admin-ui .page-header { margin-top: 20px; }
.admin-ui .page-body { margin-top: 20px; }
.admin-ui .card { --tblr-card-spacer-x: 16px; --tblr-card-spacer-y: 16px; --tblr-card-cap-padding-x: 16px; --tblr-card-cap-padding-y: 12px; }
.admin-ui .card-title, .admin-ui .modal-title { font-size: 16px; font-weight: 500; }
.admin-ui .card-header { min-height: 52px; flex-wrap: wrap; gap: 8px; }
.admin-ui .form-control, .admin-ui .form-select, .admin-ui .form-label, .admin-ui .form-check-label { font-size: 14px; }
.admin-ui .form-label { margin-bottom: 4px; }
.admin-ui .form-control, .admin-ui .form-select { min-height: 36px; padding-top: 6px; padding-bottom: 6px; line-height: 22px; }
.admin-ui .btn { min-height: 36px; font-size: 14px; padding-top: 6px; padding-bottom: 6px; }
.admin-ui .btn-sm { min-height: 36px; padding-top: 6px; padding-bottom: 6px; }
.admin-ui .btn-icon { width: 36px; padding-left: 0; padding-right: 0; }
.admin-ui .btn-icon.btn-sm { width: 36px; }
.admin-ui .form-hint { font-size: 12px; line-height: 1.5; }
.admin-ui .workspace-form { max-width: 1100px; }
.admin-ui .sale-quantity { width: 64px; }
.admin-ui .sale-discount { max-width: 160px; }
.admin-ui .material-gallery .col-xl-3 { width: 100%; }
.admin-ui .modal .invalid-feedback { display: block; }
@media (min-width: 576px) {
    .admin-ui .material-gallery .col-xl-3 { width: 50%; }
}
@media (max-width: 767.98px) {
    .admin-ui .form-control, .admin-ui .form-select { font-size: 16px; min-height: 40px; }
    .admin-ui .btn, .admin-ui .btn-sm { min-height: 40px; }
    .admin-ui .btn-icon, .admin-ui .btn-icon.btn-sm { width: 40px; }
    .admin-ui .card-header > * { min-width: 0; }
}

/* Embedded receipt viewer; standard Tabler controls. */
.crm-order-summary{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}.crm-order-summary .crm-links{align-items:center}.crm-order-total{font-size:1.5rem;line-height:2rem}.crm-order-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(18rem,1fr);gap:1.5rem;align-items:start}.crm-order-layout>*{min-width:0}.crm-order-aside .crm-meta{gap:.75rem}.crm-receipt-review{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem;margin-bottom:1rem}.crm-receipt-review .crm-links{align-items:center}.crm-receipt-image-wrap{max-height:75vh;overflow:auto;border-radius:.375rem;background:#f3f4f6}.crm-receipt-image{display:block;width:100%;height:auto}.crm-receipt-tools{display:flex;align-items:center;flex-wrap:wrap;gap:.75rem;margin-top:1rem}.crm-receipt-name{overflow-wrap:anywhere}.crm-receipt-reason{margin-bottom:1rem}@media(max-width:1023px){.crm-order-layout{grid-template-columns:1fr}.crm-order-aside{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:767px){.crm-order-aside{grid-template-columns:1fr}.crm-receipt-review{align-items:flex-start}.crm-receipt-review .crm-links{flex-wrap:wrap}}
.crm-pdf-toolbar{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap;margin-bottom:.75rem}.crm-pdf-toolbar .crm-links{align-items:center;gap:.5rem}.crm-pdf-stage{max-height:72vh;min-height:200px;overflow:auto;padding:12px;background:#f3f4f6;border-radius:.375rem;contain:inline-size}.crm-pdf-stage canvas{display:block;background:white;margin:0 auto}.crm-pdf-stage[x-cloak]{display:none}

.crm-links{display:flex;gap:.75rem;flex-wrap:wrap}.crm-note{color:var(--tblr-secondary);font-size:13px}[x-cloak]{display:none!important}.admin-ui .navbar-vertical .navbar-brand{white-space:normal;line-height:1.4}.admin-ui .navbar-vertical{--tblr-navbar-width:240px}.admin-ui .form-label{font-weight:500}
