/* Alako Rent shared components. Tokens are generated from app/brand.json. */
html {
  font-family: var(--renti-font);
  color: var(--renti-text);
  background: var(--renti-bg);
  -webkit-text-size-adjust: 100%;
  font-synthesis: none;
}
body { margin: 0; color: var(--renti-text); background: var(--renti-bg); }
*, *::before, *::after { box-sizing: border-box; }
button, input, select, textarea { font: inherit; }
input, select, textarea { color: var(--renti-text); }
/* Keep iPhone form focus at the page scale, including fields inside small labels. */
html :is(input:not([type="checkbox"]), select, textarea) { font-size: 16px; }
input::placeholder, textarea::placeholder { color: var(--renti-muted-readable); opacity: 1; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
a { color: var(--renti-link); text-underline-offset: 3px; overflow-wrap: anywhere; }
button, summary { cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--renti-focus);
  outline-offset: 3px;
}
h1, h2, h3 { color: var(--renti-ink); }
strong, .amount, .timer, .timer-digits, .metric { font-variant-numeric: tabular-nums; }
img { max-width: 100%; }
.renti-logo { display: block; width: 176px; height: 40px; flex-shrink: 0; }
.renti-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.renti-logo .brand-dark { display: none; }
[data-theme="dark"] .renti-logo .brand-light { display: none; }
[data-theme="dark"] .renti-logo .brand-dark { display: block; }
.login-page .renti-logo { width: 220px; height: 50px; }
.login-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 8px; border: 1px solid var(--renti-border);
  border-radius: var(--renti-radius-md); background: var(--renti-surface);
  color: var(--renti-link); font-size: 21px;
}
.theme-toggle:hover { background: var(--renti-brand-50); }
.invoice-item { padding: 12px 0; border-top: 1px solid var(--renti-border); overflow-wrap: anywhere; }
.invoice-item>small { display: block; font-size: 12px; margin-top: 4px; }
.invoice-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 8px 0; font-size: 13px; }
.invoice-row>span { min-width: 0; }
.invoice-row>strong { max-width: 62%; text-align: right; font-variant-numeric: tabular-nums; }
.invoice-formula { padding: 10px; border-radius: var(--renti-radius-sm); background: var(--renti-brand-50); color: var(--renti-secondary-text); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto!important; transition: none!important; animation: none!important; }
}

.ui-icon { width: 24px; height: 24px; display: block; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.action-icon .ui-icon { width: 32px; height: 32px; }
