:root {
  --accent: #ef5a2d;
  --accent-dark: #c9431b;
  --ink: #1f1f1f;
  --ink-2: #555b61;
  --line: #e2e0dc;
  --bg: #f6f5f2;
  --card: #fff;
  --bar: #2b2b2b;
  --ok: #2f7d4f;
  --warn: #b7791f;
  --danger: #b42318;
  --radius: 8px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.45;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #1d5fa8; }
h1 { font-size: 1.5rem; margin: 0 0 .75rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
h2 { font-size: 1.1rem; margin: 1.75rem 0 .6rem; }
h3 { font-size: 1rem; margin: 0 0 .5rem; }
.muted { color: var(--ink-2); }
.small { font-size: .85rem; }
.right { text-align: right; margin-left: auto; }
.pre { white-space: pre-wrap; }
code { background: #efede9; padding: 0 .3rem; border-radius: 4px; }

/* top bar */
.topbar { background: var(--bar); color: #fff; display: flex; align-items: center; gap: 1.5rem; padding: 0 1.25rem; min-height: 56px; flex-wrap: wrap; }
.brand { color: #fff; text-decoration: none; font-weight: 700; display: flex; align-items: center; gap: .5rem; }
.brand-mark { width: 24px; height: 24px; display: inline-block; background: url(icon.svg) center / contain no-repeat; }
.mainnav { display: flex; gap: .25rem; flex-wrap: wrap; }
.mainnav a { color: #d8d8d8; text-decoration: none; padding: .45rem .7rem; border-radius: 6px; }
.mainnav a:hover { color: #fff; background: #3a3a3a; }
.mainnav a.active { color: #fff; box-shadow: inset 0 -3px 0 var(--accent); border-radius: 0; }
.me { margin-left: auto; display: flex; align-items: center; gap: .9rem; }
.me a { color: #fff; text-decoration: none; }
.me form { margin: 0; }
.me .link { color: #bbb; }

.page { max-width: 1180px; margin: 0 auto; padding: 1.25rem; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .5rem; }
.head-row h1 { margin: 0; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .3rem; font: inherit; font-weight: 600; padding: .5rem .95rem;
  border: 1px solid #cfccc6; background: #fff; color: var(--ink); border-radius: 6px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: #a9a59e; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.danger { color: var(--danger); border-color: #e7b9b4; }
.btn.small { padding: .25rem .6rem; font-size: .85rem; }
.btn.wide { width: 100%; padding: .7rem; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: #1d5fa8; cursor: pointer; text-decoration: underline; }
button.link.danger, .danger { color: var(--danger); }

/* messages */
.flash { background: #fff4ef; border: 1px solid #f7c6b5; border-left: 4px solid var(--accent); padding: .65rem .9rem; border-radius: 6px; margin-bottom: 1rem; }
.alert { background: #fdecea; border: 1px solid #f3c1bb; color: var(--danger); padding: .6rem .8rem; border-radius: 6px; margin-bottom: .9rem; }
.empty { color: var(--ink-2); background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 1rem; }
.field-error { display: block; color: var(--danger); font-size: .85rem; font-weight: 400; margin-top: .2rem; }
.overdue { color: var(--danger); font-weight: 600; }

/* cards & tables */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; margin-bottom: 1rem; }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
table.list { width: 100%; border-collapse: collapse; }
table.list th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-2); font-weight: 600; padding: .6rem .75rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.list td { padding: .6rem .75rem; border-bottom: 1px solid #efede9; vertical-align: top; }
table.list tbody tr:last-child td { border-bottom: 0; }
table.list tr.rowlink { cursor: pointer; }
table.list tr.rowlink:hover td { background: #fbfaf8; }
table.list tfoot td { border-top: 1px solid var(--line); border-bottom: 0; color: var(--ink-2); }
table.list tfoot tr.total td { color: var(--ink); font-weight: 700; font-size: 1.05rem; }
table.list tr.inactive td { color: #999; }
.num { text-align: right; white-space: nowrap; }
td.right { text-align: right; white-space: nowrap; }

.plate { display: inline-block; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-weight: 700; letter-spacing: .04em;
  border: 1.5px solid #333; border-left: 7px solid #1f4fbf; border-radius: 4px; padding: 0 .4rem; background: #fff; color: #111; line-height: 1.5; margin-right: .3rem; white-space: nowrap; }
.plate.big { font-size: 1.15rem; padding: .05rem .55rem; }

.badge { display: inline-block; font-size: .78rem; font-weight: 600; padding: .12rem .55rem; border-radius: 999px; white-space: nowrap; vertical-align: middle; }
.badge-received { background: #e8eef9; color: #1f4f9a; }
.badge-in_progress { background: #fff0e9; color: #b4401a; }
.badge-waiting_parts { background: #fdf3dc; color: #8a5a00; }
.badge-ready { background: #e3f4ea; color: #1f6b40; }
.badge-released { background: #ececec; color: #555; }
.badge-cancelled { background: #f5e4e4; color: #8f2c2c; }

/* dashboard */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin: 1rem 0; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; text-decoration: none; color: var(--ink-2);
  display: flex; flex-direction: column; border-top: 4px solid #ccc; }
.tile:hover { border-color: #c9c5bd; }
.tile-n { font-size: 2rem; font-weight: 700; color: var(--ink); line-height: 1.1; }
.tile-received { border-top-color: #1f4f9a; }
.tile-in_progress { border-top-color: var(--accent); }
.tile-waiting_parts { border-top-color: #d69e2e; }
.tile-ready { border-top-color: var(--ok); }

/* tabs & search */
.tabs { display: flex; gap: .2rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: .9rem; }
.tabs a { padding: .5rem .8rem; text-decoration: none; color: var(--ink-2); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a.active { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.tabs .count { font-size: .78rem; color: #8a8a8a; }
.search { display: flex; gap: .5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.search input[type=search] { flex: 1; min-width: 220px; }

/* forms */
input, select, textarea { font: inherit; padding: .5rem .6rem; border: 1px solid #cfccc6; border-radius: 6px; background: #fff; color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid #f6b39d; border-color: var(--accent); }
input.upper { text-transform: uppercase; }
input.short { width: 7rem; }
.form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .8rem; }
.form label input, .form label select, .form label textarea { margin-top: .25rem; font-weight: 400; }
.form.narrow { max-width: 440px; }
.form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem 1rem .25rem; margin: 0 0 1rem; background: var(--card); }
.form legend { font-weight: 700; padding: 0 .3rem; }
.form-actions { display: flex; align-items: center; gap: 1rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 1rem; }
label.checkbox { display: flex; align-items: center; gap: .4rem; font-weight: 400; }
label.checkbox input { width: auto; margin: 0; }
.inline-form { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; margin: .4rem 0; }
.inline-form input, .inline-form select { width: auto; flex: 1 1 8rem; }
.inline-form input.short { flex: 0 0 6rem; }
form.inline { display: inline; }

/* order page */
.vehicle-line { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.status-bar { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.status-btn-ready { border-color: #9ccfb0; }
.status-btn-cancelled { color: var(--danger); }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.25rem; align-items: start; }
.col-side .card textarea { resize: vertical; }
.items tr.done td:nth-child(2) { color: #7a7a7a; }
.check { width: 28px; height: 28px; border-radius: 6px; border: 2px solid #b9b5ad; background: #fff; cursor: pointer; font-weight: 700; color: #fff; padding: 0; }
.check.on { background: var(--ok); border-color: var(--ok); }
.kind { font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; padding: .05rem .35rem; border-radius: 4px; margin-right: .3rem; }
.kind-labor { background: #eef1f6; color: #3d4f6e; }
.kind-part { background: #f4efe6; color: #6b5126; }
details.edit summary { cursor: pointer; color: #1d5fa8; font-size: .8rem; display: inline; }
.add-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin-top: 1rem; }
.grid-item { display: flex; gap: .75rem; flex-wrap: wrap; align-items: flex-end; }
.grid-item label { margin-bottom: .6rem; display: flex; flex-direction: column; }
.grid-item .grow { flex: 1 1 240px; }
.quick { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .8rem; }
.chip { white-space: nowrap; font: inherit; font-size: .82rem; padding: .25rem .6rem; border: 1px solid #d9d5ce; background: #faf9f7; border-radius: 999px; cursor: pointer; }
.chip:hover { border-color: var(--accent); color: var(--accent-dark); }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .75rem; margin-bottom: .75rem; }
.photos figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.photos img { width: 100%; height: 140px; object-fit: cover; display: block; }
.photos figcaption { padding: .4rem .6rem; font-size: .85rem; }
.events { list-style: none; padding: 0; margin: 0; }
.events li { padding: .25rem 0; }

/* vehicle */
.facts { display: grid; grid-template-columns: 160px 1fr; gap: .35rem 1rem; margin: 0; }
.facts dt { color: var(--ink-2); }
.facts dd { margin: 0; }
.history-head { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; }
.history p { margin: .4rem 0; }
.history-items { margin: .4rem 0 0; padding-left: 1.2rem; }
.history-items li.todo { color: var(--ink-2); }
ul.plain { list-style: none; padding: 0; }
ul.plain li { padding: .3rem 0; }

/* login */
body.bare { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bar); padding: 1rem; }
.login-box { background: #fff; border-radius: 12px; padding: 1.75rem; width: 100%; max-width: 380px; }
.login-box label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .9rem; }
.login-box input { margin-top: .25rem; }
.login-brand { display: flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--ink-2); margin-bottom: 1rem; }
.login-box h1 { font-size: 1.3rem; }

@media (max-width: 860px) {
  .cols { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .page { padding: .9rem; }
  .topbar { padding: .5rem .9rem; gap: .5rem; }
  .me { margin-left: 0; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { margin-top: .4rem; }
  table.list th:nth-child(n+5), table.list td:nth-child(n+5) { display: none; }
  table.items th, table.items td { display: table-cell !important; }
}

/* logo of the old AutoNaprawa app (MAUI Resources/Splash/logo.png), drawn on its own #2b2b2b */
.brand-logo { height: 46px; width: auto; display: block; }
.login-wrap { width: 100%; max-width: 380px; }
.login-logo { display: block; width: 260px; max-width: 80%; margin: 0 auto 1rem; }
.part-ico { vertical-align: middle; object-fit: contain; margin-right: .35rem; }
.chip .part-ico { margin-right: .25rem; }

/* calendar */
.cal-bar { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin: .5rem 0 1rem; }
.seg { display: inline-flex; border: 1px solid #cfccc6; border-radius: 6px; overflow: hidden; background: #fff; }
.seg a { padding: .4rem .9rem; text-decoration: none; color: var(--ink-2); border-left: 1px solid #cfccc6; }
.seg a:first-child { border-left: 0; }
.seg a.active { background: var(--bar); color: #fff; }
.cal-nav { display: flex; align-items: center; gap: .4rem; }
.cal-title { margin-left: .5rem; font-size: 1.1rem; text-transform: capitalize; }
.cal-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cal-wd { background: #efede9; padding: .35rem .5rem; font-size: .8rem; font-weight: 600; color: var(--ink-2); text-transform: uppercase; }
.cal-cell { background: #fff; min-height: 104px; padding: .3rem .35rem; display: flex; flex-direction: column; gap: 2px; }
.cal-cell.other { background: #faf9f7; }
.cal-cell.other .cal-day { color: #aaa; }
.cal-cell.today .cal-day { background: var(--accent); color: #fff; border-radius: 999px; }
.cal-day { align-self: flex-start; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .85rem; min-width: 1.6rem; text-align: center; padding: 0 .3rem; }
.cal-more { font-size: .75rem; color: var(--ink-2); }
.cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .5rem; }
.cal-col { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem; display: flex; flex-direction: column; gap: .4rem; min-height: 220px; }
.cal-col.today { border-color: var(--accent); box-shadow: inset 0 3px 0 var(--accent); }
.cal-col-head { text-decoration: none; color: var(--ink-2); font-size: .85rem; }
.cal-col-head strong { color: var(--ink); }
.cal-add { color: var(--ink-2); font-size: .85rem; text-decoration: none; margin-top: auto; }
.cal-add:hover { color: var(--accent-dark); }
.cal-day-view { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.cal-hour { display: grid; grid-template-columns: 64px 1fr; border-bottom: 1px solid #efede9; min-height: 48px; }
.cal-hour:last-child { border-bottom: 0; }
.cal-hour-label { padding: .5rem; color: var(--ink-2); font-size: .85rem; border-right: 1px solid #efede9; }
.cal-hour-body { padding: .35rem .5rem; display: flex; flex-wrap: wrap; gap: .4rem; align-items: flex-start; }
.cal-hour-body .cal-add { margin: .3rem 0 0 auto; }
.appt { display: flex; flex-direction: column; gap: .15rem; text-decoration: none; color: var(--ink); background: #f7f6f3; border-left: 4px solid #8a8a8a;
  border-radius: 5px; padding: .35rem .5rem; font-size: .85rem; min-width: 0; }
.cal-hour-body .appt { flex: 1 1 260px; }
.cal-cell .appt { flex-direction: row; gap: .3rem; padding: .1rem .3rem; font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left-width: 3px; display: block; }
.appt:hover { background: #f0eee9; }
.appt-time { font-weight: 700; }
.appt-who { color: var(--ink-2); }
.appt-service { font-weight: 600; }
.appt-meta { display: flex; gap: .3rem; align-items: center; flex-wrap: wrap; }
.appt-planned { border-left-color: #1f4f9a; }
.appt-confirmed { border-left-color: var(--accent); }
.appt-arrived { border-left-color: var(--ok); }
.appt-done { border-left-color: #8a8a8a; opacity: .75; }
.appt-no_show, .appt-cancelled { border-left-color: var(--danger); opacity: .6; text-decoration: line-through; }
.badge.appt-planned { background: #e8eef9; color: #1f4f9a; }
.badge.appt-confirmed { background: #fff0e9; color: #b4401a; }
.badge.appt-arrived { background: #e3f4ea; color: #1f6b40; }
.badge.appt-done { background: #ececec; color: #555; }
.badge.appt-no_show, .badge.appt-cancelled { background: #f5e4e4; color: #8f2c2c; text-decoration: none; }
@media (max-width: 860px) {
  .cal-week { grid-template-columns: 1fr; }
  .cal-col { min-height: 0; }
  .cal-cell { min-height: 64px; }
  .cal-cell .appt { display: none; }
  .cal-cell .appt:first-of-type { display: block; }
}
.appt .plate { align-self: flex-start; }

/* select + "add" button side by side */
.with-add { display: flex; gap: .5rem; align-items: stretch; margin: .25rem 0 .8rem; }
.with-add select { flex: 1; min-width: 0; }
.add-btn { font-size: 1.4rem; line-height: 1; padding: 0 .9rem; min-width: 44px; color: var(--accent-dark); border-color: #f2b9a5; }
.add-btn:hover { background: #fff4ef; border-color: var(--accent); }
.muted-box { opacity: .45; }

/* modal (native <dialog>: Esc closes it; app.js closes it on a backdrop click) */
html.modal-open { overflow: hidden; }
dialog.modal { border: 0; padding: 0; border-radius: 12px; width: min(720px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35); color: var(--ink); background: var(--bg); overflow: auto; }
dialog.modal::backdrop { background: rgba(20, 20, 20, .55); }
dialog.modal[open] { animation: modal-in .16s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { dialog.modal[open] { animation: none; } }
.modal-body { padding: 0 1.25rem 1.1rem; }
.modal-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: var(--bg);
  padding: 1rem 0 .6rem; margin-bottom: .4rem; border-bottom: 1px solid var(--line); z-index: 1; }
.modal-head h2 { margin: 0; font-size: 1.2rem; }
.modal-close { border: 0; background: none; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--ink-2); width: 44px; height: 44px; border-radius: 8px; }
.modal-close:hover { background: #ebe9e4; color: var(--ink); }
.modal-foot { display: flex; justify-content: flex-end; gap: .6rem; position: sticky; bottom: 0; background: var(--bg);
  padding: .8rem 0 0; border-top: 1px solid var(--line); margin-top: .4rem; }
.modal-alert { background: #fdecea; border: 1px solid #f3c1bb; color: var(--danger); padding: .55rem .8rem; border-radius: 6px; margin-bottom: .8rem; }
[aria-invalid="true"] { border-color: var(--danger) !important; background: #fffafa; }
.field-error:empty { display: none; }
@media (max-width: 560px) {
  dialog.modal { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; margin: 0; }
  .modal-foot .btn { flex: 1; padding: .75rem; }
}

/* toast */
.toast { position: fixed; left: 50%; bottom: 1.25rem; transform: translate(-50%, 150%); background: var(--bar); color: #fff;
  padding: .7rem 1.1rem; border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transition: transform .2s ease; z-index: 50; max-width: calc(100vw - 2rem); }
.toast.show { transform: translate(-50%, 0); }

/* soon (within 30 days) vs overdue */
.soon { color: var(--warn); font-weight: 600; }
.list-note { color: var(--ink-2); font-size: .85rem; margin: .5rem 0 0; }
.vehicle-filter { margin: .25rem 0 0; }

/* phone */
@media (max-width: 700px) {
  .topbar { flex-wrap: nowrap; gap: .5rem; padding: .35rem .6rem; min-height: 52px; }
  .brand-logo { height: 36px; }
  .mainnav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; flex: 1; -webkit-overflow-scrolling: touch; }
  .mainnav::-webkit-scrollbar { display: none; }
  .mainnav a { white-space: nowrap; padding: .55rem .6rem; }
  .me a { display: none; }
  .me .link { color: #ddd; font-size: .85rem; }
  .head-row h1 { font-size: 1.25rem; }
  .actions .btn { padding: .45rem .7rem; }
  /* order items as cards */
  table.items thead { display: none; }
  table.items, table.items tbody, table.items tfoot { display: block; }
  table.items tr { display: grid; grid-template-columns: 40px 1fr auto; gap: .1rem .5rem; padding: .6rem .5rem; border-bottom: 1px solid #efede9; }
  table.items td { display: block !important; padding: 0; border: 0; }
  table.items td:nth-child(1) { grid-row: span 3; }
  table.items td:nth-child(2) { grid-column: 2 / 4; }
  table.items tbody td:nth-child(3)::before { content: 'Ilość: '; color: var(--ink-2); }
  table.items td:nth-child(3), table.items td:nth-child(4) { grid-column: 2; text-align: left; font-size: .9rem; }
  table.items td:nth-child(5) { grid-column: 3; grid-row: 2 / 4; align-self: center; font-weight: 700; }
  table.items td:nth-child(6) { display: none !important; }
  table.items tfoot tr { grid-template-columns: 1fr auto; padding: .45rem .5rem; }
  table.items tfoot td:first-child { display: none !important; }
  table.items tfoot td[colspan] { grid-column: 1; }
  table.items tfoot td.num { grid-column: 2; grid-row: auto; text-align: right; }
  .quick { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: thin; }
  .grid-item { display: grid; grid-template-columns: 1fr 1fr; }
  .grid-item .grow { grid-column: 1 / -1; }
  .grid-item input.short { width: 100%; }
  .status-bar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .3rem; }
  .status-bar .btn { white-space: nowrap; }
  .inline-form input, .inline-form select { flex-basis: 100%; }
  .check { width: 34px; height: 34px; }
}

/* phone: nothing may push the page wider than the screen (scrolling rows live inside their own box) */
@media (max-width: 860px) {
  .cols { grid-template-columns: minmax(0, 1fr); }
  .col-main, .col-side, .cols section { min-width: 0; }
}
@media (max-width: 700px) {
  html, body { overflow-x: hidden; }
  table.items tr { grid-template-columns: 40px minmax(0, 1fr) auto; }
  table.items td:nth-child(2) { overflow-wrap: anywhere; }
  .grid-item { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .grid-item label, .grid-item input, .grid-item select { min-width: 0; width: 100%; }
  .table-wrap { max-width: 100%; }
  .status-bar { max-width: 100%; }
  .head-row .actions { width: 100%; }
}
