/* Global resets */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    height: 100%;
}

/* Layout */
.container {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 225px;
    background: #f5f5f5;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    transition: width 0.18s ease, padding 0.18s ease;
}

.sidebar-top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 18px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    flex: 1;
}

.sidebar ul li {
    margin-bottom: 8px;
    padding: 0;
    cursor: pointer;
}

.sidebar ul li a,
.sidebar-bottom-link,
.sidebar-user-display {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 38px;
}

.sidebar-bottom-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
}

.sidebar-bottom-link {
    cursor: pointer;
}

.sidebar-user-display {
    cursor: default;
}

.sidebar-user-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #555;
    flex: 0 0 auto;
}

.sidebar-menu-button {
    width: 38px;
    height: 38px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    background: #fff;
    color: #333;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.sidebar ul li:hover .sidebar-menu-button,
.sidebar ul li.active .sidebar-menu-button {
    background: #eaeaea;
}

.sidebar-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-footer {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-top .theme-toggle,
.sidebar-footer .theme-toggle {
    margin-top: 0;
    flex: 0 0 auto;
}

.sidebar-version {
    color: #666;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
}

.sidebar.is-collapsed,
html.tms-sidebar-collapsed-preload .sidebar {
    width: 78px;
    align-items: center;
}

.sidebar.is-collapsed .sidebar-top,
.sidebar.is-collapsed .sidebar-footer,
.sidebar.is-collapsed .sidebar-bottom-actions,
.sidebar.is-collapsed ul,
html.tms-sidebar-collapsed-preload .sidebar .sidebar-top,
html.tms-sidebar-collapsed-preload .sidebar .sidebar-footer,
html.tms-sidebar-collapsed-preload .sidebar .sidebar-bottom-actions,
html.tms-sidebar-collapsed-preload .sidebar ul {
    width: 38px;
}

.sidebar.is-collapsed .sidebar-top,
html.tms-sidebar-collapsed-preload .sidebar .sidebar-top {
    justify-content: center;
}

.sidebar.is-collapsed ul li a,
.sidebar.is-collapsed .sidebar-bottom-link,
.sidebar.is-collapsed .sidebar-user-display,
html.tms-sidebar-collapsed-preload .sidebar ul li a,
html.tms-sidebar-collapsed-preload .sidebar .sidebar-bottom-link,
html.tms-sidebar-collapsed-preload .sidebar .sidebar-user-display {
    justify-content: center;
}

.sidebar.is-collapsed .sidebar-label,
.sidebar.is-collapsed .sidebar-version,
html.tms-sidebar-collapsed-preload .sidebar .sidebar-label,
html.tms-sidebar-collapsed-preload .sidebar .sidebar-version {
    display: none;
}

.sidebar-toggle-expand {
    display: none;
}

.sidebar.is-collapsed .sidebar-toggle-collapse,
html.tms-sidebar-collapsed-preload .sidebar .sidebar-toggle-collapse {
    display: none;
}

.sidebar.is-collapsed .sidebar-toggle-expand,
html.tms-sidebar-collapsed-preload .sidebar .sidebar-toggle-expand {
    display: block;
}

html.tms-sidebar-collapsed-preload .sidebar {
    transition: none;
}

.theme-toggle {
    width: 38px;
    height: 38px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    background: #fff;
    color: #333;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-top: auto;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

a.theme-toggle {
    text-decoration: none;
}

.theme-toggle:hover {
    background: #eaeaea;
}

.theme-toggle.icon-btn-primary {
    background: #2563eb;
    border-color: #1d4ed8;
    color: #fff;
}

.theme-toggle.icon-btn-primary:hover {
    background: #1d4ed8;
    border-color: #1e40af;
}

.theme-toggle.icon-btn-danger {
    background: #dc2626;
    border-color: #b91c1c;
    color: #fff;
}

.theme-toggle.icon-btn-danger:hover {
    background: #b91c1c;
    border-color: #991b1b;
}

.theme-toggle.icon-btn-dark {
    background: #202124;
    border-color: #202124;
    color: #fff;
}

.theme-toggle.icon-btn-dark:hover {
    background: #2f3033;
    border-color: #2f3033;
}

.theme-toggle:active {
    transform: scale(0.96);
}

.theme-toggle:focus {
    outline: 2px solid rgba(37, 99, 235, 0.55);
    outline-offset: 2px;
}

.theme-icon {
    width: 30px;
    height: 30px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-toggle .theme-icon,
.theme-toggle .theme-icon * {
    pointer-events: none;
}

.theme-icon-moon {
    fill: currentColor;
    stroke: none;
}

.theme-icon-sun {
    display: none;
}

/* Content */
.content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* Login */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-form {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 300px;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 20px;
}

.login-form .error {
    color: red;
    text-align: center;
    margin-bottom: 10px;
}

.login-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.login-form button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: #007bff;
    color: #fff;
}

/* Button base and variants */
.btn {
    padding: 6px 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background 0.15s ease, transform .1s ease;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

.btn:focus {
    outline: 2px solid rgba(0,123,255,0.6);
    outline-offset: 1px;
}

.btn:hover {
    filter: brightness(1.05);
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: #2563eb;
    color: #fff;
}

.btn-primary:hover {
    background: #1f54c4;
}

.btn-accent {
    background: #fff;
    color: #333;
    border: 1px solid #ccc;
}

.btn-danger {
    background: #c0392b;
    color: #fff;
}

.btn-danger:hover {
    background: #a52a22;
}

/* Reparatie-tabs bovenaan */
.repair-tabs {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 20px 0;
    border-bottom: 1px solid #ddd;
}
.repair-tabs li {
    margin-right: 5px;
    padding: 8px 12px;
    cursor: pointer;
    border: 1px solid transparent;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    background: #f5f5f5;
}
.repair-tabs li.active {
    background: white;
    border-color: #ddd #ddd white;
    position: relative;
    top: 1px;
}
#repair-content {
    padding: 15px;
    border: 1px solid #ddd;
    border-top: none;
    background: #fff;
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 180px;
}

.loader-ripple {
    width: min(150px, 45vw);
    aspect-ratio: 1;
    display: block;
    background-image: url('/assets/img/ripple_dm.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Reparatie-lijst */
#repair-list {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    font-size: 14px;
}

#repair-list thead th {
    background-color: #f5f5f5;
    padding: 6px;
    text-align: left;
    border-bottom: 2px solid #ccc;
}

#repair-list tbody tr {
    border-bottom: 1px solid #ccc;
}

#repair-list tbody tr:nth-child(odd) {
    background-color: #e6f7ff;
}

#repair-list tbody tr:nth-child(even) {
    background-color: #f5f5f5;
}

#repair-list th,
#repair-list td {
    padding: 6px;
    white-space: nowrap;
}

#repair-list tbody tr:hover {
    background-color: #d0e9ff;
    cursor: pointer;
}

.repair-list-toolbar {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.repair-toolbar-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.repair-select-all-control,
.repair-card-select {
  width: 38px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.repair-select-all-control {
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  background: #fff;
}

.repair-select-all-control input,
.repair-select-checkbox {
  width: 18px;
  height: 18px;
  margin: 0;
}

.repair-toolbar-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.repair-toolbar-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.repair-toolbar-primary {
  display: grid;
  grid-template-columns: minmax(220px, 280px) repeat(6, max-content) minmax(0, 1fr) max-content;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.repair-toolbar-primary .btn {
  justify-self: start;
  white-space: nowrap;
  width: max-content;
  max-width: 100%;
}

.repair-toolbar-primary .theme-toggle {
  justify-self: start;
  width: 38px;
  min-width: 38px;
  height: 38px;
  flex: 0 0 38px;
}

.repair-toolbar-primary #imei-check-btn {
  grid-column: -1;
  justify-self: end;
  width: 38px;
  min-width: 38px;
  height: 38px;
  flex: 0 0 38px;
}

.repair-toolbar-primary #delete-btn {
  grid-column: auto;
  justify-self: start;
}

.repair-toolbar-primary.insurance-repair-toolbar {
  grid-template-columns: minmax(220px, 280px) repeat(7, max-content) minmax(0, 1fr);
}

.insurance-company-filter {
  width: 210px;
}

.insurance-repair-field-grid {
  grid-template-columns:
    minmax(0, 1.1fr)
    minmax(0, 1fr)
    minmax(0, 1fr)
    minmax(0, 0.8fr)
    minmax(0, 0.9fr)
    minmax(0, 1fr)
    minmax(0, 1.1fr)
    minmax(0, 0.9fr);
}

.repair-toolbar-secondary {
  color: #555;
  font-size: 13px;
}

.repair-toolbar-bulk {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px;
  border: 1px solid #dbeafe;
  background: #f0f7ff;
}

.repair-toolbar-bulk select {
  width: auto;
  min-width: 190px;
}

.repair-toolbar-bulk #bulk-selected-count {
  font-weight: 700;
  color: #1d4ed8;
  white-space: nowrap;
}

.repair-search-wrapper {
  position: relative;
  width: min(280px, 100%);
}

.repair-search-wrapper input {
  width: 100%;
  padding: 7px 26px 7px 8px;
  box-sizing: border-box;
}

.repair-list-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  user-select: none;
  -webkit-user-select: none;
}

.repair-card {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0;
  box-sizing: border-box;
  height: 126px;
  min-height: 126px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.repair-card::after {
  content: none;
}

.repair-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 0 0 2px rgba(147, 197, 253, 0.34);
}

.repair-card.selected {
  border-color: #60a5fa;
  box-shadow: inset 3px 0 0 #2563eb, 0 8px 24px rgba(37, 99, 235, 0.14);
}

.repair-card-select {
  align-self: stretch;
  min-height: 100%;
  border-right: 1px solid #e5e7eb;
}

.repair-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  justify-content: space-between;
  min-width: 0;
  padding-left: 12px;
}

.repair-title strong {
  font-size: 15px;
}

.repair-identity {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 0;
}

.repair-type-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
}

.repair-type-icon-svg,
.settings-type-icon-svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.repair-title,
.repair-quick-meta {
  gap: 2px;
  min-width: 0;
}

.repair-title strong,
.repair-title span,
.repair-quick-meta span {
  font-size: 12px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.repair-title strong {
  font-size: 15px;
}

.repair-summary {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(320px, auto) auto;
  gap: 12px;
  align-items: center;
}

.repair-quick-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(80px, auto));
  justify-content: end;
  column-gap: 12px;
  row-gap: 2px;
}

.repair-quick-meta span {
  white-space: nowrap;
}

.repair-quick-meta strong {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.repair-actions {
  justify-content: flex-end;
}

.repair-actions .btn {
  padding: 5px 12px;
}

.repair-actions .theme-toggle {
  width: 34px;
  min-width: 34px;
  height: 34px;
  border-radius: 7px;
}

.repair-actions .theme-toggle .theme-icon {
  width: 18px;
  height: 18px;
}

.repair-card-lines {
  margin-top: 0;
  overflow: hidden;
}

.repair-field-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1.05fr)
    minmax(0, 0.72fr)
    minmax(0, 0.82fr)
    minmax(0, 0.64fr)
    minmax(0, 1.1fr)
    minmax(0, 1.12fr)
    minmax(0, 1.08fr)
    minmax(0, 0.96fr)
    minmax(0, 1.05fr)
    minmax(0, 1.08fr);
  gap: 0;
  border-top: 1px solid #ccc;
}

.repair-field {
  min-width: 0;
  background: transparent;
  padding: 5px 6px;
}

.repair-field span {
  display: block;
  color: #555;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.repair-field strong {
  min-height: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  color: #111;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.repair-copy-line {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
}

.repair-copy-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.repair-copy-btn,
.repair-mini-link-btn {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 0;
  background: transparent;
  color: #64748b;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
  user-select: none;
  -webkit-user-select: none;
  text-decoration: none;
}

.repair-copy-btn:hover,
.repair-copy-btn.copied,
.repair-mini-link-btn:hover {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}

.repair-copy-btn:active,
.repair-mini-link-btn:active {
  transform: scale(0.94);
}

.repair-copy-icon {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.repair-swatch {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border: 1px solid #444;
  border-radius: 3px;
  display: inline-block;
}

/* Suggesties */
.suggestions {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 32px;
  left: 0;
  width: 100%;
  border: 1px solid #ccc;
  background: #fff;
  max-height: 150px;
  overflow-y: auto;
  z-index: 100;
}
.suggestions li {
  padding: 6px;
  cursor: pointer;
}
.suggestions li:hover {
  background: #f0f0f0;
}

/* Clear-knop in input */
.search-wrapper {
  position: relative;
}
.clear-btn {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  font-size: 16px;
  color: #999;
  cursor: pointer;
  user-select: none;
}
.clear-btn:hover {
  color: #333;
}

/* Sticky toolbar bovenaan reparatielijst */
.search-container {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 20;
  padding-top: 6px;
  padding-bottom: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.search-container.repair-list-toolbar {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: start;
  width: 100%;
}

/* Geselecteerde rij */
#repair-list tbody tr.selected {
  background-color: #d0e9ff;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  box-shadow: inset 0 2px 0 #7aaef2, inset 0 -2px 0 #7aaef2;
}

/* Pending remove glow */
#repair-list tbody tr.pending-remove {
  position: relative;
  box-shadow: 0 0 12px 2px rgba(255, 100, 100, 0.35);
  background-color: rgba(255, 230, 230, 0.6);
  transition: background-color 0.3s ease;
}

/* Fade-out */
#repair-list tbody tr.fading-out {
  transition: opacity 1s ease, height 1s ease, margin 1s ease, padding 1s ease;
  opacity: 0;
  height: 0 !important;
  margin: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  overflow: hidden;
}

/* Undo banner */
#undo-banner {
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

/* Buttons in undo banner consistent */
#undo-banner button {
  font-size: 0.9rem;
  cursor: pointer;
}

/* Specific spacing for the undo area if needed */
#undo-container {
  display: flex;
  align-items: center;
}

/* Utility: small gap between search group and delete area */
.search-container > div {
  display: flex;
  gap: 8px;
}

/* Vormgeving formulier in informatie tab */
form#repair-info-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Labels en inputs netjes uitlijnen */
.form-row label {
  font-weight: 600;
  margin-bottom: 2px;
}

.form-control {
  padding: 8px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  min-width: 0;
  transition: background 0.2s ease, border-color 0.15s ease;
  width: 100%;
  box-sizing: border-box;
}

/* Highlight veld als gewijzigd */
.form-control.modified {
  background-color: #d0e9ff; /* zelfde lichtblauw als geselecteerde rij */
  border-color: #7aaef2;
}

/* Opslaan knop container: klaar om als .btn gebruikt te worden */
#info-save-container .btn {
  min-width: 120px;
}

/* Kleine responsive tweak zodat labels gelijk blijven in smalle viewports */
@media (min-width: 600px) {
  /* twee kolommen als je wilt, maar voorlopig enkel gestapeld */
}

/* Dropdowns / selects visueel consistent */
select.form-control {
  appearance: none;
  background: #fff;
}

/* Foutmeldingen (optioneel) */
.field-error {
  color: #c0392b;
  font-size: 12px;
}

.repair-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.repair-date-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -6px 0 16px;
}

.repair-title-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.repair-date-meta div {
  border: 1px solid #ddd;
  background: #f8fafc;
  padding: 8px 10px;
  min-width: 190px;
}

.repair-date-meta span {
  display: block;
  color: #555;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 2px;
}

.suggest-wrap {
  position: relative;
}

.settings-check-row .checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  font-weight: 500;
}

.created-print-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  font-weight: 600;
}

.settings-check-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.field-suggestions {
  top: 100%;
  z-index: 400;
}

.linked-customer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid #ddd;
  background: #f8fafc;
}

.linked-customer-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.linked-customer-detail-btn {
  flex: 0 0 38px;
}

.repair-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
}

.repair-modal-panel {
  width: min(420px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid #ccc;
  padding: 18px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.repair-modal-panel h3 {
  margin: 0 0 8px;
}

.repair-modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 14px;
}

.imei-check-panel {
  width: min(640px, calc(100vw - 32px));
}

.imei-check-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.imei-check-form .form-row {
  margin-bottom: 0;
}

.imei-check-result {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  border: 1px solid #ddd;
  background: #f8fafc;
}

.imei-check-image-wrap {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.imei-check-image {
  max-width: 140px;
  max-height: 140px;
  object-fit: contain;
}

.imei-check-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  align-content: start;
}

.imei-check-details div {
  min-width: 0;
}

.imei-check-details span,
.imei-balance-card span {
  display: block;
  color: #555;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 2px;
}

.imei-check-details strong,
.imei-balance-card strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.imei-balance-card {
  align-self: end;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  background: #f8fafc;
}

.imei-balance-card small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
}

.imei-thumb {
  width: 54px;
  height: 54px;
  object-fit: contain;
  display: block;
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 3px;
}

/* Instellingen / webshop */
.page-heading {
  margin-bottom: 16px;
}

.page-heading h1 {
  margin: 0 0 6px;
}

.page-heading p {
  margin: 0;
  color: #555;
}

.notice {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #d6d6d6;
  border-radius: 4px;
  background: #fff;
}

.notice-success {
  border-color: #9bd0a8;
  background: #eef9f0;
  color: #1f6f34;
}

.notice-error {
  border-color: #e0a3a0;
  background: #fff1f0;
  color: #9f2d24;
}

.settings-form {
  max-width: 980px;
}

.settings-tabs {
  margin: 20px 0 0;
  overflow: visible;
  flex-wrap: wrap;
}

.settings-tab {
  white-space: nowrap;
}

.settings-section {
  margin-bottom: 18px;
}

.settings-tab-panel {
  display: none;
}

.settings-tab-panel.active {
  display: block;
}

.settings-section-heading {
  margin-bottom: 8px;
}

.settings-section-heading h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.settings-section-heading p {
  margin: 0;
  color: #555;
  font-size: 13px;
}

.settings-panel {
  background: #fff;
  border: 1px solid #ddd;
  padding: 16px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.settings-actions {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.settings-panel-actions {
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
}

.user-management-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.2fr);
  gap: 14px;
}

.user-editor-card,
.user-list-card {
  min-width: 0;
}

.user-management-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-management-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  background: #fff;
}

.user-management-row div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.user-management-row strong,
.user-management-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-management-row span {
  color: #667085;
  font-size: 13px;
}

.settings-download-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.settings-download-panel p {
  margin: 4px 0 0;
  color: #555;
  font-size: 13px;
}

.settings-type-icon-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-type-icon-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(260px, 320px);
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e5e7eb;
}

.settings-type-icon-row:last-child {
  border-bottom: 0;
}

.settings-type-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.settings-type-name strong,
.settings-type-name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-type-name span {
  color: #555;
  font-size: 12px;
}

.settings-type-icon-control {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.settings-type-icon-preview {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  background: #fff;
  color: #2563eb;
}

.settings-note {
  max-width: 860px;
  margin-top: 12px;
  color: #555;
  font-size: 13px;
}

.inline-status {
  color: #555;
  font-size: 13px;
}

.status-success {
  color: #1f6f34;
}

.status-error {
  color: #9f2d24;
}

.webshop-toolbar {
  align-items: center;
}

.category-levels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-levels select {
  width: auto;
  min-width: 160px;
  max-width: 240px;
}

.webshop-search {
  width: 220px;
}

.log-search,
.imei-log-search {
  width: min(320px, 100%);
}

.log-search input,
.imei-log-search input {
  width: 100%;
  box-sizing: border-box;
}

#webshop-clear-btn {
  display: none;
}

#webshop-products {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  font-size: 14px;
}

#webshop-products thead th {
  background-color: #f5f5f5;
  padding: 6px;
  text-align: left;
  border-bottom: 2px solid #ccc;
}

#webshop-products th,
#webshop-products td {
  padding: 6px;
  border-bottom: 1px solid #ccc;
  vertical-align: middle;
}

#webshop-products tbody tr:nth-child(odd) {
  background-color: #e6f7ff;
}

#webshop-products tbody tr:nth-child(even) {
  background-color: #f5f5f5;
}

#webshop-products .webshop-price {
  width: 120px;
}

#webshop-products .category-path {
  min-width: 260px;
  color: #555;
}

.planning-toolbar {
  align-items: center;
}

.planning-tabs {
  margin-top: 8px;
  margin-bottom: 12px;
}

.planning-tabs li {
  cursor: pointer;
}

.planning-pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.planning-page-gap {
  color: #777;
  font-size: 13px;
  padding: 0 2px;
}

#planning-list {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  font-size: 14px;
}

#planning-list thead th {
  background-color: #f5f5f5;
  padding: 6px;
  text-align: left;
  border-bottom: 2px solid #ccc;
}

#planning-list th,
#planning-list td {
  padding: 6px;
  border-bottom: 1px solid #ccc;
  vertical-align: top;
}

#planning-list .planning-status-select {
  min-width: 145px;
}

#planning-list tbody tr:nth-child(odd) {
  background-color: #e6f7ff;
}

#planning-list tbody tr:nth-child(even) {
  background-color: #f5f5f5;
}

#imei-log-list {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  font-size: 14px;
}

#imei-log-list thead th {
  background-color: #f5f5f5;
  padding: 6px;
  text-align: left;
  border-bottom: 2px solid #ccc;
}

#imei-log-list th,
#imei-log-list td {
  padding: 6px;
  border-bottom: 1px solid #ccc;
  vertical-align: middle;
}

#imei-log-list tbody tr:nth-child(odd) {
  background-color: #e6f7ff;
}

#imei-log-list tbody tr:nth-child(even) {
  background-color: #f5f5f5;
}

.inventory-search {
  width: min(320px, 100%);
}

.customers-search,
.devices-search {
  width: min(340px, 100%);
}

.inventory-search input {
  width: 100%;
  box-sizing: border-box;
}

.customers-search input,
.devices-search input {
  width: 100%;
  box-sizing: border-box;
}

#inventory-list {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

#customers-list,
#devices-list {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  font-size: 14px;
}

#inventory-list thead th,
#customers-list thead th,
#devices-list thead th {
  background-color: #f5f5f5;
  padding: 6px;
  text-align: left;
  border-bottom: 1px solid #ccc;
}

#inventory-list th,
#inventory-list td,
#customers-list th,
#customers-list td,
#devices-list th,
#devices-list td {
  padding: 6px;
  border-bottom: 1px solid #ccc;
  vertical-align: middle;
}

#inventory-list tbody tr:nth-child(odd),
#customers-list tbody tr:nth-child(odd),
#devices-list tbody tr:nth-child(odd) {
  background-color: #e6f7ff;
}

#inventory-list tbody tr:nth-child(even),
#customers-list tbody tr:nth-child(even),
#devices-list tbody tr:nth-child(even) {
  background-color: #f5f5f5;
}

#customers-list input,
#devices-list input {
  min-width: 130px;
}

#customers-list td:last-child {
  white-space: nowrap;
}

#customers-list td:first-child,
#customers-list th:first-child {
  width: 42px;
  text-align: center;
}

.customer-detail-open-btn {
  width: 34px;
  min-width: 34px;
  height: 34px;
  margin: 0 auto;
}

.customer-detail-open-btn .theme-icon {
  width: 18px;
  height: 18px;
}

.customer-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.customer-detail-header h1 {
  margin: 0;
}

.customer-detail-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.customer-detail-summary span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #ddd;
  background: #fff;
  padding: 6px 9px;
  font-size: 12px;
}

.customer-detail-summary strong {
  color: #111;
}

.customer-detail-panel {
  margin-bottom: 18px;
}

.customer-detail-grid {
  align-items: end;
}

.customer-repairs-section {
  margin-top: 18px;
}

.customer-detail-repair-list {
  margin-top: 10px;
}

.customer-detail-card-strip {
  background: rgba(37, 99, 235, 0.04);
}

.inventory-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.devices-modal-panel {
  width: min(680px, calc(100vw - 32px));
}

.field-config-root {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field-config-group {
  border: 1px solid #ddd;
  background: #fff;
  padding: 14px;
}

.field-config-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.field-config-heading h3 {
  margin: 0;
  font-size: 16px;
}

.field-config-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-config-row {
  display: grid;
  grid-template-columns: 38px minmax(150px, 1fr) minmax(140px, 180px) minmax(180px, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid #e5e7eb;
  background: #fafafa;
}

.field-order-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.field-config-row .theme-toggle {
  flex: 0 0 auto;
}

.notification-pref-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notification-pref-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid #e5e7eb;
  background: #fafafa;
}

.notification-pref-row strong,
.notification-pref-row span {
  display: block;
}

.notification-pref-row span {
  margin-top: 2px;
  color: #555;
  font-size: 13px;
}

#toast-container {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(360px, calc(100vw - 28px));
  pointer-events: none;
}

.tms-toast {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(180, 190, 205, 0.62);
  background: rgba(255, 255, 255, 0.82);
  color: #222;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease;
  pointer-events: auto;
}

.tms-toast.toast-visible {
  opacity: 1;
  transform: translateY(0);
}

.tms-toast.toast-leaving {
  opacity: 0;
  transform: translateY(10px);
}

.tms-toast.is-clickable {
  cursor: pointer;
}

.tms-toast.is-clickable:hover {
  border-color: #5b8def;
}

.toast-icon-wrap {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(91, 141, 239, 0.45);
  color: #2563eb;
  background: rgba(91, 141, 239, 0.1);
}

.toast-icon-wrap .theme-icon,
.toast-icon-btn .theme-icon {
  width: 18px;
  height: 18px;
}

.toast-content {
  min-width: 0;
}

.toast-content strong,
.toast-content span,
.toast-content small {
  display: block;
}

.toast-content strong {
  font-size: 13px;
  line-height: 1.25;
}

.toast-content span {
  margin-top: 2px;
  color: #3b3b3b;
  font-size: 12px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toast-content small {
  margin-top: 3px;
  color: #666;
  font-size: 11px;
}

.toast-actions {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.toast-icon-btn {
  width: 32px;
  height: 32px;
}

.toast-type-printing .toast-icon-wrap {
  color: #16a34a;
  border-color: rgba(22, 163, 74, 0.42);
  background: rgba(22, 163, 74, 0.1);
}

.dashboard-heading {
  margin-bottom: 14px;
}

.dashboard-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.dashboard-tile,
.dashboard-range-panel,
.dashboard-stat-card,
.dashboard-revenue-panel {
  background: #fff;
  border: 1px solid #ddd;
  color: inherit;
}

.dashboard-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dashboard-tile:hover {
  border-color: #5b8def;
  box-shadow: 0 0 0 2px rgba(91, 141, 239, 0.12);
}

.dashboard-tile span,
.dashboard-tile small,
.dashboard-card-heading p,
.dashboard-range-panel p,
.dashboard-empty {
  color: #555;
}

.dashboard-tile strong {
  font-size: 30px;
  line-height: 1;
}

.dashboard-range-panel {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  padding: 14px;
  margin-bottom: 16px;
}

.dashboard-range-panel h2,
.dashboard-card-heading h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.dashboard-range-panel p,
.dashboard-card-heading p {
  margin: 0;
  font-size: 13px;
}

.dashboard-range-controls {
  display: flex;
  align-items: end;
  gap: 8px;
  flex-wrap: wrap;
}

.dashboard-range-controls label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #555;
}

.dashboard-stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.dashboard-stat-card,
.dashboard-revenue-panel {
  padding: 14px;
}

.dashboard-card-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 12px;
}

.dashboard-card-heading > strong {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d0d0d0;
  background: #f8fafc;
  font-size: 20px;
}

.dashboard-stat-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-stat-columns h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.dashboard-top-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.dashboard-top-list li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding-bottom: 6px;
  overflow: hidden;
}

.dashboard-top-list li span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.dashboard-top-list li strong {
  font-size: 13px;
}

.dashboard-top-list li i {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  background: #5b8def;
}

.dashboard-empty {
  font-size: 13px;
  padding: 8px 0;
}

.dashboard-revenue-panel {
  margin-top: 16px;
}

.dashboard-revenue-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.dashboard-revenue-summary div {
  border: 1px solid #e5e7eb;
  background: #fafafa;
  padding: 10px;
}

.dashboard-revenue-summary span {
  display: block;
  color: #555;
  font-size: 12px;
  margin-bottom: 4px;
}

.dashboard-chart-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  color: #555;
  font-size: 12px;
}

.dashboard-chart-legend i {
  width: 10px;
  height: 10px;
  display: inline-block;
  margin-right: 4px;
  vertical-align: -1px;
}

.dashboard-revenue-chart {
  min-height: 230px;
  display: flex;
  align-items: stretch;
  gap: 7px;
  overflow-x: auto;
  padding: 10px 0 4px;
  border-top: 1px solid #e5e7eb;
}

.dashboard-chart-day {
  min-width: 34px;
  display: grid;
  grid-template-rows: minmax(170px, 1fr) auto;
  gap: 6px;
  align-items: end;
}

.dashboard-bars {
  height: 170px;
  display: flex;
  align-items: end;
  gap: 3px;
  padding: 0 3px;
}

.dashboard-bars i {
  width: 7px;
  min-height: 2px;
  display: block;
}

.dashboard-chart-day span {
  font-size: 11px;
  color: #555;
  text-align: center;
  white-space: nowrap;
}

.bar-revenue {
  background: #2563eb;
}

.bar-purchase {
  background: #f97316;
}

.bar-margin {
  background: #16a34a;
}

.customer-revenue-total {
  white-space: nowrap;
  font-weight: 700;
  color: #166534;
}

@media (max-width: 980px) {
  .field-config-row {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .field-config-row .field-type-select,
  .field-config-row .field-options-input,
  .field-config-row .field-order-actions {
    grid-column: 2;
  }

  .dashboard-tiles,
  .dashboard-stat-columns,
  .dashboard-revenue-summary {
    grid-template-columns: 1fr;
  }

  .dashboard-range-panel {
    align-items: stretch;
    flex-direction: column;
  }
}

.inventory-low-stock {
  color: #f97316;
  font-weight: 700;
  white-space: nowrap;
}

.inventory-warning-icon {
  width: 16px;
  height: 16px;
  margin-left: 4px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -3px;
}

.inventory-modal-panel {
  width: min(860px, calc(100vw - 32px));
}

.inventory-stock-panel {
  width: min(620px, calc(100vw - 32px));
}

.inventory-wide-field {
  grid-column: 1 / -1;
}

.inventory-item-actions {
  align-items: center;
}

.inventory-modal-left-actions {
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.inventory-label-quantity {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.inventory-label-quantity input {
  width: 58px;
  height: 38px;
  text-align: center;
  padding: 5px;
}

.inventory-stock-search-form {
  grid-template-columns: minmax(0, 1fr) auto;
}

.inventory-stock-selected {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px auto;
  gap: 10px;
  align-items: end;
  border: 1px solid #ddd;
  background: #f8fafc;
  padding: 12px;
}

.inventory-stock-selected span {
  display: block;
  color: #555;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}

.inventory-stock-selected strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-prefill {
  max-width: none;
}

.booking-prefill-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 14px;
  margin-top: 10px;
}

.booking-prefill-grid div {
  min-width: 0;
}

.booking-prefill-grid span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #555;
  margin-bottom: 2px;
}

.booking-prefill-grid .booking-wide {
  grid-column: 1 / -1;
}

.notes-compose,
.invoice-create-panel {
  border: 1px solid #ddd;
  background: #f8fafc;
  padding: 14px;
  margin-bottom: 16px;
}

.notes-textarea {
  min-height: 140px;
  resize: vertical;
}

.notes-actions,
.invoice-line-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.notes-list,
.invoice-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.note-item,
.invoice-card {
  border: 1px solid #ddd;
  background: #fff;
  padding: 12px;
}

.note-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #555;
  font-size: 13px;
  margin-bottom: 8px;
}

.note-body {
  white-space: normal;
  line-height: 1.45;
}

.invoice-topbar {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) auto;
  gap: 14px;
  align-items: stretch;
  margin-bottom: 16px;
}

.invoice-create-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 0;
}

.invoice-repair-summary {
  min-width: 280px;
  border: 1px solid #ddd;
  background: #fff;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
}

.invoice-repair-summary span {
  color: #555;
  font-size: 13px;
}

.invoice-repair-summary strong {
  color: #111;
  font-size: 18px;
  margin-left: 8px;
}

.invoice-summary {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, auto) auto;
  gap: 12px;
  align-items: center;
}

.invoice-title,
.invoice-totals {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.invoice-title span,
.invoice-totals span,
.invoice-empty-lines {
  color: #555;
  font-size: 13px;
}

.invoice-reference-display,
.invoice-reference-editor {
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.invoice-reference-editor {
  flex-wrap: wrap;
}

.invoice-reference-input {
  width: min(260px, 100%);
  min-height: 28px;
  padding: 4px 7px;
}

.invoice-inline-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  vertical-align: middle;
}

.invoice-inline-icon:hover {
  color: #2563eb;
}

.invoice-mini-icon {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.invoice-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.invoice-print-btn,
.invoice-delete-btn {
  flex: 0 0 auto;
  margin-top: 0;
}

.invoice-delete-btn:hover {
  color: #c0392b;
  border-color: #c0392b;
}

.invoice-delete-undo {
  margin-bottom: 12px;
}

.invoice-undo-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  background: #333;
  color: #fff;
  padding: 10px;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  font-size: 14px;
}

.invoice-undo-timer {
  color: #fff;
}

.invoice-card.pending-remove {
  box-shadow: 0 0 12px 2px rgba(255, 100, 100, 0.35);
  background: rgba(255, 230, 230, 0.6);
}

.log-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.log-card {
  border: 1px solid #ddd;
  background: #fff;
  padding: 12px;
}

.log-summary {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.log-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.log-title span,
.log-values {
  color: #555;
  font-size: 13px;
}

.log-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.log-values {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.log-target-highlight {
  outline: 2px solid #f97316;
  outline-offset: 2px;
}

.invoice-lines {
  margin-top: 12px;
}

.invoice-lines-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
}

.invoice-lines-table th,
.invoice-lines-table td {
  padding: 7px;
  border-bottom: 1px solid #ddd;
  text-align: left;
  line-height: 20px;
  vertical-align: middle;
}

.invoice-lines-table thead th {
  background: #f5f5f5;
  font-weight: 700;
}

.invoice-col-description {
  width: auto;
}

.invoice-col-money {
  width: 128px;
}

.invoice-col-amount {
  width: 72px;
}

.invoice-col-warranty {
  width: 92px;
}

.invoice-col-actions {
  width: 48px;
}

.invoice-description-cell {
  overflow-wrap: anywhere;
  white-space: normal;
  vertical-align: top;
}

.invoice-lines-table th:not(:first-child),
.invoice-lines-table td:not(:first-child) {
  text-align: right;
  white-space: nowrap;
}

.invoice-line-actions-cell {
  text-align: right;
  vertical-align: middle;
}

.invoice-line-edit-toggle {
  margin-left: auto;
}

.invoice-line-edit-row > td {
  text-align: left !important;
  white-space: normal !important;
  background: #f8fafc;
}

.invoice-warranty-cell {
  line-height: 20px;
  text-align: right;
  vertical-align: middle;
}

.invoice-warranty-value {
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}

.warranty-info-icon {
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  vertical-align: middle;
}

.warranty-info-icon.is-expired {
  color: #f97316;
}

.invoice-line-form {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #d6d6d6;
  background: #f8fafc;
}

.invoice-wide-field {
  grid-column: 1 / -1;
}

.parts-create-panel {
  grid-template-columns: minmax(320px, 1fr) 92px auto auto;
}

.parts-search-field {
  min-width: 0;
}

.parts-amount-field {
  width: 92px;
}

.parts-repair-summary {
  min-width: 300px;
}

.parts-muted {
  display: block;
  color: #555;
  font-size: 12px;
  margin-top: 3px;
}

.parts-col-sku {
  width: 130px;
}

.parts-col-color {
  width: 100px;
}

.parts-col-status {
  width: 110px;
}

.parts-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  padding: 3px 7px;
  border: 1px solid #ddd;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.parts-status-pill.is-pending {
  color: #b45309;
  border-color: #fbbf24;
  background: #fffbeb;
}

.parts-status-pill.is-applied {
  color: #166534;
  border-color: #86efac;
  background: #f0fdf4;
}

.insurance-layout {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.insurance-card {
  padding: 12px;
}

.insurance-heading {
  margin-bottom: 12px;
}

.insurance-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
}

.insurance-wide {
  grid-column: 1 / -1;
}

.insurance-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.insurance-public-link {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid #ddd;
  background: #f8fafc;
  overflow-wrap: anywhere;
}

.insurance-inspection-list {
  display: grid;
  gap: 12px;
}

.insurance-inspection-section {
  border-top: 1px solid #ddd;
  padding-top: 10px;
}

.insurance-inspection-section h3 {
  margin: 0 0 8px;
}

.insurance-inspection-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 160px minmax(220px, 1.4fr);
  gap: 8px;
  align-items: center;
  padding: 5px 0;
}

.insurance-media-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.insurance-media-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 38px;
  gap: 10px;
  align-items: center;
  border-top: 1px solid #ddd;
  padding-top: 8px;
}

.insurance-media-thumb {
  width: 72px;
  height: 54px;
  border: 1px solid #ddd;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
}

.insurance-media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.insurance-media-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.insurance-media-info strong,
.insurance-media-info span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.insurance-media-info span {
  color: #555;
  font-size: 13px;
}

@media (max-width: 800px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .settings-actions,
  .webshop-toolbar {
    align-items: flex-start;
  }

  .booking-prefill-grid {
    grid-template-columns: 1fr;
  }

  .invoice-topbar,
  .invoice-create-panel,
  .invoice-summary,
  .log-summary,
  .repair-summary {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .repair-list-toolbar,
  .repair-toolbar-primary {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .repair-toolbar-primary #delete-btn {
    grid-column: auto;
    justify-self: start;
  }

  .repair-toolbar-primary #imei-check-btn {
    grid-column: auto;
    justify-self: start;
  }

  .repair-toolbar-bulk {
    align-items: stretch;
    flex-direction: column;
  }

  .repair-toolbar-bulk select,
  .repair-toolbar-bulk .btn {
    width: 100%;
  }

  .repair-card {
    height: auto;
    min-height: 126px;
  }

  .repair-quick-meta {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .settings-type-icon-row {
    grid-template-columns: 1fr;
  }

  .repair-field-grid {
    grid-template-columns: repeat(10, minmax(92px, 1fr));
    min-width: 920px;
  }

  .repair-card-lines {
    overflow-x: auto;
  }

  .settings-download-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .imei-check-form,
  .imei-check-result,
  .imei-check-details {
    grid-template-columns: 1fr;
  }

  .invoice-repair-summary {
    align-items: flex-start;
  }

  .invoice-actions {
    justify-content: flex-start;
  }

  .log-actions {
    justify-content: flex-start;
  }

  .insurance-form-grid,
  .insurance-inspection-row,
  .insurance-media-card {
    grid-template-columns: 1fr;
  }
}

/* Dag/nachtmodus */
body.theme-dark {
  background: #212121;
  color: #ececec;
  color-scheme: dark;
}

body.theme-dark .container,
body.theme-dark .content {
  background: #212121;
  color: #ececec;
}

body.theme-dark .sidebar {
  background: #171717;
  color: #ececec;
  border-right: 1px solid #2f2f2f;
}

body.theme-dark .sidebar-menu-button {
  background: #2f2f2f;
  border-color: #444;
  color: #f5f5f5;
}

body.theme-dark .sidebar ul li:hover .sidebar-menu-button,
body.theme-dark .sidebar ul li.active .sidebar-menu-button {
  background: #3a3a3a;
}

body.theme-dark .sidebar-user-icon {
  color: #b8b8b8;
}

body.theme-dark .sidebar-version {
  color: #b8b8b8;
}

body.theme-dark .theme-toggle {
  background: #2f2f2f;
  border-color: #444;
  color: #f5f5f5;
}

body.theme-dark .theme-toggle:hover {
  background: #3a3a3a;
}

body.theme-dark .theme-toggle.icon-btn-primary {
  background: #2563eb;
  border-color: #1d4ed8;
  color: #fff;
}

body.theme-dark .theme-toggle.icon-btn-primary:hover {
  background: #1d4ed8;
  border-color: #1e40af;
}

body.theme-dark .theme-toggle.icon-btn-danger {
  background: #dc2626;
  border-color: #b91c1c;
  color: #fff;
}

body.theme-dark .theme-toggle.icon-btn-danger:hover {
  background: #b91c1c;
  border-color: #991b1b;
}

body.theme-dark .theme-toggle.icon-btn-dark {
  background: #202124;
  border-color: #3c4043;
  color: #e8eaed;
}

body.theme-dark .theme-toggle.icon-btn-dark:hover {
  background: #2b2c30;
  border-color: #5f6368;
}

body.theme-dark .theme-icon-moon {
  display: none;
}

body.theme-dark .theme-icon-sun {
  display: block;
}

body.theme-dark a {
  color: #8ab4f8;
}

body.theme-dark .loader-ripple {
  background-image: url('/assets/img/ripple_nm.svg');
}

body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3,
body.theme-dark label {
  color: #f3f3f3;
}

body.theme-dark .btn-accent,
body.theme-dark .btn {
  border-color: #4a4a4a;
}

body.theme-dark .btn-accent {
  background: #2f2f2f;
  color: #ececec;
}

body.theme-dark .btn-accent:hover {
  background: #3a3a3a;
}

body.theme-dark .form-control,
body.theme-dark select.form-control,
body.theme-dark .login-form input {
  background: #2f2f2f;
  border-color: #4a4a4a;
  color: #ececec;
}

body.theme-dark .form-control::placeholder,
body.theme-dark .login-form input::placeholder {
  color: #a8a8a8;
}

body.theme-dark .form-control.modified {
  background-color: #1f3a5f;
  border-color: #5b8def;
}

body.theme-dark #tab-panels,
body.theme-dark #repair-content,
body.theme-dark form#repair-info-form,
body.theme-dark .settings-form,
body.theme-dark .settings-panel,
body.theme-dark .notice,
body.theme-dark .repair-modal-panel,
body.theme-dark .imei-check-result,
body.theme-dark .imei-balance-card {
  background: #2a2a2a !important;
  border-color: #3f3f46 !important;
  color: #ececec;
}

body.theme-dark .search-container {
  background: #212121;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

body.theme-dark .settings-section-heading p,
body.theme-dark .settings-download-panel p,
body.theme-dark .user-management-row span,
body.theme-dark .repair-toolbar-secondary,
body.theme-dark .planning-page-gap {
  color: #b8b8b8;
}

body.theme-dark .user-management-row {
  background: #2a2a2a;
  border-color: #3f3f46;
}

body.theme-dark .settings-tabs {
  border-bottom-color: #3f3f46;
}

body.theme-dark .settings-tab {
  background: #2a2a2a;
  color: #ececec;
  border-color: transparent;
}

body.theme-dark .settings-tab:hover {
  background: #303030;
}

body.theme-dark .settings-tab.active {
  background: #212121;
  border-color: #3f3f46 #3f3f46 #212121;
  color: #f3f3f3;
}

body.theme-dark .settings-panel-actions {
  border-top-color: #3f3f46;
}

body.theme-dark .field-config-group {
  background: #2a2a2a;
  border-color: #3f3f46;
}

body.theme-dark .field-config-row {
  background: #262626;
  border-color: #3f3f46;
}

body.theme-dark .notification-pref-row {
  background: #262626;
  border-color: #3f3f46;
}

body.theme-dark .notification-pref-row span {
  color: #b8b8b8;
}

body.theme-dark .tms-toast {
  background: rgba(33, 33, 33, 0.82);
  border-color: rgba(82, 82, 91, 0.78);
  color: #ececec;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

body.theme-dark .tms-toast.is-clickable:hover {
  border-color: #8ab4f8;
}

body.theme-dark .toast-content span,
body.theme-dark .toast-content small {
  color: #b8b8b8;
}

body.theme-dark .toast-icon-wrap {
  color: #8ab4f8;
  border-color: rgba(138, 180, 248, 0.42);
  background: rgba(138, 180, 248, 0.1);
}

body.theme-dark .dashboard-tile,
body.theme-dark .dashboard-range-panel,
body.theme-dark .dashboard-stat-card,
body.theme-dark .dashboard-revenue-panel {
  background: #2a2a2a;
  border-color: #3f3f46;
  color: #ececec;
}

body.theme-dark .dashboard-tile:hover {
  border-color: #8ab4f8;
  box-shadow: 0 0 0 2px rgba(138, 180, 248, 0.16);
}

body.theme-dark .dashboard-tile span,
body.theme-dark .dashboard-tile small,
body.theme-dark .dashboard-card-heading p,
body.theme-dark .dashboard-range-panel p,
body.theme-dark .dashboard-range-controls label,
body.theme-dark .dashboard-empty,
body.theme-dark .dashboard-revenue-summary span,
body.theme-dark .dashboard-chart-legend,
body.theme-dark .dashboard-chart-day span {
  color: #b8b8b8;
}

body.theme-dark .dashboard-card-heading > strong,
body.theme-dark .dashboard-revenue-summary div {
  background: #262626;
  border-color: #3f3f46;
}

body.theme-dark .dashboard-revenue-chart {
  border-top-color: #3f3f46;
}

body.theme-dark .customer-revenue-total {
  color: #86efac;
}

body.theme-dark .customer-detail-summary span {
  background: #202124;
  border-color: #3c4043;
}

body.theme-dark .customer-detail-summary strong {
  color: #ececec;
}

body.theme-dark .customer-detail-card-strip {
  background: rgba(138, 180, 248, 0.06);
}

body.theme-dark .repair-tabs {
  border-bottom-color: #3f3f46;
}

body.theme-dark .repair-tabs li {
  background: #2a2a2a;
  color: #ececec;
  border-color: transparent;
}

body.theme-dark .repair-tabs li.active {
  background: #212121;
  border-color: #3f3f46 #3f3f46 #212121;
}

body.theme-dark #repair-list thead th,
body.theme-dark #webshop-products thead th,
body.theme-dark #planning-list thead th,
body.theme-dark #imei-log-list thead th,
body.theme-dark #inventory-list thead th,
body.theme-dark #customers-list thead th,
body.theme-dark #devices-list thead th {
  background-color: #2f2f2f;
  border-bottom-color: #4a4a4a;
  color: #f3f3f3;
}

body.theme-dark #repair-list tbody tr,
body.theme-dark #webshop-products tbody tr,
body.theme-dark #planning-list tbody tr,
body.theme-dark #imei-log-list tbody tr,
body.theme-dark #inventory-list tbody tr,
body.theme-dark #customers-list tbody tr,
body.theme-dark #devices-list tbody tr {
  border-bottom-color: #3f3f46;
}

body.theme-dark #repair-list tbody tr:nth-child(odd),
body.theme-dark #webshop-products tbody tr:nth-child(odd),
body.theme-dark #planning-list tbody tr:nth-child(odd),
body.theme-dark #imei-log-list tbody tr:nth-child(odd),
body.theme-dark #inventory-list tbody tr:nth-child(odd),
body.theme-dark #customers-list tbody tr:nth-child(odd),
body.theme-dark #devices-list tbody tr:nth-child(odd) {
  background-color: #262626;
}

body.theme-dark #repair-list tbody tr:nth-child(even),
body.theme-dark #webshop-products tbody tr:nth-child(even),
body.theme-dark #planning-list tbody tr:nth-child(even),
body.theme-dark #imei-log-list tbody tr:nth-child(even),
body.theme-dark #inventory-list tbody tr:nth-child(even),
body.theme-dark #customers-list tbody tr:nth-child(even),
body.theme-dark #devices-list tbody tr:nth-child(even) {
  background-color: #2b2b2b;
}

body.theme-dark #repair-list tbody tr:hover,
body.theme-dark #webshop-products tbody tr:hover,
body.theme-dark #planning-list tbody tr:hover,
body.theme-dark #imei-log-list tbody tr:hover,
body.theme-dark #inventory-list tbody tr:hover,
body.theme-dark #customers-list tbody tr:hover,
body.theme-dark #devices-list tbody tr:hover {
  background-color: #353535;
}

body.theme-dark #repair-list tbody tr.selected {
  background-color: #1f3a5f;
  border-top-color: #5b8def;
  border-bottom-color: #5b8def;
  box-shadow: inset 0 2px 0 #5b8def, inset 0 -2px 0 #5b8def;
}

body.theme-dark #repair-list th,
body.theme-dark #repair-list td,
body.theme-dark #webshop-products th,
body.theme-dark #webshop-products td,
body.theme-dark #planning-list th,
body.theme-dark #planning-list td,
body.theme-dark #imei-log-list th,
body.theme-dark #imei-log-list td,
body.theme-dark #inventory-list th,
body.theme-dark #inventory-list td,
body.theme-dark #customers-list th,
body.theme-dark #customers-list td,
body.theme-dark #devices-list th,
body.theme-dark #devices-list td {
  border-bottom-color: #3f3f46;
  color: #ececec;
}

body.theme-dark .repair-select-all-control {
  background: #2f2f2f;
  border-color: #444;
}

body.theme-dark .repair-card {
  background: #2a2a2a;
  border-color: #3f3f46;
  color: #ececec;
}

body.theme-dark .repair-card:hover {
  border-color: #5b8def;
  box-shadow: 0 0 0 2px rgba(91, 141, 239, 0.28);
}

body.theme-dark .repair-card.selected {
  border-color: #5b8def;
  box-shadow: inset 3px 0 0 #5b8def, 0 8px 24px rgba(91, 141, 239, 0.16);
}

body.theme-dark .repair-card-select {
  border-right-color: #3f3f46;
}

body.theme-dark .repair-type-icon {
  color: #8ab4f8;
}

body.theme-dark .repair-field-grid {
  border-color: #3f3f46;
}

body.theme-dark .repair-field {
  background: transparent;
}

body.theme-dark .repair-field span {
  color: #b8b8b8;
}

body.theme-dark .repair-field strong {
  color: #ececec;
}

body.theme-dark .repair-copy-btn,
body.theme-dark .repair-mini-link-btn {
  color: #b8b8b8;
}

body.theme-dark .repair-copy-btn:hover,
body.theme-dark .repair-copy-btn.copied,
body.theme-dark .repair-mini-link-btn:hover {
  background: rgba(138, 180, 248, 0.16);
  color: #8ab4f8;
}

body.theme-dark .repair-toolbar-bulk {
  background: #202d3f;
  border-color: #334155;
}

body.theme-dark .repair-toolbar-bulk #bulk-selected-count {
  color: #8ab4f8;
}

body.theme-dark .suggestions {
  background: #2f2f2f;
  border-color: #4a4a4a;
  color: #ececec;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

body.theme-dark .suggestions li:hover {
  background: #3a3a3a;
}

body.theme-dark .clear-btn {
  color: #aaa;
}

body.theme-dark .clear-btn:hover {
  color: #fff;
}

body.theme-dark .linked-customer-bar {
  background: #262626;
  border-color: #3f3f46;
}

body.theme-dark .repair-date-meta div {
  background: #2a2a2a;
  border-color: #3f3f46;
}

body.theme-dark .repair-date-meta span {
  color: #b8b8b8;
}

body.theme-dark .notes-compose,
body.theme-dark .invoice-create-panel,
body.theme-dark .invoice-repair-summary,
body.theme-dark .inventory-stock-selected,
body.theme-dark .note-item,
body.theme-dark .invoice-card,
body.theme-dark .invoice-line-form,
body.theme-dark .log-card,
body.theme-dark .insurance-public-link,
body.theme-dark .insurance-media-thumb {
  background: #2a2a2a;
  border-color: #3f3f46;
  color: #ececec;
}

body.theme-dark .note-meta,
body.theme-dark .invoice-title span,
body.theme-dark .invoice-totals span,
body.theme-dark .invoice-repair-summary span,
body.theme-dark .inventory-stock-selected span,
body.theme-dark .invoice-empty-lines,
body.theme-dark .parts-muted,
body.theme-dark .log-title span,
body.theme-dark .log-values,
body.theme-dark .insurance-media-info span {
  color: #b8b8b8;
}

body.theme-dark .insurance-inspection-section,
body.theme-dark .insurance-media-card {
  border-color: #3f3f46;
}

body.theme-dark .parts-status-pill.is-pending {
  color: #fbbf24;
  border-color: #b45309;
  background: rgba(180, 83, 9, 0.18);
}

body.theme-dark .parts-status-pill.is-applied {
  color: #86efac;
  border-color: #166534;
  background: rgba(22, 101, 52, 0.22);
}

body.theme-dark .invoice-repair-summary strong {
  color: #f3f3f3;
}

body.theme-dark .invoice-card.pending-remove {
  background: rgba(90, 38, 38, 0.75);
}

body.theme-dark .invoice-line-edit-row > td {
  background: #262626;
}

body.theme-dark .invoice-inline-icon:hover {
  color: #8ab4f8;
}

body.theme-dark .settings-type-icon-row {
  border-bottom-color: #3f3f46;
}

body.theme-dark .settings-type-name span {
  color: #b8b8b8;
}

body.theme-dark .settings-type-icon-preview {
  background: #2f2f2f;
  border-color: #444;
  color: #8ab4f8;
}

body.theme-dark .invoice-lines-table th,
body.theme-dark .invoice-lines-table td {
  border-bottom-color: #3f3f46;
}

body.theme-dark .invoice-lines-table thead th {
  background: #2f2f2f;
  color: #f3f3f3;
}

body.theme-dark .warranty-info-icon {
  color: #f3f3f3;
}

body.theme-dark .warranty-info-icon.is-expired {
  color: #f97316;
}

body.theme-dark .notice-success {
  background: #14351f !important;
  border-color: #2f7d46 !important;
  color: #c7f5d4;
}

body.theme-dark .notice-error {
  background: #3a1c1a !important;
  border-color: #7f3430 !important;
  color: #ffd0cc;
}

body.theme-dark .page-heading p,
body.theme-dark .settings-note,
body.theme-dark .inline-status,
body.theme-dark #webshop-products .category-path,
body.theme-dark .booking-prefill-grid span,
body.theme-dark .imei-check-details span,
body.theme-dark .imei-balance-card span {
  color: #b8b8b8;
}

body.theme-dark .status-success {
  color: #9be7ad;
}

body.theme-dark .status-error {
  color: #ffaaa3;
}

body.theme-dark .field-error {
  color: #ffaaa3;
}

body.theme-dark .repair-modal {
  background: rgba(0,0,0,0.65);
}

body.theme-dark .imei-check-image-wrap,
body.theme-dark .imei-thumb {
  background: #1f1f1f;
  border-color: #3f3f46;
}
