/* ==========================================================================
   DMB – Monthly Booking Admin  |  admin-monthly-slots.css
   ========================================================================== */

/* ── Tokens ─────────────────────────────────────────────────────────────── */
.dmb-wrap {
    --dmb-bg:          #ffffff;
    --dmb-surface:     #ffffff;
    --dmb-surface-2:   #f5f7fa;
    --dmb-border:      #e5e9f0;
    --dmb-border-2:    #d0d7e2;
    --dmb-accent:      #3b6ef8;
    --dmb-accent-2:    #6366f1;
    --dmb-accent-glow: rgba(59,110,248,.10);
    --dmb-success:     #059669;
    --dmb-danger:      #dc2626;
    --dmb-warn:        #d97706;
    --dmb-text:        #111827;
    --dmb-text-2:      #4b5563;
    --dmb-text-3:      #9ca3af;
    --dmb-today:       rgba(59,110,248,.07);
    --dmb-weekend:     rgba(217,119,6,.05);
    --dmb-has-slots:   rgba(5,150,105,.07);
    --dmb-radius:      12px;
    --dmb-radius-sm:   8px;
    --dmb-shadow:      0 2px 12px rgba(0,0,0,.08);
    --dmb-shadow-lg:   0 12px 40px rgba(0,0,0,.14);
    --dmb-transition:  .18s cubic-bezier(.4,0,.2,1);
    font-family: 'DM Sans', 'Nunito', system-ui, sans-serif;
    color: var(--dmb-text);
}

/* ── Wrapper ─────────────────────────────────────────────────────────────── */
.dmb-wrap {
    background: var(--dmb-bg);
    border: 1px solid var(--dmb-border);
    border-radius: var(--dmb-radius);
    padding: 0;
    overflow: hidden;
    max-width: 1100px;
    box-shadow: var(--dmb-shadow);
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.dmb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--dmb-border);
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
}

.dmb-header__text {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dmb-header__icon {
    width: 36px;
    height: 36px;
    color: var(--dmb-accent);
    flex-shrink: 0;
    background: var(--dmb-accent-glow);
    padding: 7px;
    border-radius: var(--dmb-radius-sm);
    box-sizing: content-box;
}

.dmb-header__title {
    margin: 0 0 3px !important;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dmb-text);
    letter-spacing: -.01em;
}

.dmb-header__sub {
    margin: 0 !important;
    font-size: .8rem;
    color: var(--dmb-text-2);
    line-height: 1.4;
}



/* ── Panel ───────────────────────────────────────────────────────────────── */
.dmb-panel { padding: 20px 24px 24px; }

/* ── Toolbar ─────────────────────────────────────────────────────────────── */
.dmb-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.dmb-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--dmb-surface-2);
    border: 1px solid var(--dmb-border);
    border-radius: var(--dmb-radius-sm);
    padding: 5px;
}

.dmb-nav__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: var(--dmb-text-2);
    text-decoration: none;
    transition: background var(--dmb-transition), color var(--dmb-transition);
}

.dmb-nav__btn:hover { background: #e8edf5; color: var(--dmb-text); }
.dmb-nav__btn svg { width: 16px; height: 16px; }

.dmb-nav__form { display: flex; align-items: center; gap: 6px; }

.dmb-sel, .dmb-inp-year {
    background: #ffffff;
    border: 1px solid var(--dmb-border-2);
    border-radius: 6px;
    color: var(--dmb-text);
    font-size: .82rem;
    font-weight: 600;
    padding: 5px 8px;
    outline: none;
    cursor: pointer;
    transition: border-color var(--dmb-transition);
}
.dmb-sel:focus, .dmb-inp-year:focus { border-color: var(--dmb-accent); }
.dmb-inp-year { width: 72px; text-align: center; }

/* Buttons */
.dmb-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: var(--dmb-radius-sm);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--dmb-transition);
    white-space: nowrap;
}
.dmb-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

.dmb-btn--ghost {
    background: transparent;
    border: 1px solid var(--dmb-border-2);
    color: var(--dmb-text-2);
}
.dmb-btn--ghost:hover { border-color: var(--dmb-accent); color: var(--dmb-accent); background: var(--dmb-accent-glow); }

.dmb-btn--primary {
    background: var(--dmb-accent);
    color: #fff;
    box-shadow: 0 0 0 0 var(--dmb-accent-glow);
}
.dmb-btn--primary:hover { background: #2255e8; box-shadow: 0 0 0 4px var(--dmb-accent-glow); transform: translateY(-1px); }
.dmb-btn--primary:active { transform: translateY(0); }

.dmb-btn--sm { padding: 7px 14px; font-size: .79rem; }

.dmb-toolbar__actions { display: flex; align-items: center; gap: 8px; }


/* ── Legend ──────────────────────────────────────────────────────────────── */
.dmb-legend {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.dmb-legend__item {
    font-size: .73rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.dmb-legend__item::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.dmb-legend__item--today    { background: var(--dmb-today);     color: var(--dmb-accent);  }
.dmb-legend__item--today::before { background: var(--dmb-accent); }
.dmb-legend__item--has-slots{ background: var(--dmb-has-slots); color: var(--dmb-success); }
.dmb-legend__item--has-slots::before { background: var(--dmb-success); }
.dmb-legend__item--weekend  { background: var(--dmb-weekend);   color: var(--dmb-warn);    }
.dmb-legend__item--weekend::before { background: var(--dmb-warn); }

/* ── Grid ────────────────────────────────────────────────────────────────── */
.dmb-grid-wrap {
    border: 1px solid var(--dmb-border);
    border-radius: var(--dmb-radius);
    overflow: hidden;
}

.dmb-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.dmb-grid--hdr {
    background: #f1f4fb;
    border-bottom: 1px solid var(--dmb-border);
}
.dmb-hdr {
    padding: 10px 0;
    text-align: center;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--dmb-text-3);
}

.dmb-grid--body {
    background: #ffffff;
}

/* ── Calendar cells ──────────────────────────────────────────────────────── */
.dmb-cell {
    position: relative;
    min-height: 86px;
    padding: 8px;
    border-right: 1px solid var(--dmb-border);
    border-bottom: 1px solid var(--dmb-border);
    cursor: pointer;
    transition: background var(--dmb-transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.dmb-cell:nth-child(7n) { border-right: none; }
.dmb-cell:hover { background: #f5f8ff; }
.dmb-cell:hover .dmb-cell__empty-hint { opacity: 1; }

.dmb-cell--empty {
    background: #fafafa;
    cursor: default;
    pointer-events: none;
}

.dmb-cell--today    { background: var(--dmb-today); }
.dmb-cell--weekend  { background: var(--dmb-weekend); }
.dmb-cell--has-slots{ background: var(--dmb-has-slots); }

.dmb-cell--today.dmb-cell--has-slots { background: linear-gradient(135deg, var(--dmb-today), var(--dmb-has-slots)); }

/* Focus ring for keyboard nav */
.dmb-cell:focus-visible {
    outline: 2px solid var(--dmb-accent);
    outline-offset: -2px;
    z-index: 2;
}

.dmb-cell__day {
    font-size: .8rem;
    font-weight: 700;
    color: var(--dmb-text-2);
    line-height: 1;
}
.dmb-cell--today .dmb-cell__day { color: var(--dmb-accent); }

.dmb-cell__today-ring {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--dmb-accent);
    box-shadow: 0 0 6px var(--dmb-accent);
}

.dmb-cell__badge {
    display: inline-block;
    background: rgba(5,150,105,.12);
    color: var(--dmb-success);
    font-size: .67rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 20px;
    width: fit-content;
}

.dmb-cell__preview {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 2px;
}
.dmb-cell__pip {
    font-size: .66rem;
    color: var(--dmb-text-2);
    background: #f0f3f9;
    border: 1px solid var(--dmb-border);
    border-radius: 4px;
    padding: 1px 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dmb-cell__pip--more { color: var(--dmb-text-3); background: transparent; border-style: dashed; }

.dmb-cell__empty-hint {
    position: absolute;
    bottom: 7px;
    left: 50%;
    transform: translateX(-50%);
    font-size: .68rem;
    color: var(--dmb-text-3);
    opacity: 0;
    transition: opacity var(--dmb-transition);
    white-space: nowrap;
}

/* ── Modal ───────────────────────────────────────────────────────────────── */
.dmb-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
}
.dmb-modal.is-open {
    opacity: 1;
    pointer-events: all;
}
.dmb-modal.is-open .dmb-modal__box {
    transform: translateY(0) scale(1);
}

.dmb-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17,24,39,.45);
    backdrop-filter: blur(4px);
}

.dmb-modal__box {
    position: relative;
    z-index: 1;
    background: #ffffff;
    border: 1px solid var(--dmb-border);
    border-radius: 16px;
    box-shadow: var(--dmb-shadow-lg);
    width: 100%;
    max-width: 520px;
    transform: translateY(16px) scale(.97);
    transition: transform .25s cubic-bezier(.34,1.56,.64,1);
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.dmb-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--dmb-border);
    background: linear-gradient(135deg, #f5f8ff 0%, #ffffff 100%);
    flex-shrink: 0;
}

.dmb-modal__date-label {
    margin: 0 0 2px !important;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--dmb-accent);
}
.dmb-modal__title {
    margin: 0 !important;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dmb-text);
}

.dmb-modal__close {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    background: #f5f7fa;
    border: 1px solid var(--dmb-border);
    border-radius: 8px;
    color: var(--dmb-text-2);
    cursor: pointer;
    transition: all var(--dmb-transition);
    flex-shrink: 0;
}
.dmb-modal__close:hover { background: #fef2f2; border-color: #fca5a5; color: var(--dmb-danger); }
.dmb-modal__close svg { width: 14px; height: 14px; }

.dmb-modal__body {
    padding: 16px 20px;
    overflow-y: auto;
    flex: 1;
}

/* Slot list */
.dmb-slot-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }

.dmb-slot-row {
    display: grid;
    grid-template-columns: 1fr 12px 1fr 64px 70px auto 36px;
    align-items: center;
    gap: 8px;
    background: #f9fafb;
    border: 1px solid var(--dmb-border);
    border-radius: var(--dmb-radius-sm);
    padding: 10px 12px;
    transition: border-color var(--dmb-transition);
    animation: dmb-row-in .18s ease;
}
.dmb-slot-row:hover { border-color: var(--dmb-border-2); }
.dmb-slot-row:focus-within { border-color: var(--dmb-accent); }

@keyframes dmb-row-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.dmb-slot-row__sep {
    text-align: center;
    color: var(--dmb-text-3);
    font-size: .85rem;
    font-weight: 700;
}

.dmb-t-s, .dmb-t-e, .dmb-t-c {
    background: #ffffff;
    border: 1px solid var(--dmb-border-2);
    border-radius: 6px;
    color: var(--dmb-text);
    font-size: .82rem;
    font-weight: 500;
    padding: 6px 8px;
    width: 100%;
    outline: none;
    box-sizing: border-box;
    transition: border-color var(--dmb-transition), box-shadow var(--dmb-transition);
    font-family: 'DM Mono', 'Fira Code', monospace;
}
.dmb-t-s:focus, .dmb-t-e:focus, .dmb-t-c:focus {
    border-color: var(--dmb-accent);
    box-shadow: 0 0 0 3px var(--dmb-accent-glow);
}

/* ── Is Booked toggle ────────────────────────────────────────────────────── */
.dmb-booked-wrap {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
}

.dmb-booked-wrap input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border: 1.5px solid var(--dmb-border-2);
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: background var(--dmb-transition), border-color var(--dmb-transition);
}

.dmb-booked-wrap input[type="checkbox"]:checked {
    background: var(--dmb-danger);
    border-color: var(--dmb-danger);
}

.dmb-booked-wrap input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 1px;
    width: 5px;
    height: 8px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.dmb-booked-label {
    font-size: .67rem;
    font-weight: 600;
    color: var(--dmb-text-3);
    transition: color var(--dmb-transition);
}

.dmb-booked-wrap:has(input:checked) .dmb-booked-label {
    color: var(--dmb-danger);
}

/* Capacity label */
.dmb-t-c { text-align: center; }

/* Price input */
.dmb-t-p {
    background: #ffffff;
    border: 1px solid var(--dmb-border-2);
    border-radius: 6px;
    color: var(--dmb-text);
    font-size: .82rem;
    font-weight: 500;
    padding: 6px 8px;
    width: 100%;
    outline: none;
    box-sizing: border-box;
    transition: border-color var(--dmb-transition), box-shadow var(--dmb-transition);
    font-family: 'DM Mono', 'Fira Code', monospace;
    text-align: center;
}
.dmb-t-p:focus {
    border-color: var(--dmb-accent);
    box-shadow: 0 0 0 3px var(--dmb-accent-glow);
}
.dmb-t-p::placeholder {
    color: var(--dmb-text-3);
    font-size: .75rem;
}

/* Required price field indicator (first slot) */
.dmb-t-p--required {
    border-color: var(--dmb-accent) !important;
    background-color: rgba(59, 110, 248, 0.03) !important;
}
.dmb-t-p--required::placeholder {
    color: var(--dmb-accent);
    font-weight: 600;
}
.dmb-t-p--required:focus {
    border-color: var(--dmb-accent);
    box-shadow: 0 0 0 3px var(--dmb-accent-glow);
}


.dmb-rm {
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    background: transparent;
    border: 1px solid var(--dmb-border);
    border-radius: 6px;
    color: var(--dmb-text-3);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    transition: all var(--dmb-transition);
    flex-shrink: 0;
}
.dmb-rm:hover { background: #fef2f2; border-color: #fca5a5; color: var(--dmb-danger); }

.dmb-slot-list__empty {
    text-align: center;
    padding: 28px 0;
    color: var(--dmb-text-3);
    font-size: .84rem;
}
.dmb-slot-list__empty svg {
    width: 36px; height: 36px;
    margin: 0 auto 10px;
    display: block;
    opacity: .4;
}

.dmb-modal__add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1.5px dashed var(--dmb-border-2);
    border-radius: var(--dmb-radius-sm);
    color: var(--dmb-text-2);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--dmb-transition);
}
.dmb-modal__add-btn:hover {
    border-color: var(--dmb-accent);
    color: var(--dmb-accent);
    background: var(--dmb-accent-glow);
}
.dmb-modal__add-btn svg { width: 14px; height: 14px; }

.dmb-modal__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 20px;
    border-top: 1px solid var(--dmb-border);
    background: #f9fafb;
    flex-shrink: 0;
}

/* ── Scrollbar ───────────────────────────────────────────────────────────── */
.dmb-modal__body::-webkit-scrollbar { width: 5px; }
.dmb-modal__body::-webkit-scrollbar-track { background: transparent; }
.dmb-modal__body::-webkit-scrollbar-thumb { background: var(--dmb-border-2); border-radius: 99px; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
    .dmb-toolbar { flex-direction: column; align-items: stretch; }
    .dmb-toolbar__actions { flex-wrap: wrap; }
    .dmb-cell { min-height: 60px; padding: 5px; }
    .dmb-cell__preview { display: none; }
    .dmb-modal__box { max-height: 95vh; }
    .dmb-slot-row { grid-template-columns: 1fr 10px 1fr 50px 60px auto 30px; gap: 5px; padding: 8px; }
    .dmb-booked-label { display: none; }
}

@media (max-width: 480px) {
    .dmb-header { flex-direction: column; align-items: flex-start; }
    .dmb-cell__badge { display: none; }
}

/* ── WP admin overrides ──────────────────────────────────────────────────── */
.dmb-wrap *, .dmb-modal * { box-sizing: border-box; }
.dmb-wrap input[type="number"]::-webkit-inner-spin-button { opacity: .5; }
.dmb-wrap select option { background: #ffffff; color: #111827; }

/* ── Light-theme polish ──────────────────────────────────────────────────── */

/* Subtle inset shadow on grid to separate it from the page */
.dmb-grid-wrap {
    box-shadow: inset 0 1px 3px rgba(0,0,0,.04);
}

/* Day numbers slightly darker for legibility */
.dmb-cell__day {
    color: #374151;
}

/* Weekend cells: warm tint on the day number too */
.dmb-cell--weekend .dmb-cell__day { color: #92400e; }

/* Status chips: slightly bordered for light-bg legibility */

/* Ghost button: slightly more visible on white */
.dmb-btn--ghost {
    background: #f9fafb;
}

/* Add slot dashed button: warmer dashed colour */
.dmb-modal__add-btn {
    border-color: #c7d2e8;
    color: #6b7280;
}

/* Scrollbar for light theme */
.dmb-modal__body::-webkit-scrollbar-thumb { background: #d1d5db; }
.dmb-modal__body::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/**
 * Booking Calendar – Stylesheet
 * @package Directorist\MonthlyBooking
 */

.dmb-cal {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    max-width: 620px;
    font-family: 'DM Sans', system-ui, sans-serif;
}

/* Head */
.dmb-cal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #f3f4f6;
}
.dmb-cal__head-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #374151;
}
.dmb-cal__head-title svg { width: 18px; height: 18px; }
.dmb-cal__month { font-size: 15px; font-weight: 600; color: #111827; }
.dmb-cal__nav { display: flex; gap: 4px; }
.dmb-cal__nav-btn {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 7px;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    text-decoration: none;
    transition: background .12s;
}
.dmb-cal__nav-btn:hover { background: #f9fafb; }
.dmb-cal__nav-btn svg { width: 14px; height: 14px; }
.dmb-cal__nav-btn--off { opacity: .35; pointer-events: none; cursor: default; }

/* Weekday row */
.dmb-cal__dow-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-bottom: 1px solid #f3f4f6;
}
.dmb-cal__dow {
    text-align: center;
    padding: 8px 0;
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* Grid */
.dmb-cal__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}
.dmb-cal__cell {
    min-height: 68px;
    border-right: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
    padding: 7px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: background .12s;
}
.dmb-cal__cell:nth-child(7n) { border-right: none; }
.dmb-cal__cell--empty { background: #fafafa; }
.dmb-cal__cell--clickable { cursor: pointer; }
.dmb-cal__cell--clickable:hover { background: #f0f9ff; }
.dmb-cal__cell--selected { background: #eff6ff; }
.dmb-cal__cell--weekend .dmb-cal__day { color: #9ca3af; }

.dmb-cal__day {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    border-radius: 50%;
}
.dmb-cal__cell--today .dmb-cal__day {
    background: #111827;
    color: #fff;
}
.dmb-cal__cell--empty .dmb-cal__day { color: #d1d5db; }

.dmb-cal__badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 999px;
    line-height: 1.4;
}
.dmb-cal__badge--avail { background: #dcfce7; color: #166534; }
.dmb-cal__badge--full  { background: #fee2e2; color: #991b1b; }

/* Legend */
.dmb-cal__legend {
    display: flex;
    gap: 16px;
    padding: 10px 18px;
    border-top: 1px solid #f3f4f6;
}
.dmb-cal__leg-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #6b7280;
}
.dmb-cal__leg-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dmb-cal__leg-dot--today { background: #111827; }
.dmb-cal__leg-dot--avail { background: #dcfce7; border: 1px solid #86efac; }
.dmb-cal__leg-dot--full  { background: #fee2e2; border: 1px solid #fca5a5; }

/* Slot panel */
.dmb-cal__panel {
    border-top: 1px solid #e5e7eb;
    padding: 16px 18px;
    background: #fafafa;
}
.dmb-cal__panel[hidden] { display: none; }
.dmb-cal__panel-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.dmb-cal__panel-date { font-size: 14px; font-weight: 600; color: #111827; }
.dmb-cal__panel-close {
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: #6b7280;
}
.dmb-cal__panel-close:hover { background: #f3f4f6; }
.dmb-cal__panel-close svg { width: 14px; height: 14px; }

.dmb-cal__slot-list { display: flex; flex-direction: column; gap: 7px; }

.dmb-cal__slot-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    gap: 10px;
    flex-wrap: wrap;
}
.dmb-cal__slot-row--booked { background: #f9fafb; }

.dmb-cal__slot-time { font-weight: 600; color: #111827; }
.dmb-cal__slot-cap  { font-size: 11px; color: #9ca3af; margin-top: 2px; }

/* Who booked */
.dmb-cal__slot-who {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #374151;
}
.dmb-cal__slot-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 9px;
    font-weight: 700;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.dmb-cal__slot-status {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.dmb-cal__slot-status--pending   { background: #fef3c7; color: #92400e; }
.dmb-cal__slot-status--confirmed { background: #d1fae5; color: #065f46; }
.dmb-cal__slot-status--cancelled { background: #fee2e2; color: #991b1b; }
.dmb-cal__slot-status--completed { background: #f3f4f6; color: #374151; }

.dmb-cal__booked-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
    background: #fee2e2;
    color: #991b1b;
    flex-shrink: 0;
}
.dmb-cal__book-btn {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 7px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
    cursor: pointer;
    transition: background .12s;
    flex-shrink: 0;
}
.dmb-cal__book-btn:hover { background: #dbeafe; }
/**
 * Owner Booking Dashboard – Stylesheet
 * Enqueue: wp_enqueue_style( 'dmb-owner-dashboard', DMB_URL . 'assets/css/owner-dashboard.css', [], DMB_VERSION );
 * @package Directorist\MonthlyBooking
 */

.dmb-split{display:grid;grid-template-columns:260px 1fr;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;font-family:'DM Sans',system-ui,sans-serif;background:#fff;max-width:960px;height:620px}
/* Left */
.dmb-split__left{border-right:1px solid #e5e7eb;display:flex;flex-direction:column;height:100%;overflow:hidden}
.dmb-split__left-hd{padding:14px 16px;border-bottom:1px solid #f3f4f6;flex-shrink:0;position:sticky;top:0;background:#fff;z-index:1}
.dmb-split__eyebrow{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.5px;color:#9ca3af;margin:0 0 3px}
.dmb-split__heading{font-size:15px;font-weight:700;color:#111827;margin:0}
.dmb-split__listing-scroll{flex:1;overflow-y:auto}.dmb-split__item{display:flex;align-items:center;gap:10px;padding:11px 16px;border-bottom:1px solid #f3f4f6;cursor:pointer;transition:background .12s}
.dmb-split__item:hover{background:#f9fafb}
.dmb-split__item--active{background:#eff6ff}
.dmb-split__thumb{width:38px;height:38px;border-radius:7px;overflow:hidden;flex-shrink:0;background:#f3f4f6;display:grid;place-items:center;color:#9ca3af}
.dmb-split__thumb img{width:100%;height:100%;object-fit:cover}
.dmb-split__thumb svg{width:16px;height:16px}
.dmb-split__item-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.dmb-split__item-name{font-size:13px;font-weight:600;color:#111827;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dmb-split__item--active .dmb-split__item-name{color:#1d4ed8}
.dmb-split__item-meta{font-size:11px;color:#9ca3af}
.dmb-split__item--active .dmb-split__item-meta{color:#93c5fd}
.dmb-split__item-badge{font-size:10px;font-weight:700;padding:2px 7px;border-radius:999px;background:#fef3c7;color:#92400e;flex-shrink:0}
.dmb-split__item--active .dmb-split__item-badge{background:#bfdbfe;color:#1e40af}
/* Right */
.dmb-split__right{display:flex;flex-direction:column;height:100%;overflow-y:auto}
.dmb-split__right-hd{display:flex;align-items:center;justify-content:space-between;padding:13px 18px;border-bottom:1px solid #f3f4f6;gap:10px;flex-shrink:0}
.dmb-split__right-title{display:block;font-size:14px;font-weight:700;color:#111827}
.dmb-split__right-sub{display:block;font-size:11px;color:#9ca3af;margin-top:2px}
.dmb-split__status{font-size:10px;font-weight:600;padding:2px 9px;border-radius:999px;flex-shrink:0}
.dmb-split__status.publish{background:#dcfce7;color:#166534}
.dmb-split__status.pending{background:#fef3c7;color:#92400e}
.dmb-split__status.draft{background:#f3f4f6;color:#6b7280}
/* Calendar */
.dmb-cal-hd{display:flex;align-items:center;justify-content:space-between;padding:10px 18px;border-bottom:1px solid #f3f4f6}
.dmb-cal-month{font-size:13px;font-weight:600;color:#111827}
.dmb-cal-nav{display:flex;gap:4px}
.dmb-nbtn{background:none;border:1px solid #e5e7eb;border-radius:7px;width:28px;height:28px;display:grid;place-items:center;cursor:pointer;color:#6b7280;transition:background .1s}
.dmb-nbtn:hover:not(:disabled){background:#f9fafb}
.dmb-nbtn:disabled{opacity:.28;cursor:not-allowed}
.dmb-nbtn svg{width:13px;height:13px}
.dmb-dow-row{display:grid;grid-template-columns:repeat(7,1fr);border-bottom:1px solid #f3f4f6}
.dmb-dow{text-align:center;padding:6px 0;font-size:10px;font-weight:600;color:#9ca3af;text-transform:uppercase;letter-spacing:.4px}
.dmb-grid{display:grid;grid-template-columns:repeat(7,1fr)}
.dmb-cell{min-height:58px;border-right:1px solid #f3f4f6;border-bottom:1px solid #f3f4f6;padding:6px 7px;display:flex;flex-direction:column;gap:3px;transition:background .1s}
.dmb-cell:nth-child(7n){border-right:none}
.dmb-cell.empty{background:#fafafa}
.dmb-cell.clickable{cursor:pointer}
.dmb-cell.clickable:hover{background:#f0f9ff}
.dmb-cell.selected{background:#eff6ff}
.dmb-cell.weekend .dmb-day{color:#9ca3af}
.dmb-day{width:22px;height:22px;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:500;color:#374151;border-radius:50%}
.dmb-cell.today .dmb-day{background:#111827;color:#fff}
.dmb-cell.empty .dmb-day{color:#e5e7eb}
.dmb-cbadge{display:inline-block;font-size:9px;font-weight:600;padding:1px 5px;border-radius:999px;line-height:1.5}
.dmb-cbadge.avail{background:#dcfce7;color:#166534}
.dmb-cbadge.full{background:#fee2e2;color:#991b1b}
.dmb-cbadge.mixed{background:#fef9c3;color:#854d0e}
.dmb-legend{display:flex;gap:14px;padding:8px 18px;border-top:1px solid #f3f4f6}
.dmb-leg{display:flex;align-items:center;gap:4px;font-size:10px;color:#6b7280}
.dmb-ldot{width:9px;height:9px;border-radius:50%}
.dmb-ldot.today{background:#111827}
.dmb-ldot.avail{background:#dcfce7;border:1px solid #86efac}
.dmb-ldot.full{background:#fee2e2;border:1px solid #fca5a5}
/* Slot panel */
.dmb-spanel{border-top:1px solid #e5e7eb;padding:14px 18px;background:#f9fafb}
.dmb-spanel[hidden]{display:none}
.dmb-spanel-hd{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.dmb-spanel-date{font-size:13px;font-weight:600;color:#111827}
.dmb-spanel-cls{background:none;border:1px solid #e5e7eb;border-radius:7px;width:26px;height:26px;display:grid;place-items:center;cursor:pointer;color:#6b7280}
.dmb-spanel-cls svg{width:13px;height:13px;display:block}
.dmb-slist{display:flex;flex-direction:column;gap:6px}
.dmb-srow{display:flex;flex-direction:column;gap:8px;padding:12px 14px;border:1px solid #e5e7eb;border-radius:8px;background:#fff;font-size:12px}
.dmb-srow.booked{background:#fffbeb;border-color:#fde68a}
.dmb-srow.available{background:#f0fdf4;border-color:#bbf7d0}
.dmb-srow-top{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.dmb-stime{font-weight:600;color:#111827;flex-shrink:0;font-size:13px}
.dmb-cap-info{display:flex;gap:6px;flex-wrap:wrap}
.dmb-cap-badge{font-size:10px;font-weight:600;padding:2px 8px;border-radius:12px}
.dmb-cap-badge.cap-total{background:#f3f4f6;color:#374151}
.dmb-cap-badge.cap-booked{background:#fef3c7;color:#92400e}
.dmb-cap-badge.cap-available{background:#dcfce7;color:#166534}
.dmb-booked-users{margin-top:4px;padding-top:8px;border-top:1px solid #e5e7eb}
.dmb-booked-users-title{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:600;color:#6b7280;margin-bottom:8px;text-transform:uppercase;letter-spacing:.03em}
.dmb-booked-users-title svg{color:#9ca3af}
.dmb-booked-users-list{display:flex;flex-direction:column;gap:6px}
.dmb-booked-user-item{display:flex;align-items:center;gap:8px;padding:6px 8px;background:#f9fafb;border-radius:6px}
.dmb-user-avatar{width:28px;height:28px;border-radius:50%;background:#dbeafe;color:#1d4ed8;font-size:10px;font-weight:700;display:grid;place-items:center;flex-shrink:0}
.dmb-user-info{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.dmb-user-name{font-size:12px;font-weight:600;color:#111827;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center;gap:4px}
.dmb-user-email{font-size:10px;color:#9ca3af;font-weight:400}
.dmb-user-qty{font-size:10px;color:#6b7280}
.dmb-no-bookings{display:flex;align-items:center;gap:8px;padding:8px 0;color:#9ca3af;font-size:11px}
.dmb-no-bookings svg{color:#d1d5db}
.dmb-scap{font-size:10px;color:#9ca3af}
.dmb-swho{display:flex;align-items:center;gap:6px;margin-left:auto}
.dmb-sav{width:22px;height:22px;border-radius:50%;background:#dbeafe;color:#1d4ed8;font-size:9px;font-weight:700;display:grid;place-items:center;flex-shrink:0}
.dmb-sname{font-size:12px;font-weight:600;color:#111827}
.dmb-semail{font-size:10px;color:#6b7280}
.dmb-btag{font-size:9px;font-weight:700;padding:2px 7px;border-radius:999px;background:#fee2e2;color:#991b1b;flex-shrink:0}
.dmb-atag{font-size:9px;font-weight:700;padding:2px 7px;border-radius:999px;background:#dcfce7;color:#166534;flex-shrink:0}
.dmb-atag.partially-booked{background:#fef3c7;color:#92400e}
.dmb-no-slots{font-size:13px;color:#9ca3af;padding:40px 18px;text-align:center}
.dmb-auth-notice{padding:14px 18px;background:#fef3c7;color:#92400e;border-radius:8px;font-size:.9rem}
.dmb-split__listing-scroll::-webkit-scrollbar,.dmb-split__right::-webkit-scrollbar{width:4px}
.dmb-split__listing-scroll::-webkit-scrollbar-track,.dmb-split__right::-webkit-scrollbar-track{background:transparent}
.dmb-split__listing-scroll::-webkit-scrollbar-thumb,.dmb-split__right::-webkit-scrollbar-thumb{background:#e5e7eb;border-radius:999px}
.dmb-split__listing-scroll::-webkit-scrollbar-thumb:hover,.dmb-split__right::-webkit-scrollbar-thumb:hover{background:#d1d5db}
@media(max-width:600px){
    .dmb-split{grid-template-columns:1fr;height:auto}
    .dmb-split__left{border-right:none;border-bottom:1px solid #e5e7eb;height:auto;max-height:200px}
    .dmb-split__right{height:auto;overflow-y:visible}
}