/* Outlined field skeleton — mimics MudTextField Variant.Outlined without the harsh filled-gray look */
.field-skeleton-outlined {
    border: 1px solid rgba(0, 0, 0, 0.23);
    border-radius: 4px;
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 14px;
}

/* Settings */
.settings-tabs {
    flex-shrink: 0;
    background: #f8f9fa;
    padding: 12px;
}

.settings-tabs .mud-tabs-tabbar.mud-tabs-vertical {
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-top-left-radius: 12px !important;
    border-bottom-left-radius: 12px !important;
}

.settings-tabs .mud-tab {
    text-transform: none;
    padding: 15px;
    overflow: hidden;
}

.settings-tabs .mud-tabs-tabbar-wrapper > .mud-tooltip-root:first-child .mud-tab {
    border-top-left-radius: 12px !important;
}


.settings-tabs .mud-tab.mud-tab-active {
    color: #1f2937;
    background: color-mix(in srgb, var(--theme-secondary, #B7DD7E) 20%, #fff);
}

.settings-tabs .mud-tab-slider {
    background-color: var(--theme-secondary, #acd016ff);
}

.settings-tabs .mud-tabs-panels {
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-top-right-radius: 15px !important;
    border-bottom-right-radius: 15px !important;
    padding: 8px 24px 24px !important;
}

.settings-tabs .mud-tabs-panels > div {
    flex: 1 1 auto;
    min-width: 0;
}

.settings-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 16px;
    width: 80%;
}

.settings-item {
    display: flex;
    flex-direction: column;
    max-width: 800px;
    gap: 8px;
}

.settings-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.settings-fields-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.settings-field {
    flex: 1;
    min-width: 200px;
}

/* Settings — special containers (search pickers, override lists, paper cards) */
.settings-picker-list {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    max-height: 240px;
    overflow-y: auto;
    padding: 4px 6px;
}

.settings-override-list {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}

.settings-closing-select {
    max-width: 600px !important;
    flex: 1 1 auto;
    margin-left: auto;
}

/* Wraps the days-before select + time-of-day picker so together they take the same slot
   the single closing-hours select used to occupy. */
.settings-closing-pair {
    display: flex;
    gap: 8px;
    align-items: center;
}

.settings-closing-pair .settings-closing-days {
    flex: 1 1 auto;
    min-width: 300px;
}

.settings-closing-pair .settings-closing-time {
    flex: 0 0 200px;
    min-width: 200px;
}

/* Helper text sits absolutely below the field instead of adding height, so it doesn't
   push this row taller than the select next to it. */
.settings-closing-time .mud-input-helper-text {
    position: absolute;
    top: 100%;
    left: 0;
    white-space: nowrap;
}

.settings-override-label {
    width: 180px;
    flex-shrink: 1;
    min-width: 120px;
}

.settings-override-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border-bottom: 1px solid #f3f4f6;
}

.settings-override-row:last-child {
    border-bottom: none;
}

.settings-card-muted {
    background: #f9fafb !important;
    box-shadow: none !important;
}

.color-swatch {
    align-items: center;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    gap: 10px;
    height: 48px;
    width: 100%;
    justify-content: space-between;
    padding: 0 16px;
    transition: opacity 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
}

.color-swatch:hover {
    opacity: 0.9;
}

.color-swatch-hex {
    color: inherit;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.color-picker-popup {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px;
    width: fit-content;
}

/* Template editor – loading state */
.template-editor-loading {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    padding: 16px;
    gap: 12px;
    background-color: #e8e7e7;
}

.template-editor-skeleton {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    gap: 12px;
    margin: auto;
    width: 86mm;
    max-width: 100%;
}


/* Home – header upload area */
.home-header-area .img-upload-wrapper {
    display: block !important;
    width: 100%;
}

.home-header-area {
    padding-top: 16px;
    padding-bottom: 4px;
    width: 100%;
}

.home-header-img-wrapper {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
}

.home-header-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.home-header-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.15s;
    border-radius: 10px;
}

.home-header-img-wrapper:hover .home-header-overlay {
    opacity: 1;
}

.home-header-placeholder {
    align-items: center;
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    box-sizing: border-box;
    color: #9ca3af;
    cursor: pointer;
    display: flex;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    gap: 8px;
    height: 120px;
    justify-content: center;
    transition: border-color 0.15s, color 0.15s;
    width: 100%;
}

.home-header-placeholder:hover {
    border-color: var(--theme-secondary, #B7DD7E);
    color: #6b7280;
}


/* Home – hero header */
.home-hero {
    margin-bottom: 8px;
    padding-top: 12px;
}

.home-hero-title {
    color: #1f2937;
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 4px;
}

.home-hero-subtitle {
    color: rgba(0, 0, 0, 0.4);
    font-family: 'Inter', sans-serif;
    font-size: 18px;
}

/* Home – category cards */
.cat-group {
    margin-top: 20px;
}

.cat-group-label {
    color: #9ca3af;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0;
    margin-bottom: 8px;
    text-transform: none;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 260px));
    gap: 10px;
}

/* Rubric selector – onderdeel section: same floating-chip look as the onderwerp
   row above it, just with breathing room instead of a competing boxed rectangle. */
.relation-grid-horizontal + .cat-group-label {
    color: #6b7280;
    margin-top: 16px;
    margin-bottom: 16px;
}


.cat-card {
    align-items: center;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    box-sizing: border-box;
    cursor: pointer;
    display: flex;
    gap: 12px;
    height: 100%;
    max-width: 300px;
    padding: 18px 12px;
    position: relative;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    user-select: none;
}

.cat-card:hover {
    border-color: var(--mud-palette-primary);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.cat-card-selected {
    background: color-mix(in srgb, var(--mud-palette-primary) 6%, white);
    border-color: var(--mud-palette-primary);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.cat-card-icon {
    align-items: center;
    border-radius: 6px;
    color: #4b5563;
    display: flex;
    flex-shrink: 0;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.cat-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.cat-card-title {
    color: #374151;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.cat-card-desc {
    color: rgba(0, 0, 0, 0.65);
    font-size: 13px;
    font-weight: 300;
}

.cat-card-check {
    flex-shrink: 0;
    color: var(--mud-palette-primary) !important;
}

.cat-card-checkbox {
    flex-shrink: 0;
    margin-left: 8px;
}

.cat-card-editable {
    cursor: pointer;
}

.cat-card-editable:hover {
    border-color: #d1d5db;
    box-shadow: none;
}

.cat-card-view-btn {
    align-self: flex-start;
    margin-left: -8px;
    padding: 2px 8px !important;
    text-transform: none !important;
}

.cat-card-badge-cluster {
    display: flex;
    flex-shrink: 0;
}

.cat-card-badge-cluster-item {
    border: 2px solid #fff;
}

.cat-card-badge-cluster-item:not(:first-child) {
    margin-left: -12px;
}

.cat-card-badge-cluster-more {
    align-items: center;
    background: #e5e7eb !important;
    display: flex;
    justify-content: center;
}

.cat-card-badge-cluster-more .pub-badge-text {
    color: #4b5563;
}

.pub-group-dialog-list {
    max-height: 60vh;
    min-width: 320px;
    overflow-y: auto;
}

.relation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
}

.relation-grid .cat-card {
    padding: 12px 14px;
    gap: 10px;
}

.relation-grid .cat-card .cat-card-title {
    font-size: 14px !important;
}

.rubric-relation-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.relation-grid-horizontal {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
}

.relation-grid-horizontal .cat-card--horizontal {
    max-width: none;
    width: auto;
    padding: 10px 16px;
}

.relation-grid-vertical {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.relation-grid-vertical .cat-card {
    width: 100%;
    max-width: 550px;
    margin-left: 0;
    margin-right: 0;
}

.rubric-relation-grid .cat-card .cat-card-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.relation-card-icon {
    align-items: center;
    border-radius: 50%;
    display: flex;
    flex-shrink: 0;
    height: 36px;
    justify-content: center;
    width: 36px;
}

/* Inline editing inputs */
.cat-inline-input {
    background: transparent;
    border: none;
    border-bottom: 1.5px solid #e5e7eb;
    outline: none;
    padding: 0;
    width: 100%;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.15s;
}

.cat-inline-input:focus {
    border-bottom-color: var(--theme-secondary, #B7DD7E);
}

.cat-inline-title {
    color: #374151;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-bottom: 3px;
}

.cat-inline-desc {
    color: #9ca3af;
    font-size: 13px;
}

.cat-inline-actions {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    gap: 0;
}

.cat-inline-btn {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    padding: 0 !important;
}

@media (max-width: 768px) {
    .cat-group {
        margin-top: 10px;
    }

    .cat-grid,
    .relation-grid,
    .pub-cat-grid {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .cat-group-label {
        width: auto;
        margin-left: 0;
        margin-right: 0;
    }

    .cat-card {
        min-width: unset;
        max-width: unset;
        width: calc(100% - 16px);
        margin-left: 8px;
        margin-right: 8px;
    }

    .relation-grid .cat-card {
        padding: 12px 14px;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

/*Relation*/

.relation-hero-title {
    color: #1f2937;
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 4px;
}

.relation-hero-subtitle {
    color: rgba(0, 0, 0, 0.4);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
}

/*Template selector*/
.cards-container {
    display: flex !important;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
    height: calc(100% - 120px);
}

@media (max-width: 768px) {
    .cards-container {
        justify-content: center;
    }
}

.template-card {
    border: 1px solid transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: fit-content;
    overflow: hidden;
    width: fit-content;
    margin: 1rem;
}

.template-card:hover {
    border-color: var(--mud-palette-primary);
}

.template-card-selected {
    border: 2px solid var(--mud-palette-primary);
    cursor: pointer;
    height: fit-content;
    overflow: hidden;
    width: fit-content;
    margin: 1rem;

}

.template-preview {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    background-color: #f9fafb;
    border-radius: inherit;
}

.template-preview > * {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center;
}

.template-card-outer {
    position: relative;
    display: inline-block;
}

.tpl-dim {
    position: absolute;
    z-index: 10;
    pointer-events: none;
    font-size: 10px;
    line-height: 1;
    color: rgba(0, 0, 0, 0.45);
    white-space: nowrap;
}

.tpl-dim--width {
    top: 4px;
    right: 16px;
}

.tpl-dim--height {
    top: 16px;
    right: 4px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.template-preview--cols-1 {
    width: 130px;
}

.template-preview--cols-1 > * {
    max-width: 130px !important;
    width: 130px !important;
}

.template-preview--cols-2 {
    width: 260px;
}

.template-preview--cols-2 > * {
    max-width: 260px !important;
    width: 260px !important;
}

.template-preview--cols-3 {
    width: 390px;
}

.template-preview--cols-3 > * {
    max-width: 390px !important;
    width: 390px !important;
}

.template-preview--cols-4 {
    width: 520px;
}

.template-preview--cols-4 > * {
    max-width: 520px !important;
    width: 520px !important;
}


/*EditableTemplate*/

.template-stack-container {
    background-color: #e8e7e7;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0 !important;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

.template-stack {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-bottom: 16px;
    padding-top: 16px;
}

.template-div {
    display: flex;
    flex-direction: column;
    margin: 1% auto;
    overflow: visible;
    position: relative;
    padding: 1mm;
    align-self: flex-start;
    background-color: white;
}

.drop-zone-container {
    background-color: rgba(255, 255, 255, 0.3);
}

.draggable-field-container .img-inactive,
.draggable-field-container-active .img-active {
    display: block !important;
    max-width: 100% !important;
}

.draggable-field-container .img-inactive:not([style*="object-fit: cover"]),
.draggable-field-container-active .img-active:not([style*="object-fit: cover"]) {
    width: auto !important;
    height: 100% !important;
    box-sizing: border-box !important;
}

/* Mobile: Change template-stack to column layout */
@media (max-width: 768px) {
    .template-stack-container {
        flex-direction: column !important;
    }

    .template-stack {
        flex: 1 !important;
        flex-direction: column !important;
        min-height: 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        padding-bottom: 0 !important;
    }

    .desktop-toolbar {
        display: none !important;
    }

    .mobile-toolbar {
        background: #fafaf9;
        border-top: 1px solid #e5e7eb;
        display: block !important;
        flex-shrink: 0;
        padding: 0;
        position: relative;
        width: 100%;
        z-index: 100;
    }

    .mobile-toolbar .toolbar-container {
        position: relative !important;
        display: block !important;
        height: auto !important;
        width: 100%;
    }

    .template-div {
        width: 100% !important;
        max-width: 86mm !important;
        margin: 16px auto 0 !important;
        padding: 1mm;
    }

    .drop-zone-container {
        width: 100% !important;
    }
}

.draggable-field-container *,
.draggable-field-container-active * {
    /*font-size: inherit !important;*/
    /*letter-spacing: inherit !important;*/
    line-height: inherit !important;
    overflow-wrap: break-word;
    position: relative;
    /*width: 100%;*/
    /*word-spacing: inherit !important;*/
}

.draggable-field-container-active:not(:has(.el-image)) * {
    width: 100%;
}

/* Dieren icons inside the active ProseMirror editor — render SVG via CSS mask so color inherits from text */
.simple-rich-text-editor span.animals-paw,
.simple-rich-text-editor span.animals-dove,
.simple-rich-text-editor span.animals-butterfly {
    display: inline-block !important;
    width: 0.9em !important;
    height: 0.9em !important;
    line-height: 0 !important;
    overflow: hidden;
    vertical-align: middle;
    -webkit-text-fill-color: transparent;
    background-color: currentColor;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
}

.simple-rich-text-editor span.animals-paw {
    -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAzNiAzNic+PGVsbGlwc2UgY3g9JzE4JyBjeT0nMjUuNScgcng9JzguNScgcnk9JzcnLz48ZWxsaXBzZSBjeD0nNy41JyBjeT0nMTcnIHJ4PSc0JyByeT0nNScgdHJhbnNmb3JtPSdyb3RhdGUoLTEwLDcuNSwxNyknLz48ZWxsaXBzZSBjeD0nMTMnIGN5PScxMScgcng9JzMuOCcgcnk9JzUnLz48ZWxsaXBzZSBjeD0nMjMnIGN5PScxMScgcng9JzMuOCcgcnk9JzUnLz48ZWxsaXBzZSBjeD0nMjguNScgY3k9JzE3JyByeD0nNCcgcnk9JzUnIHRyYW5zZm9ybT0ncm90YXRlKDEwLDI4LjUsMTcpJy8+PC9zdmc+");
    mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAzNiAzNic+PGVsbGlwc2UgY3g9JzE4JyBjeT0nMjUuNScgcng9JzguNScgcnk9JzcnLz48ZWxsaXBzZSBjeD0nNy41JyBjeT0nMTcnIHJ4PSc0JyByeT0nNScgdHJhbnNmb3JtPSdyb3RhdGUoLTEwLDcuNSwxNyknLz48ZWxsaXBzZSBjeD0nMTMnIGN5PScxMScgcng9JzMuOCcgcnk9JzUnLz48ZWxsaXBzZSBjeD0nMjMnIGN5PScxMScgcng9JzMuOCcgcnk9JzUnLz48ZWxsaXBzZSBjeD0nMjguNScgY3k9JzE3JyByeD0nNCcgcnk9JzUnIHRyYW5zZm9ybT0ncm90YXRlKDEwLDI4LjUsMTcpJy8+PC9zdmc+");
}

.simple-rich-text-editor span.animals-dove {
    -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAzNiAzNic+PHBhdGggZD0nTTUgMjIgUTE0IDggMjggMTQgUTIwIDE2IDE1IDIyIFExMCAyNCA1IDIyWicvPjxlbGxpcHNlIGN4PScyMicgY3k9JzIyJyByeD0nOCcgcnk9JzUnIHRyYW5zZm9ybT0ncm90YXRlKC0xNSwyMiwyMiknLz48Y2lyY2xlIGN4PScyOScgY3k9JzE2JyByPSc0Jy8+PHBhdGggZD0nTTE0IDI0IFE1IDI4IDIgMzQgTDEyIDI4WicvPjwvc3ZnPg==");
    mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAzNiAzNic+PHBhdGggZD0nTTUgMjIgUTE0IDggMjggMTQgUTIwIDE2IDE1IDIyIFExMCAyNCA1IDIyWicvPjxlbGxpcHNlIGN4PScyMicgY3k9JzIyJyByeD0nOCcgcnk9JzUnIHRyYW5zZm9ybT0ncm90YXRlKC0xNSwyMiwyMiknLz48Y2lyY2xlIGN4PScyOScgY3k9JzE2JyByPSc0Jy8+PHBhdGggZD0nTDE0IDI0IFE1IDI4IDIgMzQgTDEyIDI4WicvPjwvc3ZnPg==");
}

.simple-rich-text-editor span.animals-butterfly {
    -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAzNiAzNic+PGVsbGlwc2UgY3g9JzE4JyBjeT0nMTknIHJ4PScxLjQnIHJ5PSc4Jy8+PGNpcmNsZSBjeD0nMTgnIGN5PScxMC41JyByPScxLjYnLz48ZWxsaXBzZSBjeD0nMTUuNScgY3k9JzcnIHJ4PScwLjUnIHJ5PSczJyB0cmFuc2Zvcm09J3JvdGF0ZSgtMjUsMTUuNSw3KScvPjxlbGxpcHNlIGN4PScyMC41JyBjeT0nNycgcng9JzAuNScgcnk9JzMnIHRyYW5zZm9ybT0ncm90YXRlKDI1LDIwLjUsNyknLz48cGF0aCBkPSdNMTcgMTYgQzEyIDYgMyAyIDIgOSBDMSAxNSA5IDE5IDE3IDE2WicvPjxwYXRoIGQ9J00xOSAxNiBDMjQgNiAzMyAyIDM0IDkgQzM1IDE1IDI3IDE5IDE5IDE2WicvPjxwYXRoIGQ9J00xNyAxOSBDMTMgMjcgNiAzMCA1IDI1IEM0IDIxIDExIDE4IDE3IDE5WicvPjxwYXRoIGQ9J00xOSAxOSBDMjMgMjcgMzAgMzAgMzEgMjUgQzMyIDIxIDI1IDE4IDE5IDE5WicvPjwvc3ZnPg==");
    mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAzNiAzNic+PGVsbGlwc2UgY3g9JzE4JyBjeT0nMTknIHJ4PScxLjQnIHJ5PSc4Jy8+PGNpcmNsZSBjeD0nMTgnIGN5PScxMC41JyByPScxLjYnLz48ZWxsaXBzZSBjeD0nMTUuNScgY3k9JzcnIHJ4PScwLjUnIHJ5PSczJyB0cmFuc2Zvcm09J3JvdGF0ZSgtMjUsMTUuNSw3KScvPjxlbGxpcHNlIGN4PScyMC41JyBjeT0nNycgcng9JzAuNScgcnk9JzMnIHRyYW5zZm9ybT0ncm90YXRlKDI1LDIwLjUsNyknLz48cGF0aCBkPSdNMTcgMTYgQzEyIDYgMyAyIDIgOSBDMSAxNSA5IDE5IDE3IDE2WicvPjxwYXRoIGQ9J00xOSAxNiBDMjQgNiAzMyAyIDM0IDkgQzM1IDE1IDI3IDE5IDE5IDE2WicvPjxwYXRoIGQ9J00xNyAxOSBDMTMgMjcgNiAzMCA1IDI1IEM0IDIxIDExIDE4IDE3IDE5WicvPjxwYXRoIGQ9J00xOSAxOSBDMjMgMjcgMzAgMzAgMzEgMjUgQzMyIDIxIDI1IDE4IDE5IDE5WicvPjwvc3ZnPg==");
}

.draggable-field-container-active {
    cursor: text;
}

.draggable-field-container-active .ProseMirror {
    font-family: inherit !important;
    font-size: inherit !important;
    letter-spacing: inherit !important;
    line-height: inherit !important;
    min-height: 0 !important;
    padding: 0 !important;
}

/* TableColumnEditor — two-column ProseMirror editor for family-table fields */
.table-col-editor {
    display: flex;
    gap: 0;
    width: 100%;
}

.table-col-editor > * {
    flex: 1;
    min-width: 0;
}


.missing-field-line {
    display: inline-block;
    width: 40px;
    height: 2px;
    background: repeating-linear-gradient(to right, #ef4444 0, #ef4444 4px, transparent 4px, transparent 7px);
    vertical-align: middle;
    margin-top: 7px;
}

.draggable-field-container-active {
    outline: 1px dashed #656565;
}

.draggable-field-container:has(.el-image) {
    overflow: hidden;
    position: relative;
}

.draggable-field-container-active:has(.el-image) {
    overflow: hidden;
    resize: both;
    position: relative;
}


.draggable-field-container-active:has(.el-image)::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 18px 18px;
    border-color: transparent transparent #777 transparent;
    pointer-events: none;
}

.draggable-field-container-active:has(.el-image)::-webkit-resizer {
    background-color: transparent;
}

.inline-img-container {
    position: relative;
    padding: 2mm;
    margin-left: 2mm;
}


.inline-img-drag-handle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    cursor: nwse-resize;
}

.inline-img-drag-handle::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 18px 18px;
    border-color: transparent transparent #777 transparent;
    pointer-events: none;
}

.draggable-field-container,
.draggable-field-container-active {
    position: relative;
    z-index: 2;
    user-select: text;
    margin-left: 24px !important;
    width: calc(100% - 24px) !important;
}

.mud-drop-item {
    margin-left: -24px;
    width: calc(100% + 24px);
}

/* Drag reordering is desktop-only (AllowReorder is off on mobile; the toolbar's
   up/down buttons handle it there instead) */
@media (max-width: 768px) {
    .drag-handle {
        display: none !important;
    }

    .mud-drop-item {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .draggable-field-container,
    .draggable-field-container-active {
        margin-left: 0 !important;
        width: 100% !important;
    }
}

.drag-handle {
    position: absolute;
    top: 0 !important;
    bottom: 0;
    left: -22px;
    z-index: 3;
    box-sizing: border-box;
    width: 18px !important;
    height: 100% !important;
    min-height: 20px;
    padding: 2px;
    border-radius: 6px 0 0 6px;
    background-color: color-mix(in srgb, var(--mud-palette-primary) 10%, #fff);
    border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 20%, #fff);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    color: var(--mud-palette-primary);
    cursor: grab;
    user-select: none;
    opacity: 0;
    transition: opacity 0.15s ease, background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.draggable-field-container:hover .drag-handle {
    opacity: 1;
}

.drag-handle:hover {
    background-color: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
    color: #10b981;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    transform: scale(1.06);
}

.drag-handle:active {
    cursor: grabbing;
    background-color: rgba(16, 185, 129, 0.18);
    border-color: #10b981;
    color: #10b981;
    transform: scale(1.02);
}

.drop-zone-container .mud-dropitem-placeholder {
    border-width: 0.5px !important;
}

.draggable-field-container:hover {
    background-color: rgba(110, 204, 22, 0.03);
    outline: 1px dashed #656565;
}


.draggable-field-container:has(.drag-handle:active),
.draggable-field-container-active:has(.drag-handle:active) {
    background-color: rgba(16, 185, 129, 0.08) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    outline: 0.5px dashed #10b981 !important;
}

.draggable-field-container.mud-drop-item-dragging,
.draggable-field-container-active.mud-drop-item-dragging {
    background-color: rgba(16, 185, 129, 0.08) !important;
    opacity: 0.9;
    outline: 0.5px dashed #10b981 !important;
    z-index: 1000 !important;
}


.drop-zone-container .mud-drop-item-preview-start {
    pointer-events: none;
}

.drop-zone-container .mud-drop-item-preview-start:first-child {
    pointer-events: auto;
}


.variation-badge-wrapper {
    align-items: center;
    background: var(--theme-secondary, #B7DD7E);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    height: 30px;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    width: 30px;
}

.variation-badge-wrapper .mud-icon-root {
    color: white !important;
}


/*Review*/

.review-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 16px;
    align-items: stretch;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

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

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.review-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-info-card {
    background: #f8f8f7 !important;
    border: 1px solid #e5e7eb;
    border-radius: 14px !important;
}

.review-info-card--error {
    border-color: #ef4444;
}

.review-overzicht-card {
    background: #f8f8f7 !important;
    border: 1px solid #e5e7eb;
    border-radius: 14px !important;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.review-table-col-wide {
    width: 40%;
}

.review-table-transparent {
    background: transparent !important;
}

.review-error-text {
    color: #ef4444;
    font-size: 13px;
}

.review-muted-caption {
    color: #94a3b8;
}

.review-icon-publication {
    color: #4a7fd4;
}

.review-icon-ad {
    color: #18b4c8;
}

.review-icon-contactgegevens {
    color: #1fa896;
}

.review-icon-overview {
    color: #e8962e;
}

.review-contact-icon {
    color: rgba(0, 0, 0, 0.65);
}

.review-contact-label {
    font-weight: 400;
    color: rgba(0, 0, 0, 0.65);
}

.review-skeleton-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.review-skeleton-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 0;
}

.review-skeleton-row--divider {
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.review-skeleton-label {
    width: 40%;
    flex-shrink: 0;
}

.review-field-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.review-field-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.review-field-label {
    font-size: 11px;
    color: #4b5563;
    min-width: 70px;
    flex-shrink: 0;
}

.review-field-value {
    font-size: 13px;
    color: #111827;
    font-weight: 500;
}

.review-field-value--muted {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.review-flex-spacer {
    flex: 1;
}

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

.review-watermark-note {
    color: #94a3b8;
    text-align: center;
    display: block;
}


/* Payment*/


.summary-line {
    color: #64748b;
    display: flex;
    font-size: 13px;
    justify-content: space-between;
}

.summary-line-label {
    color: rgba(0, 0, 0, 0.65);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    font-size: 13px;
    font-weight: 500;
    padding-right: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.summary-line-value {
    color: rgba(0, 0, 0, 0.65);
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.summary-total-line {
    color: #1e293b;
    display: flex;
    font-size: 15px;
    font-weight: 600;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .summary-total-line {
        margin-bottom: 12px;
    }
}

.summary-total-amount {
    font-variant-numeric: tabular-nums;
}

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

.summary-skeleton-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-price-info-card {
    background: #fff !important;
    border-radius: 8px !important;
    border: 1.5px solid #e5e7eb;
}

.review-price-info-icon {
    color: color-mix(in srgb, var(--mud-palette-primary) 70%, #374151);
}

.review-price-info-title {
    color: color-mix(in srgb, var(--mud-palette-primary) 60%, #374151);
    font-weight: 600;
}

.review-price-breakdown-line {
    color: #6b7280;
    display: block;
}

.mud-button-root.review-pay-button {
    border-radius: 8px !important;
    font-size: 15px !important;
    padding: 8px 0 !important;
}


/* Account page cards */
.account-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: stretch;
}

.account-address-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.account-address-row .account-card,
.account-address-row .account-card-add {
    flex: 1 1 0;
    min-width: 0;
}

.account-card {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    padding: 12px 14px;
    position: relative;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.account-card-add {
    align-items: center;
    background: #fff;
    border: 1.5px dashed #d1d5db;
    border-radius: 10px;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
    min-height: 80px;
    padding: 12px 14px;
    transition: border-color 0.15s, color 0.15s;
}

.account-card-add:hover {
    border-color: #9ca3af;
    color: #374151;
}

.account-card-icon {
    align-items: center;
    border-radius: 8px;
    display: flex;
    flex-shrink: 0;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.account-card-type-chip {
    display: inline-block;
    background: #f3f4f6;
    border-radius: 6px;
    color: #6b7280;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.03em;
    padding: 2px 7px;
    text-transform: uppercase;
}

.account-card-type-chip.billing {
    background: #fef9c3;
    color: #92400e;
}


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

    .account-address-row {
        flex-direction: column;
    }

    .account-address-row .account-card,
    .account-address-row .account-card-add {
        min-width: 0;
        width: 100%;
    }
}

/* EditOrder admin page */

.eo-save-btn {
    min-width: 140px !important;
}

.eo-save-menu {
    border-radius: 12px !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    min-width: 300px !important;
    max-width: 300px !important;
    width: 300px !important;
    padding: 6px !important;
}

.eo-save-menu .mud-list-item {
    border-radius: 8px !important;
    padding: 8px 12px !important;
}

.eo-save-menu .mud-list-item:hover {
    background: #f9fafb !important;
}

.eo-menu-item-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.eo-menu-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
}

.eo-menu-item-icon--invoice {
    background: #fef3c7;
    color: #d97706;
}

.eo-menu-item-icon--save {
    background: #ede9fe;
    color: #7c3aed;
}

.eo-menu-item-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.eo-menu-item-label {
    font-size: 13px;
    font-weight: 500;
    color: #111827;
    line-height: 1.3;
    white-space: normal;
}

.eo-menu-item-sub {
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.3;
    white-space: nowrap;
}

.eo-date-chip {
    background: transparent !important;
    color: var(--mud-palette-secondary) !important;
    border: 1px dashed var(--theme-secondary) !important;
    cursor: pointer;
    font-size: 12px;
}

.eo-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.eo-paper {
    border: 1px solid #e5e7eb !important;
    border-radius: 14px !important;
}

.eo-paper-full {
    border: 1px solid #e5e7eb !important;
    border-radius: 14px !important;
}

.eo-pub-panels .mud-expand-panel {
    border-bottom: 1px solid #e5e7eb !important;
}

.eo-left-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}


.eo-invoice-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.eo-invoice-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #fff;
    border-bottom: 1px solid #f3f4f6;
}

.eo-invoice-row:last-child {
    border-bottom: none;
}

.eo-invoice-status {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
}

.eo-invoice-status--paid {
    background: #d1fae5;
    color: #065f46;
}

.eo-invoice-status--open {
    background: #fef3c7;
    color: #92400e;
}

.eo-invoice-body {
    flex: 1;
    min-height: 0;
    max-height: 85%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.eo-invoice-pdf-area {
    flex: 0 0 80%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.eo-invoice-pdf-area iframe {
    flex: 1;
    width: 100%;
    border: none;
    border-radius: 8px;
    display: block;
}

.eo-invoice-empty {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px dashed #e5e7eb;
    border-radius: 8px;
    background: #fafafa;
    text-align: center;
    padding: 24px;
}


.eo-summary-grid {
    display: flex;
    flex-direction: column;
    margin-top: 12px;
}

.eo-summary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid #f3f4f6;
}

.eo-summary-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.eo-summary-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
}

.eo-summary-icon {
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
    color: #9ca3af;
}

.eo-summary-value {
    font-size: 13px;
    color: #111827;
    font-weight: 500;
    text-align: right;
}

/* Review — Contactgegevens sub-sections */
.review-contact-section {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    color: #374151;
    padding: 12px 14px;
}

.review-contact-section--missing {
    border-color: #ef4444;
}

.review-billing-option {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 3px;
    cursor: pointer;
    padding: 9px 12px;
    transition: background 0.15s;
}

.review-billing-option--selected {
    background: color-mix(in srgb, var(--mud-palette-primary) 6%, white);
    border-color: var(--mud-palette-primary);
}

.review-billing-option-title {
    color: #6b7280;
    font-size: 13px !important;
    font-weight: 500 !important;
}

.review-billing-option .mud-icon-root {
    color: #9ca3af;
}

.review-billing-option--selected .mud-icon-root {
    color: #6b7280;
}

.review-billing-option-address {
    color: #6b7280;
    padding-left: 26px;
    display: block;
}

/* Publication panel — step check icon (replaces "Stap N:" text) */
.step-check-icon {
    color: #9ca3af !important;
    font-size: 22px !important;
}

.step-check-icon--done {
    color: var(--mud-palette-primary) !important;
    font-size: 22px !important;
}

