/* =========================
   BASIS & LAYOUT
========================= */

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #f5f5f5;
    color: #222;
    display: flex;
}

#controls {
    box-sizing: border-box;
    width: 340px;
    flex: 0 0 340px;
    height: 100dvh;
    max-height: 100dvh;
    overflow-y: scroll;
    overflow-x: hidden;
    padding: 10px 10px 90px 10px;
    background: #fff;
    border-right: 1px solid #ddd;
    display: block;
    position: relative;
    z-index: 20;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

#workspace,
#scene {
    flex: 1;
    min-width: 0;
    height: 100dvh;
    overflow: hidden;
}

#renderer-container {
    flex: 1;
    min-width: 0;
    height: 100vh;
    position: relative;
}

#controls > * {
    margin-bottom: 12px;
}

#controls > *:last-child {
    margin-bottom: 0;
}

#controls * {
    touch-action: pan-y;
}

#scene {
    flex: 1;
    background: #e9eef2;
}

#workspace {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100vh;
}

#scene {
    flex: 1;
    min-height: 0;
    background: #e9eef2;
}

body.admin-mode #controls {
    width: 360px;
    padding: 14px;
    background: #ffffff;
    box-shadow: 8px 0 25px rgba(0,0,0,.06);
    border-right: 1px solid #e7e9ee;
}

body.admin-mode #workspace {
    background: #f3f4f6;
}


#controls.collapsed {
    width: 0;
    flex: 0 0 0px;
		padding: 0;
}

#controls.collapsed > *:not(#toggleSidebarBtn) {
    display: none;
}

#controls {
    position: relative;
    overflow: visible;
}

#toggleSidebarBtn {
    position: absolute;
		font-size: 30px;
		color: #323235;
    top: 20px;
    right: -36px;

    width: 36px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff;
    border: 1px solid #ddd;
    border-left: none;

    border-radius: 0 18px 18px 0;
    z-index: 100;
}

/* =========================
   ACCORDION
========================= */

.accordion {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #ddd;
    overflow: hidden;
}

.accordion-header {
    padding: 14px;
    font-weight: 600;
    cursor: pointer;
    background: #f7f7f7;
    transition: all 0.2s;
}

.accordion-header:hover {
    background: #eee;
}

.accordion.active .accordion-header {
    background: #e9eef2;
}

.accordion-content {
    position: relative;
    max-height: 0;
    overflow: hidden;
    padding: 0 14px;
    transition: max-height 0.3s ease, padding 0.2s ease;
}

.accordion.active .accordion-content {
    max-height: 2000px;
    padding: 14px;
}

.accordion-content > *:first-child {
    margin-top: 0;
}

.accordion-content > * {
    margin-bottom: 10px;
}

.muur-card .accordion-header {
    border-radius: 12px;
}

#debug-panel .accordion {
    border-radius: 12px;
    overflow: hidden;
    border: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    background: #fff;
}

#debug-panel .accordion-header {
    background: #f1f3f5;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 14px;
}

#debug-panel .accordion-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 0 14px;
}

/* =========================
   GRID
========================= */

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* =========================
   FORMULIEREN
========================= */

label {
    font-size: 10px;
    color: #888;
    display: block;
    margin-top: 12px;
    margin-bottom: 4px;
    font-weight: 500;
}

input,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    height: 38px;
    font-size: 13px;
    box-sizing: border-box;
}

.beheer-status-select {
    height: 31px;
    padding: 5px;
    font-size: 12px;
}

.beheer-price-grid input {
    height: 31px;
    padding: 5px;
    font-size: 12px;
}

body.admin-mode input,
body.admin-mode select,
body.admin-mode textarea {
    border: 1px solid #d9dde5;
    background: #fff;
    border-radius: 10px;
    min-height: 40px;
}

body.admin-mode textarea {
    min-height: 82px;
}

.material-table .price-input {
    max-width: 130px;
    text-align: right;
    margin-left: auto;
}

.admin-textarea {
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
    min-height: 110px!important;
    line-height: 1.5;
    padding: 12px!important;
    margin-bottom: 16px;
}

.offer-edit-zone input:disabled,
.offer-edit-zone select:disabled,
.offer-edit-zone textarea:disabled {
    background: #f3f3f3;
    color: #777;
    cursor: not-allowed;
}

#dangerpostcode {
    display: none;
}
/* =========================
   KNOPPEN
========================= */

button {
    border: none;
    padding: 8px;
    border-radius: 6px;
    background: #eee;
    cursor: pointer;
    font-size: 12px;
}

button:hover {
    opacity: 0.8;
}

.button-primary {
    width: 100%;
    height: 42px;
    background: #e30613;
    color: white;
    border-radius: 6px;
    font-weight: 600;
    border: none;
}

.button-secondary {
    height: 42px;
    background: #f1f1f1;
    color: #333;
    border-radius: 6px;
    font-weight: 600;
}

/* =========================
   SWITCHES
========================= */

.switch-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
}

.switch-row.advanced,
.switch-row.debug {
    display: none;
}

.admin-mode .switch-row.advanced,
.admin-mode .switch-row.debug {
    display: flex;
}

.switch {
    width: 44px;
    height: 24px;
    background: #ddd;
    border-radius: 20px;
    cursor: pointer;
    position: relative;
}

.switch::after {
    content: '';
    width: 18px;
    height: 18px;
    background: white;
    position: absolute;
    top: 3px;
    left: 3px;
    border-radius: 50%;
}

.switch.active {
    background: #e30613;
}

.switch.active::after {
    left: 23px;
}

/* =========================
   MUURKAARTEN
========================= */

.muur-card {
    border-left: 4px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.muur-card.active {
    background: #fafafa;
}

/* =========================
   DEBUG PANEL
========================= */

#debug-panel {
    position: absolute;
    top: 80px;
    right: 20px;
    width: 320px;
    display: none;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
}

/* =========================
   MATERIAAL & INTERLOCK
========================= */

.stats-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 4px 0;
}

.stats-row .blok {
    color: #444;
}

.stats-row .aantal {
    font-weight: 600;
    color: #000;
}

.stats-group {
    margin-bottom: 12px;
}

.stats-group strong {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}

.stats-total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid #e30613;
}

.stats-total strong {
    font-size: 13px;
}

.stats-weight {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #ddd;
    font-size: 13px;
}

#interlock-panel table {
    width: 100%;
    font-size: 12px;
    border-collapse: collapse;
}

#interlock-panel thead {
    background: #f7f7f7;
}

#interlock-panel th {
    text-align: left;
    font-size: 11px;
    color: #666;
    padding: 6px 4px;
    border-bottom: 1px solid #ddd;
}

#interlock-panel td {
    padding: 6px 4px;
    border-bottom: 1px solid #eee;
    color: #333;
}

#interlock-panel tr:hover {
    background: #f5f5f5;
}

.interlock-best {
    background: rgba(0,200,100,0.15);
    font-weight: 600;
}

.kier-ok {
    color: #00aa55;
    font-weight: 600;
}

.kier-mid {
    color: #ff9900;
    font-weight: 600;
}

.kier-bad {
    color: #cc0000;
    font-weight: 600;
}

.interlock-note {
    font-size: 10px;
    color: #888;
    margin-top: 8px;
}

/* =========================
   MODALS
========================= */

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

.modal-backdrop.active {
    display: flex;
}

.offerte-modal {
    width: min(620px, calc(100vw - 30px));
    max-height: calc(100vh - 30px);
    overflow-y: auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 16px 45px rgba(0,0,0,0.25);
    padding: 22px;
    box-sizing: border-box;
}

.offerte-modal h2 {
    margin: 0 0 6px 0;
    font-size: 22px;
}

.offerte-modal p {
    margin: 0 0 14px 0;
    color: #666;
    font-size: 13px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 18px;
}

.modal-actions button {
    min-width: 120px;
}

.form-error {
    display: none;
    margin-top: 10px;
    padding: 10px;
    background: #fff1f1;
    color: #b00020;
    border-radius: 6px;
    font-size: 13px;
}

.form-success {
    display: none;
    margin-top: 10px;
    padding: 10px;
    background: #eefaf1;
    color: #126b2f;
    border-radius: 6px;
    font-size: 13px;
}

.beheer-login-modal {
    width: min(420px,calc(100vw - 30px));
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 18px 55px rgba(0,0,0,.28);
    padding: 24px;
    box-sizing: border-box;
}

.beheer-login-modal h2 {
    margin: 0 0 5px 0;
}

.beheer-login-modal p {
    margin: 0 0 14px;
    color: #666;
    font-size: 13px;
}

.beheer-login-modal {
    border-radius: 20px;
    padding: 28px;
}

.beheer-login-modal h2 {
    font-size: 25px;
    letter-spacing: -.03em;
}

.help-button {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 900;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #e30613;
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    box-shadow: 0 8px 22px rgba(0,0,0,0.25);
}

.help-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2500;
    padding: 20px;
    box-sizing: border-box;
}

.help-backdrop.active {
    display: flex;
}

.help-modal {
    position: relative;
    width: min(620px, calc(100vw - 40px));
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    padding: 26px;
    box-shadow: 0 18px 55px rgba(0,0,0,0.28);
    box-sizing: border-box;
}

.help-modal h2 {
    margin: 0 0 8px 0;
    font-size: 26px;
}

.help-modal p {
    margin: 0 0 18px 0;
    color: #555;
    line-height: 1.5;
}

.help-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f1f1f1;
    font-size: 22px;
    line-height: 1;
}

.help-steps {
    margin: 0;
    padding-left: 22px;
}

.help-steps li {
    margin-bottom: 13px;
    line-height: 1.45;
}

.help-highlight {
    margin-top: 18px;
    padding: 13px 15px;
    border-radius: 10px;
    background: #fff5f5;
    color: #7a0008;
    font-size: 14px;
    font-weight: 600;
}

/* =========================
   ADMIN - LAYOUT, LOGIN & TABS
========================= */

#beheerPanel {
    margin-top: 10px;
    font-size: 12px;
}

.beheer-small {
    font-size: 11px;
    color: #777;
}

.beheer-box {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    background: #fafafa;
    margin-top: 8px;
}

.beheer-row {
    border-bottom: 1px solid #e5e5e5;
    padding: 7px 0;
}

.beheer-row:last-child {
    border-bottom: 0;
}

.beheer-row button {
    float: right;
}

.beheer-btn-small {
    padding: 5px 7px;
    font-size: 11px;
}

.beheer-version {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding: 6px 0;
}

.beheer-version:last-child {
    border-bottom: 0;
}

.beheer-panel-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.beheer-total {
    text-align: right;
    line-height: 1.7;
    margin-top: 8px;
}

.beheer-price-grid {
    display: grid;
    grid-template-columns: 1fr 75px 95px;
    gap: 6px;
    align-items: center;
    margin-bottom: 6px;
}

.beheer-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.beheer-actions button {
    flex: 1;
}

#beheerSlotWrap {
    text-align: right;
    margin-top: 4px;
}

#beheerSlot {
    background: transparent;
    color: #aaa;
    padding: 4px;
    font-size: 15px;
    line-height: 1;
}

.admin-tabs {
    display: none;
    background: #fff;
    border-bottom: 1px solid #ddd;
    padding: 8px 12px;
    gap: 8px;
    align-items: center;
}

.admin-tabs.active {
    display: flex;
}

.admin-tab {
    background: #f1f1f1;
    color: #333;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 600;
}

.admin-tab.active {
    background: #e30613;
    color: #fff;
}

.admin-tab-spacer {
    flex: 1;
}

#offertesTab {
    display: none;
    flex: 1;
    min-height: 0;
    overflow: auto;
    background: #f5f5f5;
    padding: 18px;
    box-sizing: border-box;
}

#offertesTab.active {
    display: block;
}

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

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 8px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    vertical-align: top;
}

.admin-table th {
    font-size: 11px;
    color: #777;
}

body.admin-mode button.danger {
    background: #9b1c1c;
    color: #fff;
}

.beheer-login-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.beheer-login-backdrop.active {
    display: flex;
}

body.admin-mode {
    background: #f3f4f6;
}

body.admin-mode .admin-tabs {
    padding: 14px 18px 14px 50px;
    gap: 10px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 3px 14px rgba(0,0,0,.04);
}

body.admin-mode .admin-tab {
    height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    background: #f2f3f5;
    color: #333;
    font-weight: 700;
    transition: .15s ease;
}

body.admin-mode .admin-tab:hover {
    background: #e9ebef;
    opacity: 1;
}

body.admin-mode .admin-tab.active,
body.admin-mode .admin-tab.primary {
    background: #e30613;
    color: #fff;
    box-shadow: 0 8px 18px rgba(227,6,19,.22);
}

body.admin-mode #offertesTab {
    padding: 22px;
    background: linear-gradient(180deg,#f7f8fa,#f0f2f5);
}

body.admin-mode .admin-card {
    border-radius: 18px;
    border: 1px solid #eceff3;
    box-shadow: 0 12px 35px rgba(20,25,35,.08);
    padding: 22px;
}

body.admin-mode .admin-card h2,
body.admin-mode .admin-card h3 {
    letter-spacing: -.02em;
}

body.admin-mode .admin-grid {
    grid-template-columns: 280px minmax(280px,1fr) 130px;
    align-items: end;
}

body.admin-mode .admin-grid-2 {
    gap: 16px;
}

body.admin-mode button {
    border-radius: 10px;
    font-weight: 700;
}

body.admin-mode .admin-request-card {
    display: grid;
    grid-template-columns: 70px 1fr 170px 125px;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #eef0f3;
}

body.admin-mode .admin-request-card:last-child {
    border-bottom: 0;
}

body.admin-mode .admin-request-number {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
}

body.admin-mode .beheer-price-grid {
    grid-template-columns: 1fr 90px 130px 130px;
    padding: 9px 0;
    border-bottom: 1px solid #edf0f4;
}

body.admin-mode .beheer-price-grid > div:first-child {
    font-weight: 600;
}

body.admin-mode .beheer-total {
    margin-top: 16px;
    padding: 14px;
    border-radius: 14px;
    background: #fafafa;
    border: 1px solid #eceff3;
    font-size: 15px;
}

body.admin-mode .beheer-actions {
    justify-content: flex-end;
    gap: 10px;
}

body.admin-mode .beheer-actions button {
    flex: 0 0 auto;
    min-width: 140px;
    height: 38px;
}

body.admin-mode #beheerSlot {
    opacity: .55;
}

body.admin-mode #beheerSlot:hover {
    opacity: 1;
}

body.admin-mode #beheerDetail {
    padding: 26px;
}

body.admin-mode .admin-actions {
    margin-top: 12px;
}

/* =========================
   ADMIN - COMPONENTEN
========================= */

.admin-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
    padding: 18px;
    margin-bottom: 16px;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 10px;
}

.admin-grid-2 {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 10px;
}

.admin-right {
    text-align: right;
}

.admin-muted {
    color: #777;
    font-size: 12px;
}

.admin-status {
    display: inline-block;
    border-radius: 99px;
    background: #eee;
    padding: 3px 7px;
    font-size: 11px;
}

.admin-readonly-status {
    background: #f4f6f8;
    border: 1px solid #dbe1e6;
    border-radius: 9px;
    padding: 10px 12px;
    font-weight: 700;
    color: #303947;
}

.admin-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.admin-actions button {
    background: #444;
    color: #fff;
}

.admin-actions button.primary {
    background: #e30613;
}

.admin-actions button.light {
    background: #eee;
    color: #222;
}

.admin-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(150px,1fr));
    gap: 10px;
    margin-top: 10px;
}

.admin-image {
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fafafa;
    padding: 8px;
}

.admin-image img {
    width: 100%;
    height: 95px;
    object-fit: cover;
    border-radius: 8px;
    background: #e9eef2;
    display: block;
}

.admin-image button {
    margin-top: 6px;
    width: 100%;
    background: #eee;
    color: #222;
}

.admin-status {
    padding: 5px 9px;
    background: #f0f2f5;
    color: #3f4652;
    font-weight: 700;
}

/* =========================
   ADMIN - OFFERTEDETAIL
========================= */

.admin-detail-head {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eef0f3;
}

.admin-detail-head h2 {
    margin: 0 0 8px 0!important;
}

.admin-person,
.admin-address {
    font-size: 14px;
    line-height: 1.55;
    color: #3f4652;
}

.materiaal-table-wrap {
    border: 1px solid #e6e9ef;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 16px;
}

.material-table th {
    background: #f8fafc;
    color: #596273!important;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: 11px!important;
    padding: 12px 14px!important;
}

.material-table td {
    padding: 11px 14px!important;
    vertical-align: middle!important;
}

.versions-table {
    border: 1px solid #e6e9ef;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    margin-top: 18px;
    margin-bottom: 18px;
}

.versions-table th {
    background: #f8fafc;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.versions-table button {
    padding: 7px 10px;
}

.admin-bottom {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 22px;
    align-items: start;
    margin-top: 18px;
}

.admin-bottom h3 {
    margin-top: 0;
}

.totals {
    background: #fff;
    border: 1px solid #e6e9ef;
    border-radius: 16px;
    padding: 16px;
    line-height: 1.9;
}

.totals div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.totals .grand-total {
    border-top: 1px solid #e6e9ef;
    margin-top: 8px;
    padding-top: 8px;
    font-size: 18px;
}

.active-offer-card {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-left: 5px solid #9ca3af;
}

.admin-lock-note {
    margin-top: 8px;
    margin-bottom: 18px;
    background: #fff3cd;
    border: 1px solid #ffe08a;
    color: #6b5200;
    border-radius: 9px;
    padding: 9px 11px;
    font-size: 13px;
}

.old-offers {
    margin-top: 10px;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 10px;
    background: #fafafa;
}

.old-offers summary {
    cursor: pointer;
    font-weight: 600;
    color: #555;
}

.old-offer-row {
    opacity: .72;
}

.active-offer-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* =========================
   ADMIN - DIALOGS
========================= */

.admin-dialog-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.50);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 18px;
    box-sizing: border-box;
}

.admin-dialog-backdrop.active {
    display: flex;
}

.admin-dialog {
    width: min(760px,calc(100vw - 36px));
    max-height: calc(100vh - 36px);
    overflow: auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 22px 70px rgba(0,0,0,.30);
    padding: 26px;
    box-sizing: border-box;
}

.admin-dialog h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
}

.admin-dialog .dialog-body {
    color: #303947;
    line-height: 1.55;
}

.admin-dialog .dialog-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: 22px;
}

.admin-dialog pre {
    white-space: pre-wrap;
    background: #f7f8fa;
    border: 1px solid #e8ecf1;
    border-radius: 14px;
    padding: 14px;
    max-height: 360px;
    overflow: auto;
    font-size: 12px;
}

.admin-view-grid {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 8px 14px;
    margin: 14px 0;
}

.admin-view-grid strong {
    color: #6b7280;
}

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

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

.admin-version-actions button {
    font-weight: 700;
}

.admin-view-grid {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 8px 14px;
    margin-bottom: 18px;
}

.admin-dialog pre {
    display: none;
}

/* =========================
   ADMIN - ACTIEKNOPPEN
========================= */

.camera-button {
    background: #e30613!important;
    color: #fff!important;
    border-radius: 999px;
    padding: 8px 14px!important;
}

.admin-btn-3d {
    background: #1d6fdc !important;
    color: #fff !important;
}

.admin-btn-3d:hover {
    background: #1557ad !important;
}

.admin-btn-success {
    background: #2e9f51 !important;
    color: #fff !important;
}

.admin-btn-success:hover {
    background: #237b3e !important;
}

.admin-btn-danger {
    background: #b71c1c !important;
    color: #fff !important;
}

.admin-btn-danger:hover {
    background: #921616 !important;
}

.admin-btn-warning {
    background: #e59e0b !important;
    color: #fff !important;
}

.admin-btn-warning:hover {
    background: #c98507 !important;
}

.admin-btn-open,
.admin-btn-view,
.admin-btn-neutral {
    background: #f3f4f6 !important;
    color: #222 !important;
    border: 1px solid #e5e7eb !important;
}

.admin-btn-open:hover,
.admin-btn-view:hover,
.admin-btn-neutral:hover {
    background: #e9ecef !important;
}

/* =========================
   STATUSLABELS
========================= */

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2px;
    border: 1px solid transparent;
}

.status-nieuw {
    background: #eef4ff;
    color: #3b5fbf;
    border-color: #d8e4ff;
}

.status-inbehandeling {
    background: #fff6df;
    color: #a06a00;
    border-color: #ffe7a8;
}

.status-verstuurd {
    background: #eaf7ea;
    color: #2f7d32;
    border-color: #cfe9cf;
}

.status-akkoord {
    background: #dff7e8;
    color: #1f8a4c;
    border-color: #bde8cd;
}

.status-afgewezen {
    background: #fdeaea;
    color: #b23a3a;
    border-color: #f7caca;
}

.status-gearchiveerd {
    background: #f1f2f4;
    color: #666;
    border-color: #dfe2e7;
}

.status-concept {
    background: #efe8ff;
    color: #6a42b8;
    border-color: #ddd0ff;
}

/* =========================
   UTILITIES
========================= */

#offerteBtn:disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.hidden {
    display: none !important;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {
    body.admin-mode .admin-grid,
    body.admin-mode .admin-request-card {
        grid-template-columns: 1fr;
    }

    body.admin-mode .beheer-price-grid {
        grid-template-columns: 1fr 80px 110px;
    }
}

@media(max-width:1100px) {
    .admin-detail-head,
    .admin-bottom {
        grid-template-columns: 1fr;
    }
}

.credit {
    margin-top: 12px;
    text-align: center;
    font-size: 10px;
    color: #999;
}

.credit a {
    color: #999;
    text-decoration: none;
}

.credit a:hover {
    color: #666;
}