/* Vendolution Offertestudio V22: shared shell and component tokens. */
:root {
  --vd-bg-app: #022B5C;
  --vd-bg-nav: #003B7D;
  --vd-surface-subtle: #F5F7FA;
  --vd-border: #DCE3EC;
  --vd-shadow-card: 0 4px 16px rgba(12, 40, 77, .055);
  --vd-control-radius: 8px;
  --vd-card-radius: 12px;
}
html { background: var(--vd-bg-app); }
body.theme-light { color: var(--vd-text-primary); font-size: 14px; }
.app-shell { grid-template-columns: 256px minmax(0, 1fr); background: var(--vd-bg-nav); }
.sidebar {
  height: 100vh; position: sticky; top: 0; overflow-y: auto;
  padding: 23px 13px 17px; background: var(--vd-bg-nav);
  border-right: 1px solid rgba(255,255,255,.08); color: white;
}
.sidebar .brand { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; padding: 0 8px 22px; color: white; }
.brand-logo-plate { display: inline-flex; align-items: center; justify-content: center; background: white; border-radius: 9px; padding: 7px 11px; max-width: 190px; box-shadow: 0 5px 18px rgba(0,24,49,.15); }
.brand-logo-plate img { display: block; width: 152px; max-width: 100%; height: auto; }
.brand-words small { margin: 0 0 0 2px; color: #B7CFE8; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.sidebar .nav-links { display: flex; flex-direction: column; gap: 3px; }
.sidebar .sidebar-label { display: block; color: #A9C8EC; padding: 10px 12px 6px; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.sidebar .sidebar-label-secondary { padding-top: 20px; }
.sidebar .nav-link { justify-content: flex-start; gap: 11px; min-height: 43px; padding: 10px 12px; border-radius: 9px; font-size: 13px; font-weight: 600; color: #D0E1F3; transition: background .15s ease, color .15s ease; }
.sidebar .nav-icon { display: flex; color: #A3C5E7; width: 21px; min-width: 21px; align-items: center; justify-content: center; }
.sidebar .nav-icon svg { width: 18px; height: 18px; }@media (hover:hover) and (pointer:fine){
.sidebar .nav-link:hover { background: rgba(255,255,255,.095); color: white; }}
.sidebar .nav-link.active { color: white; background: #235586; box-shadow: inset 3px 0 var(--vd-warm); font-weight: 700; }
.sidebar .nav-link.active .nav-icon { color: white; }
.sidebar-bottom { color: white; border-color: rgba(255,255,255,.18); padding: 15px 6px 0; }
.profile-circle { background: var(--vd-surface-info); color: var(--vd-primary); }
.profile-meta small { color: #B7CFE8; }
.sidebar .icon-button { color: white; }@media (hover:hover) and (pointer:fine){
.sidebar .icon-button:hover { background: rgba(255,255,255,.12); }}
.main-area { min-height: 100vh; background: var(--vd-surface-subtle); }
.topbar { position: sticky; top: 0; z-index: 4; min-height: 65px; height: auto; padding: 9px 27px; background: white; border-bottom: 1px solid var(--vd-border); box-shadow: 0 1px 0 rgba(24,57,97,.035); gap: 12px; }
.topbar-title { color: #102D4D; font-size: 17px; font-weight: 750; letter-spacing: -.02em; }
.topbar-left { min-width: 0; }
.topbar-right { gap: 12px; }
.top-profile { display: flex; align-items: center; gap: 9px; border-radius: 9px; color: var(--vd-text-primary); padding: 3px 5px; }@media (hover:hover) and (pointer:fine){
.top-profile:hover { background: var(--vd-surface-subtle); }}
.top-avatar { display: grid; place-items: center; width: 35px; height: 35px; flex: none; border-radius: 11px; background: var(--vd-surface-info); color: var(--vd-primary); font-weight: 800; }
.top-profile-copy { display: flex; flex-direction: column; line-height: 1.3; font-size: 12px; }
.top-profile-copy small { color: var(--vd-text-secondary); font-size: 11px; }
.page-content { max-width: 1900px; padding: 25px 27px 45px; }
.page-heading, .detail-head { margin: 0 0 20px; }
.page-heading.with-actions, .detail-head { align-items: center; }
body.theme-light h1, body.theme-light h2, body.theme-light h3 { color: #102D4D; }
h1 { font-size: 25px; letter-spacing: -.025em; margin-bottom: 7px; }
h2 { font-size: 19px; }
h3 { font-size: 15px; }
.eyebrow { color: #557B9E; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.page-heading p, .detail-head p { color: var(--vd-text-secondary); font-size: 13px; }
.btn { min-height: 44px; padding: 10px 15px; border-radius: var(--vd-control-radius); font-size: 13px; font-weight: 700; box-shadow: none; transition: background .15s ease, border-color .15s ease; }@media (hover:hover) and (pointer:fine){
.btn:hover { filter: none; }}
.btn-primary { background: var(--vd-warm); border-color: var(--vd-warm); color: var(--vd-text-primary); }@media (hover:hover) and (pointer:fine){
.btn-primary:hover { background: #F4A976; border-color: #F4A976; }}
.btn-secondary { background: var(--vd-primary); border-color: var(--vd-primary); color: white; }@media (hover:hover) and (pointer:fine){
.btn-secondary:hover { background: var(--vd-bg-hover); border-color: var(--vd-bg-hover); }}
.btn-outline-light, .btn-subtle { color: var(--vd-primary); background: white; border-color: var(--vd-border); }@media (hover:hover) and (pointer:fine){
.btn-outline-light:hover, .btn-subtle:hover { color: var(--vd-primary); background: #F2F7FC; border-color: #AECBE7; }}
.btn-sm { min-height: 38px; padding: 8px 12px; font-size: 12px; }
.surface, .kpi-card, .quick-action, .finance-stat, .machine-hero { border: 1px solid var(--vd-border); border-radius: var(--vd-card-radius); box-shadow: var(--vd-shadow-card); }
.surface { padding: 22px; }
.section-heading { margin-bottom: 16px; }
.section-heading p, .table-toolbar p { font-size: 12px; line-height: 1.45; }
.kpi-grid { gap: 15px; margin-bottom: 18px; }
.kpi-card, .kpi-featured { min-height: 120px; padding: 18px 20px; background: white; color: var(--vd-text-primary); }@media (hover:hover) and (pointer:fine){
.kpi-card:hover { background: #F8FBFF; border-color: #AECBE7; }}
.kpi-heading { font-size: 12px; font-weight: 700; color: #4D637B; }
.kpi-card strong { margin: 12px 0 3px; font-size: 30px; }
.kpi-card small { font-size: 12px; }
.kpi-symbol { width: 40px; height: 40px; border-radius: 12px; }
.kpi-accent { display: none; }
.summary-strip { background: white; border-color: var(--vd-border); padding: 12px 16px; margin-bottom: 20px; font-size: 12px; }
.dashboard-layout { grid-template-columns: minmax(0,1.65fr) minmax(285px,1fr); gap: 18px; }
.sidebar-column { gap: 18px; }
.surface-main { min-height: 0; }
.empty-state { min-height: 190px; padding: 24px; }
.empty-state strong { font-size: 14px; }
.empty-state p, .empty-mini { font-size: 13px; color: var(--vd-text-secondary); }
.empty-mini { padding: 25px 10px; }
.quick-action { background: white; padding: 22px; }
.quick-action p { font-size: 13px; }
.field label { color: #4D637B; font-size: 12px; font-weight: 700; }
.field input, .field select, .field textarea, .filters input, .filters select, .search-wrap { border: 1px solid var(--vd-border); border-radius: var(--vd-control-radius); background: white; color: var(--vd-text-primary); min-height: 43px; }
.field input:focus, .field select:focus, .field textarea:focus, .filters select:focus, .search-wrap:focus-within { border-color: #75AAE4; box-shadow: 0 0 0 3px var(--vd-surface-info); }
.filters .search-wrap input, .filters .search-wrap input:focus { border: 0; box-shadow: none; outline: none; height: 100%; min-height: 0; background: transparent; }
.filters .search-wrap input:focus-visible { outline: none !important; }
.filters .search-wrap:focus-within { outline: 3px solid var(--vd-cold); outline-offset: 2px; }
.data-table { font-size: 13px; }
.data-table th { background: #F7F9FC; color: #526A82; text-transform: uppercase; font-size: 11px; letter-spacing: .04em; padding: 12px 14px; }
.data-table td { padding: 12px 14px; border-color: #E6EDF3; }@media (hover:hover) and (pointer:fine){
.data-table tbody tr:hover { background: #F8FBFF; }}
.status-pill { border-radius: 6px; font-size: 11px; font-weight: 700; }
.detail-tabs { border-bottom: 1px solid var(--vd-border); }
.tab-link { font-size: 13px; padding: 10px 12px; color: #637A91; }
.tab-link.selected { color: var(--vd-primary); border-bottom: 3px solid var(--vd-primary); }
.machine-hero { background: white; color: var(--vd-text-primary); }
.machine-hero .mini-title, .machine-hero h2 { color: var(--vd-primary); }
.machine-hero .hero-info>p, .machine-hero .hero-detail-grid span { color: var(--vd-text-secondary); }
.hero-detail-grid>div { border-color: var(--vd-border); }
.hero-detail-grid .price-value { color: var(--vd-primary); }
.auth-screen { background: #fff; }
.auth-remember { display:flex; align-items:center; gap:9px; font-size:13px; color:var(--vd-text-secondary); cursor:pointer; }
.auth-remember input { width:16px; height:16px; accent-color:#003b7d; flex:none; }
.auth-top { display: flex; flex-direction: column; gap: 9px; }
.auth-top small { color: var(--vd-primary); }
.auth-panel { border-radius: var(--vd-card-radius); box-shadow: var(--vd-shadow-card); }
.app-footer { border-top: 1px solid var(--vd-border); margin-top: 25px; padding: 17px 0 0; color: var(--vd-text-secondary); }
.offer-reservation { margin-bottom: 22px; }
.offer-reservation-active { border-left: 4px solid var(--vd-warm); }
.offer-reservation-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.offer-reservation-heading h2 { margin: 0 0 6px; }
.offer-reservation-heading p { color: var(--vd-text-secondary); font-size: 13px; margin: 0; }
.offer-reservation-form { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; gap: 14px; align-items: end; margin-top: 18px; }
.offer-reservation-details { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin: 18px 0; }
.offer-reservation-details div { min-width: 0; }
.offer-reservation-details dt { color: var(--vd-text-secondary); font-size: 12px; }
.offer-reservation-details dd { margin: 4px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.offer-extension-form { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.offer-extension-form .field { min-width: 225px; }
.status-offer { background: #FFE5D3; color: #71310B; border: 1px solid #E99B68; font-weight: 800; }
.status-available { background: #E5F7ED; color: #236442; }
.offer-list-note { color: #844317 !important; overflow-wrap: anywhere; }
.machine-row-reserved { background: #FFF8F3; }
.machine-row-reserved td:first-child { box-shadow: inset 4px 0 var(--vd-warm); }@media (hover:hover) and (pointer:fine){
.machine-row-reserved:hover { background: #FFF1E5 !important; }}
.offer-reservation-active { background: #FFF8F3; border-color: #EFB48E; }
.machine-delete-zone { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding: 20px 22px; border: 1px solid #E9C7C9; border-radius: var(--vd-card-radius); background: white; }
.machine-delete-zone h2 { font-size: 16px; margin: 0 0 5px; }
.machine-delete-zone p { color: var(--vd-text-secondary); font-size: 13px; margin: 0; }
.btn-danger-solid { background: #B62F3B; border-color: #B62F3B; color: white; }@media (hover:hover) and (pointer:fine){
.btn-danger-solid:hover { background: #962332; }}
.confirm-dialog { width: min(var(--vd-dialog-width), calc(100% - 32px)); padding: 0; border: 1px solid var(--vd-border); border-radius: var(--vd-card-radius); color: var(--vd-text-primary); box-shadow: 0 20px 60px rgba(0,25,60,.25); }
.confirm-dialog::backdrop { background: rgba(6,30,61,.65); }
.confirm-dialog-content { padding: 24px; }
.confirm-dialog-content h2 { margin: 0 0 10px; }
.confirm-dialog-content p { color: var(--vd-text-secondary); font-size: 14px; margin-bottom: 22px; }
.confirm-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
@media (max-width:1200px) and (min-width:761px) {
  .app-shell { grid-template-columns: 222px minmax(0,1fr); }
  .sidebar .brand-words, .sidebar .profile-meta { display: flex; }
  .sidebar .sidebar-bottom { flex-direction: row; }
  .page-content { padding: 22px; }
  .dashboard-layout { grid-template-columns: minmax(0,1.4fr) minmax(260px,1fr); }
}
@media (max-width:900px) and (min-width:761px) {
  .dashboard-layout { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .top-profile-copy { display: none; }
}
@media (max-width:760px) {
  .app-shell { display: block; }
  .sidebar { position: sticky; top: 0; z-index: 10; width: 100%; height: auto; overflow: visible; padding: 10px 12px; transform: none; pointer-events: auto; box-shadow: none; }
  .sidebar .brand { display: inline-flex; flex-direction: row; align-items: center; gap: 10px; padding: 0; max-width: calc(100% - 60px); }
  .brand-logo-plate { padding: 5px 8px; }
  .brand-logo-plate img { width: 118px; }
  .sidebar .brand-words { display: flex; }
  .sidebar .brand-words small { font-size: 9px; }
  .sidebar .sidebar-label { display: none; }
  .sidebar .nav-links { display: flex; flex-direction: row; overflow-x: auto; gap: 5px; margin-top: 9px; scrollbar-width: thin; }
  .sidebar .nav-link { flex: 0 0 auto; width: auto; min-height: 40px; padding: 8px 10px; font-size: 12px; }
  .sidebar .nav-icon { width: 18px; min-width: 18px; }
  .sidebar .sidebar-spacer { display: none; }
  .sidebar .sidebar-bottom { position: absolute; top: 5px; right: 9px; display: flex; padding: 0; border: 0; }
  .sidebar .sidebar-bottom .profile-circle, .sidebar .sidebar-bottom .profile-meta { display: none; }
  .sidebar .icon-button { min-width: 44px; min-height: 44px; }
  .topbar { position: relative; min-height: 60px; padding: 9px 14px; }
  .topbar-left { flex: 1; }
  .topbar-right { gap: 6px; }
  .topbar-title { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .top-profile-copy { display: none; }
  .topbar .btn { min-height: 40px; font-size: 11px; padding: 8px 10px; }
  .page-content { padding: 18px 14px 35px; }
  .page-heading.with-actions, .detail-head { align-items: flex-start; flex-direction: column; gap: 14px; }
  .page-heading h1, .detail-head h1 { font-size: 24px; }
  .kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .kpi-card, .kpi-featured { min-height: 118px; padding: 14px; }
  .kpi-card strong { font-size: 27px; }
  .kpi-symbol { width: 30px; height: 30px; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .surface, .quick-action { padding: 17px; }
  .empty-state { min-height: 180px; padding: 20px 10px; }
  .summary-strip { padding: 12px; }
  .detail-tabs { margin-right: -14px; padding-right: 14px; }
  .machine-hero { grid-template-columns: 1fr; }
  .offer-reservation-heading { flex-wrap: wrap; }
  .offer-reservation-form { grid-template-columns: 1fr; }
  .offer-reservation-form .btn { justify-self: start; }
  .offer-reservation-details { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .offer-extension-form .field { min-width: 0; width: 100%; }
}
@media (max-width:380px) {
  .topbar .top-profile { display: none; }
  .sidebar .brand-words { display: none; }
  .sidebar .sidebar-bottom .profile-meta { display: flex; color: white; }
}

/* Houd afmelden ook op kleine schermen direct bereikbaar. */
.top-logout { margin: 0; }
@media (max-width: 560px) {
  .topbar-right > .btn-primary { display: none; }
  .topbar .top-profile { display: none; }
}

.toast-notice { position: fixed; top: 82px; right: 24px; z-index: 100; width: max-content; max-width: calc(100vw - 32px); box-shadow: 0 8px 24px rgba(16, 45, 77, .18); }
@media (max-width: 760px) { .toast-notice { top: 16px; right: 16px; } }

.aftersales-machine { display: flex; flex-direction: column; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--vd-border); }
.aftersales-machine:last-child { border-bottom: 0; }
.aftersales-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }

.toast-stack { position: fixed; top: 16px; right: 16px; z-index: 100; display: flex; flex-direction: column; gap: 6px; width: min(480px, calc(100vw - 32px)); pointer-events: none; }
.toast-stack .alert { width: 100%; margin: 0; border-radius: 12px; box-shadow: 0 8px 24px rgba(16, 45, 77, .18); pointer-events: auto; }

.revision-readonly .field { pointer-events: none; }
.revision-readonly .field input,
.revision-readonly .field select,
.revision-readonly .field textarea,
.field #staff_name:disabled {
  background: #f0f2f5;
  border-color: #dce1e7;
  color: #647080;
  -webkit-text-fill-color: #647080;
  opacity: 1;
  cursor: default;
  box-shadow: none;
}
.revision-readonly .field textarea { resize: none; }

.user-list { display: grid; gap: 10px; }
.user-list-more summary { display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding: 9px 13px; border: 1px solid #dce6f0; border-radius: 10px; color: var(--vd-primary); background: #f7faff; font-size: 13px; font-weight: 700; cursor: pointer; list-style: none; }
.user-list-more summary::-webkit-details-marker { display: none; }@media (hover:hover) and (pointer:fine){
.user-list-more summary:hover { background: #eaf3fc; }}
.user-list-more summary:focus-visible { outline: 3px solid var(--vd-cold); outline-offset: 2px; }
.user-list-more .hide-more-users, .user-list-more[open] .show-more-users { display: none; }
.user-list-more[open] .hide-more-users { display: inline; }
.user-list-more[open] .user-list-chevron { transform: rotate(180deg); }
.user-list-chevron { font-size: 19px; line-height: 1; }
.user-list-extra { display: grid; gap: 10px; padding-top: 10px; }
.user-card { border: 1px solid var(--vd-border); border-radius: 12px; padding: 14px; background: #fff; }
.user-card-profile { display: flex; align-items: center; gap: 11px; }
.user-card-avatar { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: var(--vd-primary); background: var(--vd-surface-info); font-weight: 800; }
.user-card-name { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.user-card-name strong { overflow-wrap: anywhere; font-size: 14px; }
.user-card-name small, .user-card-role { color: var(--vd-text-secondary); font-size: 12px; }
.user-card-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #edf1f5; }
.user-card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.user-card-actions form { margin: 0; }
.user-action { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 7px 9px; border: 1px solid #dce6f0; border-radius: 8px; background: #f7faff; color: var(--vd-primary); font-size: 12px; font-weight: 700; cursor: pointer; }@media (hover:hover) and (pointer:fine){
.user-action:hover { background: #eaf3fc; }}
.user-action-danger { color: #a52837; border-color: #f0d5d8; background: #fffafa; }@media (hover:hover) and (pointer:fine){
.user-action-danger:hover { background: #fff0f1; }}
.account-action-card { max-width: 660px; padding: 26px; }
.account-action-person { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.account-action-person h2 { margin: 0 0 4px; }
.account-action-person p { margin: 0; color: var(--vd-text-secondary); font-size: 13px; }
.account-action-note { margin-bottom: 22px; padding: 14px 16px; border: 1px solid #d6e6f7; border-radius: 10px; background: #f4f9ff; }
.account-action-note-danger { border-color: #f0d4d7; background: #fff8f8; }
.account-action-note p { margin: 5px 0 0; color: var(--vd-text-secondary); font-size: 13px; line-height: 1.5; }
.field[data-admin-password][hidden] { display: none; }

.sales-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.sales-tab { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 10px 15px; border: 1px solid var(--vd-border); border-radius: 10px; background: white; font-size: 13px; font-weight: 700; color: var(--vd-primary); }
.sales-tab.selected { background: var(--vd-primary); border-color: var(--vd-primary); color: white; }
.sales-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 285px), 1fr)); gap: 18px; }
.sales-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--vd-border); border-radius: 14px; background: white; }
.sales-card-photo { position: relative; min-height: 210px; height: 210px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; background: #f3f7fb; color: #7b97b4; }
.sales-card-photo img { width: 100%; height: 100%; object-fit: contain; padding: 15px; }
.sales-card-photo .ui-icon { width: 52px; height: 52px; }
.sales-card-photo > .status-pill { position: absolute; top: 13px; left: 13px; }
.sales-card-body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.sales-card-body h2 { font-size: 20px; margin: 0 0 16px; }
.sales-card-title-link { color: inherit; text-decoration: none; }
.purchase-origin-field select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23003b7d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; cursor: pointer; }
.brand-choice { position: relative; min-width: 0; }
.field .brand-choice input { width: 100%; padding-right: 44px; }
.brand-choice-toggle { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 40px; height: 44px; padding: 0; border: 0; border-radius: 0 8px 8px 0; background: transparent; color: var(--vd-primary); cursor: pointer; }
.brand-choice-toggle[hidden], .brand-choice-options[hidden], .brand-choice-options [hidden] { display: none; }
.brand-choice-toggle:focus-visible { outline: 2px solid var(--vd-primary); outline-offset: -3px; }
.brand-choice-options { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 30; max-height: 220px; overflow-y: auto; padding: 4px; border: 1px solid var(--vd-border); border-radius: var(--vd-control-radius); background: var(--vd-surface); box-shadow: var(--vd-shadow-float); }
.brand-choice-options [role="option"] { padding: 10px 12px; border-radius: 6px; color: var(--vd-text-primary); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; cursor: pointer; } .brand-choice-options [role="option"][aria-selected="true"] { background: var(--vd-surface-info); color: var(--vd-primary); }@media (hover:hover) and (pointer:fine){
.brand-choice-options [role="option"]:hover{ background: var(--vd-surface-info); color: var(--vd-primary); }}
.year-input { position: relative; display: block; width: 100%; min-width: 0; }
.field .year-input input { width: 100%; }
.year-input.year-enhanced input { padding-right: 38px; appearance: textfield; -moz-appearance: textfield; }
.year-input.year-enhanced input::-webkit-inner-spin-button, .year-input.year-enhanced input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.year-input-controls { position: absolute; top: 1px; right: 1px; bottom: 1px; width: 32px; display: grid; grid-template-rows: 1fr 1fr; }
.year-input-controls[hidden] { display: none; }
.year-input-controls button { display: grid; place-items: center; min-width: 0; padding: 0; border: 0; background: transparent; color: var(--vd-primary); cursor: pointer; }@media (hover:hover) and (pointer:fine){
.year-input-controls button:hover { background: var(--vd-surface-info); }}
.year-input-controls button:focus-visible { outline: 2px solid var(--vd-primary); outline-offset: -2px; }
.year-input-controls button:first-child { border-radius: 0 7px 0 0; }
.year-input-controls button:last-child { border-radius: 0 0 7px 0; }
.year-input-controls svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.date-entry { position: relative; width: 100%; min-width: 0; }
.field .date-entry .date-entry__text { width: 100%; padding-right: 44px; }
.date-entry .date-entry__native, .field .date-entry .date-entry__native { position: absolute; top: 50%; right: 20px; width: 1px; height: 1px; min-height: 0; padding: 0; margin: 0; border: 0; opacity: 0; pointer-events: none; }
.date-entry.date-entry--native-fallback .date-entry__native, .field .date-entry.date-entry--native-fallback .date-entry__native { top: 0; right: 0; width: 40px; height: 44px; z-index: 2; pointer-events: auto; }
.date-entry__open { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 40px; height: 44px; padding: 0; border: 0; border-radius: 0 8px 8px 0; background: transparent; color: var(--vd-primary); cursor: pointer; }@media (hover:hover) and (pointer:fine){
.date-entry__open:hover { background: var(--vd-surface-info); }}
.date-entry__open:focus-visible { outline: 2px solid var(--vd-primary); outline-offset: -3px; }
.date-entry__open:disabled { cursor: not-allowed; }
.vd-select-menu { position: fixed; z-index: 200; box-sizing: border-box; overflow-y: auto; padding: 4px; border: 1px solid var(--vd-border); border-radius: var(--vd-control-radius); background: var(--vd-surface); box-shadow: var(--vd-shadow-float); }
.vd-select-menu[hidden] { display: none; }
.vd-select-menu [role="option"] { padding: 10px 12px; border-radius: 6px; color: var(--vd-text-primary); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; cursor: pointer; } .vd-select-menu [role="option"].vd-select-active { background: var(--vd-surface-info); color: var(--vd-primary); }@media (hover:hover) and (pointer:fine){
.vd-select-menu [role="option"]:hover:not([aria-disabled="true"]){ background: var(--vd-surface-info); color: var(--vd-primary); }}
.vd-select-menu [role="option"][aria-disabled="true"] { color: var(--vd-text-secondary); opacity: .6; cursor: not-allowed; }
@media (forced-colors: active) {
  .vd-select-menu { background: Canvas; border-color: CanvasText; }
  .vd-select-menu [role="option"].vd-select-active { background: Highlight; color: HighlightText; }
}
.purchase-origin-hint { color: var(--vd-text-secondary); font-size: 12px; line-height: 1.4; }
#origin-other-field[hidden] { display: none; }
#origin-other-field { margin-top: 0; }
.field-validation-error { display: block; color: #a82e39; font-size: 12px; line-height: 1.5; }
.field-validation-error a { color: var(--vd-primary); text-decoration: underline; }
.field [aria-invalid='true'] { border-color: #ba2534; }
.form-validation-summary, .serial-case-warning { margin-bottom: 24px; padding: 16px; border-radius: 8px; font-size: 13px; line-height: 1.5; }
.form-validation-summary { background: #fff5f5; border: 1px solid #fee2e2; color: #a82e39; }
.serial-case-warning { background: var(--vd-surface-subtle); border: 1px solid var(--vd-border); color: var(--vd-text-primary); }
.serial-case-warning a { color: var(--vd-primary); text-decoration: underline; }

.purchase-origin-summary { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin: 0 0 24px; padding: 16px 20px; border: 1px solid var(--vd-border); border-radius: 8px; background: var(--vd-surface-subtle); }
.purchase-origin-summary > div { display: flex; flex-direction: column; gap: 4px; min-width: 140px; }
.purchase-origin-summary span { color: var(--vd-text-secondary); font-size: 10px; font-weight: 700; letter-spacing: .06em; }
.purchase-origin-summary strong { color: var(--vd-primary); font-size: 15px; }
.purchase-origin-summary p { flex: 1 1 220px; margin: 0; color: var(--vd-text-secondary); font-size: 12px; line-height: 1.5; }@media (hover:hover) and (pointer:fine){
.sales-card-title-link:hover { color: var(--vd-primary); }}
.sales-card-photo:focus-visible, .sales-card-title-link:focus-visible { outline: 3px solid var(--vd-cold); outline-offset: -3px; }
.sales-card-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 20px; }
.sales-card-specs dt { color: var(--vd-text-secondary); font-size: 11px; margin-bottom: 3px; }
.sales-card-specs dd { margin: 0; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.sales-card-price { margin-top: auto; padding: 15px 0; border-top: 1px solid var(--vd-border); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sales-card-price span { color: var(--vd-text-secondary); font-size: 12px; }
.sales-card-price strong { font-size: 22px; color: var(--vd-primary); }
.sales-history-link { margin-top: 12px; text-align: center; font-size: 12px; font-weight: 650; color: var(--vd-primary); }
.sales-reservation { display: flex; flex-direction: column; gap: 4px; margin: 0 0 16px; padding: 12px; background: #fff5e9; border-radius: 9px; font-size: 12px; }
.sales-summary > img { display: block; width: 100%; max-height: 230px; object-fit: contain; margin-bottom: 20px; }
.sales-summary > p { color: var(--vd-text-secondary); font-size: 13px; }
.sales-reserve-form { margin-top: 10px; }
.sales-reserve-form > summary { padding: 11px 12px; border: 1px solid var(--vd-border); border-radius: 9px; color: var(--vd-primary); font-size: 13px; font-weight: 700; cursor: pointer; }
.sales-reserve-form[open] > summary { margin-bottom: 12px; background: #f5f9fd; }
.sales-reserve-form .form-stack { gap: 10px; }
.sales-reserve-form > form + form { margin-top: 10px; }
.archive-actions { margin-top: 7px; }
.archive-actions > summary { display: inline-flex; padding: 7px 10px; border: 1px solid var(--vd-border); border-radius: 8px; color: var(--vd-primary); cursor: pointer; font-size: 12px; font-weight: 700; white-space: nowrap; }
.archive-actions-menu { display: grid; gap: 8px; padding-top: 10px; }
.archive-actions-menu form { margin: 0; }
.archive-actions-menu .btn { width: 100%; }

.sidebar .nav-group { margin-top: 5px; min-width: 0; }
.sidebar .nav-group > summary { display: flex; align-items: center; gap: 11px; padding: 11px 12px; min-height: 44px; border-radius: 9px; color: #d0e1f3; font-size: 13px; font-weight: 750; cursor: pointer; list-style: none; }
.sidebar .nav-group > summary::-webkit-details-marker { display: none; }@media (hover:hover) and (pointer:fine){
.sidebar .nav-group > summary:hover { background: rgba(255,255,255,.075); color: white; }}
.sidebar .nav-group > summary:focus-visible { outline: 2px solid #b7cfe8; outline-offset: 2px; }
.nav-chevron { width: 15px; height: 15px; margin-left: auto; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; }
.nav-group[open] > summary .nav-chevron { transform: rotate(90deg); }
.sidebar .nav-submenu { display: grid; gap: 3px; margin: 5px 0 8px 21px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.18); }
.sidebar .nav-submenu .nav-link { min-height: 38px; padding: 9px 10px; font-size: 12px; line-height: 1.45; }
@media (max-width:760px) {
  .sidebar .nav-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; max-height: 42vh; overflow-x: hidden; overflow-y: auto; align-items: start; }
  .sidebar .nav-group { margin-top: 0; }
  .sidebar .nav-group > summary { padding: 9px 10px; font-size: 12px; min-height: 40px; }
  .sidebar .nav-submenu { margin-left: 12px; padding-left: 5px; }
  .sidebar .nav-submenu .nav-link { width: auto; white-space: normal; }
}

/* Consistent spacing and surfaces across the existing Vendolution components. */
.sidebar { padding: 24px 16px; }
.sidebar .brand { padding-bottom: 24px; }
.sidebar .nav-links { gap: 4px; }
.sidebar .nav-link, .sidebar .nav-group > summary { border-radius: var(--vd-control-radius); }
.sidebar .nav-submenu { gap: 4px; margin-top: 8px; margin-bottom: 8px; }
.sidebar-bottom { padding-top: 16px; }
.brand-logo-plate { border-radius: var(--vd-control-radius); }
.topbar { padding: 8px 32px; gap: 16px; }
.topbar-right { gap: 12px; }
.top-profile, .top-avatar { border-radius: var(--vd-control-radius); }
.page-content { padding: 32px 32px 48px; }
.page-heading, .detail-head { margin-bottom: 24px; }
.page-heading.with-actions, .detail-head { gap: 24px; }
.heading-buttons { gap: 8px; }
.section-heading, .table-toolbar { gap: 16px; margin-bottom: 20px; }
.section-heading p, .table-toolbar p { margin-top: 4px; line-height: 1.5; }
.surface, .kpi-card, .quick-action, .finance-stat, .machine-hero {
  border-radius: var(--vd-card-radius);
  box-shadow: var(--vd-shadow-card);
}
.surface, .quick-action { padding: 24px; }
.kpi-grid { gap: 16px; margin-bottom: 24px; }
.kpi-card, .kpi-featured { min-height: 136px; padding: 24px; }
.kpi-symbol { border-radius: var(--vd-control-radius); }
.summary-strip { gap: 8px 24px; padding: 16px; margin-bottom: 24px; border-radius: var(--vd-card-radius); }
.dashboard-layout, .two-col-layout, .form-grid, .compact-layout { gap: 24px; }
.sidebar-column, .form-side { gap: 16px; }
.fields-grid { gap: 20px 24px; }
.field { gap: 8px; }
.field input:not([type='file']), .field select { height: 46px; min-height: 46px; }
.field input, .field select, .field textarea { min-width: 0; border-radius: var(--vd-control-radius); }
.field input[type='file'] { padding: 10px 12px; }
.form-side .surface .field { margin-bottom: 16px; }
.form-side .surface .field:last-of-type { margin-bottom: 0; }
.form-stack { gap: 16px; }
.form-actions { gap: 8px; margin-top: 24px; }
.filters { gap: 8px; margin-bottom: 24px; align-items: center; }
.filters select, .filters .search-wrap, .filters .btn { min-height: 44px; height: 44px; border-radius: var(--vd-control-radius); }
.filters .search-wrap input, .filters .search-wrap input:focus { height: 100%; min-height: 0; }
.data-table th, .data-table td { padding: 16px; vertical-align: middle; }
.data-table th { font-size: 11px; }
.data-table td { line-height: 1.5; }
.thumb, .arrow-link, .empty-icon, .activity-marker, .user-card-avatar { border-radius: var(--vd-control-radius); }
.activity-item, .machine-vertical-item, .aftersales-machine { padding-top: 16px; padding-bottom: 16px; }
.definition-list > div { padding-top: 12px; padding-bottom: 12px; }
.detail-tabs { gap: 4px; margin-bottom: 24px; }
.tab-link { padding: 12px 16px; }
.machine-hero, .offer-reservation { margin-bottom: 24px; }
.hero-info { padding: 32px; }
.hero-detail-grid { gap: 16px; }
.offer-reservation-form, .offer-reservation-details { gap: 16px; margin-top: 24px; }
.confirm-dialog { border-radius: var(--vd-card-radius); }
.confirm-dialog-content { padding: 32px; }
.confirm-dialog-actions { gap: 8px; }
.user-list, .user-list-extra { gap: 12px; }
.user-card { padding: 16px; border-radius: var(--vd-card-radius); }
.user-card-bottom { gap: 12px; margin-top: 12px; padding-top: 12px; }
.sales-grid { gap: 24px; }
.sales-card, .photo-card { border-radius: var(--vd-card-radius); }
.sales-card-body { padding: 24px; }
.sales-card-specs { gap: 16px; margin-bottom: 24px; }
.sales-reservation { padding: 16px; border-radius: var(--vd-control-radius); }
.sales-reserve-form > summary, .user-action, .archive-actions > summary { border-radius: var(--vd-control-radius); }
.sales-reserve-form > summary { padding: 12px 16px; }
.app-footer { margin-top: 32px; padding-top: 16px; }

.btn, .user-action, .arrow-link, .inline-link, .tab-link,
.sidebar .nav-link, .sidebar .nav-group > summary,
.sales-reserve-form > summary, .archive-actions > summary, .user-list-more > summary,
.field input, .field select, .field textarea, .filters select, .search-wrap,
.kpi-card, .sales-card, .photo-card {
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}@media (hover:hover) and (pointer:fine){
.btn:not(:disabled):hover, .user-action:hover, .arrow-link:hover { box-shadow: var(--vd-shadow-card); }}@media (hover:hover) and (pointer:fine){
.kpi-card:hover { box-shadow: 0 8px 24px rgba(12, 40, 77, .08); }}

@media (max-width:1200px) and (min-width:761px) {
  .page-content { padding: 24px 24px 40px; }
  .topbar { padding: 8px 24px; }
}
@media (max-width:760px) {
  .sidebar { padding: 12px; }
  .sidebar .brand { padding-bottom: 0; }
  .topbar { padding: 8px 16px; }
  .page-content { padding: 24px 16px 32px; }
  .page-heading.with-actions, .detail-head { gap: 16px; }
  .surface, .quick-action { padding: 16px; }
  .kpi-grid { gap: 12px; margin-bottom: 16px; }
  .kpi-card, .kpi-featured { min-height: 120px; padding: 16px; }
  .summary-strip { gap: 8px 16px; margin-bottom: 16px; }
  .dashboard-layout, .two-col-layout, .form-grid, .compact-layout { gap: 16px; }
  .fields-grid { gap: 16px; }
  .hero-info { padding: 24px; }
  .confirm-dialog-content { padding: 24px; }
  .sales-grid { gap: 16px; }
  .sales-card-body { padding: 20px; }
  .data-table th, .data-table td { padding: 12px; }
  .app-footer { margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Machine detail: visual refinement of the existing controls. */
.topbar, .topbar-left, .topbar-right { display: flex; align-items: center; }
.topbar-title { display: block; line-height: 1.25; }
.topbar .btn-primary { border-radius: 8px; }

.offer-reservation-form .field input {
  border: 1px solid #e2e8f0;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .04);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.offer-reservation-form .field input:focus {
  border-color: var(--vd-cold);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .04), 0 0 0 3px rgba(153, 201, 255, .3);
}
.btn-primary {
  box-shadow: 0 3px 6px rgba(12, 40, 77, .12);
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, filter .2s ease, transform .2s ease;
}@media (hover:hover) and (pointer:fine){
.btn-primary:not(:disabled):hover {
  background: var(--vd-warm);
  border-color: var(--vd-warm);
  filter: brightness(.95);
  transform: none;
  box-shadow: 0 5px 10px rgba(12, 40, 77, .16);
}}
.detail-tabs {
  align-items: stretch;
  gap: 4px;
  border-bottom: 0;
  background: linear-gradient(var(--vd-border), var(--vd-border)) left bottom / 100% 1px no-repeat;
}
.detail-tabs .tab-link { border-bottom: 2px solid transparent; }
.detail-tabs .tab-link.selected { border-bottom-color: var(--vd-primary); }
.photos-layout > .surface {
  padding: 24px;
  border-radius: 12px;
  border-color: #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .02), 0 4px 12px rgba(15, 23, 42, .03);
}
.photos-layout .photo-card { border-color: #e2e8f0; border-radius: 8px; }
:is(.photos-layout, .machine-new-photos) .field input[type='file'] {
  min-height: 96px;
  width: 100%;
  padding: 24px 16px;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  background: var(--vd-surface-subtle);
  color: var(--vd-text-secondary);
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
:is(.photos-layout, .machine-new-photos) .field input[type='file']::file-selector-button {
  margin-right: 12px;
  padding: 8px 12px;
  border: 1px solid var(--vd-border);
  border-radius: 8px;
  background: var(--vd-surface);
  color: var(--vd-primary);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}@media (hover:hover) and (pointer:fine){
:is(.photos-layout, .machine-new-photos) .field input[type='file']:hover { border-color: var(--vd-cold); }}
:is(.photos-layout, .machine-new-photos) .field input[type='file']:focus-visible {
  border-color: var(--vd-cold);
  box-shadow: 0 0 0 3px var(--vd-surface-info);
}
.upload-hint { color: var(--vd-text-secondary); font-size: 12px; line-height: 1.5; }
/* Verkooparchief: clear filters and actions, with readable records on mobile. */
.archive-heading { align-items: center; }
@media (min-width: 761px) {
  .page-content:has(.archive-surface) { flex: 1; display: flex; flex-direction: column; }
  .page-content:has(.archive-surface) .archive-surface { flex: 1 0 auto; }
}
.archive-tabs { margin-bottom: 24px; }
.archive-surface .table-toolbar { align-items: flex-start; }
.archive-surface .table-toolbar h2 { gap: 10px; }
.archive-filters .search-wrap { flex: 2 1 200px; min-width: min(100%, 200px); }
.archive-filters select { flex: 1 1 110px; min-width: 95px; }
.archive-filters select[name='sort'] { flex-basis: 150px; }
.archive-filters .btn, .archive-filters .clear-filter { flex: 0 0 auto; }
.archive-table { table-layout: fixed; width: 100%; }
.archive-table th:nth-child(1) { width: 25%; }
.archive-table th:nth-child(2) { width: 16%; }
.archive-table th:nth-child(3) { width: 10%; }
.archive-table th:nth-child(4) { width: 12%; }
.archive-table th:nth-child(5) { width: 10%; }
.archive-table th:nth-child(6) { width: 12%; }
.archive-table th:nth-child(7) { width: 15%; }
.archive-table td { overflow-wrap: anywhere; }
.archive-table .status-pill { white-space: normal; }
.archive-table .machine-cell > span:last-child { min-width: 0; }
.archive-table .machine-cell strong, .archive-table .machine-cell small { overflow-wrap: anywhere; }
.archive-row-actions { display: flex; align-items: flex-start; justify-content: flex-end; gap: 8px; }
.archive-row-actions .archive-actions { margin: 0; }
.archive-row-actions .archive-actions > summary { min-height: 44px; align-items: center; }
.archive-row-actions .archive-actions > summary:focus-visible { outline: 3px solid var(--vd-cold); outline-offset: 2px; }
@media (max-width: 700px) {
  .archive-heading .heading-buttons { width: auto; }
  .archive-heading .heading-buttons .btn { flex: initial; }
  .archive-tabs { margin: 0 0 16px; }
  .archive-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .archive-filters .search-wrap { grid-column: 1 / -1; width: 100%; min-width: 0; }
  .archive-filters select { width: 100%; min-width: 0; max-width: none; }
  .archive-filters .clear-filter { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; }
  .archive-surface .table-wrap, .inventory-table-wrap, .dashboard-table-wrap { margin: 0; overflow: visible; }
  :is(.archive-table, .inventory-table, .dashboard-table) { display: block; min-width: 0; width: 100%; }
  :is(.archive-table, .inventory-table, .dashboard-table) thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  :is(.archive-table, .inventory-table, .dashboard-table) tbody { display: grid; gap: 12px; }
  :is(.archive-table, .inventory-table, .dashboard-table) tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 16px; border: 1px solid var(--vd-border); border-radius: var(--vd-card-radius); background: var(--vd-surface); }
  :is(.archive-table, .inventory-table, .dashboard-table) tbody td { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; padding: 0; border: 0; text-align: left; overflow-wrap: anywhere; }
  :is(.archive-table, .inventory-table, .dashboard-table) tbody td[data-label]::before { content: attr(data-label); color: var(--vd-text-secondary); font-size: 12px; font-weight: 500; }
  :is(.archive-table, .inventory-table, .dashboard-table) tbody td:first-child, :is(.archive-table, .inventory-table, .dashboard-table) tbody td:last-child { grid-column: 1 / -1; }
  :is(.archive-table, .inventory-table, .dashboard-table) tbody td:first-child { padding-bottom: 16px; border-bottom: 1px solid var(--vd-border); }
  :is(.archive-table, .inventory-table, .dashboard-table) tbody td:last-child { padding-top: 16px; border-top: 1px solid var(--vd-border); }
  :is(.archive-table, .inventory-table, .dashboard-table) .machine-cell { min-width: 0; width: 100%; }
  :is(.archive-table, .inventory-table, .dashboard-table) .status-pill { white-space: normal; }
  .archive-row-actions { justify-content: flex-start; width: 100%; }
  .inventory-table tbody tr.machine-row-reserved, .dashboard-table tbody tr.machine-row-reserved { background: #FFF8F3; border-left: 4px solid var(--vd-warm); }
  .inventory-table tbody tr.machine-row-reserved td:first-child, .dashboard-table tbody tr.machine-row-reserved td:first-child { border-left: 0; box-shadow: none; }
  .inventory-table .status-pill, .dashboard-table .status-pill { white-space: normal; }
  :is(.inventory-table, .dashboard-table) tbody tr { position: relative; }
  :is(.inventory-table, .dashboard-table) tbody td:first-child { padding-right: 0; }
  :is(.inventory-table, .dashboard-table) .machine-cell { max-width: calc(100% - 68px); }
  :is(.inventory-table, .dashboard-table) .machine-cell > span:last-child { flex: 1; min-width: 0; }
  :is(.inventory-table, .dashboard-table) .machine-cell strong, :is(.inventory-table, .dashboard-table) .machine-cell small { overflow-wrap: anywhere; }
  :is(.inventory-table, .dashboard-table) tbody td:last-child { position: absolute; top: 16px; right: 16px; padding: 0; border: 0; }
}
.machine-delete-zone {
  gap: 24px;
  padding: 24px;
  border-color: #fee2e2;
  border-radius: 12px;
  background: #fff5f5;
}
.machine-delete-zone > form { margin-left: auto; }
@media (max-width:760px) {
  .photos-layout > .surface { padding: 24px; }
  .machine-delete-zone { gap: 16px; padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {@media (hover:hover) and (pointer:fine){
  .btn-primary:not(:disabled):hover { transform: none; }}
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Machine header and passport: matching controls and structured metadata. */
.detail-head .heading-buttons > .btn-primary,
.status-inline button.btn-secondary {
  height: 40px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.2;
}
.title-with-badge { column-gap: 0; row-gap: 8px; align-items: center; }
.title-with-badge h1 { margin: 0; }
.title-with-badge .status-pill { margin: 0 0 0 12px; }
.title-with-badge .status-verkoopklaar {
  background: #dcfce7;
  color: #15803d;
  font-size: 12px;
  font-weight: 600;
}
.status-inline select {
  appearance: none;
  -webkit-appearance: none;
  height: 40px;
  min-height: 40px;
  max-width: 100%;
  padding: 8px 40px 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background-color: var(--vd-surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23003b7d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  color: var(--vd-text-primary);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .04);
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.status-inline select:focus {
  border-color: var(--vd-cold);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .04), 0 0 0 3px rgba(153, 201, 255, .3);
}
.hero-detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: start; }
.hero-detail-grid > div { min-width: 0; display: flex; flex-direction: column; gap: 6px; padding-top: 12px; }
.machine-hero .hero-detail-grid span { color: #64748b; font-size: 11px; font-weight: 500; }
.hero-detail-grid strong { font-size: 13px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.detail-head .back-link { color: #64748b; text-decoration: none; transition: color .2s ease; }@media (hover:hover) and (pointer:fine){
.detail-head .back-link:hover { color: var(--vd-primary); text-decoration: none; }}
@media (max-width:1280px) {
  .hero-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .status-inline select, .detail-head .back-link { transition-duration: .01ms !important; }
}

/* Machine detail: consistent, restrained surfaces and controls. */
.detail-head { display: flex; align-items: center; }
.detail-head .back-link { font-size: 14px; transition: color .2s ease-in-out; }
.page-content:has(.detail-head) .status-pill {
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
}
.page-content:has(.detail-head) .status-verkoopklaar,
.page-content:has(.detail-head) .status-available { background: #dcfce7; color: #15803d; }
.page-content:has(.detail-head) .status-offer { background: #fff1e3; color: #71310b; border: 1px solid transparent; }
.page-content:has(.detail-head) .btn {
  min-height: 42px;
  height: 42px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}@media (hover:hover) and (pointer:fine){
.page-content:has(.detail-head) .btn:not(:disabled):hover {
  filter: brightness(.95);
  box-shadow: 0 3px 8px rgba(15, 23, 42, .12);
}}
.page-content:has(.detail-head) .surface {
  padding: 24px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .02), 0 4px 12px rgba(15, 23, 42, .03);
}
.machine-hero .hero-detail-grid span {
  color: #64748b;
  font-size: 12px;
  text-transform: uppercase;
}
.machine-hero .hero-detail-grid strong {
  color: #0f172a;
  font-size: 16px;
  font-weight: 600;
}
.status-inline select { height: 42px; min-height: 42px; }
.detail-tabs {
  border-bottom: 1px solid #e2e8f0;
  background: none;
}
.detail-tabs .tab-link { border-bottom: 0; box-shadow: inset 0 -2px transparent; }
.detail-tabs .tab-link.selected { box-shadow: inset 0 -2px var(--vd-primary); }
@media (max-width:760px) {
  .detail-head { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .page-content:has(.detail-head) .btn, .detail-head .back-link { transition-duration: .01ms; }@media (hover:hover) and (pointer:fine){
  .page-content:has(.detail-head) .btn:hover { transform: none; }}
}

/* Consistent dropdowns. */
select:not([multiple]):not([size]) {
  appearance: none;
  -webkit-appearance: none;
  height: 44px;
  min-height: 44px;
  padding: 0 40px 0 12px;
  border: 1px solid var(--vd-border);
  border-radius: var(--vd-control-radius);
  background-color: var(--vd-surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23003b7d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  color: var(--vd-text-primary);
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease;
}
select:not([multiple]):not([size]):focus-visible { outline: 2px solid var(--vd-cold); outline-offset: 2px; border-color: var(--vd-primary); box-shadow: 0 0 0 3px var(--vd-surface-info); }
.revision-readonly .field select:disabled { background-color: #f0f2f5; border-color: #dce1e7; color: #647080; cursor: default; box-shadow: none; }
.status-inline button.btn-secondary { height: 44px; min-height: 44px; }
@media (forced-colors: active) {
  select:not([multiple]):not([size]) { appearance: auto; background-image: none; }
}

/* Align matching parts of sales cards, even when text wraps or forms expand. */
.sales-card-identity, .sales-reservation-slot, .sales-card-sale, .sales-card-reserve-action { min-width: 0; }
.sales-card-identity h2, .sales-reservation { overflow-wrap: anywhere; }
@supports (grid-template-rows: subgrid) {
  .sales-grid { row-gap: 0; }
  .sales-card { display: grid; grid-row: span 10; grid-template-rows: subgrid; min-width: 0; margin-bottom: 24px; }
  .sales-card-body { display: contents; }
  .sales-card-identity { padding: 24px 24px 0; }
  .sales-card-specs { grid-row: span 3; grid-template-rows: subgrid; column-gap: 16px; row-gap: 0; padding: 0 24px; margin: 0; }
  .sales-card-specs > div { min-width: 0; padding-bottom: 16px; }
  .sales-reservation-slot { display: flex; align-items: stretch; padding: 0 24px; }
  .sales-reservation-slot .sales-reservation { flex: 1; min-width: 0; }
  .sales-card-price { margin: 0 24px; }
  .sales-card-sale, .sales-card-reserve-action { padding: 0 24px; }
  .sales-card .sales-history-link { margin: 12px 24px 24px; }
  @media (max-width:760px) {
    .sales-card-identity { padding: 20px 20px 0; }
    .sales-card-specs, .sales-reservation-slot, .sales-card-sale, .sales-card-reserve-action { padding-left: 20px; padding-right: 20px; }
    .sales-card-price { margin-left: 20px; margin-right: 20px; }
    .sales-card .sales-history-link { margin-left: 20px; margin-right: 20px; }
  }
}
