@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --erp-font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --erp-type-caption-size: 10px;
  --erp-type-caption-line: 14px;
  --erp-type-label-size: 12px;
  --erp-type-label-line: 16px;
  --erp-type-table-size: 13px;
  --erp-type-table-line: 18px;
  --erp-type-control-size: 14px;
  --erp-type-control-line: 20px;
}

html,
body {
  font-family: var(--erp-font-family);
}

body {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

button,
input,
select,
textarea {
  font-family: var(--erp-font-family);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

#erpApp :is(button, input, select, textarea),
#loginScreen :is(button, input, select, textarea),
#passwordChangeBackdrop :is(button, input, select, textarea) {
  font-size: var(--erp-type-control-size);
  font-weight: 500;
  line-height: var(--erp-type-control-line);
}

#erpApp,
#loginScreen,
#passwordChangeBackdrop,
.system-dialog-backdrop,
.connection-backdrop {
  letter-spacing: 0;
}

#erpApp *,
#loginScreen *,
#passwordChangeBackdrop *,
.system-dialog-backdrop *,
.connection-backdrop * {
  letter-spacing: 0;
}

h1 {
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
}

#erpApp h1,
#loginScreen h1,
#passwordChangeBackdrop h1 {
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
}

h2 {
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

#erpApp h2,
#loginScreen h2,
#passwordChangeBackdrop h2 {
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

#erpApp h3,
#loginScreen h3,
#passwordChangeBackdrop h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

table.data-table th,
.data-table th {
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

#erpApp table.data-table th {
  font-size: var(--erp-type-label-size);
  font-weight: 600;
  line-height: var(--erp-type-label-line);
}

table.data-table td,
.data-table td {
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
}

#erpApp table.data-table td {
  font-size: var(--erp-type-table-size);
  font-weight: 400;
  line-height: var(--erp-type-table-line);
}

/* Common ERP labels and supporting copy share one compact, readable scale. */
#erpApp :is(
  .module-filter-field,
  .settings-field,
  .entry-panel-field,
  .operation-field,
  .form-grid > label,
  .modal label,
  .module-filter-meta,
  .settings-save-status,
  .developer-tool-section-head p
) {
  font-size: var(--erp-type-label-size);
  line-height: var(--erp-type-label-line);
}

#erpApp :is(
  .field-hint,
  .form-hint,
  .profile-summary span,
  .notification-panel-head span,
  .notification-item-head span,
  .notification-item-meta span,
  .notification-item time,
  .notification-toggle span,
  .debt-note-btn > span,
  .cashbox-balance-grid small,
  .sidebar > .brand span
) {
  font-size: var(--erp-type-caption-size);
  line-height: var(--erp-type-caption-line);
}

#erpApp :is(
  .entry-form-intro strong,
  .operation-editor-head h3,
  .developer-kpi-grid strong
) {
  font-size: 16px;
  line-height: 24px;
}

#erpApp .account-balances-summary strong {
  font-size: 20px;
  line-height: 28px;
}

/* Legacy emphasis values above the shipped 700 weight resolve consistently. */
#erpApp :is(
  .brand-mark,
  .report-profit,
  .report-loss,
  .cash-amount,
  .cashbox-periods button.active,
  .refund-action,
  .data-table tfoot td,
  .confirm-box strong,
  .profile-avatar,
  .nav .ico,
  .topbar h2,
  .section-head h3,
  .customer-tabs button.active,
  .subhead,
  .notification-toggle span,
  .global-related-title,
  .global-trace-table tfoot td,
  .operation-section h4,
  .operation-summary h4,
  .operation-document-band h4,
  .operation-band-title h4,
  .settings-list-table th,
  .settings-row-save,
  .cashbox-summary-pending,
  .cashbox-report-content .cashbox-compact-table th,
  .cashbox-report-content .cashbox-balance-table td:last-child,
  .cashbox-report-content .cashbox-movement-table td:not(:first-child),
  .cashbox-report-content .cashbox-payment-table td:nth-child(2),
  .cashbox-report-content .cashbox-payment-table td:nth-child(4),
  .cashbox-cashier-table tbody td:nth-child(n+3),
  .cashbox-cashier-table tfoot td
) {
  font-weight: 700;
}

#loginScreen :is(
  .login-brand-mark,
  .login-preview-logo span,
  .login-landing-brand span,
  .login-landing-kicker,
  .login-landing-action,
  .login-landing-index span,
  .login-panel-context,
  .login-submit
) {
  font-weight: 700;
}

#loginScreen .login-landing-copy::before {
  font-weight: 700;
}

table.data-table td,
.data-table td,
input[type="number"],
.money,
.amount,
.balance,
.kpi strong,
.operation-live-total,
.report-profit,
.report-loss {
  font-variant-numeric: tabular-nums;
}

#erpApp :is(
  time,
  [data-field="date"],
  [data-field="time"],
  [data-field="amount"],
  [data-field="balance"],
  [data-field="total"],
  .topbar-clock,
  .badge,
  .table-fixed-foot,
  .dashboard-metric-list strong,
  .developer-kpi-grid strong
) {
  font-variant-numeric: tabular-nums;
}

/* Login brand placement overrides the retained legacy compatibility layer. */
.login-layout-shell .login-panel-head {
  display: flex;
  align-items: center;
}

.login-layout-shell .login-brand-mark {
  width: 56px;
  min-width: 56px;
  height: 56px;
  margin-left: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.login-layout-shell .login-brand-mark img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
