:root {
  color-scheme: light;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --bg: #f4f7fb;
  --bg-soft: #eef3f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #eef4fb;
  --text: #152033;
  --text-strong: #0b1324;
  --muted: #6b778c;
  --muted-2: #98a4b6;
  --border: #dfe6ef;
  --border-strong: #cbd5e1;
  --primary: #2563eb;
  --primary-strong: #1d4ed8;
  --primary-soft: #eaf1ff;
  --success: #0d9f6e;
  --success-soft: #e8f8f1;
  --warning: #c97706;
  --warning-soft: #fff6e5;
  --danger: #dc3545;
  --danger-soft: #fff0f2;
  --shadow-sm: 0 8px 20px rgba(15, 23, 42, .06);
  --shadow-md: 0 18px 48px rgba(15, 23, 42, .09);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --tap: 44px;
  --header-h: 72px;
  --content-w: 1800px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a1220;
  --bg-soft: #0d1727;
  --surface: #111b2d;
  --surface-2: #0f1828;
  --surface-3: #15233a;
  --text: #dce6f3;
  --text-strong: #f8fafc;
  --muted: #9aa8bb;
  --muted-2: #65758c;
  --border: rgba(148, 163, 184, .17);
  --border-strong: rgba(148, 163, 184, .3);
  --primary: #6ea8ff;
  --primary-strong: #8bb9ff;
  --primary-soft: rgba(96, 165, 250, .14);
  --success: #49d49d;
  --success-soft: rgba(16, 185, 129, .13);
  --warning: #f7c75a;
  --warning-soft: rgba(245, 158, 11, .12);
  --danger: #fb7f8e;
  --danger-soft: rgba(244, 63, 94, .12);
  --shadow-sm: 0 10px 24px rgba(0,0,0,.18);
  --shadow-md: 0 24px 64px rgba(0,0,0,.26);
}

* { box-sizing: border-box; }
html { min-height: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(circle at 15% -10%, color-mix(in srgb, var(--primary) 11%, transparent), transparent 30rem),
    linear-gradient(180deg, var(--bg), var(--bg-soft));
}
button, input, select, textarea { font: inherit; }
button { touch-action: manipulation; }
a { color: inherit; }
svg { display: block; }

.sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
.hidden { display: none !important; }
.mobile-only { display: none !important; }

.particles-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .18; }
[data-theme="dark"] .particles-canvas { opacity: .28; }
.app-shell { position: relative; z-index: 1; width: min(calc(100% - 32px), var(--content-w)); margin: 0 auto; }

.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.header-main { display: flex; align-items: center; gap: 28px; min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: 0 0 auto; }
.brand-logo { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; color: white; background: linear-gradient(145deg, #2563eb, #4f8cff); box-shadow: 0 8px 20px rgba(37,99,235,.25); }
.brand-logo svg { width: 26px; height: 26px; fill: currentColor; }
.brand-text { display: grid; line-height: 1.1; }
.brand-text strong { color: var(--text-strong); font-size: 16px; letter-spacing: .01em; }
.brand-text small { margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 700; }
.page-heading { min-width: 0; padding-left: 28px; border-left: 1px solid var(--border); }
.page-heading h1 { margin: 1px 0 0; color: var(--text-strong); font-size: 24px; line-height: 1.05; letter-spacing: -.025em; }
.eyebrow { display: block; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.user-badge { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 36px; display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--text); background: var(--surface); font-size: 12px; font-weight: 800; }

.icon-button, .icon-text-button, .back-button {
  min-height: var(--tap);
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.icon-button:hover, .icon-text-button:hover, .back-button:hover { background: var(--surface-3); border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); }
.icon-button:active, .icon-text-button:active, .back-button:active { transform: translateY(1px); }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 13px; }
.icon-button svg { width: 19px; height: 19px; fill: currentColor; }
.icon-text-button { display: inline-flex; align-items: center; gap: 8px; padding: 0 13px; border-radius: 13px; font-weight: 750; }
.icon-text-button svg { width: 18px; height: 18px; fill: currentColor; }
.theme-icon { width: 19px; height: 19px; fill: currentColor; }
[data-theme="dark"] .theme-icon-moon { display: none; }
[data-theme="light"] .theme-icon-sun { display: none; }

.main-content { padding: 18px 0 40px; }
.card { border: 1px solid var(--border); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--surface) 96%, transparent); box-shadow: var(--shadow-sm); }
.workspace { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 18px; align-items: start; }
.filter-panel { position: sticky; top: calc(var(--header-h) + 18px); max-height: calc(100vh - var(--header-h) - 36px); overflow: auto; padding: 18px; scrollbar-width: thin; }
.filter-panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.filter-panel-header h2, .results-header h2, .detail-heading h2, .auth-card h2 { margin: 4px 0 0; color: var(--text-strong); font-size: 21px; line-height: 1.15; letter-spacing: -.02em; }
.filter-panel-header p { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.filter-section { display: grid; gap: 12px; margin-top: 18px; }
.filter-divider { height: 1px; margin: 18px 0; background: var(--border); }
.filter-builder { display: grid; gap: 12px; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.section-heading strong { display: block; color: var(--text-strong); font-size: 13px; }
.section-heading small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.filter-panel-footer { position: sticky; bottom: -18px; display: flex; justify-content: space-between; gap: 10px; margin: 18px -18px -18px; padding: 14px 18px; border-top: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 96%, transparent); backdrop-filter: blur(12px); }

.field { display: grid; gap: 6px; min-width: 0; }
.field > span, .compact-select > span { color: var(--muted); font-size: 12px; font-weight: 800; }
input, select, textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 0 12px;
  color: var(--text);
  background: var(--surface-2);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
textarea { min-height: 120px; padding-top: 10px; padding-bottom: 10px; resize: vertical; }
input::placeholder { color: var(--muted-2); }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent); background: var(--surface); }
input[type="checkbox"] { width: 18px; min-height: 18px; accent-color: var(--primary); }

.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--border); border-radius: 12px; padding: 0 14px; color: var(--text); background: var(--surface); font-weight: 800; cursor: pointer; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.button:hover { background: var(--surface-3); }
.button:active { transform: translateY(1px); }
.button.primary { color: #fff; border-color: transparent; background: var(--primary); box-shadow: 0 7px 18px color-mix(in srgb, var(--primary) 24%, transparent); }
.button.primary:hover { background: var(--primary-strong); }
.button.secondary { background: var(--surface-2); }
.button.ghost { color: var(--muted); border-color: transparent; background: transparent; }
.button.ghost:hover { color: var(--text); background: var(--surface-3); }
.button.full-width { width: 100%; }
.button svg { width: 18px; height: 18px; fill: currentColor; }

.filter-disclosure { margin-top: 16px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.filter-disclosure summary { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 12px; color: var(--text); font-size: 12px; font-weight: 800; cursor: pointer; list-style: none; }
.filter-disclosure summary::-webkit-details-marker { display: none; }
.filter-disclosure summary svg { width: 18px; height: 18px; fill: currentColor; transition: transform .15s ease; }
.filter-disclosure[open] summary svg { transform: rotate(180deg); }
.date-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; border-top: 1px solid var(--border); }

.active-filters { display: flex; flex-wrap: wrap; gap: 7px; min-height: 0; }
.filter-chip { min-height: 34px; max-width: 100%; display: inline-flex; align-items: center; gap: 5px; border: 1px solid color-mix(in srgb, var(--primary) 25%, var(--border)); border-radius: 999px; padding: 5px 9px; color: var(--primary-strong); background: var(--primary-soft); cursor: pointer; font-size: 11px; font-weight: 750; }
.filter-chip strong { color: var(--muted); font-weight: 700; }
.filter-chip span { font-size: 15px; line-height: 1; }

.results-panel { min-width: 0; padding: 18px; }
.results-header { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.title-line { display: flex; align-items: baseline; gap: 10px; }
.result-count { color: var(--muted); font-size: 12px; font-weight: 800; }
.compact-select { display: grid; gap: 5px; min-width: 190px; }
.compact-select select { min-height: 40px; }
.mobile-list-toolbar { display: none; }
.mobile-sort { flex: 1; }
.mobile-sort select { min-height: 44px; }
.count-pill { min-width: 20px; height: 20px; display: inline-grid; place-items: center; border-radius: 999px; padding: 0 6px; color: #fff; background: var(--primary); font-size: 10px; font-weight: 900; }

.table-wrap { width: 100%; overflow: auto; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.repairs-table, .data-table { width: 100%; border-collapse: separate; border-spacing: 0; }
th, td { vertical-align: top; }
.repairs-table th, .repairs-table td, .data-table th, .data-table td { padding: 11px 12px; border-bottom: 1px solid var(--border); text-align: left; font-size: 12.5px; }
.repairs-table th, .data-table th { position: sticky; top: 0; z-index: 2; color: var(--muted); background: var(--surface-2); font-size: 10.5px; font-weight: 850; letter-spacing: .045em; text-transform: uppercase; }
.repairs-table tbody tr, .clickable-row { cursor: pointer; transition: background .12s ease; }
.repairs-table tbody tr:hover, .clickable-row:hover { background: var(--primary-soft); }
.repairs-table tbody tr:last-child td, .data-table tbody tr:last-child td { border-bottom: 0; }
.repairs-table td:first-child { color: var(--primary-strong); font-weight: 850; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.muted { color: var(--muted); }
.small-note { font-size: 12px; }
.money { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.data-table tfoot td { position: sticky; bottom: 0; z-index: 1; border-top: 1px solid var(--border-strong); background: var(--surface-2); font-weight: 850; }
.pager { min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; }
#pageInfo { min-width: 110px; text-align: center; color: var(--muted); font-size: 12px; font-weight: 800; }

.badge { min-height: 28px; display: inline-flex; align-items: center; width: max-content; max-width: 100%; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); background: var(--surface-2); font-size: 11px; font-weight: 800; white-space: nowrap; }
.badge-green { color: var(--success); background: var(--success-soft); border-color: color-mix(in srgb, var(--success) 28%, var(--border)); }
.badge-orange { color: var(--warning); background: var(--warning-soft); border-color: color-mix(in srgb, var(--warning) 28%, var(--border)); }
.badge-red { color: var(--danger); background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 28%, var(--border)); }
.badge-muted { color: var(--muted); }

.detail-top { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 18px; padding: 16px 18px; margin-bottom: 12px; }
.back-button { display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; border-radius: 12px; font-weight: 800; }
.back-button svg { width: 18px; height: 18px; fill: currentColor; }
.detail-heading { min-width: 0; }
.detail-heading p { margin: 5px 0 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.tabs { position: sticky; top: calc(var(--header-h) + 8px); z-index: 20; display: flex; gap: 5px; padding: 6px; margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display:none; }
.tab { min-height: 40px; flex: 0 0 auto; border: 0; border-radius: 10px; padding: 0 13px; color: var(--muted); background: transparent; font-weight: 800; cursor: pointer; }
.tab:hover { color: var(--text); background: var(--surface-3); }
.tab.active { color: var(--primary-strong); background: var(--primary-soft); }
.detail-content { padding: 18px; }
.info-grid { display: grid; grid-template-columns: repeat(4, minmax(150px,1fr)); gap: 10px; }
.info-item { min-height: 76px; padding: 13px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.info-item span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; font-weight: 800; }
.info-item strong { display: block; color: var(--text-strong); overflow-wrap: anywhere; }
.info-link { color: var(--primary-strong); }
.block-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 12px; }
.text-block { min-height: 100px; padding: 13px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); white-space: pre-wrap; overflow-wrap:anywhere; }
.section-block { margin-top: 20px; }
.section-block h3 { margin: 0 0 10px; color: var(--text-strong); font-size: 17px; }
.compact-info { margin-bottom: 16px; }
.mini-table-wrap { margin-top: 8px; }

.files-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 12px; }
.file-card { display: flex; gap: 12px; padding: 13px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface-2); }
.file-icon { display:grid; place-items:center; width:50px; height:50px; flex:0 0 50px; border-radius:13px; color:var(--primary-strong); background:var(--primary-soft); font-size:11px; font-weight:900; }
.file-body { min-width:0; flex:1; }
.file-body h3 { margin:0 0 5px; font-size:14px; overflow-wrap:anywhere; }
.file-body p { margin:0; font-size:12px; }
.file-actions { margin-top:10px; }
.file-actions .button { display:inline-flex; }
.file-missing { margin-top:6px; color:var(--danger); font-size:11px; }
.mono { font-family: ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; overflow-wrap:anywhere; }
.link-button { display:inline; margin:0; padding:0; border:0; color:var(--primary-strong); background:transparent; font:inherit; font-weight:800; text-align:left; cursor:pointer; overflow-wrap:anywhere; }
.link-button:hover { text-decoration:underline; }

.loader, .empty-state { padding:28px; text-align:center; color:var(--muted); }
.empty-state { border:1px dashed var(--border-strong); border-radius:14px; background:var(--surface-2); }
.error-box, .warning-box { padding:14px; border-radius:14px; white-space:pre-wrap; }
.error-box { border:1px solid color-mix(in srgb,var(--danger) 30%,var(--border)); color:var(--danger); background:var(--danger-soft); }
.warning-box { margin-top:12px; border:1px solid color-mix(in srgb,var(--warning) 30%,var(--border)); color:var(--warning); background:var(--warning-soft); }

.auth-card { width:min(460px,100%); margin:clamp(40px,10vh,100px) auto; padding:24px; }
.auth-card::before { content:"RBS360"; display:grid; place-items:center; width:56px; height:56px; margin:0 auto 18px; border-radius:18px; color:#fff; background:linear-gradient(145deg,#2563eb,#4f8cff); box-shadow:0 10px 28px rgba(37,99,235,.28); font-weight:900; font-size:13px; }
.auth-card > .eyebrow, .auth-card > h2, .auth-card > p { text-align:center; }
.auth-card > p { color:var(--muted); }
.auth-form { display:grid; gap:13px; margin-top:20px; }
.auth-actions, .user-actions { display:flex; flex-wrap:wrap; gap:9px; }
.flat-header { padding:0 0 14px; margin-bottom:14px; border-bottom:1px solid var(--border); box-shadow:none; background:transparent; }
.user-create-grid { display:grid; grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) auto auto; gap:10px; align-items:end; margin-bottom:14px; }
.check-field { display:flex; align-items:center; gap:8px; min-height:42px; color:var(--muted); font-size:12px; font-weight:800; }
.inline-password { min-width:180px; }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent); outline-offset: 2px; }
.filter-backdrop { display:none; }

@media (max-width: 1260px) {
  .workspace { grid-template-columns: 300px minmax(0,1fr); }
  .info-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .brand-text small { display:none; }
}

@media (max-width: 920px) {
  :root { --header-h: 64px; }
  .app-shell { width:min(calc(100% - 20px),var(--content-w)); }
  .app-header { gap:10px; }
  .brand-text { display:none; }
  .page-heading { padding-left:14px; }
  .page-heading .eyebrow { display:none; }
  .page-heading h1 { font-size:20px; }
  .header-actions { gap:6px; }
  .header-actions .badge, .header-actions .user-badge, .header-actions .icon-text-button span { display:none; }
  .icon-text-button { width:44px; padding:0; justify-content:center; }
  .workspace { grid-template-columns: 1fr; }
  .mobile-list-toolbar { display:flex; align-items:center; gap:8px; padding:9px; margin-bottom:10px; }
  .mobile-list-toolbar .button { flex:0 0 auto; }
  .desktop-sort { display:none; }
  .filter-panel { position:fixed; left:0; right:0; bottom:0; top:auto; z-index:60; width:100%; max-height:min(88dvh,760px); border-radius:24px 24px 0 0; padding:18px 16px max(16px,env(safe-area-inset-bottom)); transform:translateY(105%); transition:transform .24s ease; box-shadow:0 -20px 60px rgba(0,0,0,.28); }
  body.filters-open { overflow:hidden; }
  body.filters-open .filter-panel { transform:translateY(0); }
  .filter-backdrop { position:fixed; inset:0; z-index:50; background:rgba(2,8,23,.5); backdrop-filter:blur(2px); -webkit-backdrop-filter:blur(2px); }
  body.filters-open .filter-backdrop { display:block; }
  .mobile-only { display:inline-flex !important; }
  .filter-panel-header { position:sticky; top:-18px; z-index:3; margin:-18px -16px 0; padding:16px; background:var(--surface); border-bottom:1px solid var(--border); }
  .filter-panel-footer { bottom:calc(-1 * max(16px,env(safe-area-inset-bottom))); margin-left:-16px; margin-right:-16px; margin-bottom:calc(-1 * max(16px,env(safe-area-inset-bottom))); padding-bottom:max(14px,env(safe-area-inset-bottom)); }
  .results-panel { padding:14px; }
  .results-header { align-items:flex-start; }
  .detail-top { grid-template-columns: auto minmax(0,1fr); align-items:start; }
  .detail-top > .badge { grid-column:2; }
  .tabs { top:calc(var(--header-h) + 6px); }
  .user-create-grid { grid-template-columns:1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size:15px; }
  .app-shell { width:100%; }
  .app-header { padding:8px 10px; }
  .brand-logo { width:40px; height:40px; border-radius:13px; }
  .page-heading { border-left:0; padding-left:0; }
  .page-heading h1 { font-size:19px; }
  .header-actions .icon-button, .header-actions .icon-text-button { width:40px; height:40px; min-height:40px; border-radius:12px; }
  .main-content { padding:10px 10px 28px; }
  .card { border-radius:18px; }
  .mobile-list-toolbar { position:sticky; top:64px; z-index:25; background:color-mix(in srgb,var(--surface) 95%,transparent); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); }
  .results-panel { padding:12px; }
  .results-header { margin-bottom:10px; }
  .results-header h2 { font-size:19px; }
  .title-line { align-items:center; flex-wrap:wrap; }
  input, select, textarea { font-size:16px; }
  .date-grid { grid-template-columns:1fr; }

  .repairs-table-wrap { border:0; background:transparent; overflow:visible; }
  .repairs-table, .repairs-table thead, .repairs-table tbody, .repairs-table tr, .repairs-table td { display:block; width:100%; }
  .repairs-table thead { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
  .repairs-table tbody { display:grid; gap:10px; }
  .repairs-table tbody tr { position:relative; border:1px solid var(--border); border-radius:16px; padding:12px; background:var(--surface); box-shadow:none; overflow:hidden; }
  .repairs-table tbody tr::after { content:'›'; position:absolute; right:12px; top:12px; color:var(--muted-2); font-size:24px; line-height:1; }
  .repairs-table td { display:none; padding:0; border:0; }
  .repairs-table td:nth-child(1), .repairs-table td:nth-child(4), .repairs-table td:nth-child(5), .repairs-table td:nth-child(6), .repairs-table td:nth-child(7), .repairs-table td:nth-child(11), .repairs-table td:nth-child(12) { display:block; }
  .repairs-table td:nth-child(1) { padding-right:30px; color:var(--primary-strong); font-size:17px; font-weight:900; }
  .repairs-table td:nth-child(4) { margin-top:3px; padding-right:22px; color:var(--text-strong); font-size:14px; font-weight:750; }
  .repairs-table td:nth-child(5), .repairs-table td:nth-child(6), .repairs-table td:nth-child(7) { display:inline; color:var(--muted); font-size:12px; }
  .repairs-table td:nth-child(5)::after, .repairs-table td:nth-child(6)::after { content:' · '; color:var(--muted-2); }
  .repairs-table td:nth-child(11) { margin-top:9px; padding-top:9px; border-top:1px solid var(--border); color:var(--text); font-size:13px; text-align:left; }
  .repairs-table td:nth-child(11)::before { content:'Сумма: '; color:var(--muted); font-weight:700; }
  .repairs-table td:nth-child(12) { position:absolute; right:12px; bottom:12px; }
  .repairs-table td:nth-child(12) .badge { font-size:10px; }
  .pager { justify-content:space-between; }
  .pager .button { flex:1; }
  #pageInfo { min-width:82px; }

  .detail-top { grid-template-columns:1fr; gap:10px; padding:13px; }
  .back-button { width:max-content; }
  .detail-top > .badge { grid-column:1; }
  .tabs { margin:0 -1px 10px; border-radius:16px; }
  .detail-content { padding:13px; }
  .info-grid, .block-grid { grid-template-columns:1fr; }
  .info-item { min-height:68px; }
  .data-table { min-width:760px; }
  .table-wrap:not(.repairs-table-wrap) { overflow-x:auto; -webkit-overflow-scrolling:touch; }
  .files-grid { grid-template-columns:1fr; }
  .auth-card { margin:24px 0; padding:18px; }
  .user-create-grid { grid-template-columns:1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration:.001ms!important; animation-iteration-count:1!important; transition-duration:.001ms!important; scroll-behavior:auto!important; }
  .particles-canvas { display:none; }
}
