.import { width: 100%; padding: 12px 12px 24px; display: grid; gap: 10px; }
.import-header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.import-header .import-nav { margin-left: auto; }
.import-header .files-button { min-height: 34px; padding: 0 12px; font: inherit; font-size: 13px; font-weight: 700; border-radius: 8px; cursor: pointer; }
.import-header .home-brand .brand-logo { height: 32px; padding: 3px 8px; border-radius: 8px; }
.import-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.import-nav .home-button { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.result-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.vehicle-tabs, .month-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.month-filters { margin-bottom: 8px; }
.chip { min-height: 28px; padding: 0 10px; color: #c9d8cc; border: 1px solid rgba(221,239,224,.14); border-radius: 999px; background: #19221c; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.chip:hover { color: #fff; border-color: #5f8a66; background: #23352a; }
.chip.tab { border-radius: 8px; font-size: 13px; }
.chip.expired { color: #fff; border-color: #d93025; background: #c62828; }
.chip.expired:hover { color: #fff; border-color: #ff6f61; background: #e53935; }
.chip.current { color: #ffd88a; border-color: rgba(255,200,100,.4); }
.chip.active { color: #102014; border-color: #91d49a; background: #91d49a; }
.chip.expired.active { color: #fff; border-color: #fff; background: #e53935; box-shadow: 0 0 0 2px #ff8a80; }
.chip:focus-visible { outline: 2px solid #91d49a; outline-offset: 2px; }
.result-count { color: #9fb0a2; font-size: 12px; }
/* All columns always fit the screen width: fixed layout, text wraps instead of scrolling sideways. */
.table-wrap { max-height: calc(100vh - 190px); overflow-y: auto; overflow-x: hidden; border: 1px solid rgba(221,239,224,.14); border-radius: 8px; }
.table-wrap table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: clamp(8px, .78vw, 12px); line-height: 1.25; }
.table-wrap th, .table-wrap td { padding: 4px 4px; border: 1px solid rgba(221,239,224,.3); text-align: left; overflow-wrap: anywhere; word-break: break-word; vertical-align: top; }
.table-wrap thead th { position: sticky; top: 0; color: #102014; background: #91d49a; font-weight: 700; }
.table-wrap tbody tr:nth-child(even) { background: rgba(255,255,255,.025); }

@media (max-width: 640px) {
  .import { padding: 10px 8px 16px; }
  .import-header { flex-direction: column; align-items: stretch; }
  .import-header .home-brand { justify-content: center; }
  .import-header .import-nav { margin-left: 0; }
  .import-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .import-nav .home-button { padding: 0 4px; font-size: 11px; }
  .table-wrap th, .table-wrap td { padding: 3px 2px; }
}

/* Editable columns: white cells so they stand out from the imported data. */
.table-wrap td.editable { color: #111713; background: #fff; border-color: #b9c7bc; cursor: text; }
.table-wrap tbody tr:nth-child(even) td.editable { background: #fff; }
.table-wrap td.editable:hover { background: #f3f7f4; }
.table-wrap td.editable:focus { outline: 2px solid #4f9a5a; outline-offset: -2px; background: #fff; }
.table-wrap thead th { border-color: #6fae79; }

.toolbar-right { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.editor-name[hidden] { display: none; }
.editor-name { display: flex; align-items: center; gap: 6px; color: #c9d8cc; font-size: 12px; font-weight: 700; }
.editor-name input { width: 160px; min-height: 28px; padding: 0 8px; color: #edf4ef; border: 1px solid rgba(221,239,224,.3); border-radius: 6px; background: #19221c; font: inherit; font-weight: 400; }
.editor-name input:focus { outline: 2px solid #91d49a; outline-offset: 1px; }
.month-filters[hidden] { display: none; }
.tabs-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.log-updated { color: #9fb0a2; font-size: 12px; }
.table-wrap td.expired-date { color: #ff6b5e; font-weight: 700; }

/* Voorstel ForFarmers: cell button + planning dialog. */
.table-wrap td.proposal-cell { padding: 0; }
.proposal-btn { width: 100%; min-height: 26px; padding: 4px; display: grid; gap: 1px; text-align: left; color: #111713; border: 0; background: transparent; font: inherit; cursor: pointer; }
.proposal-btn small { color: #5a6b5e; font-size: .9em; }
.proposal-btn.empty { color: #8a9a8d; }
.proposal-btn:hover { background: #f3f7f4; }
.proposal-btn:focus-visible { outline: 2px solid #4f9a5a; outline-offset: -2px; }
.proposal-dialog { width: min(460px, calc(100% - 24px)); padding: 18px; color: #edf4ef; border: 1px solid rgba(221,239,224,.2); border-radius: 12px; background: #131a14; }
.proposal-dialog::backdrop { background: rgba(0,0,0,.6); }
.proposal-dialog h2 { margin: 0; font-size: 18px; }
.proposal-vehicle { margin: 2px 0 12px; color: #9fb0a2; font-size: 13px; }
.proposal-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.proposal-kinds label { padding: 6px 10px; border: 1px solid rgba(221,239,224,.2); border-radius: 999px; font-size: 13px; font-weight: 700; cursor: pointer; }
.proposal-kinds label:has(input:checked) { color: #102014; border-color: #91d49a; background: #91d49a; }
.proposal-kinds input { margin: 0 4px 0 0; accent-color: #2f6b38; }
.proposal-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-bottom: 12px; }
.proposal-row[hidden] { display: none; }
.proposal-row label { display: grid; gap: 4px; color: #c9d8cc; font-size: 12px; font-weight: 700; }
.proposal-row label.grow { flex: 1 1 180px; }
.proposal-row input, .proposal-row select { min-height: 34px; padding: 0 8px; color: #edf4ef; border: 1px solid rgba(221,239,224,.3); border-radius: 6px; background: #0f1510; font: inherit; font-weight: 400; color-scheme: dark; }
.proposal-row input[name="week"], .proposal-row input[name="days"] { width: 80px; }
.proposal-row input[name="year"] { width: 90px; }
.proposal-hint { flex-basis: 100%; color: #9fb0a2; font-size: 12px; }
.proposal-actions { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 8px; }
.proposal-actions button { min-height: 34px; padding: 0 14px; color: #c9d8cc; border: 1px solid rgba(221,239,224,.2); border-radius: 8px; background: #19221c; font: inherit; font-weight: 700; cursor: pointer; }
.proposal-actions button.primary { color: #102014; border-color: #91d49a; background: #91d49a; }
.proposal-actions .link-button { padding: 0; color: #ff8a80; border: 0; background: none; }
.table-wrap td.activity-cell { padding: 0; }
.table-wrap td.activity-cell input { width: 100%; min-width: 0; min-height: 26px; padding: 4px; color: #111713; border: 0; background: transparent; font: inherit; color-scheme: light; }
.table-wrap td.activity-cell input::placeholder { color: #8a9a8d; }
.table-wrap td.activity-cell input:focus { outline: 2px solid #4f9a5a; outline-offset: -2px; }

/* Personaliseer velden */
.columns-button { min-height: 28px; padding: 0 10px; color: #c9d8cc; border: 1px solid rgba(221,239,224,.3); border-radius: 6px; background: #19221c; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.columns-button:hover { color: #fff; border-color: #5f8a66; background: #23352a; }
.columns-dialog { width: min(560px, calc(100% - 24px)); }
.columns-list { max-height: min(60vh, 520px); margin: 0 0 12px; padding: 0; overflow-y: auto; list-style: none; border: 1px solid rgba(221,239,224,.15); border-radius: 8px; }
.columns-list li { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 6px; padding: 6px 8px; border-bottom: 1px solid rgba(221,239,224,.08); }
.columns-list li:last-child { border-bottom: 0; }
.columns-list li.off .col-name span { color: #7d8c80; }
.columns-list .col-name { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.columns-list .col-name input { width: 16px; height: 16px; accent-color: #91d49a; }
.columns-list .col-name small { color: #9fb0a2; font-size: 11px; }
.columns-list button { width: 28px; height: 28px; color: #c9d8cc; border: 1px solid rgba(221,239,224,.2); border-radius: 6px; background: #19221c; cursor: pointer; }
.columns-list button:disabled { opacity: .3; cursor: default; }
.columns-error { margin: 0 0 10px; color: #ff8a80; font-size: 13px; }
.columns-list .col-width { display: grid; grid-template-columns: 64px auto; align-items: center; column-gap: 3px; color: #c9d8cc; font-size: 12px; }
.columns-list .col-width input { width: 64px; min-height: 28px; padding: 0 6px; color: #edf4ef; border: 1px solid rgba(221,239,224,.3); border-radius: 6px; background: #0f1510; font: inherit; color-scheme: dark; text-align: right; }
.columns-list .col-share { grid-column: 1 / -1; color: #7d8c80; font-size: 10px; white-space: nowrap; }
.proposal-actions .undo-button { justify-self: start; padding: 0 10px; font-size: 12px; }
.proposal-actions .undo-button:disabled { opacity: .4; cursor: default; }
@media (max-width: 520px) {
  .columns-dialog .proposal-actions { grid-template-columns: 1fr 1fr; }
}

/* Bestanden */
.files-dialog { width: min(620px, calc(100% - 24px)); }
.files-list { max-height: min(60vh, 520px); margin: 0 0 12px; padding: 0; overflow-y: auto; list-style: none; border: 1px solid rgba(221,239,224,.15); border-radius: 8px; }
.files-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-bottom: 1px solid rgba(221,239,224,.08); }
.files-list li:last-child { border-bottom: 0; }
.files-list li.active { background: rgba(145,212,154,.08); }
.files-list li div:first-child { display: grid; gap: 2px; min-width: 0; }
.files-list b { font-size: 13px; overflow-wrap: anywhere; }
.files-list small { color: #9fb0a2; font-size: 12px; }
.files-list .files-empty { color: #9fb0a2; font-size: 13px; }
.file-actions { display: flex; align-items: center; gap: 6px; }
.file-actions button { min-height: 28px; padding: 0 10px; color: #c9d8cc; border: 1px solid rgba(221,239,224,.2); border-radius: 6px; background: #19221c; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.file-actions button:hover { color: #fff; border-color: #5f8a66; background: #23352a; }
.file-actions .file-remove { color: #ff8a80; }
.file-actions .file-remove.confirm { color: #fff; border-color: #d93025; background: #c62828; }
.file-active { padding: 3px 8px; color: #102014; border-radius: 999px; background: #91d49a; font-size: 11px; font-weight: 800; }
.files-actions { grid-template-columns: 1fr; justify-items: end; }

/* RDW-koppeling: renewed APK/tacho dates turn green. */
.table-wrap td.rdw-renewed { color: #0d2a12; background: #9fe0a8; font-weight: 700; }
.table-wrap tbody tr:nth-child(even) td.rdw-renewed { background: #9fe0a8; }
/* RDW huisstijl: donkerblauw #121845 met oranjerood #CC3300 (uit het RDW-logo). */
.table-wrap td.rdw-renewed small { display: inline-block; margin-top: 2px; padding: 0 4px; color: #fff; border-left: 3px solid #cc3300; border-radius: 3px; background: #121845; font-weight: 700; font-size: .92em; }
.rdw-button { color: #fff; border-color: #121845; border-left: 4px solid #cc3300; background: #121845; }
.rdw-button:hover { color: #fff; border-color: #2a3170; border-left-color: #e0461a; background: #2a3170; }
.rdw-button:focus-visible { outline: 2px solid #cc3300; outline-offset: 2px; }
.table-wrap td.rdw-log { color: #fff; background: #121845; font-weight: 700; box-shadow: inset 3px 0 0 #cc3300; }
.rdw-button:disabled { opacity: .6; cursor: progress; }
.rdw-info { color: #9fb0a2; font-size: 11px; }

/* Verlopen APK/TACHO */
.import-header .expired-button { min-height: 34px; padding: 0 12px; color: #fff; border-color: #d93025; background: #c62828; font: inherit; font-size: 13px; font-weight: 800; border-radius: 8px; cursor: pointer; }
.import-header .expired-button:hover { color: #fff; border-color: #ff6f61; background: #e53935; }
.expired-dialog { width: min(820px, calc(100% - 24px)); }
.expired-dialog h2 { color: #ff8a80; }
.expired-wrap { max-height: min(60vh, 560px); margin-bottom: 12px; }
.expired-wrap thead th { color: #fff; background: #c62828; border-color: #d93025; }
.expired-wrap td:nth-child(5), .expired-wrap td:nth-child(6) { color: #ff6b5e; font-weight: 700; }
.expired-kind { display: inline-block; padding: 1px 7px; color: #fff; border-radius: 4px; font-size: 11px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.expired-kind.apk { background: #c62828; }
.expired-kind.tacho { background: #8e24aa; }
.import-header .rdw-button { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.import-header .rdw-info { max-width: 130px; line-height: 1.2; }
.import-header .log-button { min-height: 34px; padding: 0 12px; font: inherit; font-size: 13px; font-weight: 700; border-radius: 8px; cursor: pointer; }
.import-header .log-updated { max-width: 150px; font-size: 11px; line-height: 1.2; }

/* Export inladen: small button in the top bar (click or drop a file on it). */
.import-header .drop-zone { position: relative; min-height: 34px; padding: 0 12px; gap: 6px; font-size: 13px; font-weight: 700; border-style: dashed; border-radius: 8px; cursor: pointer; }
.import-header .drop-zone.dragging { color: #102014; border-color: #91d49a; background: #91d49a; }
.import-header .drop-zone:focus-within { outline: 2px solid #91d49a; outline-offset: 2px; }
.import-header .drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.import-status { position: fixed; left: 50%; bottom: 16px; z-index: 50; max-width: min(640px, calc(100% - 24px)); margin: 0; padding: 8px 14px; transform: translateX(-50%); color: #102014; border-radius: 8px; background: #91d49a; box-shadow: 0 6px 24px rgba(0,0,0,.45); font-size: 13px; font-weight: 600; }
.import-status.error { color: #fff; background: #c62828; }
/* Rows changed by "RDW-data bijwerken": RDW-blue marker on the left and a light tint. */
.table-wrap tbody tr.rdw-row td { background: rgba(18,24,69,.55); }
.table-wrap tbody tr.rdw-row td:first-child { box-shadow: inset 4px 0 0 #cc3300; font-weight: 700; }
.table-wrap tbody tr.rdw-row td.editable, .table-wrap tbody tr.rdw-row td.proposal-cell, .table-wrap tbody tr.rdw-row td.activity-cell { background: #fff; }
.table-wrap tbody tr.rdw-row td.rdw-renewed { background: #9fe0a8; }
/* RDW-changed date: "!" that unfolds when and from what the RDW changed it. */
.rdw-flag { width: 16px; height: 16px; padding: 0; display: inline-grid; place-items: center; vertical-align: 1px; color: #fff; border: 0; border-radius: 50%; background: #cc3300; font: inherit; font-size: 11px; font-weight: 900; line-height: 1; cursor: pointer; }
.rdw-flag:hover, .rdw-flag[aria-expanded="true"] { background: #121845; box-shadow: 0 0 0 2px #cc3300; }
.rdw-flag:focus-visible { outline: 2px solid #121845; outline-offset: 2px; }
.rdw-details { margin-top: 3px; padding: 3px 5px; color: #fff; border-left: 3px solid #cc3300; border-radius: 3px; background: #121845; font-size: .9em; font-weight: 600; line-height: 1.3; }

/* Leading columns: delete/restore and In Ultimo. */
.table-wrap th.lead-col, .table-wrap td.lead-col { padding: 2px; text-align: center; vertical-align: middle; }
.row-delete, .row-restore { width: 100%; min-height: 24px; padding: 0; color: #ff8a80; border: 1px solid rgba(255,138,128,.35); border-radius: 5px; background: transparent; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.row-delete:hover { background: rgba(255,138,128,.12); }
.row-delete.confirm { color: #fff; border-color: #d93025; background: #c62828; }
.row-restore { color: #91d49a; border-color: rgba(145,212,154,.45); font-size: 14px; }
.row-restore:hover { background: rgba(145,212,154,.12); }
.ultimo-cell select { width: 100%; min-width: 0; min-height: 24px; padding: 0 2px; color: #edf4ef; border: 1px solid rgba(221,239,224,.3); border-radius: 5px; background: #0f1510; font: inherit; font-weight: 700; color-scheme: dark; cursor: pointer; }
.ultimo-cell select.yes { color: #102014; border-color: #91d49a; background: #91d49a; }
.ultimo-cell select.no { color: #fff; border-color: #d93025; background: #c62828; }
.table-wrap tbody tr.deleted-row td:not(.lead-col) { opacity: .55; text-decoration: line-through; }
.chip.deleted-chip { margin-left: 8px; color: #ffb4ab; border-color: rgba(255,138,128,.4); }
.chip.deleted-chip.active { color: #fff; border-color: #d93025; background: #c62828; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Phone: compact buttons on top and one card per vehicle instead of the wide table. */
@media (max-width: 640px) {
  .import { grid-template-columns: minmax(0, 1fr); }
  .import > * { min-width: 0; }
  .import-header { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .import-header > .home-brand, .import-header > .import-nav, .import-header > small { grid-column: 1 / -1; }
  .import-header > small:empty { display: none; }
  .import-header .files-button, .import-header .home-button, .import-header .rdw-button { width: 100%; min-height: 36px; margin: 0; padding: 0 6px; font-size: 12px; line-height: 1.2; }
  .import-header .expired-button { grid-column: 1 / -1; }
  .import-header .home-brand .brand-logo { height: 28px; }
  .result-toolbar { gap: 6px; }
  .toolbar-right { width: 100%; justify-content: space-between; gap: 8px; }
  .tabs-row, .vehicle-tabs { width: 100%; flex-wrap: nowrap; }
  .vehicle-tabs .chip.tab { flex: 1 1 0; padding: 0 4px; white-space: nowrap; font-size: 12px; }
  .month-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
  .month-filters .chip { flex: 0 0 auto; }

  .table-wrap { max-height: none; overflow: visible; border: 0; border-radius: 0; }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; width: auto; }
  .table-wrap table { font-size: 13px; }
  .table-wrap colgroup, .table-wrap thead { display: none; }
  .table-wrap tbody tr { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; margin: 0 0 10px; padding: 10px; border: 1px solid rgba(221,239,224,.18); border-radius: 10px; background: #151d17; }
  .table-wrap tbody tr:nth-child(even) { background: #151d17; }
  .table-wrap td { min-width: 0; padding: 4px 6px; border: 0; border-radius: 6px; }
  .table-wrap td::before { content: attr(data-label); display: block; color: #8a9a8d; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
  .table-wrap td:empty { display: none; }
  .table-wrap td.editable, .table-wrap td.activity-cell, .table-wrap td.proposal-cell { grid-column: 1 / -1; }
  .table-wrap td.editable::before { padding: 4px 4px 0; color: #5a6b5e; }
  .table-wrap td.activity-cell input, .table-wrap td.activity-cell select, .proposal-btn { min-height: 34px; font-size: 14px; }
  /* Delete button top right, In Ultimo next to the vehicle code. */
  .table-wrap td.lead-col:first-child { position: absolute; top: 8px; right: 8px; padding: 0; }
  .table-wrap td.lead-col:first-child::before { content: none; }
  .table-wrap td.lead-col:first-child button { width: auto; min-width: 36px; min-height: 30px; padding: 0 8px; }
  .table-wrap td.ultimo-cell { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding-right: 60px; }
  .table-wrap td.ultimo-cell::before { display: inline; }
  .table-wrap td.ultimo-cell select { width: auto; min-width: 80px; min-height: 30px; }
  .table-wrap td[data-label="Code"] { font-size: 16px; font-weight: 800; }
}

.import-header .drop-zone[hidden] { display: none; }

/* Print: only the list, black on white, landscape, every row on paper (also on a phone). */
.print-title[hidden] { display: none; }
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  body { color: #000; background: #fff; }
  .import-header, .result-toolbar, .month-filters, .import-status, dialog, a[href="/cdn-cgi/access/logout"] { display: none !important; }
  .import { padding: 0; }
  .print-title { display: block !important; margin: 0 0 6px; color: #000; font-size: 12px; font-weight: 700; }
  .table-wrap { max-height: none; overflow: visible; border: 0; }
  .table-wrap table { display: table; width: 100% !important; table-layout: auto; font-size: 8.5pt; }
  .table-wrap colgroup { display: none; }
  .table-wrap thead { display: table-header-group; }
  .table-wrap tbody { display: table-row-group; }
  .table-wrap tr, .table-wrap tbody tr { display: table-row; margin: 0; padding: 0; border: 0; background: none !important; break-inside: avoid; }
  .table-wrap th, .table-wrap td { display: table-cell; position: static !important; padding: 2px 3px; overflow-wrap: normal; word-break: normal; color: #000 !important; border: 1px solid #999 !important; background: #fff !important; box-shadow: none !important; }
  .table-wrap td::before { content: none !important; }
  .table-wrap td:empty { display: table-cell; }
  .table-wrap thead th { position: static; color: #000; background: #e6e6e6 !important; }
  .table-wrap td.expired-date { font-weight: 700; text-decoration: underline; }
  .table-wrap td.lead-col:first-child, .table-wrap th.lead-col:first-child { display: none; }
  .table-wrap button, .table-wrap select, .table-wrap input { color: #000 !important; border: 0 !important; background: none !important; font: inherit; appearance: none; }
  .table-wrap td.activity-cell input::placeholder, .proposal-btn.empty { color: transparent !important; }
}

/* Soort activiteit: coloured choice, same colours as the planning sheet. */
.table-wrap td.activity-cell { padding: 2px; }
.table-wrap td.activity-cell select { width: 100%; min-width: 0; min-height: 24px; padding: 1px 6px; border: 0; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; color-scheme: light; }
.table-wrap td.activity-cell select:focus { outline: 2px solid #4f9a5a; outline-offset: 1px; }
.table-wrap td.activity-cell select option { color: #111713; background: #fff; font-weight: 400; }
.act-empty { color: #8a9a8d; background: #f3f5f3; font-weight: 400 !important; }
.act-apk-oh { color: #fff; background: #a3200f; }
.act-oh { color: #5a4300; background: #fde8a5; }
.act-rep { color: #0b3d91; background: #cfe2fb; }
.act-apk-tacho-oh { color: #fff; background: #1f4fa0; }
.act-schade { color: #8a1c12; background: #f6c9c4; }
.act-other { color: #111713; background: #e6e6e6; }
@media print {
  .table-wrap td.activity-cell select { padding: 0; border-radius: 0; color: #000 !important; background: none !important; font-weight: 700; }
}

/* Gebreken: import button and a dropdown per vehicle. */
.import-header .defects-zone { border-color: rgba(255,200,100,.45); color: #ffd88a; }
.table-wrap td.defects-cell { position: relative; padding: 2px; overflow: visible; }
.defects { position: static; }
.defects[open] summary { position: relative; z-index: 31; }
.defects summary { display: inline-block; padding: 2px 7px; font-size: .95em; color: #3d2a00; border-radius: 999px; background: #ffd88a; font-weight: 700; cursor: pointer; list-style: none; white-space: nowrap; }
.defects summary::-webkit-details-marker { display: none; }
.defects summary::after { content: " ▾"; }
.defects[open] summary::after { content: " ▴"; }
.defects summary.damage { color: #fff; background: #c62828; }
.defects summary:focus-visible { outline: 2px solid #91d49a; outline-offset: 2px; }
.defects ul { position: absolute; top: calc(100% - 2px); left: 2px; z-index: 30; width: 340px; max-height: 300px; margin: 0; box-shadow: 0 10px 28px rgba(0,0,0,.55); padding: 0; overflow-y: auto; list-style: none; border: 1px solid rgba(221,239,224,.25); border-radius: 8px; background: #0f1510; }
.defects li { padding: 7px 9px; border-bottom: 1px solid rgba(221,239,224,.1); }
.defects li:last-child { border-bottom: 0; }
.defect-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.defect-kind { padding: 0 6px; color: #3d2a00; border-radius: 4px; background: #ffd88a; font-size: .9em; font-weight: 700; }
.defect-kind.damage { color: #fff; background: #c62828; }
.defect-kind.solved { color: #102014; background: #91d49a; }
.defects li p { margin: 3px 0; color: #edf4ef; }
.defects li small { color: #9fb0a2; }
@media (max-width: 640px) {
  .table-wrap td.defects-cell { grid-column: 1 / -1; }
  .defects ul { position: static; width: auto; margin-top: 6px; box-shadow: none; }
}
@media print {
  .defects summary { padding: 0; color: #000 !important; background: none !important; }
  .defects summary::after { content: ""; }
}

/* Shared data: messages about saving and colleagues' changes. */
.sync-bar { position: sticky; top: 0; z-index: 50; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; padding: 8px 14px; color: #102014; background: #91d49a; font-weight: 600; text-align: center; }
.sync-bar.error { color: #fff; background: #a3200f; }
.sync-bar button { padding: 4px 12px; color: inherit; border: 1px solid currentColor; border-radius: 999px; background: transparent; font: inherit; cursor: pointer; }
@media print { .sync-bar { display: none; } }
