: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;
    --z-toast: 6000;
    --z-modal-base: 3000;
    --z-modal-raise-1: 3100;
    --z-modal-raise-2: 3200;
    --font-body: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
    --font-dashboard: "Trebuchet MS", "Lucida Sans", "Lucida Grande", sans-serif;
}

* {
    box-sizing: border-box;
}

body.ds-auth,
body.ds-halls {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    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%);
}

body.ds-halls-manage {
    background: var(--paper);
    color: var(--ink);
    min-height: 100vh;
    font-family: var(--font-body);
}

.ds-halls-header {
    background: linear-gradient(135deg, #1c0806 0%, #2d0c14 60%, #1a0809 100%);
    border-bottom: 2px solid #c9970a;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ds-halls-header h1 {
    margin: 0;
    font-size: 20px;
    color: #f5d580;
    letter-spacing: .5px;
}

.ds-halls-header small {
    color: #c9a64a;
    font-size: 13px;
}

.ds-halls-header .ds-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ds-halls-body {
    max-width: 1100px;
    margin: 28px auto;
    padding: 0 16px;
}

.ds-halls-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 12px;
}

.ds-halls-toolbar h2 {
    margin: 0;
    font-size: 18px;
    color: var(--ink);
}

.ds-hall-count {
    font-size: 14px;
    font-weight: 400;
}

.ds-add-hall-btn {
    background: #9b1b30;
    color: #fff;
    font-weight: 600;
    padding: 7px 18px;
}

.ds-halls-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff9f0;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .07);
}

.ds-halls-table thead tr {
    background: #2d0c14;
    color: #f5d580;
}

.ds-halls-table thead th {
    padding: 12px 14px;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.ds-halls-table tbody tr {
    border-bottom: 1px solid var(--line);
    transition: background .15s;
}

.ds-halls-table tbody tr:last-child {
    border-bottom: none;
}

.ds-halls-table tbody tr:hover {
    background: #fdf0dc;
}

.ds-halls-table tbody td {
    padding: 11px 14px;
    font-size: 14px;
    vertical-align: middle;
}

.ds-badge-active {
    background: #e6f4ea;
    color: #1a6b2e;
    border: 1px solid #a8d5b4;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 600;
}

.ds-badge-passive {
    background: #fce8e8;
    color: #a33;
    border: 1px solid #f2b0b0;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 600;
}

.ds-row-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.ds-date-cell {
    white-space: nowrap;
    font-size: 12px;
    color: var(--muted);
}

.ds-btn-sm {
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: opacity .15s;
}

.ds-btn-sm:hover {
    opacity: .82;
}

.ds-btn-edit {
    background: #6b1220;
    color: #fff;
}

.ds-btn-toggle {
    background: #b8860b;
    color: #fff;
}

.ds-btn-toggle.to-active {
    background: #1a6b2e;
}

.ds-empty-row td {
    text-align: center;
    padding: 32px;
    color: var(--muted);
    font-style: italic;
}

.ds-toast-wrap {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ds-toast {
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    max-width: 340px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
    animation: ds-slide-in .25s ease;
}

.ds-toast.success {
    background: #1a6b2e;
    color: #fff;
}

.ds-toast.error {
    background: #a33;
    color: #fff;
}

@keyframes ds-slide-in {
    from {
        transform: translateX(60px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.modal-header {
    background: #2d0c14;
    border-bottom: 1px solid #c9970a;
}

.modal-title {
    color: #f5d580;
}

.btn-close {
    filter: invert(1);
}

.ds-modal-footer {
    border-top: 1px solid var(--line);
}

.ds-status-wrap {
    display: none;
}

.ds-save-btn {
    background: #9b1b30;
    color: #fff;
    font-weight: 600;
    min-width: 100px;
}

.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-auth-logo-wrap {
    display: flex;
    justify-content: center;
    margin: 0 0 12px;
}

.ds-auth-logo {
    width: 100px;
    height: 100px;
    padding: 5px;
    border-radius: 16px;
    object-fit: cover;
    border: 1px solid rgba(201, 151, 10, 0.45);
    box-shadow: 0 8px 22px rgba(28, 8, 6, 0.2);
    background: #fff;
}

.ds-halls-card {
    padding: 22px;
}

.ds-halls-select-card {
    max-width: 560px;
}

.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;
}

.ds-logout-link-btn {
    margin-top: 4px;
    font-weight: 700;
}

.ds-default-check {
    color: var(--muted);
    font-size: 14px;
}

.ds-default-check .form-check-input {
    border-color: #d4b060;
}

.ds-default-check .form-check-input:checked {
    background-color: #9b1b30;
    border-color: #9b1b30;
}

.ds-default-check .form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(155, 27, 48, 0.18);
}

.ds-input-readonly {
    background: #f8f9fa;
    cursor: default;
}

.ds-hidden-initial {
    display: none;
}

.ds-loading-panel {
    padding: 16px;
    text-align: center;
    color: #999;
}

.ds-modal-card-sm {
    max-width: 520px;
}

.ds-modal-card-md {
    max-width: 560px;
}

.ds-modal-card-lg {
    max-width: 820px;
}

.ds-payments-body {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
}

.ds-modal-card-xs {
    max-width: 400px;
}

.ds-note-spaced {
    margin-bottom: 10px;
}

.ds-option-check {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
}

.ds-actions-top {
    margin-top: 10px;
}

.ds-section-top {
    margin-top: 20px;
}

.ds-toolbar-inline {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.ds-toolbar-grid {
    display: grid;
    gap: 10px;
}

.ds-aux-text {
    color: var(--muted);
    font-size: 11px;
}

.ds-logo-preview {
    max-height: 60px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px;
    background: #fafafa;
}

.ds-compact-danger-btn {
    margin-left: 10px;
    padding: 3px 10px;
    font-size: 15px;
}

.ds-status-options {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 4px;
}

.ds-status-option,
.ds-permission-option,
.ds-inline-choice {
    display: flex;
    gap: 6px;
    align-items: center;
    cursor: pointer;
}

.ds-permission-option {
    gap: 8px;
}

.ds-halls-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.ds-margin-reset {
    margin: 0;
}

.ds-activity-toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    border: 1px solid #e2c893;
    border-radius: 10px;
    padding: 10px;
    background: linear-gradient(180deg, #fffdf8, #fff4e0);
}

.ds-flex-grow-input {
    flex: 1;
    min-width: 180px;
}

.ds-filter-select {
    min-width: 140px;
}

.ds-pagination-wrap {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    padding-top: 8px;
    border-top: 1px dashed #dcc395;
}

.ds-confirm-message {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

.ds-confirm-actions {
    justify-content: flex-end;
    gap: 10px;
}

.ds-btn-danger-gradient {
    background: linear-gradient(135deg, #9b1b30, #6b1220);
    color: #fff;
}

.ds-toast-layer {
    z-index: var(--z-toast) !important;
}

body.ds-dashboard {
    margin: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    font-family: var(--font-dashboard);
    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 .container-fluid {
    max-width: 1560px;
    margin: 0 auto;
}

.ds-top .row {
    padding: 6px 12px !important;
}

.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: 36px;
    height: 36px;
    border-radius: 10px;
    background: white;
    padding: 5px;
    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);
    overflow: hidden;
}

.ds-brand-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ds-brand h1 {
    margin: 0;
    font-size: 17px;
    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;
    flex-wrap: wrap;
}

.ds-actions-menu {
    position: relative;
}

.ds-actions-menu>summary {
    list-style: none;
    position: relative;
    padding-right: 28px;
}

.ds-actions-menu>summary::-webkit-details-marker {
    display: none;
}

.ds-actions-menu>summary::after {
    content: "▾";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-52%);
    font-size: 12px;
    opacity: 0.8;
    transition: transform .18s ease;
}

.ds-actions-menu[open]>summary::after {
    transform: translateY(-52%) rotate(180deg);
}

.ds-actions-menu[open]>summary {
    background: rgba(212, 175, 55, 0.26);
    border-color: rgba(245, 213, 128, 0.72);
}

.ds-actions-menu-list {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 236px;
    background: linear-gradient(180deg, #fffdf8, #fff5e5);
    border: 1px solid #d4b060;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    padding: 10px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transform-origin: top right;
    animation: dsActionsMenuIn .16s ease-out;
}

.ds-actions-menu-head {
    margin: 0;
    padding: 2px 4px 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #7c3d1a;
    border-bottom: 1px solid rgba(212, 175, 55, 0.35);
}

.ds-actions-menu-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ds-actions-menu-group+.ds-actions-menu-group {
    margin-top: 2px;
    padding-top: 8px;
    border-top: 1px dashed #e6cd94;
}

.ds-actions-menu-title {
    margin: 0;
    padding: 0 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #9a6a2a;
}

.ds-actions-menu-item {
    width: 100%;
    border: 1px solid #ead7c1;
    background: #fff;
    color: #5b2f17;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    padding: 9px 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform .12s ease, background .16s ease, border-color .16s ease;
}

.ds-actions-menu-item::before {
    content: attr(data-icon);
    width: 18px;
    text-align: center;
    font-size: 14px;
}

.ds-actions-menu-item:hover {
    background: #fff3df;
    border-color: #d4b060;
    transform: translateX(2px);
}

.ds-actions-menu-item:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
}

.ds-actions-menu-foot {
    margin: 2px 0 0;
    padding: 7px 8px 0;
    border-top: 1px solid rgba(212, 175, 55, 0.28);
    font-size: 11px;
    color: #8b5c23;
    opacity: 0.92;
}

@keyframes dsActionsMenuIn {
    from {
        opacity: 0;
        transform: translateY(-4px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ds-user-chip {
    cursor: default;
    pointer-events: none;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ds-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 0;
    border-radius: 10px;
    padding: 9px 13px;
    font-size: 13px;
    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);
    transition: background .16s ease, border-color .16s ease, color .16s ease, transform .12s ease, box-shadow .16s ease;
}

.ds-top .ds-btn-light:hover {
    background: rgba(212, 175, 55, 0.24);
    border-color: rgba(245, 213, 128, 0.72);
    color: #fff2cc;
    transform: translateY(-1px);
}

.ds-top .ds-btn-light:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(245, 213, 128, 0.25);
}

.ds-top .ds-btn-top-notify {
    background: rgba(245, 213, 128, 0.2);
    color: #ffe6b2;
}

.ds-top .ds-btn-top-search,
.ds-top .ds-btn-top-ops {
    background: rgba(212, 175, 55, 0.1);
}

.ds-top .ds-btn-top-primary {
    background: linear-gradient(135deg, #f0c96e, #dfa93a);
    color: #4f1a10;
    border: 1px solid #f5d580;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.35);
}

.ds-top .ds-btn-top-primary:hover {
    background: linear-gradient(135deg, #f5d580, #e5b44d);
    border-color: #ffe7b1;
    box-shadow: 0 6px 14px rgba(212, 175, 55, 0.42);
}

.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: 12px;
    margin-bottom: 10px;
}

.ds-hero-card {
    background: linear-gradient(135deg, #f8e4bb 0%, #efcf8a 100%);
    border: 1px solid #d6b16a;
    border-radius: 15px;
    padding: 5px 15px;
    align-content: center;
    box-shadow: 0 8px 18px rgba(112, 74, 24, 0.11);
}

.ds-hero-card h2 {
    margin: 0 0 8px;
    font-size: 26px;
}

.ds-hero-card p {
    margin: 0;
    color: #5e452d;
    font-size: 13px;
    line-height: 1.35;
}

.ds-hero-card-info {
    background: linear-gradient(135deg, #ffeec8 0%, #f6d88e 100%);
    border-color: #d9bb76;
    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;
    padding: 8px 10px;
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 12px;
    background: rgba(255, 251, 241, 0.7);
}

.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 {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ds-chip {
    background: var(--chip);
    border: 1px solid #c9970a;
    border-radius: 15px;
    padding: 6px 11px;
    font-size: 13px;
    font-weight: 700;
    color: #7a4010;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.08);
    align-content: center;
}

.ds-chip-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 4px 12px 4px 7px;
}

.ds-chip-brand img {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    object-fit: cover;
    border: 1px solid rgba(201, 151, 10, 0.45);
    background: #fff;
    padding: 2px;
}

.ds-chip-brand span {
    white-space: nowrap;
    font-size: 15px;
    text-transform: uppercase;
}

.ds-chip-separator {
    opacity: 0.8;
    margin-left: 2px;
}

.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 #d9c083;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 14px rgba(155, 27, 48, 0.08), 0 1px 3px rgba(212, 175, 55, 0.14);
    animation: dsReveal 0.35s ease both;
}

.ds-month-head {
    flex-shrink: 0;
    padding: 6px 10px;
    border-bottom: 1px solid #d6b56d;
    background: linear-gradient(135deg, #f5d899 0%, #ecbf59 100%);
    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;
    text-transform: uppercase;
}

.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: 3px 1px;
    font-size: 12px;
    font-weight: 700;
    color: #7d5b3f;
    letter-spacing: 0.2px;
}

.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;
    border-color: #ddaf7d;
    padding: 3px 4px 28px;
    cursor: pointer;
    background: linear-gradient(180deg, #fff 0%, #fffaf1 100%);
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.18s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.ds-day.is-weekend {
    background: #dfdfdf;
}

.ds-day.is-today {
    background: linear-gradient(180deg, #fff6db 0%, #ffefc2 100%);
    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-day.is-school-holiday .ds-day-num,
.ds-day.is-school-holiday.is-today .ds-day-num {
    color: #0b62d6;
    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.65), 0 3px 8px rgba(155, 27, 48, 0.1);
    background: linear-gradient(180deg, #fffef9 0%, #fff5de 100%);
}

.ds-day:focus-visible {
    outline: 0;
    box-shadow: inset 0 0 0 2px #9b1b30, 0 0 0 3px rgba(155, 27, 48, 0.22);
}
}

.ds-day.is-weekend:hover {
    background: linear-gradient(180deg, #f5f5f5 0%, #ebebeb 100%);
}

.ds-day.empty {
    cursor: default;
    background: linear-gradient(180deg, #fffefb 0%, #fbf5e7 100%);
}

.ds-day.ds-day-overflow {
    pointer-events: none;
    opacity: 0.72;
}

.ds-day.ds-day-overflow .ds-day-num {
    color: #ccc0b0;
    font-weight: 500;
    opacity: 0.9;
}

.ds-day.ds-day-overflow .ds-slots {
    opacity: 0.45;
}

.ds-day.ds-day-overflow.is-holiday .ds-day-num {
    color: #c0392b;
    font-weight: 700;
}

.ds-day.ds-day-overflow.is-school-holiday .ds-day-num {
    color: #0b62d6;
    font-weight: 700;
}

.ds-day-num {
    font-size: 18px;
    color: #2f1c11;
    margin-bottom: 0;
    line-height: 1;
    text-align: center;
    padding: 3px 2px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.72);
}

.ds-slots {
    display: flex;
    gap: 3px;
    margin-top: 0;
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: 4px;
}

.ds-slot {
    flex: 1;
    height: 20px;
    border-radius: 5px;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: grid;
    place-items: center;
    background: #e9ddcb;
    border: 1px solid rgba(120, 84, 50, 0.16);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

.ds-slot.sabah.kesin,
.ds-slot.aksam.kesin {
    background: linear-gradient(180deg, #f09a2d 0%, #dd7f08 100%);
}

.ds-slot.sabah.on,
.ds-slot.aksam.on {
    background: linear-gradient(180deg, #2b9f44 0%, #1f7f35 100%);
}

.ds-slot.empty {
    background: transparent;
    color: transparent;
    border: none;
    box-shadow: none;
}

.ds-legend {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 18px;
    color: black;
}

.ds-hero-meta-row .ds-legend {
    margin-left: auto;
    padding-left: 14px;
    border-left: 1px solid rgba(138, 92, 29, 0.35);
    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: green;
}

.ds-dot.n {
    background: #b9a791;
}

.ds-modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal-base);
    background: rgba(23, 16, 11, 0.56);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.ds-modal.show {
    display: flex;
}

/* Üst modal: paymentsModal gibi diğer modalların üstünde görünmeli */
#quickPaymentModal {
    z-index: var(--z-modal-raise-1);
}

/* Arama modalının üstünde açılması gereken modallar */
#eventFormModal,
#rescheduleModal,
#dsConfirmModal {
    z-index: var(--z-modal-raise-2);
}

.ds-modal-card {
    width: min(760px, 100%);
    background: #fff;
    border-radius: 14px;
    border: 1px solid #dfd3c2;
    overflow: hidden;
    box-shadow: 0 20px 46px rgba(23, 14, 8, 0.35);
}

.ds-modal-card.form-wide {
    width: min(980px, 100%);
}

.ds-modal-head {
    background: linear-gradient(120deg, #fff7de 0%, #f4d48b 100%);
    border-bottom: 1px solid #d1a858;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ds-modal-head strong {
    font-size: 16px;
    color: #5e2f10;
    letter-spacing: 0.25px;
    line-height: 1.2;
}

.ds-modal-head .ds-btn {
    min-height: 34px;
    padding: 7px 11px;
}

.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-report-result-area {
    display: none;
    margin-top: 20px;
}

.ds-report-actions-end {
    margin-bottom: 15px;
    justify-content: flex-end;
}

.ds-text-center {
    text-align: center;
}

.ds-report-summary {
    margin-top: 10px;
    font-size: 14px;
    text-align: center;
}

.ds-report-summary-lg {
    margin-top: 15px;
}

.ds-text-danger-strong {
    color: #9b1b30;
    font-weight: bold;
}

.ds-text-success-strong {
    color: green;
    font-weight: bold;
}

.ds-text-gold-strong {
    color: #c6cc52;
    font-weight: bold;
}

.ds-text-muted-sm {
    font-size: 13px;
}

.ds-text-body {
    font-size: 15px;
}

.ds-font-bold {
    font-weight: bold;
}

.ds-font-medium {
    font-weight: 500;
}

.ds-metric-wrap {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.ds-metric-value {
    font-size: 48px;
    font-weight: 800;
    color: #9b1b30;
}

.ds-metric-subtitle {
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 16px;
}

.ds-progress-shell {
    background: #f0e8e9;
    border-radius: 8px;
    height: 20px;
    overflow: hidden;
    margin-bottom: 16px;
}

.ds-progress-bar {
    background: #c6cc52;
    height: 100%;
    transition: width .5s;
}

.ds-report-table-wrap {
    overflow-x: auto;
}

.ds-report-table-wide {
    width: 100%;
    border-collapse: collapse;
}

.ds-report-table-narrow {
    max-width: 400px;
    margin: 0 auto;
}

.ds-report-tip-summary {
    margin-right: 16px;
}

.ds-table-empty-cell {
    text-align: center;
    color: #999;
    padding: 16px;
}

.ds-loading-inline {
    text-align: center;
    color: #999;
    padding: 16px;
}

.ds-error-inline {
    color: #dc3545;
    text-align: center;
    padding: 8px 0;
}

.ds-empty-inline {
    color: #999;
    text-align: center;
    padding: 8px 0;
}

.ds-simple-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    border: 1px solid #ead7c1;
    border-radius: 10px;
    overflow: hidden;
}

.ds-simple-table thead tr {
    background: linear-gradient(135deg, #f8e0a8, #edc372);
    font-size: 13px;
}

.ds-simple-table th {
    padding: 9px 10px;
    border-bottom: 1px solid #d8b56b;
    color: #4d2b14;
    font-weight: 700;
    white-space: nowrap;
}

.ds-simple-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #efe1ca;
    vertical-align: middle;
}

.ds-simple-table tbody tr:nth-child(even) {
    background: #fffdf8;
}

.ds-simple-table tbody tr:hover {
    background: #fff4df;
}

.ds-simple-table .is-right {
    text-align: right;
}

.ds-simple-table .is-left {
    text-align: left;
}

.ds-simple-table .text-muted-cell {
    color: #666;
}

.ds-simple-table .nowrap-cell {
    white-space: nowrap;
}

.ds-simple-table .is-faded {
    opacity: 0.65;
}

.ds-table-action-btn {
    border: none;
    border-radius: 7px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
    transition: filter 0.15s ease, transform 0.12s ease;
}

.ds-table-action-btn:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.ds-table-action-btn-danger {
    background: linear-gradient(135deg, #ce4237, #a72a20);
    color: #fff;
}

.ds-table-action-btn-success {
    background: linear-gradient(135deg, #2a9b44, #1d7a33);
    color: #fff;
    margin-right: 6px;
}

.ds-payment-list .ds-table-action-btn+.ds-table-action-btn {
    margin-left: 6px;
}

.ds-payment-list .ds-simple-table td:last-child {
    white-space: nowrap;
}

.ds-slot-full-note {
    color: #9b1b30;
    font-weight: 600;
}

.ds-status-pill {
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.ds-status-pill-active {
    background: #e6f4ea;
    color: #1a6b2e;
    border: 1px solid #a8d5b4;
}

.ds-status-pill-passive {
    background: #fce8e8;
    color: #a33;
    border: 1px solid #f2b0b0;
}

.ds-inline-code {
    color: var(--muted);
    font-size: 15px;
}

.ds-mini-flag {
    border-radius: 14px;
    padding: 1px 8px;
    font-size: 11px;
    font-weight: 700;
}

.ds-mini-flag-selected,
.ds-mini-flag-me {
    background: #fff1cf;
    color: #8a5a00;
    border: 1px solid #e2c37a;
}

.ds-mini-flag-default {
    background: #e8eefc;
    color: #1f4f99;
    border: 1px solid #b7c8ee;
}

.ds-action-btn-compact {
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    letter-spacing: 0.15px;
    transition: transform 0.12s ease, filter 0.16s ease;
}

.ds-action-btn-compact:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.ds-action-btn-gold {
    background: #c6cc52;
    color: #000;
}

.ds-action-btn-gold-muted {
    background: #d1b16a;
    color: #503100;
    font-weight: 700;
    cursor: default;
}

.ds-action-btn-blue-muted {
    background: #d8dfef;
    color: #50617f;
    font-weight: 700;
    cursor: default;
}

.ds-action-btn-green {
    background: #1a6b2e;
    color: #000;
}

.ds-action-btn-red {
    background: #bf3f2d;
    color: #fff;
}

.ds-action-btn-blue {
    background: #8aa4d7;
    color: #091e42;
}

.ds-actions-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 240px;
}

.ds-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

#hallsManageModal .ds-actions-row .btn {
    min-height: 34px;
    padding: 5px 10px;
    font-size: 13px;
    font-weight: 700;
}

#usersManageModal .ds-actions-row .btn {
    min-height: 34px;
    padding: 5px 10px;
    font-size: 13px;
    font-weight: 700;
}

.ds-action-placeholder {
    color: var(--muted);
    font-size: 13px;
}

.ds-flex-actions-wrap {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: flex-start;
}

#hallsManageModal .ds-report-table th:last-child,
#hallsManageModal .ds-report-table td:last-child,
#usersManageModal .ds-report-table th:last-child,
#usersManageModal .ds-report-table td:last-child {
    width: 30%;
    min-width: 260px;
}

#hallsManageModal .ds-report-table td,
#usersManageModal .ds-report-table td {
    vertical-align: middle;
    padding-top: 10px;
    padding-bottom: 10px;
}

#hallsManageModal .ds-status-pill,
#usersManageModal .ds-status-pill {
    white-space: nowrap;
}

.ds-overflow-wrap {
    overflow-x: auto;
    scrollbar-width: thin;
}

#activityLogModal #alTableWrap,
#usersManageModal #usersTableWrap,
#hallsManageModal #hallsTableWrap {
    border: 1px solid #e2c893;
    border-radius: 12px;
    background: #fff;
    padding: 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

#activityLogModal .ds-report-table,
#usersManageModal .ds-report-table,
#hallsManageModal .ds-report-table {
    margin-top: 0;
}

#hallsManageModal .ds-flex-actions-wrap,
#usersManageModal .ds-flex-actions-wrap {
    min-height: 34px;
}

#activityLogModal .ds-report-table thead,
#usersManageModal .ds-report-table thead,
#hallsManageModal .ds-report-table thead {
    background: linear-gradient(135deg, #f8e0a8, #edc372);
}

.ds-label-inline-nowrap {
    display: flex;
    gap: 6px;
    align-items: center;
    cursor: pointer;
    white-space: nowrap;
}

.ds-passive-note {
    color: var(--muted);
}

.ds-role-chip {
    background: #f0f0f0;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 15px;
}

.ds-user-handle {
    font-size: 15px;
    color: var(--muted);
}

.ds-log-time,
.ds-log-ip {
    font-size: 15px;
    color: var(--muted);
}

.ds-page-indicator {
    padding: 4px 10px;
    font-size: 13px;
}

.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;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.ds-event-actions .btn {
    min-width: 88px;
    font-size: 13px;
    font-weight: 700;
}

.ds-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 12px;
}

.ds-menu-toolbar {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px;
    border: 1px solid #e2c893;
    border-radius: 12px;
    background: linear-gradient(180deg, #fffef9, #fff4e1);
}

.ds-menu-type-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.ds-menu-type-tab {
    border: 1px solid #d8bb72;
    background: #fff7e6;
    color: #5f4d3d;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .18s ease;
}

.ds-menu-type-tab:hover {
    border-color: #c79f3f;
    background: #ffefcb;
}

.ds-menu-type-tab.active {
    border-color: #9b1b30;
    background: linear-gradient(135deg, #9b1b30, #6b1220);
    color: #fff;
}

.ds-menu-card {
    border: 1px solid #e0c878;
    border-radius: 12px;
    background: #fffcf5;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(133, 86, 28, 0.08);
    transition: filter 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.ds-menu-card.is-active {
    border-color: #d6b16a;
}

.ds-menu-card.is-passive {
    opacity: 0.72;
    filter: saturate(0.65);
}

.ds-menu-card.is-passive .ds-menu-head {
    background: linear-gradient(180deg, #f7efe0, #eee3cf);
}

.ds-menu-card.is-passive .ds-menu-body {
    color: #746456;
}

.ds-menu-card.is-passive:hover {
    opacity: 0.86;
    filter: saturate(0.8);
}

.ds-menu-head {
    padding: 10px 12px;
    border-bottom: 1px solid #ecd8aa;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    background: linear-gradient(180deg, #fff8e8, #fdf1d8);
}

.ds-menu-head-main {
    min-width: 0;
    flex: 1;
}

.ds-menu-meta-row {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ds-menu-head h6 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.2;
    color: #3b1c14;
}

.ds-menu-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.ds-menu-actions .btn {
    min-width: 88px;
    font-size: 13px;
    font-weight: 700;
}

.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-badge.type {
    background: #f3ecff;
    color: #4b2d7f;
    border: 1px solid #d4c2f1;
}

.ds-menu-body {
    padding: 10px 12px;
    font-size: 13px;
    color: #4f3e2f;
}

.ds-menu-section {
    margin-bottom: 7px;
    line-height: 1.4;
    font-size: 15px;
    color: #1d120f;
}

.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-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-password-group .ds-ef-input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: 0;
    height: 42.5px;
    border: 1px solid #d4b060;
    border-radius: 8px 0 0 8px;
    padding: 9px 10px;
    font-size: 15px;
}

.ds-password-generate-btn {
    border: 1px solid #c9970a;
    border-left: 0;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    background: linear-gradient(135deg, #fdf2d9 0%, #f6ddb0 100%);
    color: #6b1220;
    font-size: 12px;
    font-weight: 700;
    padding: 0 12px;
    min-width: 94px;
}

.ds-password-generate-btn:hover {
    background: linear-gradient(135deg, #f9e9c8 0%, #efcf95 100%);
    color: #5b0f1b;
}

.ds-password-generate-btn:focus {
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.22);
}

.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-event-modal-layout {
    display: grid;
    gap: 10px;
}

.ds-ef-section {
    border: 1px solid #e5c98f;
    border-radius: 10px;
    background: linear-gradient(180deg, #fffefb 0%, #fffaf0 100%);
    padding: 10px;
}

.ds-ef-section-title {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 800;
    color: #6a3a13;
    text-transform: uppercase;
    letter-spacing: 0.35px;
}

.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;
}

/* Event modal: denser layout to fit more fields on screen. */
#eventFormModal .ds-modal-card.form-wide {
    width: min(1180px, 100%);
}

#eventFormModal .ds-modal-body {
    padding: 10px 12px;
    max-height: 78vh;
}

#eventFormModal .ds-ef-label {
    margin-bottom: 3px;
    font-size: 11px;
}

#eventFormModal .ds-ef-input,
#eventFormModal .ds-ef-select,
#eventFormModal .ds-ef-text {
    padding: 7px 9px;
    font-size: 14px;
}

#eventFormModal .ds-ef-text {
    min-height: 56px;
}

#eventFormModal .ds-ef-actions {
    margin-top: 12px;
    gap: 6px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border-top: 1px dashed #dfc38d;
    padding-top: 10px;
}

#eventFormModal .ds-ef-actions .ds-ef-btn {
    min-width: 108px;
}

#eventFormModal .ds-payment-panel {
    margin-top: 10px;
}

#reportsModal .ds-reports-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

#reportsModal .ds-report-btn {
    width: 100%;
    text-align: left;
    border: 1px solid #d6b973;
    border-radius: 10px;
    background: linear-gradient(180deg, #fffdf8 0%, #fff4dc 100%);
    color: #5c3412;
    padding: 10px 11px;
    font-size: 18px;
    font-weight: 700;
    transition: transform 0.12s ease, filter 0.15s ease;
}

#reportsModal .ds-report-btn:hover {
    filter: brightness(0.99);
    transform: translateY(-1px);
}

@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 {
        margin-left: 0;
        padding-left: 0;
        border-left: 0;
        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: 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: 0 1 auto;
        max-width: 180px;
    }
}

@media (max-width: 768px) {
    body.ds-dashboard {
        height: auto;
        min-height: 100dvh;
        overflow: auto;
    }

    body.ds-dashboard main {
        overflow: visible;
        padding-bottom: 10px !important;
    }

    .ds-top {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }

    body.ds-dashboard main {
        padding-top: 14vh !important;
    }

    .ds-top .container-fluid {
        padding: 10px 10px !important;
        row-gap: 8px;
    }

    .ds-brand {
        align-items: center !important;
    }

    .ds-top-actions {
        margin-top: 5px;
    }

    .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 {
        display: inline-flex;
        width: auto;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .ds-hero-card {
        padding: 8px 10px;
    }

    .ds-hero-meta-row {
        gap: 8px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .ds-chip-brand img {
        width: 32px;
        height: 32px;
        border-radius: 9px;
    }

    .ds-chip-brand span {
        font-size: 12px;
    }

    .ds-chip {
        font-size: 10px;
        padding: 3px 9px;
    }

    .ds-legend {
        font-size: 13px;
        gap: 8px;
    }

    .ds-year-switch {
        flex-wrap: nowrap;
        padding: 5px 8px;
        gap: 6px;
    }

    .ds-year-jump-input {
        width: 68px;
        font-size: 13px;
        padding: 4px 6px;
    }

    .ds-year-jump-btn {
        padding: 5px 9px;
        font-size: 12px;
    }

    .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-head {
        align-items: flex-start;
    }

    .ds-modal-head strong {
        flex: 1;
        min-width: 0;
    }

    .ds-modal-head .ds-toolbar-inline {
        width: 100%;
        justify-content: flex-end;
    }

    .ds-modal-body {
        padding: 12px;
        max-height: none;
        flex: 1;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    .ds-ef-btn,
    .ds-btn {
        min-height: 40px;
    }

    #reportsModal .ds-reports-menu {
        grid-template-columns: 1fr;
    }

    #eventFormModal .ds-ef-actions {
        justify-content: flex-end;
    }
}

@media (max-width: 720px) {
    .ds-months {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ds-top-inner {
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .ds-menu-grid {
        grid-template-columns: 1fr;
    }

    .ds-menu-toolbar {
        grid-template-columns: 1fr;
    }

    .ds-menu-head {
        flex-direction: column;
    }

    .ds-menu-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .ds-menu-type-tabs {
        gap: 6px;
    }

    .ds-menu-type-tab {
        width: 100%;
    }

}

/* ── 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;
    }

    .ds-actions-stack {
        min-width: 0;
    }

    .ds-event-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ds-event-actions-left,
    .ds-event-actions-right {
        width: 100%;
    }

    .ds-event-actions .ds-event-btn {
        flex: 1 1 0;
    }
}

/* ≤540px: topbar icon-only — metin etiketleri gizlenir, sadece ikon kalır */
@media (max-width: 540px) {
    .ds-top .ds-btn-label {
        display: none;
    }

    .ds-top .ds-btn {
        padding: 8px;
        min-width: 36px;
        justify-content: center;
    }

    .ds-top .ds-btn-top-primary {
        padding: 8px 10px;
        min-width: unset;
    }

    .ds-top .ds-btn-top-primary .ds-btn-label {
        display: inline;
    }

    .ds-actions-menu>summary {
        padding-right: 8px;
    }

    .ds-actions-menu>summary::after {
        display: none;
    }

    .ds-actions-menu-list {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        transform-origin: top center;
        min-width: min(236px, calc(100vw - 24px));
        animation-name: dsActionsMenuInCenter;
    }
}

@keyframes dsActionsMenuInCenter {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-4px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

@media (max-width: 520px) {
    .ds-months {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .ds-legend {
        font-size: 11px;
        gap: 6px;
    }

    .ds-chip-brand span {
        font-size: 13px;
        white-space: normal;
        word-break: break-word;
    }

    .ds-hero-card {
        padding: 6px 8px;
    }

    .ds-months {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .ds-month-card {
        min-height: 220px;
    }

    .ds-calendar {
        min-height: 170px;
        grid-auto-rows: minmax(36px, 1fr);
    }

    .ds-weekday div {
        font-size: 15px;
    }

    .ds-day-num {
        font-size: 18px;
    }

    .ds-day {
        padding: 2px 3px 26px;
    }

    .ds-slots {
        left: 3px;
        right: 3px;
        bottom: 3px;
        gap: 2px;
    }

    .ds-slot {
        height: 20px;
        font-size: 13px;
    }

    .ds-hero-card-info h2,
    .ds-hero-card h2 {
        font-size: 18px;
    }
}

body.ds-event-page {
    margin: 0;
    font-family: var(--font-body);
    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: 14px;
    padding: 14px 16px;
    border: 1px solid #dcc08a;
    border-radius: 14px;
    background: linear-gradient(120deg, rgba(255, 248, 230, 0.92), rgba(248, 234, 204, 0.86));
    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: 18px;
    box-shadow: 0 10px 24px rgba(112, 70, 20, 0.08);
}

.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-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #594c3e;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.ds-event-card form label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #594c3e;
    text-transform: uppercase;
    letter-spacing: 0.35px;
}

.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-card form input,
.ds-event-card form select,
.ds-event-card form textarea {
    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-card form input:focus,
.ds-event-card form select:focus,
.ds-event-card form textarea: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-card form textarea {
    min-height: 92px;
    resize: vertical;
}

.ds-event-actions {
    margin-top: 18px;
    display: flex;
    justify-content: right;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px dashed #d7bb83;
}

.ds-event-actions-left,
.ds-event-actions-right {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ds-event-hint {
    color: #776956;
    font-size: 12px;
    margin-top: 3px;
}

.ds-event-card .hint {
    color: #776956;
    font-size: 12px;
    margin-top: 4px;
}

/* ============================================================
   Etkinlik Arama Modalı
   ============================================================ */
.ds-search-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px 18px;
    min-height: 200px;
}

.ds-search-input-wrap {
    position: relative;
}

.ds-search-input-wrap input {
    width: 100%;
    font-size: 15px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1.5px solid #d4b060;
    outline: none;
}

.ds-search-input-wrap input:focus {
    border-color: #9b1b30;
    box-shadow: 0 0 0 3px rgba(155, 27, 48, .12);
}

.ds-search-results-wrap {
    overflow-y: auto;
    max-height: 60vh;
}

.ds-search-hint {
    font-size: 13px;
    margin: 10px 0 0;
}

.ds-event-item-cancelled {
    opacity: 0.65;
    background: #f8f8f8;
    border-color: #ccc;
}

.ds-status-cancelled-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f1aeb5;
    cursor: default;
    user-select: none;
}

.ds-event-financials {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    font-size: 12px;
    color: #555;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed #e0c878;
}

.ds-fin-remaining {
    color: #9b1b30;
    font-weight: 700;
}

.ds-fin-paid {
    color: #1a5e35;
    font-weight: 600;
}

.ds-notify-btn {
    position: relative;
    gap: 6px;
}

.ds-notify-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #c21414;
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.32);
}

.ds-notify-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ds-notify-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    border: 1px solid #d7d7d7;
    background: #f8f8f8;
    color: #434343;
}

.ds-notify-chip.danger {
    background: #ffe8e8;
    border-color: #efb3b3;
    color: #8e1f1f;
}

.ds-notify-chip.warn {
    background: #fff7e3;
    border-color: #f2d08a;
    color: #7f5a11;
}

.ds-notify-chip.info {
    background: #eaf6ff;
    border-color: #b7dbf3;
    color: #1f4b6d;
}

.ds-notify-list-wrap {
    max-height: 60vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ds-notify-item {
    border: 1px solid #d9d9d9;
    border-left: 4px solid #8aa3b7;
    border-radius: 12px;
    background: #fff;
    padding: 10px 12px;
}

.ds-notify-item.danger {
    border-left-color: #b3261e;
    background: #fff7f6;
}

.ds-notify-item.warning,
.ds-notify-item.warn {
    border-left-color: #b87900;
    background: #fffaf0;
}

.ds-notify-item.info {
    border-left-color: #1f6ea7;
    background: #f4fbff;
}

.ds-notify-title {
    font-weight: 700;
    font-size: 15px;
    color: #3a2b22;
}

.ds-notify-meta {
    margin-top: 2px;
    color: #6a5a4a;
    font-size: 13px;
}

.ds-notify-text {
    margin-top: 4px;
    color: #4f4f4f;
    font-size: 13px;
}

.ds-notify-actions {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ── Erişilebilirlik: hareket azaltma ── */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}