:root {
  --color-primary: #1a2332;
  --color-primary-dark: #111827;
  --color-primary-light: #2d3f55;
  --color-accent: #d97706;
  --color-accent-dark: #b45309;
  --color-accent-light: #fef3c7;
  --color-bg: #f8f9fa;
  --color-surface: #ffffff;
  --color-surface-2: #fdf7f0;
  --color-border: #e5e7eb;
  --color-border-strong: #d1d5db;
  --color-muted: #6b7280;
  --color-text: #111827;
  --color-text-light: #374151;
  --color-success: #16a34a;
  --color-success-bg: #f0fdf4;
  --color-warning: #d97706;
  --color-warning-bg: #fffbeb;
  --color-danger: #dc2626;
  --color-danger-bg: #fef2f2;
  --color-info: #2563eb;
  --color-info-bg: #eff6ff;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-size-xs: 11px;
  --font-size-sm: 13px;
  --font-size-md: 15px;
  --font-size-lg: 17px;
  --font-size-xl: 21px;
  --font-size-2xl: 26px;
  --navbar-height: 56px;
  --bottom-nav-height: 60px;
  --content-max-width: 640px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 8px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 8px 20px rgba(0,0,0,.10);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-md);
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img, svg {
  display: block;
  max-width: 100%;
}

button {
  cursor: pointer;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

ul, ol {
  list-style: none;
}

h1 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
}

h2 {
  font-size: var(--font-size-xl);
  font-weight: 700;
}

h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
}

h4 {
  font-size: var(--font-size-md);
  font-weight: 600;
}

.app-shell {
  padding-top: var(--navbar-height);
  padding-bottom: var(--bottom-nav-height);
}

.main-content {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: var(--space-4);
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.page-header__title {
  flex: 1;
}
.page-header__actions {
  display: flex;
  gap: var(--space-2);
}

.section {
  margin-bottom: var(--space-6);
}
.section__title {
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  margin-bottom: var(--space-3);
}

.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-4) 0;
}

.empty-state {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  color: var(--color-muted);
}
.empty-state__icon {
  font-size: 40px;
  margin-bottom: var(--space-3);
}
.empty-state__title {
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-text-light);
}
.empty-state__body {
  font-size: var(--font-size-sm);
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  background: var(--color-primary);
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-4);
  z-index: 100;
  box-shadow: var(--shadow-md);
}
.navbar__brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.navbar__logo {
  font-size: 18px;
}
.navbar__title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}
.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.navbar__icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.7);
  transition: background 0.15s, color 0.15s;
}
.navbar__icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  text-decoration: none;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: stretch;
  z-index: 100;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--color-muted);
  font-size: var(--font-size-xs);
  font-weight: 500;
  transition: color 0.15s;
  position: relative;
  text-decoration: none;
}
.bottom-nav__item svg {
  flex-shrink: 0;
}
.bottom-nav__item--active {
  color: var(--color-primary);
}
.bottom-nav__item--active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 0 0 3px 3px;
}
.bottom-nav__item:hover {
  color: var(--color-text);
  text-decoration: none;
}
.bottom-nav__item--more {
  position: relative;
}
.bottom-nav__more-btn {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--color-muted);
  font-size: var(--font-size-xs);
  font-weight: 500;
  padding: 0;
  width: 100%;
  height: 100%;
}

.fab-menu__popup {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 160px;
  overflow: hidden;
  z-index: 200;
}
.fab-menu__item {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--color-text);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  border-bottom: 1px solid var(--color-border);
  transition: background 0.1s;
}
.fab-menu__item:last-child {
  border-bottom: none;
}
.fab-menu__item:hover {
  background: var(--color-bg);
  text-decoration: none;
}
.fab-menu__item--danger {
  color: var(--color-danger);
}

.fab {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + var(--space-4));
  right: var(--space-4);
  z-index: 90;
}
.fab__btn--main {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.15s, box-shadow 0.15s;
}
.fab__btn--main:hover, .fab__btn--main:focus {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}
.fab__btn--main.is-open {
  transform: rotate(45deg);
}
.fab__menu {
  position: absolute;
  bottom: calc(100% + var(--space-2));
  right: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: flex-end;
}
.fab__action {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--color-surface);
  border-radius: 28px;
  padding: var(--space-2) var(--space-4) var(--space-2) var(--space-3);
  box-shadow: var(--shadow-md);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: box-shadow 0.15s;
  white-space: nowrap;
}
.fab__action:hover {
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}
.fab__action-icon {
  font-size: 16px;
}
.fab__action-label {
  flex: 1;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}
.card--clickable {
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.1s;
}
.card--clickable:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.card--clickable:active {
  transform: translateY(0);
}
.card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.card__title {
  font-size: var(--font-size-md);
  font-weight: 600;
  color: var(--color-text);
}
.card__subtitle {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  margin-top: 2px;
}
.card__body {
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
}
.card__footer {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--font-size-sm);
  color: var(--color-muted);
}
.card__amount {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

.card--blocked {
  opacity: 0.65;
}

.card--highlighted {
  border-left: 3px solid var(--color-primary);
  background: var(--color-surface-2, #fdf7f0);
}

.card-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.stat-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: var(--space-4);
}
.stat-card__label {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.stat-card__value {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.stat-card--primary {
  border-left: 3px solid var(--color-primary);
}
.stat-card--warning {
  border-left: 3px solid var(--color-warning);
}
.stat-card--success {
  border-left: 3px solid var(--color-success);
}
.stat-card--danger {
  border-left: 3px solid var(--color-danger);
}

.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
@media (max-width: 400px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

label {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-light);
}

input[type=text],
input[type=email],
input[type=password],
input[type=number],
input[type=date],
input[type=tel],
textarea,
select {
  width: 100%;
  padding: 10px var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-md);
  color: var(--color-text);
  background: var(--color-surface);
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
input[type=text]:focus,
input[type=email]:focus,
input[type=password]:focus,
input[type=number]:focus,
input[type=date]:focus,
input[type=tel]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.15);
}
input[type=text]::placeholder,
input[type=email]::placeholder,
input[type=password]::placeholder,
input[type=number]::placeholder,
input[type=date]::placeholder,
input[type=tel]::placeholder,
textarea::placeholder,
select::placeholder {
  color: var(--color-muted);
  opacity: 0.7;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23718096' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.field-error {
  font-size: var(--font-size-xs);
  color: var(--color-danger);
}

.field-hint {
  font-size: var(--font-size-xs);
  color: var(--color-muted);
}

.form-actions {
  display: flex;
  gap: var(--space-3);
  padding-top: var(--space-2);
}
.form-actions .btn {
  flex: 1;
}

.input-prefix {
  display: flex;
  align-items: center;
}
.input-prefix__symbol {
  padding: 10px var(--space-3);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  font-weight: 500;
}
.input-prefix input {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.form-hint {
  font-size: var(--font-size-xs);
  color: var(--color-muted);
}

.form-errors {
  padding: var(--space-3);
  background: var(--color-danger-bg);
  border: 1px solid var(--color-danger);
  border-radius: var(--radius-sm);
}

.form-error {
  font-size: var(--font-size-sm);
  color: var(--color-danger);
}

.form-control {
  width: 100%;
  padding: 10px var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-md);
  color: var(--color-text);
  background: var(--color-surface);
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.15);
}
.form-control::placeholder {
  color: var(--color-muted);
  opacity: 0.7;
}

.field_with_errors input, .field_with_errors textarea, .field_with_errors select {
  border-color: var(--color-danger);
}

.error-messages {
  background: #fff5f5;
  border: 1px solid #feb2b2;
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--color-danger);
}
.error-messages ul {
  list-style: disc;
  margin-left: var(--space-4);
}
.error-messages li {
  margin-top: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, opacity 0.15s;
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
  line-height: 1.2;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn:hover {
  text-decoration: none;
}
.btn--primary {
  background: var(--color-primary);
  color: #fff;
}
.btn--primary:hover {
  background: var(--color-primary-dark);
}
.btn--secondary {
  background: var(--color-bg);
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn--secondary:hover {
  background: var(--color-border);
}
.btn--danger {
  background: var(--color-danger);
  color: #fff;
}
.btn--danger:hover {
  background: #c53030;
}
.btn--success {
  background: var(--color-success);
  color: #fff;
}
.btn--success:hover {
  background: #276749;
}
.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--ghost:hover {
  background: var(--color-primary-light);
}
.btn--sm {
  padding: 6px 12px;
  font-size: var(--font-size-xs);
  border-radius: var(--radius-sm);
}
.btn--full {
  width: 100%;
}
.btn--icon {
  padding: 8px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--color-muted);
}
.btn--icon:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

.btn-group {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-secondary {
  background: #edf2f7;
  color: #4a5568;
}
.badge-info {
  background: #ebf8ff;
  color: #2b6cb0;
}
.badge-warning {
  background: #fefcbf;
  color: #744210;
}
.badge-success {
  background: #f0fff4;
  color: #276749;
}
.badge-primary {
  background: var(--color-primary-light);
  color: var(--color-primary);
}
.badge-dark {
  background: #1a202c;
  color: #e2e8f0;
}
.badge-danger {
  background: #fff5f5;
  color: #c53030;
}

.table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}
table th {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  vertical-align: middle;
}
table tr:last-child td {
  border-bottom: none;
}
table tr:hover td {
  background: #fafbfd;
}
table .col-amount {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
table .col-actions {
  text-align: right;
  white-space: nowrap;
}

.flash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: 500;
  margin-bottom: var(--space-4);
  animation: slide-in 0.2s ease;
}
.flash--notice {
  background: #f0fff4;
  color: #276749;
  border: 1px solid #9ae6b4;
}
.flash--alert {
  background: #fff5f5;
  color: #c53030;
  border: 1px solid #feb2b2;
}
.flash__close {
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
  flex-shrink: 0;
}
.flash__close:hover {
  opacity: 1;
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.auth-shell {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FF6000 0%, #E05500 100%);
  padding: var(--space-4);
}

.auth-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-lg);
}
.auth-card__logo {
  text-align: center;
  font-size: 36px;
  margin-bottom: var(--space-2);
}
.auth-card__title {
  text-align: center;
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--color-text);
}
.auth-card__subtitle {
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  margin-bottom: var(--space-6);
}
.auth-card .form-actions .btn {
  width: 100%;
}

.auth-links {
  margin-top: var(--space-4);
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--color-muted);
}
.auth-links a {
  color: var(--color-primary);
  font-weight: 500;
}

.dashboard-greeting {
  margin-bottom: var(--space-5);
}
.dashboard-greeting__name {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-text);
}
.dashboard-greeting__date {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  margin-top: 2px;
}

.project-card .status-timeline {
  display: flex;
  gap: 4px;
  margin-top: var(--space-3);
}
.project-card .status-timeline .step {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--color-border);
  transition: background 0.3s;
}
.project-card .status-timeline .step--done {
  background: var(--color-success);
}
.project-card .status-timeline .step--active {
  background: var(--color-primary);
}

.overdue-banner {
  background: #fff5f5;
  border: 1px solid #feb2b2;
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-5);
}
.overdue-banner__title {
  font-weight: 600;
  color: var(--color-danger);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-2);
}
.overdue-banner__item {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid #fed7d7;
}
.overdue-banner__item:last-child {
  border-bottom: none;
}

.line-items {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
}
.line-items__header {
  display: grid;
  grid-template-columns: 1fr 70px 60px 90px 44px 24px;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
}
.line-items__row {
  display: grid;
  grid-template-columns: 1fr 70px 60px 90px 44px 24px;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--color-border);
  align-items: center;
}
.line-items__row:last-of-type {
  border-bottom: none;
}
.line-items__row.is-destroyed {
  display: none;
}
.line-items__row input, .line-items__row select {
  padding: 6px var(--space-2);
  font-size: var(--font-size-sm);
}
.line-items__add {
  padding: var(--space-3);
  border-top: 1px dashed var(--color-border);
  text-align: center;
}
.line-items__remove {
  background: none;
  border: none;
  color: var(--color-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.line-items__remove:hover {
  color: var(--color-danger);
}

.totals-summary {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  border: 1px solid var(--color-border);
}
.totals-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-1) 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
}
.totals-summary__row--total {
  border-top: 2px solid var(--color-border);
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-text);
}
.totals-summary__value {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.pagy {
  display: flex;
  justify-content: center;
  gap: var(--space-1);
  padding: var(--space-4) 0;
  font-size: var(--font-size-sm);
}
.pagy a, .pagy span, .pagy em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 var(--space-2);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  text-decoration: none;
  transition: background 0.1s;
}
.pagy a:hover {
  background: var(--color-bg);
}
.pagy .active, .pagy em {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  font-style: normal;
  font-weight: 600;
}
.pagy .disabled {
  color: var(--color-muted);
  cursor: default;
  pointer-events: none;
}
