:root {
  color-scheme: dark;
  --color-bg: #0f1218;
  --color-surface: #171c26;
  --color-card: #1e2433;
  --color-border: #2b3244;
  --color-text: #f4f6fb;
  --color-muted: #a9b0c0;
  --color-accent: #4f7cff;
  --color-accent-hover: #3d67e6;
  --color-success: #22c55e;
  --color-success-hover: #16a34a;
  --color-error: #f87171;
  --color-error-hover: #ef4444;
  --color-warning: #f59e0b;
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 10px 24px rgba(0, 0, 0, 0.35);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --nav-height: clamp(56px, 6vh, 72px);
  --side-nav-width: clamp(200px, 18vw, 240px);
  --side-nav-collapsed: 64px;
  --content-max: min(1320px, 94vw);
  --space-1: clamp(6px, 1vw, 10px);
  --space-2: clamp(10px, 1.4vw, 16px);
  --space-3: clamp(14px, 2vw, 22px);
  --space-4: clamp(20px, 3vw, 32px);
  --space-5: clamp(28px, 4vw, 42px);
  --font-base: clamp(14px, 1vw, 17px);
  --font-lg: clamp(16px, 1.2vw, 20px);
  --font-xl: clamp(20px, 1.8vw, 28px);
  --control-height: clamp(38px, 5vh, 46px);
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Inter", "Roboto", "Open Sans", "Lato", "Montserrat", sans-serif;
  font-size: var(--font-base);
  background: var(--color-bg);
  color: var(--color-text);
}

body {
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  color: var(--color-accent-hover);
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0 0 var(--space-2);
  font-weight: 700;
  letter-spacing: 0.01em;
}

p {
  margin: 0 0 var(--space-2);
}

#app {
  flex: 1;
}

.layout {
  display: flex;
  min-height: calc(100vh - var(--nav-height));
  padding-top: var(--nav-height);
  transition: margin-left 0.3s ease;
}

nav,
.nav-bar,
#top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0 var(--space-4);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  z-index: 40;
}

nav a,
.nav-bar a,
#top-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-weight: 600;
  font-size: var(--font-base);
  transition: background 0.2s ease, color 0.2s ease;
}

nav a.active,
.nav-bar a.active,
#top-nav a.active {
  background: var(--color-accent);
  color: #fff;
}

nav a:hover,
.nav-bar a:hover,
#top-nav a:hover {
  background: rgba(79, 124, 255, 0.15);
  color: var(--color-accent);
}

.user-info {
  font-weight: 600;
}

#side-nav {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  bottom: 0;
  width: var(--side-nav-width);
  background: var(--color-surface);
  border-right: 1px solid var(--color-border);
  padding: var(--space-3) var(--space-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  overflow-y: auto;
  transition: width 0.3s ease, transform 0.3s ease;
  z-index: 30;
}

#side-nav.collapsed {
  width: var(--side-nav-collapsed);
}

#side-nav a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

#side-nav a.active,
#side-nav a:focus {
  background: var(--color-accent);
  color: #fff;
}

#side-nav a:hover {
  background: rgba(79, 124, 255, 0.15);
  color: var(--color-accent);
}

#side-nav.collapsed a span,
#side-nav.collapsed .logoutBtn span,
#side-nav.collapsed .side-group-label {
  display: none;
}

#side-nav.collapsed a {
  justify-content: center;
}

#side-nav.collapsed a.active {
  width: var(--side-nav-collapsed);
  height: var(--side-nav-collapsed);
  border-radius: 50%;
  padding: 0;
  margin: 0 auto;
}

.side-group-label {
  font-size: 0.85em;
  font-weight: 600;
  color: var(--color-muted);
  padding: var(--space-1) var(--space-1) 0 var(--space-1);
}

.side-user {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

#userInfoSide {
  display: none;
}

#side-nav:not(.collapsed) #userInfoSide {
  display: block;
}

#userInfoMobile {
  display: none;
}

#logoutSideBtn {
  display: none;
}

#toggleNav {
  background: transparent;
  border: none;
  color: var(--color-text);
  font-size: 1.2em;
  cursor: pointer;
}

#side-nav-overlay {
  display: none;
}

.card,
.cards {
  margin: var(--space-4) auto;
  background: var(--color-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: var(--space-4);
  box-shadow: var(--shadow-lg);
  width: min(100%, var(--content-max));
}

.cards {
  display: grid;
  gap: var(--space-3);
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

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

.card-title {
  font-size: var(--font-lg);
}

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

.row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: var(--space-2);
  align-items: center;
  margin-bottom: var(--space-2);
}

.form-row label {
  text-align: right;
  font-weight: 600;
  color: var(--color-muted);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: flex-end;
  margin-top: var(--space-3);
}

.full-width {
  width: 100%;
}

input,
select,
textarea,
.input {
  width: 100%;
  height: var(--control-height);
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text);
  font-size: 1em;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

textarea {
  min-height: 120px;
  height: auto;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(79, 124, 255, 0.3);
}

input.invalid,
select.invalid,
textarea.invalid {
  border-color: var(--color-error);
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.25);
}

input[type="color"] {
  padding: 0;
  width: var(--control-height);
  height: var(--control-height);
}

.select,
.input-bordered {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
}

.number-input,
.currency-input,
.percent-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.number-input input,
.currency-input input,
.percent-input input {
  border: none;
  background: transparent;
  height: auto;
  padding: 0.35rem 0.5rem;
}

.currency-symbol {
  color: var(--color-muted);
  font-weight: 600;
}

.btn,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  height: var(--control-height);
  border-radius: var(--radius-sm);
  border: none;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  font-size: 1em;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 16px rgba(79, 124, 255, 0.25);
}

.btn:hover,
.btn-primary:hover {
  background: var(--color-accent-hover);
}

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

.btn[disabled],
.btn-primary[disabled] {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.btn-green {
  background: var(--color-success);
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.25);
}

.btn-green:hover {
  background: var(--color-success-hover);
}

.btn-red {
  background: var(--color-error);
  box-shadow: 0 6px 16px rgba(248, 113, 113, 0.25);
}

.btn-red:hover {
  background: var(--color-error-hover);
}

.icon-btn {
  width: var(--control-height);
  height: var(--control-height);
  padding: 0;
  border-radius: 50%;
}

.icon-btn iconify-icon,
.btn iconify-icon {
  width: 1.1em;
  height: 1.1em;
}

.label {
  font-weight: 600;
  color: var(--color-muted);
}

.muted {
  color: var(--color-muted);
}

.center {
  text-align: center;
}

.text-right,
.num {
  text-align: right;
}

.w-full {
  width: 100%;
}

.rounded-lg {
  border-radius: var(--radius-md);
}

.shadow-md {
  box-shadow: var(--shadow-md);
}

.mt-2 {
  margin-top: var(--space-2);
}

.mt-4 {
  margin-top: var(--space-4);
}

.mb-1 {
  margin-bottom: var(--space-1);
}

.mb-2 {
  margin-bottom: var(--space-2);
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.edit-hint {
  font-size: 0.85em;
}

.table-scroll {
  width: 100%;
  overflow: auto;
  max-height: min(70vh, 640px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.table,
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  background: transparent;
}

th,
td {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

th:last-child,
td:last-child {
  border-right: none;
}

th {
  text-align: left;
  color: var(--color-accent);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  z-index: 1;
}

tbody tr:hover {
  background: rgba(79, 124, 255, 0.08);
}

.small-col {
  width: 90px;
}

.table-scroll tbody {
  background: var(--color-surface);
}

.table-scroll table {
  min-width: 100%;
}

.table-zebra tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.03);
}

.table-zebra tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.06);
}

.table-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(24, 30, 42, 0.96);
  backdrop-filter: blur(6px);
}

.resizable {
  position: relative;
}

.resize-handle {
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 100%;
  cursor: col-resize;
  user-select: none;
}

.table.responsive,
.table.responsive thead,
.table.responsive tbody,
.table.responsive tr,
.table.responsive td,
.table.responsive th,
table.responsive,
table.responsive thead,
table.responsive tbody,
table.responsive tr,
table.responsive td,
table.responsive th {
  border: none;
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  padding: var(--space-3);
}

.modal-content {
  width: min(820px, 92vw);
  max-height: 90vh;
  overflow: auto;
  background: var(--color-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: var(--space-4);
  box-shadow: var(--shadow-lg);
  position: relative;
}

#pdfModal {
  z-index: 1200;
}

#pdfModal .modal-content {
  width: min(1200px, 94vw);
  max-width: 1200px;
  max-height: 92vh;
  padding: var(--space-3);
}

#pdfFrame {
  width: 100%;
  height: 80vh;
  border: none;
  background: #fff;
  border-radius: var(--radius-sm);
}

#stijlModal {
  z-index: 1200;
}

#stijlModal .modal-content {
  width: min(1200px, 94vw);
  max-width: 1200px;
  max-height: 92vh;
  padding: var(--space-3);
}

#stijlFrame {
  width: 100%;
  height: 80vh;
  border: none;
  background: #fff;
  border-radius: var(--radius-sm);
}

.close-btn {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  background: transparent;
  border: none;
  color: var(--color-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.close-btn:hover {
  color: var(--color-accent);
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: space-between;
  margin-top: var(--space-2);
}

.modal-table {
  width: 100%;
  border-collapse: collapse;
}

.modal-table td {
  padding: 0.4rem 0.6rem;
  border: none;
  white-space: normal;
}

.modal-table td:first-child {
  font-weight: 600;
  color: var(--color-muted);
  white-space: nowrap;
}

.toast-container {
  position: fixed;
  top: calc(var(--nav-height) + var(--space-2));
  right: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  z-index: 1100;
}

.toast {
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--color-success);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.toast-error {
  background: var(--color-error);
}

.toast.hide {
  opacity: 0;
  transform: translateX(18px);
}

.notif-area {
  position: relative;
  margin-left: auto;
}

.notification-btn {
  background: transparent;
  border: none;
  color: var(--color-text);
  font-size: 1.2em;
  cursor: pointer;
}

.notification-btn .badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--color-error);
  color: #fff;
  border-radius: 999px;
  font-size: 0.7em;
  padding: 2px 6px;
}

.notification-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 240px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: none;
  z-index: 20;
}

.notification-dropdown .notif-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--color-border);
}

.notification-dropdown .notif-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.notification-dropdown .notif-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.notification-dropdown .notif-title {
  font-weight: 600;
}

.notification-dropdown .notif-date {
  font-size: 0.75em;
  color: var(--color-muted);
}

.notification-dropdown .notif-dismiss {
  background: transparent;
  border: none;
  color: var(--color-muted);
  cursor: pointer;
}

.error {
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(248, 113, 113, 0.6);
  background: rgba(248, 113, 113, 0.15);
  color: var(--color-error);
  font-weight: 600;
}

.row-actions {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 0.4rem;
  background: rgba(23, 28, 38, 0.9);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.2rem 0.4rem;
  align-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.row-actions .icon-btn {
  width: calc(var(--control-height) - 6px);
  height: calc(var(--control-height) - 6px);
}

.invoice-row,
.purchase-row,
.client-row {
  position: relative;
}

.invoice-row:hover .row-actions,
.purchase-row:hover .row-actions,
.client-row:hover .row-actions {
  opacity: 1;
  pointer-events: auto;
}

.klant-cell {
  color: var(--color-accent);
  cursor: pointer;
}

.klant-cell:hover {
  color: var(--color-accent-hover);
}

.items-section {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  background: rgba(255, 255, 255, 0.02);
}

.items-section summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
}

.summary-actions {
  display: flex;
  gap: var(--space-1);
}

.item-popover {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  box-shadow: var(--shadow-md);
}

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

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

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

.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  align-items: center;
}

.section-item.line-item {
  justify-content: space-between;
}

.line-preview {
  flex: 1;
  min-height: 28px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
}

.auth-container {
  max-width: 420px;
  margin: calc(var(--nav-height) + var(--space-4)) auto var(--space-4);
  padding: var(--space-4);
  background: var(--color-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}

.switch-link {
  text-align: center;
  margin-top: var(--space-2);
}

.periode-switch {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-bottom: var(--space-2);
}

.periode-btn {
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.periode-btn.active,
.periode-btn:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.overzicht-filter {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: var(--space-2) 0;
}

.overzicht-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.overzicht-switch input {
  display: none;
}

.overzicht-switch .slider {
  width: 42px;
  height: 22px;
  border-radius: 999px;
  background: var(--color-border);
  position: relative;
  transition: background 0.2s ease;
}

.overzicht-switch .slider::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  top: 2px;
  left: 2px;
  transition: transform 0.2s ease;
}

.overzicht-switch input:checked + .slider {
  background: var(--color-accent);
}

.overzicht-switch input:checked + .slider::after {
  transform: translateX(20px);
}

.label-text {
  font-weight: 600;
  color: var(--color-muted);
}

.jaar-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-2);
}

.jaar-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-2);
}

.jaar-stat-label {
  color: var(--color-muted);
  font-size: 0.9em;
}

.jaar-stat-value {
  font-size: var(--font-lg);
  font-weight: 700;
}

.jaar-accent {
  color: var(--color-success);
}

.stat-box {
  flex: 1;
  min-width: 180px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-2);
}

.stat-value {
  font-size: var(--font-lg);
  font-weight: 700;
}

.range-hidden {
  display: none;
}

.range-hidden.active {
  display: block;
}

.suggest-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--color-border);
  background: var(--color-card);
  border-radius: var(--radius-md);
  max-height: 220px;
  overflow: auto;
}

.suggest-menu li {
  padding: 0.5rem 0.8rem;
  cursor: pointer;
}

.suggest-menu li:hover,
.suggest-menu li.active {
  background: rgba(255, 255, 255, 0.05);
}

.section-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.section-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
}

.drag-handle {
  cursor: grab;
  color: var(--color-muted);
}

.loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: grid;
  place-items: center;
  border-radius: inherit;
}

.spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--color-accent);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1024px) {
  nav,
  .nav-bar,
  #top-nav {
    padding: 0 var(--space-2);
  }

  .layout {
    padding-top: var(--nav-height);
  }

  .card,
  .cards {
    width: min(100%, 94vw);
    margin: var(--space-3) auto;
    padding: var(--space-3);
  }
}

@media (max-width: 820px) {
  .layout {
    margin-left: 0;
  }

  #side-nav {
    transform: translateX(-100%);
  }

  #side-nav.open {
    transform: translateX(0);
  }

  #side-nav-overlay.show {
    display: block;
    position: fixed;
    inset: var(--nav-height) 0 0 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 20;
  }

  #logoutSideBtn {
    display: inline-flex;
  }

  #userInfoMobile {
    display: block;
  }

  .form-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .form-row label {
    text-align: left;
  }

  .table-scroll {
    max-height: 60vh;
  }
}

@media (max-width: 640px) {
  nav .nav-label,
  .nav-bar .nav-label {
    display: none;
  }

  nav a,
  .nav-bar a,
  #top-nav a {
    padding: 0.45rem;
  }

  .card,
  .cards {
    margin: var(--space-2) auto;
    padding: var(--space-2);
    border-radius: var(--radius-md);
  }

  body {
    font-size: clamp(12px, 3.4vw, 14px);
  }

  .card-title {
    font-size: clamp(16px, 4.5vw, 18px);
  }

  .btn,
  .btn-primary {
    font-size: 0.95em;
    padding: 0.4rem 0.85rem;
  }

  #pdfModal .modal-content {
    width: min(100%, 96vw);
    max-height: 90vh;
  }

  #pdfFrame {
    height: 72vh;
  }

  #stijlModal .modal-content {
    width: min(100%, 96vw);
    max-height: 90vh;
  }

  #stijlFrame {
    height: 72vh;
  }

  .table,
  table {
    min-width: 100%;
  }

  table.responsive,
  .table.responsive {
    display: block;
  }

  table.responsive thead,
  .table.responsive thead {
    display: none;
  }

  table.responsive tbody,
  .table.responsive tbody {
    display: block;
    width: 100%;
  }

  table.responsive tr,
  .table.responsive tr {
    display: block;
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-2) 0;
  }

  table.responsive td,
  .table.responsive td {
    display: grid;
    grid-template-columns: minmax(110px, 45%) 1fr;
    gap: 0.6rem;
    align-items: center;
    padding: 0.45rem 0;
    white-space: normal;
    word-break: break-word;
  }

  table.responsive td::before,
  .table.responsive td::before {
    content: attr(data-label);
    color: var(--color-muted);
    font-weight: 600;
    padding-right: 1rem;
    text-align: left;
  }

  .row-actions {
    position: static;
    transform: none;
    margin-top: var(--space-1);
    opacity: 1;
    pointer-events: auto;
    border-radius: var(--radius-md);
    width: fit-content;
  }
}
