:root {
    --paper: #fdf5ec;
    --ink: #1c0806;
    --muted: #7d5a50;
    --cream: #fffcf5;
    --line: #e5cdb8;
    --heroA: #f5d580;
    --heroB: #e8a820;
    --green: #9b1b30;   /* kesin rezervasyon: kadife kırmızı */
    --orange: #b8860b;  /* ön rezervasyon: antika altın */
    --blue: #6b1220;    /* düzenleme butonları: şarap */
    --chip: #fdeedd;
    --danger: #c0392b;
}

* {
    box-sizing: border-box;
}

body.ds-auth,
body.ds-halls {
    margin: 0;
    min-height: 100vh;
    font-family: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
    color: var(--ink);
    display: grid;
    place-items: center;
    padding: 24px;
}

body.ds-auth {
    background:
        radial-gradient(ellipse at 25% 15%, rgba(210, 170, 40, 0.35) 0%, transparent 50%),
        radial-gradient(ellipse at 75% 85%, rgba(155, 27, 48, 0.3) 0%, transparent 50%),
        linear-gradient(145deg, #180407 0%, #2d0c14 55%, #1a0809 100%);
}

body.ds-halls {
    background:
        radial-gradient(ellipse at 25% 15%, rgba(210, 170, 40, 0.35) 0%, transparent 50%),
        radial-gradient(ellipse at 75% 85%, rgba(155, 27, 48, 0.3) 0%, transparent 50%),
        linear-gradient(145deg, #180407 0%, #2d0c14 55%, #1a0809 100%);
}

.ds-auth-card,
.ds-halls-card {
    width: 100%;
    max-width: 520px;
    background: #fff9f0;
    border: 1px solid #c9970a;
    border-radius: 16px;
    box-shadow:
        0 0 0 1px rgba(212, 175, 55, 0.15),
        0 0 40px rgba(212, 175, 55, 0.22),
        0 24px 60px rgba(0, 0, 0, 0.65);
}

.ds-auth-card {
    max-width: 440px;
    padding: 28px;
}

.ds-halls-card {
    padding: 22px;
}

.ds-auth-title {
    margin: 0 0 6px;
    font-size: 28px;
}

.ds-auth-sub,
.ds-halls-sub {
    margin: 0 0 20px;
    color: var(--muted);
}

.ds-field-label {
    display: block;
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
}

.ds-input,
.ds-select,
.ds-textarea {
    width: 100%;
    border: 1px solid #d4b060;
    background: #fff;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
    font-size: 14px;
}

.ds-input:focus,
.ds-select:focus,
.ds-textarea:focus {
    outline: none;
    border-color: #c9970a;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.22);
}

.ds-btn-primary {
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #9b1b30, #6b1220);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: filter 0.15s ease;
}

.ds-btn-primary:hover {
    filter: brightness(1.12);
}

.ds-error {
    margin-bottom: 12px;
    border: 1px solid #f3c7c2;
    background: #fff0ee;
    color: var(--danger);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
}

.ds-help {
    margin-top: 14px;
    color: var(--muted);
    font-size: 13px;
}

.ds-logout-link {
    display: inline-block;
    margin-top: 8px;
    color: #d4aa30;
    font-weight: 700;
    text-decoration: none;
}

body.ds-dashboard {
    margin: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    font-family: "Trebuchet MS", "Lucida Sans", "Lucida Grande", sans-serif;
    background:
        radial-gradient(circle at 85% 2%, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0) 28%),
        radial-gradient(circle at 12% 18%, rgba(155, 27, 48, 0.08) 0%, rgba(155, 27, 48, 0) 34%),
        var(--paper);
}

.ds-top {
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    background: linear-gradient(120deg, #1e0508, #b1002b, #1e0610);
    color: #fef7ec;
    border-bottom: 2px solid rgba(212, 175, 55, 0.45);
}

.ds-top-inner {
    max-width: 1560px;
    margin: 0 auto;
    padding: 14px 16px;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
}

.ds-brand {
    display: flex;
    gap: 14px;
    align-items: center;
}

.ds-brand-badge {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(145deg, #f5d580, #c9970a);
    color: #1c0806;
    display: grid;
    place-items: center;
    font-weight: 900;
    box-shadow:
        inset 0 0 0 1px rgba(180, 130, 10, 0.45),
        0 2px 10px rgba(212, 175, 55, 0.4);
}

.ds-brand h1 {
    margin: 0;
    font-size: 20px;
    line-height: 1.1;
    letter-spacing: 0.4px;
}

.ds-brand small {
    opacity: 0.8;
    font-size: 12px;
}

.ds-top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ds-user-chip {
    font-size: 16px;
    opacity: 0.9;
}

.ds-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

/* default: light-bg contexts (year nav, modal close) */
.ds-btn-light {
    background: #fde8c0;
    color: #7b2010;
    border: 1px solid #d4b060;
}

/* header context: dark background → gold tint */
.ds-top .ds-btn-light {
    background: rgba(212, 175, 55, 0.15);
    color: #f5d580;
    border: 1px solid rgba(212, 175, 55, 0.38);
}

.ds-btn-dark {
    background: linear-gradient(135deg, #9b1b30, #6b1220);
    color: #fff;
}

.ds-wrap {
    max-width: 1560px;
    margin: 22px auto 40px;
    padding: 0 16px;
}

.ds-alert-success {
    margin-bottom: 12px;
    border: 1px solid #b7deca;
    background: #edf9f2;
    color: #1f5e42;
    padding: 10px 12px;
    border-radius: 10px;
}

.ds-alert-error {
    margin-bottom: 12px;
    border: 1px solid #efc3be;
    background: #fff2f1;
    color: #9f2f27;
    padding: 10px 12px;
    border-radius: 10px;
}

body.ds-dashboard main {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-top: 8px !important;
    padding-bottom: 4px !important;
}

.ds-hero {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 10px;
    margin-bottom: 8px;
}

.ds-hero-card {
    background: #a16d00;
    border: 1px solid #a16d00;
    border-radius: 12px;
    padding: 9px 14px;
    align-content: center;
}

.ds-hero-card h2 {
    margin: 0 0 8px;
    font-size: 26px;
}

.ds-hero-card p {
    margin: 0;
    color: #634f3a;
    font-size: 12px;
    line-height: 1.35;
}

.ds-hero-card-info {
    background: #eebe59;
    border-color: #eebe59;
    align-items: center;
}

.ds-hero-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.ds-hero-card-info h2 {
    font-size: 22px;
}

.ds-year-switch {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
}

.ds-year-jump-form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 2px;
}

.ds-year-jump-input {
    width: 86px;
    border: 1px solid #d4b060;
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 15px;
}

.ds-year-jump-btn {
    padding: 7px 10px;
}

.ds-btn-year {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
}

.ds-btn-year.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.ds-year-label {
    min-width: 64px;
    text-align: center;
    font-weight: 800;
    font-size: 16px;
    color: #9b1b30;
}

.ds-chip-row {
    margin-top: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ds-chip {
    background: var(--chip);
    border: 1px solid #c9970a;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 15px;
    font-weight: 700;
    color: #7a4010;
}

.ds-months {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 8px;
}

.ds-month-card {
    display: flex;
    flex-direction: column;
    background: var(--cream);
    border: 1px solid #ddc888;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(155, 27, 48, 0.06), 0 1px 3px rgba(212, 175, 55, 0.12);
    animation: dsReveal 0.35s ease both;
}

.ds-month-head {
    flex-shrink: 0;
    padding: 5px 10px;
    border-bottom: 1px solid #ddc060;
    background: #eebe59;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ds-month-head small {
    font-size: 1.25em;
}
.ds-month-name {
    font-size: 1.25em;
    font-weight: 800;
    color: #7b1428;
}

.ds-weekday {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-bottom: 1px solid var(--line);
    background: #fff9ec;
}

.ds-weekday div {
    text-align: center;
    padding: 2px 1px;
    font-size: 13px;
    color: var(--muted);
}

.ds-calendar {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: 1fr;
    align-content: start;
}

.ds-day {
    min-height: 0;
    border-right: 1px solid #f0ddc8;
    border-bottom: 1px solid #f0ddc8;
    padding: 3px;
    cursor: pointer;
    background: #fff;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.ds-day.is-today {
    background: #fff3cd;
    box-shadow: inset 0 0 0 2px #d4af37;
}

.ds-day.is-today .ds-day-num {
    color: #7b1428;
    font-weight: 800;
}

.ds-day.is-holiday .ds-day-num,
.ds-day.is-holiday.is-today .ds-day-num {
    color: #c0392b;
    font-weight: 800;
}

.ds-holiday-name {
    font-size: 9px;
    line-height: 1.1;
    margin-bottom: 2px;
    color: #c0392b;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ds-day:hover {
    transform: translateY(-1px);
    box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.6);
    background: #fffcf0;
}

.ds-day.empty {
    cursor: default;
    background: #fffdf8;
}

.ds-day-num {
    font-size: 18px;
    color: #000;
    margin-bottom: 2px;
    line-height: 1;
    text-align: center;
}

.ds-slots {
    display: flex;
    gap: 3px;
}

.ds-slot {
    flex: 1;
    height: 20px;
    border-radius: 3px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    display: grid;
    place-items: center;
    background: #e9ddcb;
    text-decoration: underline;
    text-decoration-thickness: 3px;
}

.ds-slot.sabah.kesin,
.ds-slot.aksam.kesin {
    background: orange;
}

.ds-slot.sabah.on,
.ds-slot.aksam.on {
    background: black;
}

.ds-slot.empty {
    background: transparent;
    color: transparent;
    box-shadow: none;
}

.ds-legend {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 18px;
    color: black;
}

.ds-hero-meta-row .ds-legend {
    justify-content: flex-end;
}

.ds-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 4px;
}

.ds-dot.g { background: orange; }
.ds-dot.o { background: black; }
.ds-dot.n { background: #b9a791; }

.ds-modal {
    position: fixed;
    inset: 0;
    background: rgba(23, 16, 11, 0.56);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.ds-modal.show {
    display: flex;
}

.ds-modal-card {
    width: min(760px, 100%);
    background: #fff;
    border-radius: 14px;
    border: 1px solid #dfd3c2;
    overflow: hidden;
}

.ds-modal-card.form-wide {
    width: min(980px, 100%);
}

.ds-modal-head {
    background: linear-gradient(135deg, #fff4cc, #fde8a0);
    border-bottom: 1px solid #d4aa30;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ds-modal-body {
    padding: 14px;
    max-height: 65vh;
    overflow: auto;
}

.ds-modal-foot {
    padding: 12px 14px;
    border-top: 1px solid #e0c878;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.ds-modal-note {
    color: #7b6a57;
}

.ds-empty-note,
.ds-loading-note {
    margin: 0;
    color: #705f4e;
}

.ds-load-error {
    color: #9f2f27;
}

.ds-event-item {
    border: 1px solid #e0c878;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 8px;
    background: #fffcf5;
}

.ds-event-title {
    font-size: 14px;
    font-weight: 800;
}

.ds-event-meta {
    font-size: 12px;
    color: #776351;
    margin-top: 4px;
}

.ds-event-actions {
    margin-top: 8px;
    display: flex;
    gap: 8px;
}

.ds-event-actions .ds-btn {
    padding: 7px 10px;
    font-size: 12px;
}

.ds-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ds-menu-toolbar {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 8px;
    margin-bottom: 10px;
}

.ds-menu-card {
    border: 1px solid #e0c878;
    border-radius: 10px;
    background: #fffcf5;
    overflow: hidden;
}

.ds-menu-head {
    padding: 8px 10px;
    border-bottom: 1px solid #ecd8aa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.ds-menu-head h6 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    text-transform: uppercase;
}

.ds-menu-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.ds-menu-actions .ds-btn {
    padding: 6px 8px;
    font-size: 13px;
}

.ds-menu-badge {
    display: inline-block;
    margin-left: 6px;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 13px;
    line-height: 1.2;
    vertical-align: middle;
}

.ds-menu-badge.active {
    background: #e7f8ef;
    color: #1f7a4d;
    border: 1px solid #9ad4b5;
}

.ds-menu-badge.passive {
    background: #fef2f0;
    color: #9f2f27;
    border: 1px solid #f1c3be;
}

.ds-menu-body {
    padding: 9px 10px;
    font-size: 12px;
    color: #5f4d3d;
}

.ds-menu-section {
    margin-bottom: 6px;
    line-height: 1.4;
    font-size: 15px;
    color: black;
}

.ds-menu-section strong {
    text-transform: uppercase;
}

.ds-menu-section:last-child {
    margin-bottom: 0;
}

.ds-btn-edit {
    background: linear-gradient(135deg, #9b1b30, #6b1220);
    color: #fff;
}

.ds-btn-cancel {
    background: linear-gradient(135deg, #c0392b, #8e1a1a);
    color: #fff;
}

.ds-btn-warn {
    background: linear-gradient(135deg, #b8860b, #8a6708);
    color: #fff;
}

.ds-ef-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ds-ef-col-2 {
    grid-column: span 2;
}

.ds-ef-label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #5f4d3d;
}

.ds-ef-input,
.ds-ef-select,
.ds-ef-text {
    width: 100%;
    border: 1px solid #d4b060;
    border-radius: 8px;
    padding: 9px 10px;
    font-size: 15px;
}

.ds-ef-input:focus,
.ds-ef-select:focus,
.ds-ef-text:focus {
    outline: none;
    border-color: #c9970a;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.22);
}

.ds-ef-text {
    min-height: 72px;
    resize: vertical;
}

.ds-ef-alert {
    margin-bottom: 10px;
    border: 1px solid #efc3be;
    background: #fff2f1;
    color: #9f2f27;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
}

.ds-ef-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.ds-ef-btn {
    border: 0;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.ds-ef-save {
    background: linear-gradient(135deg, #9b1b30, #6b1220);
    color: #fff;
    transition: filter 0.15s ease;
}

.ds-ef-save:hover {
    filter: brightness(1.12);
}

.ds-ef-close {
    background: #fde8c0;
    color: #5a3010;
    border: 1px solid #d4b060;
}

@keyframes dsReveal {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1500px) {
    .ds-months {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .ds-hero {
        grid-template-columns: 1fr;
    }

    .ds-hero-meta-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .ds-hero-meta-row .ds-legend {
        justify-content: flex-start;
    }
}

@media (max-width: 1120px) {
    .ds-months {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ds-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .ds-months {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ds-top-inner {
        flex-wrap: wrap;
    }
}

@media (max-width: 920px) {
    .ds-months {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ds-top-actions {
        flex-wrap: wrap;
        justify-content: flex-start !important;
        gap: 8px;
    }

    .ds-user-chip {
        flex: 1 1 100%;
        line-height: 1.35;
    }
}

@media (max-width: 768px) {
    body.ds-dashboard {
        height: auto;
        min-height: 100dvh;
        overflow: auto;
    }

    body.ds-dashboard main {
        overflow: auto;
        padding-bottom: 10px !important;
    }

    .ds-top {
        position: sticky;
        top: 0;
    }

    .ds-top .container-fluid {
        padding: 10px 10px !important;
        row-gap: 8px;
    }

    .ds-brand,
    .ds-top-actions {
        width: 100%;
        max-width: 100%;
    }

    .ds-brand {
        gap: 10px;
        align-items: flex-start;
    }

    .ds-brand-badge {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        font-size: 13px;
    }

    .ds-brand h1 {
        font-size: 18px;
    }

    .ds-brand small {
        display: block;
        line-height: 1.2;
    }

    .ds-top-actions .ds-btn {
        min-height: 38px;
        padding: 8px 11px;
        font-size: 12px;
    }

    .ds-user-chip {
        width: 100%;
        display: block;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.35;
    }

    .ds-hero-card {
        padding: 10px;
    }

    .ds-hero-meta-row {
        gap: 10px;
    }

    .ds-year-switch {
        flex-wrap: wrap;
    }

    .ds-months {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .ds-month-card {
        min-height: 240px;
    }

    .ds-calendar {
        min-height: 180px;
        grid-auto-rows: minmax(24px, 1fr);
    }

    .ds-month-head {
        padding: 6px 8px;
    }

    .ds-day {
        padding: 4px;
    }

    .ds-event-actions,
    .ds-ef-actions,
    .ds-modal-foot {
        flex-wrap: wrap;
    }

    .ds-modal {
        padding: 12px;
        align-items: center;
    }

    .ds-modal-card,
    .ds-modal-card.form-wide {
        width: min(980px, 100%);
        max-width: 100%;
        max-height: 90dvh;
        border-radius: 14px;
        display: flex;
        flex-direction: column;
    }

    .ds-modal-head,
    .ds-modal-foot {
        padding: 10px 12px;
    }

    .ds-modal-body {
        padding: 12px;
        max-height: none;
        flex: 1;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    .ds-ef-btn,
    .ds-btn {
        min-height: 40px;
    }
}

@media (max-width: 480px) {
    .ds-months {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .ds-month-card {
        min-height: 220px;
    }

    .ds-calendar {
        min-height: 170px;
        grid-auto-rows: minmax(22px, 1fr);
    }

    .ds-weekday div {
        font-size: 9px;
    }

    .ds-day-num {
        font-size: 9px;
    }

    .ds-slot {
        height: 10px;
        font-size: 7px;
    }

    .ds-hero-card-info h2,
    .ds-hero-card h2 {
        font-size: 18px;
    }
}

@media (max-width: 640px) {
    .ds-ef-grid {
        grid-template-columns: 1fr;
    }

    .ds-ef-col-2 {
        grid-column: span 1;
    }

    .ds-menu-grid {
        grid-template-columns: 1fr;
    }

    .ds-menu-toolbar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .ds-months {
        grid-template-columns: 1fr;
    }
}

body.ds-event-page {
    margin: 0;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    background:
        radial-gradient(ellipse at 15% 5%, rgba(212, 175, 55, 0.15) 0%, transparent 42%),
        radial-gradient(ellipse at 85% 95%, rgba(155, 27, 48, 0.09) 0%, transparent 42%),
        linear-gradient(160deg, #fdf5ec 0%, #f8eedd 50%, #f5e4cc 100%);
    color: #1c0806;
}

.ds-event-wrap {
    max-width: 1180px;
    margin: 20px auto 40px;
    padding: 0 16px;
}

.ds-event-top {
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.ds-event-top h1 {
    margin: 0;
    font-size: 25px;
}

.ds-event-meta {
    color: #776956;
    font-size: 13px;
}

.ds-event-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    padding: 10px 13px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.ds-event-btn-back {
    background: #fde8c0;
    color: #5a3010;
    border: 1px solid #d4b060;
}

.ds-event-btn-save {
    background: linear-gradient(120deg, #9b1b30, #6b1220);
    color: #fff;
    transition: filter 0.15s ease;
}

.ds-event-btn-save:hover {
    filter: brightness(1.12);
}

.ds-event-card {
    background: #fffcf5;
    border: 1px solid #d4b878;
    border-radius: 14px;
    padding: 16px;
}

.ds-event-error {
    margin-bottom: 12px;
    border: 1px solid #efc2bd;
    background: #fff2f1;
    color: #b13a31;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
}

.ds-event-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.ds-event-col-2 {
    grid-column: span 2;
}

.ds-event-col-4 {
    grid-column: span 4;
}

.ds-event-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #594c3e;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.ds-event-input,
.ds-event-select,
.ds-event-text {
    width: 100%;
    border: 1px solid #d4b060;
    background: #fff;
    border-radius: 9px;
    padding: 10px 11px;
    font-size: 14px;
    color: #1c0806;
}

.ds-event-input:focus,
.ds-event-select:focus,
.ds-event-text:focus {
    outline: none;
    border-color: #c9970a;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

.ds-event-text {
    min-height: 84px;
    resize: vertical;
}

.ds-event-actions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.ds-event-hint {
    color: #776956;
    font-size: 12px;
    margin-top: 3px;
}

@media (max-width: 980px) {
    .ds-event-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ds-event-col-4 {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .ds-event-grid {
        grid-template-columns: 1fr;
    }

    .ds-event-col-2,
    .ds-event-col-4 {
        grid-column: span 1;
    }
}

/* ── Ensure modal tables are horizontally scrollable on mobile ── */
@media (max-width: 600px) {
    .ds-modal-body .ds-report-table {
        font-size: 12px;
    }

    .ds-modal-body .ds-report-table th,
    .ds-modal-body .ds-report-table td {
        padding: 6px 8px;
        white-space: nowrap;
    }
}
