:root {
    --whisky-bg: #111712;
    --whisky-panel: #182119;
    --whisky-panel-2: #202a20;
    --whisky-green: #496f44;
    --whisky-green-soft: #6f9064;
    --whisky-copper: #b87333;
    --whisky-gold: #d8b25c;
    --whisky-cream: #f6eddc;
    --whisky-muted: #bfb49f;
    --whisky-border: rgba(216, 178, 92, .24);
}

* {
    letter-spacing: 0;
}

body {
    min-height: 100vh;
    background-color: var(--whisky-bg);
    background-image:
        linear-gradient(180deg, rgba(17, 23, 18, .94), rgba(17, 23, 18, .98)),
        url("/images/whisky-background-web.jpg");
    background-attachment: scroll;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--whisky-cream);
    font-family: var(--whisky-font, Georgia, "Times New Roman", serif);
}

a {
    color: var(--whisky-gold);
}

.app-header {
    background: rgba(15, 20, 15, .94);
    border-bottom: 1px solid var(--whisky-border);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .28);
}

.header-grid {
    display: grid;
    grid-template-columns: minmax(90px, 1fr) auto minmax(90px, 1fr);
    align-items: center;
    gap: 18px;
    min-height: 136px;
}

.brand-logo-link {
    justify-self: start;
}

.app-title-link {
    color: var(--whisky-cream);
    font-family: var(--whisky-font, Georgia, "Times New Roman", serif);
    font-size: clamp(1.8rem, 3vw, 2.85rem);
    font-weight: 700;
    justify-self: center;
    line-height: 1.08;
    text-align: center;
    text-decoration: none;
}

.app-title-link:hover,
.brand-logo-link:hover {
    color: var(--whisky-gold);
}

.header-actions {
    justify-self: end;
}

.brand-logo {
    width: clamp(88px, 9vw, 128px);
    height: clamp(88px, 9vw, 128px);
    object-fit: contain;
}

.app-main {
    padding-top: 28px;
    padding-bottom: 48px;
}

.tool-surface,
.detail-sheet,
.auth-panel {
    background: rgba(24, 33, 25, .94);
    border: 1px solid var(--whisky-border);
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}

.tool-surface {
    overflow: hidden;
}

.detail-sheet,
.auth-panel {
    padding: clamp(20px, 3vw, 36px);
}

.auth-panel {
    max-width: 460px;
}

.table-toolbar {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: flex-start;
    padding: 22px;
    background: linear-gradient(90deg, rgba(73, 111, 68, .38), rgba(184, 115, 51, .16));
    border-bottom: 1px solid var(--whisky-border);
}

.result-count,
.eyebrow {
    color: var(--whisky-muted);
}

.search-wrap {
    position: relative;
    width: min(100%, 460px);
}

.search-wrap .fa-magnifying-glass {
    position: absolute;
    left: 14px;
    top: 50%;
    color: var(--whisky-muted);
    transform: translateY(-50%);
    z-index: 2;
}

.realtime-search {
    padding-left: 40px;
    padding-right: 42px;
}

.form-control {
    background: #101610;
    border: 1px solid rgba(216, 178, 92, .28);
    color: var(--whisky-cream);
}

.form-control::placeholder {
    color: rgba(246, 237, 220, .72);
    opacity: 1;
}

.form-control[type="date"]::-webkit-calendar-picker-indicator,
.form-control[type="time"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(93%) sepia(16%) saturate(477%) hue-rotate(3deg) brightness(107%);
    opacity: .82;
}

.form-control:focus {
    background: #101610;
    border-color: var(--whisky-gold);
    color: var(--whisky-cream);
    box-shadow: 0 0 0 .2rem rgba(216, 178, 92, .15);
}

.form-label,
.form-check-label {
    color: var(--whisky-cream);
}

.search-loader {
    position: absolute;
    right: 13px;
    top: 50%;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(216, 178, 92, .25);
    border-top-color: var(--whisky-gold);
    border-radius: 50%;
    opacity: 0;
    transform: translateY(-50%);
    transition: opacity .2s ease;
}

.is-loading .search-loader {
    animation: spin .7s linear infinite;
    opacity: 1;
}

.whisky-table-wrap {
    min-height: 320px;
}

.whisky-table {
    --bs-table-bg: rgba(20, 28, 21, .96);
    --bs-table-striped-bg: rgba(37, 50, 37, .96);
    --bs-table-hover-bg: rgba(73, 111, 68, .34);
    border-color: rgba(216, 178, 92, .2);
}

.whisky-table th {
    background: #101610;
    color: var(--whisky-gold);
    white-space: nowrap;
}

.sort-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--whisky-gold);
    text-decoration: none;
}

.action-cell {
    min-width: 140px;
    white-space: nowrap;
}

.clickable-row {
    cursor: zoom-in;
}

.btn-copper {
    background: linear-gradient(180deg, #c98745, var(--whisky-copper));
    border: 1px solid rgba(255, 236, 180, .24);
    color: #171008;
    font-weight: 700;
}

.btn-copper:hover {
    background: var(--whisky-gold);
    color: #171008;
}

.btn-outline-gold {
    border: 1px solid rgba(216, 178, 92, .62);
    color: var(--whisky-gold);
}

.btn-outline-gold:hover {
    background: rgba(216, 178, 92, .16);
    color: var(--whisky-cream);
}

.btn-icon {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    padding: 0;
}

.pagination-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    color: var(--whisky-muted);
    border-top: 1px solid var(--whisky-border);
}

.pagination {
    margin-bottom: 0;
}

.page-link {
    background: #101610;
    border-color: rgba(216, 178, 92, .25);
    color: var(--whisky-gold);
}

.active > .page-link,
.page-link:hover {
    background: var(--whisky-green);
    border-color: var(--whisky-green-soft);
    color: var(--whisky-cream);
}

mark {
    background: rgba(216, 178, 92, .35);
    color: var(--whisky-cream);
    border-radius: 4px;
    padding: 0 .12rem;
}

.empty-state {
    min-height: 320px;
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
    padding: 40px 20px;
    color: var(--whisky-muted);
}

.empty-state i {
    color: var(--whisky-gold);
    font-size: 44px;
    margin-bottom: 18px;
}

.flyer-modal {
    background: #101610;
    color: var(--whisky-cream);
    border: 1px solid var(--whisky-border);
}

.flyer-modal .modal-body {
    display: grid;
    place-items: center;
    min-height: min(82vh, 920px);
    padding: 12px;
}

.flyer-modal img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: calc(100vh - 140px);
    object-fit: contain;
}

.flyer-modal iframe {
    width: 100%;
    height: min(82vh, 920px);
    border: 0;
    background: #070907;
}

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

.form-tabs {
    border-bottom-color: rgba(216, 178, 92, .25);
    gap: 6px;
}

.form-tabs .nav-link {
    align-items: center;
    background: rgba(16, 22, 16, .58);
    border-color: rgba(216, 178, 92, .16);
    color: var(--whisky-muted);
    display: inline-flex;
    gap: 8px;
    min-height: 44px;
}

.form-tabs .nav-link.active {
    background: rgba(73, 111, 68, .42);
    border-color: rgba(216, 178, 92, .42);
    color: var(--whisky-cream);
}

.form-tab-content {
    background: rgba(16, 22, 16, .42);
    border: 1px solid rgba(216, 178, 92, .18);
    border-top: 0;
    border-radius: 0 0 8px 8px;
    padding: 18px;
}

.form-actions {
    border-top: 1px solid rgba(216, 178, 92, .18);
    margin-top: 20px;
    padding-top: 18px;
}

.whisky-list-panel {
    border-top: 1px solid rgba(216, 178, 92, .18);
    padding-top: 18px;
}

.whisky-edit-table {
    min-width: 760px;
}

.whisky-edit-table .form-control-sm {
    min-width: 88px;
}

.whisky-edit-table .count-input {
    min-width: 0;
    text-align: center;
    width: 10ch;
}

.whisky-edit-table .whisky-name-input {
    min-width: 220px;
}

.whisky-row-actions {
    white-space: nowrap;
}

.whisky-create-row td {
    background: rgba(73, 111, 68, .22);
}

.compact-empty-state {
    min-height: 180px;
}

.photo-edit-card {
    align-items: stretch;
    background: rgba(16, 22, 16, .72);
    border: 1px solid rgba(216, 178, 92, .18);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
    min-height: 132px;
    padding: 12px;
}

.photo-edit-card img,
.photo-empty-preview {
    aspect-ratio: 4 / 3;
    background: #070907;
    border: 1px solid rgba(216, 178, 92, .18);
    border-radius: 8px;
    display: grid;
    height: 112px;
    object-fit: contain;
    place-items: center;
    width: 150px;
}

.photo-empty-preview i {
    color: var(--whisky-muted);
    font-size: 30px;
}

.photo-edit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.info-grid > div,
.letter-block,
.prompt-block,
.presentation-slide {
    background: rgba(16, 22, 16, .72);
    border: 1px solid rgba(216, 178, 92, .18);
    border-radius: 8px;
    padding: 16px;
}

.a4-actions,
.offerte-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-bottom: 18px;
}

.a4-page {
    background: #fffaf0;
    border: 1px solid rgba(216, 178, 92, .45);
    box-shadow: 0 20px 44px rgba(0, 0, 0, .28);
    color: #21170d;
    font-family: var(--whisky-font, Georgia, "Times New Roman", serif);
    line-height: 1.5;
    margin: 0 auto;
    min-height: 297mm;
    width: 210mm;
}

.offerte-a4 {
    font-size: 13.5pt;
    padding: 24mm 22mm;
}

.offerte-a4 h2 {
    color: #5b3518;
    font-size: 15pt;
    font-weight: 700;
    font-family: var(--whisky-font, Georgia, "Times New Roman", serif);
    margin: 18px 0 6px;
}

.offerte-a4 ul {
    margin-bottom: 18px;
    padding-left: 22px;
}

.offerte-a4 p {
    margin-bottom: 14px;
}

.detail-a4 {
    font-size: 10pt;
    padding: 15mm 14mm;
}

.detail-a4-header {
    border-bottom: 2px solid rgba(91, 53, 24, .35);
    margin-bottom: 10px;
    padding-bottom: 8px;
    text-align: center;
}

.detail-a4-header p {
    color: #6d4d18;
    font-size: 9pt;
    font-weight: 700;
    letter-spacing: .06em;
    margin: 0 0 3px;
    text-transform: uppercase;
}

.detail-a4-header h2 {
    color: #3a2414;
    font-size: 18pt;
    font-weight: 700;
    margin: 0;
}

.detail-a4-section {
    break-inside: avoid;
    margin-top: 9px;
}

.detail-a4-section h3 {
    background: #5b3518;
    color: #fff5d6;
    font-size: 10pt;
    font-weight: 700;
    margin: 0 0 5px;
    padding: 4px 7px;
}

.detail-a4-grid {
    display: grid;
    gap: 4px 8px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.detail-a4-field {
    border-bottom: 1px solid rgba(91, 53, 24, .16);
    min-width: 0;
    padding: 2px 0 4px;
}

.detail-a4-field.wide {
    grid-column: span 4;
}

.detail-a4-field strong {
    color: #6d4d18;
    display: block;
    font-size: 7.8pt;
    line-height: 1.2;
    text-transform: uppercase;
}

.detail-a4-field span {
    display: block;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.detail-a4-field.field-url span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-a4-field.field-url strong {
    color: #6d4d18;
    display: inline;
    font-size: inherit;
    margin-right: 4px;
    text-transform: none;
}

.detail-a4-photo {
    text-align: center;
}

.detail-a4-photo img {
    border: 1px solid rgba(91, 53, 24, .18);
    display: block;
    height: 72px;
    margin: 3px auto 0;
    object-fit: contain;
    width: 100%;
}

.detail-a4-table {
    border-collapse: collapse;
    font-size: 9pt;
    width: 100%;
}

.detail-a4-table th,
.detail-a4-table td {
    border-bottom: 1px solid rgba(91, 53, 24, .18);
    padding: 3px 5px;
    text-align: left;
}

.detail-a4-table th {
    color: #6d4d18;
    font-size: 7.8pt;
    text-transform: uppercase;
}

.info-grid .wide,
.edit-grid .wide {
    grid-column: 1 / -1;
}

.edit-grid-gegevens {
    grid-template-columns: minmax(160px, .45fr) minmax(260px, 1fr);
}

.edit-grid-gegevens .field-datum,
.edit-grid-gegevens .field-tijd,
.edit-grid-gegevens .field-titel,
.edit-grid-gegevens .field-locatie,
.edit-grid-gegevens .field-plaats,
.edit-grid-gegevens .field-organisator,
.edit-grid-gegevens .field-contactpersoon,
.edit-grid-gegevens .field-email {
    grid-column: auto;
}

.edit-grid-publiek {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.edit-grid-publiek .field-publiek {
    grid-column: 1 / -1;
}

.edit-grid-fotos {
    grid-template-columns: repeat(5, minmax(140px, 180px));
    justify-content: center;
}

.edit-grid-fotos .wide {
    grid-column: auto;
}

.info-grid strong {
    display: block;
    color: var(--whisky-gold);
    margin-bottom: 6px;
}

.info-grid span {
    white-space: pre-wrap;
}

.prompt-block {
    color: var(--whisky-cream);
    white-space: pre-wrap;
}

.presentation-slide {
    min-height: 58vh;
    display: grid;
    align-content: center;
    text-align: center;
}

.presentation-slide h2 {
    color: var(--whisky-gold);
    font-size: clamp(2rem, 6vw, 5rem);
}

.whisky-dropdown {
    background: #101610;
    border: 1px solid var(--whisky-border);
}

.whisky-dropdown .dropdown-item {
    color: var(--whisky-cream);
}

.whisky-dropdown .dropdown-item:hover {
    background: rgba(73, 111, 68, .36);
}

.toast-whisky {
    background: #101610;
    border: 1px solid var(--whisky-border);
    color: var(--whisky-cream);
}

.mobile-event-shell {
    margin: 0 auto;
    max-width: 680px;
}

.mobile-event-card {
    background: rgba(24, 33, 25, .95);
    border: 1px solid var(--whisky-border);
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
    padding: clamp(18px, 4vw, 30px);
}

.mobile-event-card h1 {
    color: var(--whisky-cream);
    font-size: clamp(1.45rem, 6vw, 2.35rem);
    font-weight: 700;
    line-height: 1.12;
    margin-bottom: 14px;
}

.mobile-event-fields {
    display: grid;
    gap: 8px;
}

.mobile-event-fields > div {
    background: rgba(16, 22, 16, .72);
    border: 1px solid rgba(216, 178, 92, .16);
    border-radius: 8px;
    padding: 9px 11px;
}

.mobile-event-fields strong {
    color: var(--whisky-gold);
    display: block;
    font-size: .85rem;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.mobile-event-fields span {
    color: var(--whisky-cream);
    display: block;
    font-size: 1rem;
    overflow-wrap: anywhere;
}

.mobile-info-panel {
    display: grid;
    gap: 6px;
}

.mobile-info-panel div {
    display: grid;
    gap: 6px;
    grid-template-columns: 96px minmax(0, 1fr);
}

.mobile-info-panel strong {
    margin-bottom: 0;
}

.mobile-photo-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.mobile-photo-row {
    align-items: center;
    background: rgba(16, 22, 16, .72);
    border: 1px solid rgba(216, 178, 92, .16);
    border-radius: 8px;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(92px, .8fr) minmax(0, 1fr);
    padding: 8px;
}

.mobile-photo-row > strong {
    color: var(--whisky-gold);
}

.mobile-photo-buttons,
.mobile-event-nav {
    display: grid;
    gap: 8px;
    grid-template-columns: 76px minmax(0, 1fr);
}

.mobile-event-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mobile-photo-buttons .btn,
.mobile-photo-buttons form,
.mobile-photo-buttons label {
    width: 100%;
}

.mobile-event-card .btn {
    font-size: .92rem;
    min-height: 38px;
    padding: .36rem .55rem;
}

.mobile-event-nav {
    margin-top: 12px;
}

.mobile-extra-form {
    border-top: 1px solid rgba(216, 178, 92, .18);
    display: grid;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
}

.mobile-number-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
}

.mobile-extra-form .form-label {
    font-size: .82rem;
    margin-bottom: 3px;
}

.mobile-extra-form textarea.form-control {
    min-height: 74px;
}

.mobile-photo-thumb {
    align-items: center;
    background: #070907;
    border: 1px solid rgba(216, 178, 92, .3);
    border-radius: 8px;
    display: grid;
    height: 48px;
    justify-items: center;
    overflow: hidden;
    padding: 0;
    width: 76px;
}

.mobile-photo-thumb img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.mobile-photo-thumb-empty {
    color: var(--whisky-muted);
}

.mobile-photo-panel {
    background: rgba(16, 22, 16, .88);
    border: 1px solid var(--whisky-border);
    border-radius: 8px;
    margin-top: 12px;
    padding: 8px;
}

.mobile-photo-heading {
    align-items: center;
    color: var(--whisky-gold);
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.mobile-photo-panel img {
    background: #070907;
    border-radius: 8px;
    display: block;
    max-height: 62vh;
    object-fit: contain;
    width: 100%;
}

.text-gold {
    color: var(--whisky-gold);
}

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

@media (max-width: 760px) {
    body {
        font-size: 16px;
        line-height: 1.55;
    }

    .app-main {
        padding: 14px 10px 32px !important;
    }

    .tool-surface,
    .detail-sheet,
    .auth-panel {
        border-radius: 8px;
        box-shadow: 0 14px 32px rgba(0, 0, 0, .28);
    }

    .detail-sheet,
    .auth-panel {
        padding: 14px;
    }

    .info-grid,
    .edit-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .table-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
        padding: 14px;
    }

    .search-wrap {
        width: 100%;
    }

    .form-control,
    .form-select,
    .btn {
        font-size: 1rem;
        min-height: 46px;
    }

    .btn-sm {
        min-height: 42px;
        padding: .48rem .7rem;
    }

    .btn-icon {
        height: 44px;
        width: 44px;
    }

    .result-count {
        font-size: .98rem;
    }

    .whisky-table-wrap {
        min-height: 0;
        overflow-x: visible;
    }

    .whisky-table-wrap .whisky-table {
        border-collapse: separate;
        border-spacing: 0 10px;
        min-width: 0;
    }

    .whisky-table-wrap .whisky-table thead {
        display: none;
    }

    .whisky-table-wrap .whisky-table tbody,
    .whisky-table-wrap .whisky-table tr,
    .whisky-table-wrap .whisky-table td {
        display: block;
        width: 100%;
    }

    .whisky-table-wrap .whisky-table tr {
        background: rgba(16, 22, 16, .9);
        border: 1px solid rgba(216, 178, 92, .22);
        border-radius: 8px;
        overflow: hidden;
    }

    .whisky-table-wrap .whisky-table td {
        align-items: start;
        background: transparent;
        border-bottom: 1px solid rgba(216, 178, 92, .12);
        display: grid;
        gap: 10px;
        grid-template-columns: 104px minmax(0, 1fr);
        min-height: 42px;
        padding: 10px 12px;
        white-space: normal;
        word-break: break-word;
    }

    .whisky-table-wrap .whisky-table td::before {
        color: var(--whisky-gold);
        content: "";
        font-weight: 700;
    }

    .whisky-table-wrap .whisky-table td:nth-child(1)::before {
        content: "Datum";
    }

    .whisky-table-wrap .whisky-table td:nth-child(2)::before {
        content: "Organisator";
    }

    .whisky-table-wrap .whisky-table td:nth-child(3)::before {
        content: "Plaats";
    }

    .whisky-table-wrap .whisky-table td:nth-child(4)::before {
        content: "Titel";
    }

    .whisky-table-wrap .whisky-table td.action-cell {
        border-bottom: 0;
        display: flex;
        justify-content: flex-end;
        min-width: 0;
        padding-top: 12px;
        white-space: normal;
    }

    .whisky-table-wrap .whisky-table td.action-cell::before {
        content: "";
        display: none;
    }

    .form-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
        scrollbar-width: thin;
    }

    .form-tabs .nav-link {
        min-height: 48px;
        padding: .65rem .85rem;
        white-space: nowrap;
    }

    .form-tab-content {
        padding: 14px;
    }

    .edit-grid-gegevens,
    .edit-grid-publiek {
        grid-template-columns: 1fr;
    }

    .edit-grid-fotos {
        grid-template-columns: 1fr;
        justify-content: center;
        overflow-x: visible;
    }

    .photo-edit-card {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .photo-edit-card img,
    .photo-empty-preview {
        height: auto;
        max-height: 220px;
        width: 100%;
    }

    .pagination-bar {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 14px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 4px;
    }

    .page-link {
        min-width: 40px;
        text-align: center;
    }

    .header-grid {
        grid-template-columns: auto 1fr;
        gap: 10px 12px;
        min-height: 0;
        padding-bottom: 10px;
        padding-top: 10px;
    }

    .brand-logo-link {
        align-self: center;
        grid-column: 1;
        grid-row: 1;
    }

    .app-title-link {
        font-size: 1.55rem;
        grid-column: 2;
        grid-row: 1;
        justify-self: start;
        max-width: none;
        text-align: left;
    }

    .header-actions {
        display: flex;
        flex-wrap: nowrap;
        grid-column: 1 / -1;
        justify-content: stretch !important;
        justify-self: stretch;
        overflow-x: auto;
        width: 100%;
    }

    .header-actions .btn,
    .header-actions form,
    .header-actions form button {
        flex: 0 0 auto;
    }

    .header-actions > a:first-child {
        flex: 1 1 auto;
        min-width: 82px;
    }

    .header-actions > a[title="Mobiele weergave"],
    .header-actions > a[title="Setup"],
    .header-actions form:has(button[title="Log uit"]) {
        flex: 0 0 46px;
    }

    .brand-logo {
        height: 64px;
        width: 64px;
    }

    .a4-actions,
    .offerte-actions {
        flex-wrap: wrap;
        justify-content: stretch;
    }

    .a4-actions .btn,
    .offerte-actions .btn {
        flex: 1;
    }

    .form-actions {
        margin-top: 16px;
    }

    .form-actions,
    .form-actions > div:last-child {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .form-actions > div:first-child {
        display: none;
    }

    .a4-page,
    .offerte-a4 {
        font-size: 11pt;
        min-height: auto;
        padding: 18px;
        width: 100%;
    }

    .detail-a4-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-a4-field.wide {
        grid-column: span 2;
    }

    .whisky-edit-table {
        min-width: 680px;
    }

    .whisky-edit-table .form-control-sm {
        min-height: 40px;
    }

    .whisky-list-panel .table-responsive {
        border: 1px solid rgba(216, 178, 92, .18);
        border-radius: 8px;
    }

    .flyer-modal .modal-body {
        min-height: calc(100vh - 120px);
        padding: 8px;
    }

    .flyer-modal img {
        max-height: calc(100vh - 130px);
    }

    .mobile-event-card {
        padding: 12px;
    }

    .mobile-photo-row {
        grid-template-columns: 86px minmax(0, 1fr);
    }

    .mobile-photo-buttons {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .mobile-event-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mobile-number-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 430px) {
    .app-title-link {
        font-size: 1.35rem;
    }

    .brand-logo {
        height: 56px;
        width: 56px;
    }

    .whisky-table-wrap .whisky-table td {
        grid-template-columns: 92px minmax(0, 1fr);
        padding: 9px 10px;
    }

    .detail-sheet,
    .auth-panel,
    .form-tab-content {
        padding: 12px;
    }

    .a4-actions .btn,
    .offerte-actions .btn,
    .form-actions .btn {
        flex: 1 1 100%;
    }

    .mobile-number-grid {
        gap: 6px;
    }
}

@media print {
    body {
        background: #fff;
        color: #000;
    }

    .app-header,
    .no-print,
    .toast-container {
        display: none !important;
    }

    .app-main {
        padding: 0;
    }

    .detail-sheet {
        background: transparent;
        border: 0;
        box-shadow: none;
        padding: 0;
    }

    .a4-page,
    .offerte-a4 {
        border: 0;
        box-shadow: none;
        margin: 0;
        min-height: auto;
        width: 210mm;
    }

    @page {
        size: A4;
        margin: 0;
    }
}
