/**

 * SkånePlus Evenemangs- & Medlemssystem – Gemensam Frontend-CSS (Steg 2)

 *

 * Placeras i samma mapp som dina övriga plugin-filer (t.ex. del8-medlemssystem.php).

 * Laddas automatiskt in med versionering via filemtime() så att webbläsaren alltid

 * har senaste versionen utan cache-problem.

 *

 * INNEHÅLL:

 * 1. Globala knappar (hover-inversion mot blocktemats färger), enhetlig knappstorlek & fältkontrast

 * 2. Medlemsportal (Min Sida), kort, flikar, formulärfält & bildgalleri (Drag & Drop)

 * 3. Gemensam Rich-Text-Editor (.sp-modern-editor-wrap)

 * 4. Gemensam Flervals- & Enkelvals-dropdown (.sp-multiselect-dropdown)

 * 5. Gemensam Kalender- & Tidsväljare (.sp-custom-dt-picker)

 * 6. Modaler (Konstnärsmodal, Förhandsgranskning, Oanvända bilder & Varningsmodal)

 * 7. Publikt Konstnärsregister (Grid & Lista)

 * 8. Bokningsruta på Evenemang (#sp-booking-box) & Deltagarlista (.sp-admin-bookings-panel)

 * 9. E-post & Mallar (.sp-admin-email-panel) & Variabel-chips

 * 10. Evenemang, Platser & Formulärbyggare (.sp-admin-events-panel)

 */



/* ==========================================================================

   1. GLOBALA KNAPPAR (HOVER-INVERSION), ENHETLIG KNAPPSTORLEK & FÄLTKONTRAST

   ========================================================================== */



body .wp-block-button .wp-block-button__link.sp-hover-ready,

body .wp-block-button.is-style-outline .wp-block-button__link.sp-hover-ready,

body .wp-block-button .wp-block-button__link.wp-element-button.sp-hover-ready,

body .wp-block-button .wp-block-button__link.sp-hover-ready:focus,

body .wp-block-button .wp-block-button__link.sp-hover-ready:active,

body .wp-block-button .wp-block-button__link.sp-hover-ready:visited,

body .wp-block-button.is-style-outline .wp-block-button__link.sp-hover-ready:focus,

body .wp-block-button.is-style-outline .wp-block-button__link.sp-hover-ready:active,

body .wp-block-button.is-style-outline .wp-block-button__link.sp-hover-ready:visited {

    background-color: var(--sp-btn-base-bg, var(--sp-theme-btn-bg, #1d4ed8)) !important;

    color: var(--sp-btn-base-fg, var(--sp-theme-btn-fg, #ffffff)) !important;

    border: none !important;

    outline: none !important;

    box-shadow: none !important;

    text-decoration: none !important;

    transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease !important;

}



body .wp-block-button .wp-block-button__link.sp-hover-ready:hover:not(:disabled),

body .wp-block-button.is-style-outline .wp-block-button__link.sp-hover-ready:hover:not(:disabled),

body .wp-block-button .wp-block-button__link.wp-element-button.sp-hover-ready:hover:not(:disabled),

body .wp-block-button .wp-block-button__link.sp-hover-ready.sp-is-hovered:not(:disabled),

body .wp-block-button .wp-block-button__link.sp-admin-toggle-btn.is-open {

    background-color: var(--sp-btn-hover-bg, #ffffff) !important;

    color: var(--sp-btn-hover-fg, var(--sp-theme-btn-bg, #1d4ed8)) !important;

    box-shadow: inset 0 0 0 2px var(--sp-btn-hover-border, currentColor) !important;

    text-decoration: none !important;

    outline: none !important;

}



body .wp-block-button .wp-block-button__link.sp-hover-ready *,

body .wp-block-button.is-style-outline .wp-block-button__link.sp-hover-ready * {

    color: inherit !important;

}



body .wp-block-button .wp-block-button__link.sp-hover-ready:hover:not(:disabled) *,

body .wp-block-button.is-style-outline .wp-block-button__link.sp-hover-ready:hover:not(:disabled) *,

body .wp-block-button .wp-block-button__link.sp-hover-ready.sp-is-hovered:not(:disabled) *,

body .wp-block-button .wp-block-button__link.sp-admin-toggle-btn.is-open * {

    color: var(--sp-btn-hover-fg, var(--sp-theme-btn-bg, #1d4ed8)) !important;

}



/* Toggle-pil (▼ / ▲) på utfällbara adminknappar */

.sp-admin-toggle-btn .sp-toggle-caret {

    font-size: 10px;

    line-height: 1;

    margin-left: 3px;

    opacity: 0.85;

    display: inline-block;

    transition: transform 0.18s ease;

}



.wp-block-button__link.sp-btn-inactive {

    opacity: 0.55;

}

.wp-block-button__link.sp-btn-inactive:hover {

    opacity: 1;

}



/* Enhetlig knappstorlek överallt i frontend (både text+ikon och rena ikonknappar) */

.sp-portal-wrap .wp-block-button__link,

.sp-apply-standalone-wrap .wp-block-button__link,

#sp-booking-box .wp-block-button__link,

.sp-admin-bookings-panel .wp-block-button__link,

.sp-artists-directory-wrap .wp-block-button__link,

.sp-complete-tpl-wrap .wp-block-button__link,

.sp-artist-modal-box .wp-block-button__link {

    cursor: pointer;

    line-height: 1.2 !important;

    height: 36px !important;

    min-height: 36px !important;

    padding: 0 16px !important;

    font-size: 13.5px !important;

    font-weight: 600 !important;

    display: inline-flex !important;

    align-items: center !important;

    justify-content: center !important;

    gap: 6px !important;

    white-space: nowrap;

    box-sizing: border-box !important;

}



.sp-portal-wrap .wp-block-button__link.sp-btn-sm,

.sp-apply-standalone-wrap .wp-block-button__link.sp-btn-sm,

#sp-booking-box .wp-block-button__link.sp-btn-sm,

.sp-admin-bookings-panel .wp-block-button__link.sp-btn-sm,

.sp-artists-directory-wrap .wp-block-button__link.sp-btn-sm,

.sp-complete-tpl-wrap .wp-block-button__link.sp-btn-sm,

.sp-artist-modal-box .wp-block-button__link.sp-btn-sm {

    height: 34px !important;

    min-height: 34px !important;

    padding: 0 13px !important;

    font-size: 13px !important;

}



/* Kvadratiska ikonknappar (t.ex. Redigera, Duplicera, Radera i tabeller) med exakt samma 34px höjd */

.sp-portal-wrap .wp-block-button__link.sp-btn-icon,

.sp-admin-bookings-panel .wp-block-button__link.sp-btn-icon,

.sp-complete-tpl-wrap .wp-block-button__link.sp-btn-icon {

    width: 34px !important;

    min-width: 34px !important;

    height: 34px !important;

    min-height: 34px !important;

    padding: 0 !important;

}



/* Om en ikonknapp tillfälligt visar bekräftelsetext ("Radera?") expanderar den i bredd men behåller 34px höjd */

.sp-portal-wrap .wp-block-button__link.sp-btn-icon:has(span),

.sp-admin-bookings-panel .wp-block-button__link.sp-btn-icon:has(span) {

    width: auto !important;

    padding: 0 10px !important;

}



body .sp-portal-wrap input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),

body .sp-portal-wrap textarea,

body .sp-portal-wrap select,

body .sp-apply-standalone-wrap input:not([type="checkbox"]):not([type="radio"]),

body .sp-apply-standalone-wrap select,

body .sp-artists-directory-wrap input.sp-artists-search-input,

body #sp-booking-box .sp-booking-input,

body .sp-admin-bookings-panel .sp-fe-booking-search {

    color: #0f172a !important;

    font-weight: 500;

}



body .sp-portal-wrap input::placeholder,

body .sp-portal-wrap textarea::placeholder,

body .sp-apply-standalone-wrap input::placeholder,

body .sp-artists-directory-wrap input::placeholder,

body #sp-booking-box .sp-booking-input::placeholder,

body .sp-admin-bookings-panel .sp-fe-booking-search::placeholder,

body #sp-modern-link-input::placeholder,

body #sp-support-member-search::placeholder {

    color: #94a3b8 !important;

    font-weight: 400 !important;

    opacity: 1 !important;

}



body .sp-modern-editor-surface:empty:before,

body .sp-multiselect-label.is-placeholder {

    color: #94a3b8 !important;

    font-weight: 400 !important;

}



/* ==========================================================================

   2. MEDLEMSPORTAL (MIN SIDA), KORT, FLIKAR, FORMULÄRFÄLT & BILDGALLERI

   ========================================================================== */



.wp-block-skaneplus-member-portal,

.sp-portal-wrap,

.sp-portal-wrap * {

    box-sizing: border-box;

}



.wp-block-skaneplus-member-portal,

.sp-portal-wrap {

    width: 100%;

    min-width: 0;

    padding: 0;

    border: none;

    box-shadow: none;

    background: transparent;

    font-family: inherit;

    color: inherit;

}



.sp-portal-card {

    background: var(--sp-card-bg, #ffffff);

    border: 1px solid #e2e8f0;

    border-radius: var(--sp-radius, 12px);

    padding: 24px;

    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);

    margin-bottom: 24px;

    min-width: 0;

    max-width: 100%;

    overflow: hidden;

}



.sp-support-banner {

    background: var(--sp-card-bg, #ffffff);

    border: 1px solid #e2e8f0;

    border-radius: var(--sp-radius, 12px);

    padding: 20px 24px;

    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);

    margin-bottom: 24px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    flex-wrap: wrap;

    gap: 12px;

    min-width: 0;

    max-width: 100%;

    overflow: visible;

}



.sp-admin-section-heading {

    margin: 0 !important;

    font-size: 20px !important;

    font-weight: 700 !important;

    line-height: 1.3 !important;

    color: #0f172a;

    display: inline-flex;

    align-items: center;

    gap: 8px;

}



.sp-admin-section-heading .sp-fa-icon {

    color: var(--sp-theme-btn-bg, var(--sp-accent, currentColor));

}



.sp-portal-notice {

    padding: 14px 18px;

    border-radius: 8px;

    margin-bottom: 20px;

    font-weight: 500;

    line-height: 1.5;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    transition: opacity 0.4s ease, transform 0.4s ease;

}

.sp-portal-notice.success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }

.sp-portal-notice.error { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }

.sp-portal-notice-close {

    background: transparent;

    border: none;

    color: inherit;

    opacity: 0.65;

    cursor: pointer;

    font-size: 16px;

    line-height: 1;

    padding: 2px 6px;

    border-radius: 4px;

    flex-shrink: 0;

}

.sp-portal-notice-close:hover { opacity: 1; background: rgba(0, 0, 0, 0.05); }



.sp-portal-tabs {

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 6px;

    background: #f1f5f9;

    padding: 6px;

    border-radius: 10px;

    border: 1px solid #e2e8f0;

    margin-bottom: 24px;

}

.sp-portal-tab {

    padding: 10px 12px;

    border: none;

    border-radius: 7px;

    background: transparent;

    font-size: 14px;

    font-weight: 600;

    color: #475569;

    cursor: pointer;

    transition: all 0.15s ease;

    font-family: inherit;

    text-align: center;

    line-height: 1.3;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

}

.sp-portal-tab:hover { color: #0f172a; background: rgba(255, 255, 255, 0.6); }

.sp-portal-tab.active {

    background: #ffffff;

    color: #0f172a;

    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);

}

@media (max-width: 560px) {

    .sp-portal-tabs { grid-template-columns: 1fr; }

    .sp-portal-tab { justify-content: flex-start; padding: 11px 14px; }

}



.sp-portal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }

.sp-portal-grid > .sp-portal-field { display: flex; flex-direction: column; justify-content: flex-end; }

.sp-portal-grid > .sp-portal-field > label:first-child { margin-bottom: auto; padding-bottom: 6px; line-height: 1.35; }



.sp-portal-grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: stretch; }

.sp-portal-grid-5 > .sp-portal-field { display: flex; flex-direction: column; justify-content: flex-end; margin-bottom: 16px; }

.sp-portal-grid-5 > .sp-portal-field > label:first-child { margin-bottom: auto; padding-bottom: 8px; line-height: 1.3; font-size: 13px; }

@media (max-width: 1024px) {

    .sp-portal-grid-5 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

}



.sp-portal-media-grid { display: grid; grid-template-columns: 1fr 3fr; gap: 24px; align-items: start; }

@media (max-width: 680px) {

    .sp-portal-media-grid { grid-template-columns: 1fr; }

}



#sp-avatar-preview-wrap:empty,

#sp-gallery-preview-wrap:empty { display: none !important; margin: 0 !important; }



.sp-gallery-item {

    position: relative;

    text-align: center;

    background: #f8fafc;

    padding: 8px;

    border: 1px solid #cbd5e1;

    border-radius: 6px;

    cursor: grab;

    user-select: none;

    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;

}

.sp-gallery-item:active { cursor: grabbing; }

.sp-gallery-item.is-dragging { opacity: 0.4; transform: scale(0.96); }

.sp-gallery-item.is-drag-over { border-color: #1d4ed8 !important; box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.35); transform: translateY(-2px); }



.sp-gallery-move-bar {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 5px;

    gap: 4px;

}

.sp-gallery-move-btn {

    background: #e2e8f0;

    border: none;

    border-radius: 4px;

    color: #334155;

    font-size: 11px;

    line-height: 1;

    padding: 3px 6px;

    cursor: pointer;

    font-weight: 700;

    transition: background-color 0.15s, color 0.15s;

}

.sp-gallery-move-btn:hover { background: #cbd5e1; color: #0f172a; }

.sp-gallery-drag-hint { font-size: 11px; color: #94a3b8; cursor: grab; letter-spacing: 1px; }



.sp-portal-field { margin-bottom: 16px; }

.sp-portal-field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }



.sp-field-label-row {

    display: flex !important;

    justify-content: space-between;

    align-items: center;

    gap: 8px;

    flex-wrap: wrap;

    margin-bottom: 6px;

}

.sp-field-label-row > label:first-child,

.sp-field-label-row > span:first-child {

    margin-bottom: 0 !important;

    font-weight: 600;

    font-size: 14px;

    display: inline-flex;

    align-items: center;

    gap: 6px;

}



.sp-vis-toggle-label {

    display: inline-flex !important;

    align-items: center;

    gap: 5px;

    font-size: 13px !important;

    font-weight: 500 !important;

    color: #64748b;

    cursor: pointer;

    user-select: none;

    margin: 0 !important;

    white-space: nowrap;

    transition: color 0.15s ease;

}

.sp-vis-toggle-label:has(input[type="checkbox"]:checked),

.sp-vis-toggle-label:hover {

    color: #0f172a;

}



.sp-portal-field input[type="text"],

.sp-portal-field input[type="number"],

.sp-portal-field input[type="search"],

.sp-portal-field input[type="email"],

.sp-portal-field input[type="tel"],

.sp-portal-field input[type="url"],

.sp-portal-field input[type="password"],

.sp-portal-field input[type="date"],

.sp-portal-field input[type="datetime-local"],

.sp-portal-field input[type="time"],

.sp-portal-field textarea,

.sp-portal-field select {

    width: 100%;

    padding: 10px 12px;

    border: 1px solid #cbd5e1;

    border-radius: 8px;

    font-size: 15px;

    line-height: 1.25;

    box-sizing: border-box;

    background: #f8fafc;

    color: #0f172a;

    font-weight: 500;

    font-family: inherit;

    margin: 0;

}

.sp-portal-field input:focus,

.sp-portal-field textarea:focus {

    outline: none;

    border-color: currentColor;

    background: #ffffff;

}



.sp-checkbox-label {

    display: inline-flex !important;

    align-items: center;

    gap: 10px;

    font-weight: 500 !important;

    font-size: 14px !important;

    cursor: pointer;

    user-select: none;

    margin: 0;

}



.sp-portal-wrap input[type="checkbox"],

.sp-apply-standalone-wrap input[type="checkbox"],

#sp-booking-box input[type="checkbox"],

.sp-artists-directory-wrap input[type="checkbox"],

#sp-fb-preview-modal input[type="checkbox"] {

    -webkit-appearance: none;

    appearance: none;

    width: 18px !important;

    height: 18px !important;

    min-width: 18px;

    margin: 0 !important;

    padding: 0 !important;

    border: 1.5px solid #cbd5e1;

    border-radius: 5px;

    background-color: #f8fafc;

    cursor: pointer;

    display: inline-grid;

    place-content: center;

    vertical-align: middle;

    transition: all 0.15s ease;

    box-sizing: border-box;

}

.sp-portal-wrap input[type="checkbox"]:hover,

.sp-apply-standalone-wrap input[type="checkbox"]:hover,

#sp-booking-box input[type="checkbox"]:hover,

.sp-artists-directory-wrap input[type="checkbox"]:hover,

#sp-fb-preview-modal input[type="checkbox"]:hover {

    border-color: #94a3b8;

    background-color: #ffffff;

}

.sp-portal-wrap input[type="checkbox"]::before,

.sp-apply-standalone-wrap input[type="checkbox"]::before,

#sp-booking-box input[type="checkbox"]::before,

.sp-artists-directory-wrap input[type="checkbox"]::before,

#sp-fb-preview-modal input[type="checkbox"]::before {

    content: "";

    width: 10px;

    height: 10px;

    transform: scale(0);

    transition: transform 0.12s ease-in-out;

    background-color: #ffffff;

    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);

}

.sp-portal-wrap input[type="checkbox"]:checked,

.sp-apply-standalone-wrap input[type="checkbox"]:checked,

#sp-booking-box input[type="checkbox"]:checked,

.sp-artists-directory-wrap input[type="checkbox"]:checked,

#sp-fb-preview-modal input[type="checkbox"]:checked {

    background-color: var(--sp-theme-btn-bg, var(--sp-accent, #1d4ed8));

    border-color: var(--sp-theme-btn-bg, var(--sp-accent, #1d4ed8));

}

.sp-portal-wrap input[type="checkbox"]:checked::before,

.sp-apply-standalone-wrap input[type="checkbox"]:checked::before,

#sp-booking-box input[type="checkbox"]:checked::before,

.sp-artists-directory-wrap input[type="checkbox"]:checked::before,

#sp-fb-preview-modal input[type="checkbox"]:checked::before {

    transform: scale(1);

}



.sp-badge {

    display: inline-flex;

    align-items: center;

    gap: 5px;

    padding: 4px 10px;

    border-radius: 999px;

    font-size: 12px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.4px;

    white-space: nowrap;

}

.sp-badge.active { background: #dcfce7; color: #166534; }

.sp-badge.pending { background: #fef9c3; color: #854d0e; }

.sp-badge.expired { background: #fee2e2; color: #991b1b; }



.sp-table-responsive {

    width: 100%;

    max-width: 100%;

    overflow-x: auto;

    -webkit-overflow-scrolling: touch;

}



/* ==========================================================================

   3. GEMENSAM RICH-TEXT-EDITOR (.sp-modern-editor-wrap)

   ========================================================================== */



.sp-modern-editor-wrap {

    border: 1px solid #cbd5e1;

    border-radius: 8px;

    background: #f8fafc;

    overflow: hidden;

    transition: border-color 0.15s, background-color 0.15s;

}

.sp-modern-editor-wrap:focus-within { border-color: currentColor; background: #ffffff; }

.sp-modern-toolbar {

    display: flex;

    align-items: center;

    gap: 4px;

    flex-wrap: wrap;

    padding: 6px 10px;

    background: #f1f5f9;

    border-bottom: 1px solid #e2e8f0;

}

.sp-modern-tool-btn {

    background: transparent;

    border: 1px solid transparent;

    border-radius: 6px;

    padding: 4px 9px;

    font-size: 13px;

    font-weight: 600;

    color: #334155;

    cursor: pointer;

    font-family: inherit;

    line-height: 1.3;

    transition: all 0.15s;

}

.sp-modern-tool-btn:hover:not(:disabled) { background: #ffffff; border-color: #cbd5e1; color: #0f172a; }

.sp-modern-tool-btn.active { background: #e2e8f0; color: #0f172a; }

.sp-modern-tool-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.sp-modern-editor-surface {

    min-height: 150px;

    max-height: 460px;

    overflow-y: auto;

    padding: 12px 14px;

    font-size: 15px;

    line-height: 1.6;

    outline: none;

    font-family: inherit;

    color: inherit;

}

.sp-modern-editor-surface:empty:before { content: attr(data-placeholder); color: #94a3b8; pointer-events: none; }

.sp-modern-editor-surface p,

#sp-prev-modal-bio p,

#sp-modal-bio p { margin: 0 0 12px 0; }

.sp-modern-editor-surface p:last-child,

#sp-prev-modal-bio p:last-child,

#sp-modal-bio p:last-child { margin: 0; }

.sp-modern-editor-surface ul, .sp-modern-editor-surface ol,

#sp-prev-modal-bio ul, #sp-prev-modal-bio ol,

#sp-modal-bio ul, #sp-modal-bio ol { margin: 0 0 12px 20px; padding: 0; }

.sp-modern-editor-surface h1, .sp-modern-editor-surface h2, .sp-modern-editor-surface h3, .sp-modern-editor-surface h4,

#sp-prev-modal-bio h1, #sp-prev-modal-bio h2, #sp-prev-modal-bio h3, #sp-prev-modal-bio h4,

#sp-modal-bio h1, #sp-modal-bio h2, #sp-modal-bio h3, #sp-modal-bio h4 { margin: 14px 0 8px 0; line-height: 1.3; }

.sp-modern-editor-surface img,

#sp-prev-modal-bio img,

#sp-modal-bio img { max-width: 100%; height: auto; display: inline-block; vertical-align: top; }

.sp-modern-editor-surface img.aligncenter,

#sp-prev-modal-bio img.aligncenter,

#sp-modal-bio img.aligncenter { display: block; margin-left: auto; margin-right: auto; }

.sp-modern-editor-surface img.alignleft,

#sp-prev-modal-bio img.alignleft,

#sp-modal-bio img.alignleft { float: left; margin: 0 14px 10px 0; }

.sp-modern-editor-surface img.alignright,

#sp-prev-modal-bio img.alignright,

#sp-modal-bio img.alignright { float: right; margin: 0 0 10px 14px; }

.sp-modern-editor-surface figure.sp-bio-caption,

#sp-prev-modal-bio figure.sp-bio-caption,

#sp-modal-bio figure.sp-bio-caption { margin: 0 0 16px 0; max-width: 100%; display: table; clear: both; }

.sp-modern-editor-surface figure.sp-bio-caption img,

#sp-prev-modal-bio figure.sp-bio-caption img,

#sp-modal-bio figure.sp-bio-caption img { display: block; max-width: 100%; height: auto; border-radius: 6px; margin: 0; }

.sp-modern-editor-surface figcaption.sp-bio-caption-text,

#sp-prev-modal-bio figcaption.sp-bio-caption-text,

#sp-modal-bio figcaption.sp-bio-caption-text { display: block; margin-top: 6px; font-size: 14px; color: #64748b; line-height: 1.45; }



/* ==========================================================================

   4. GEMENSAM FLERVALS- & ENKELVALS-DROPDOWN (.sp-multiselect-dropdown)

   ========================================================================== */



.sp-multiselect-dropdown { position: relative; width: 100%; }

.sp-multiselect-dropdown > summary {

    list-style: none;

    padding: 10px 12px;

    min-height: 41px;

    border: 1px solid #cbd5e1;

    border-radius: 8px;

    background: #f8fafc;

    color: #0f172a;

    font-weight: 500;

    font-size: 15px;

    line-height: 1.25;

    cursor: pointer;

    display: flex;

    justify-content: space-between;

    align-items: center;

    user-select: none;

    box-sizing: border-box;

    margin: 0;

}

.sp-multiselect-dropdown > summary::-webkit-details-marker { display: none; }

.sp-multiselect-dropdown[open] > summary { border-color: currentColor; background: #ffffff; }

.sp-multiselect-arrow {

    font-size: 13px;

    line-height: 1;

    color: #475569;

    margin-left: 8px;

    flex-shrink: 0;

    transition: transform 0.15s ease;

    display: inline-block;

}

.sp-multiselect-dropdown[open] > summary .sp-multiselect-arrow { transform: rotate(180deg); }

.sp-multiselect-menu {

    position: absolute;

    top: calc(100% + 4px);

    left: 0;

    right: 0;

    z-index: 80;

    background: #ffffff;

    border: 1px solid #cbd5e1;

    border-radius: 8px;

    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.14);

    max-height: 260px;

    overflow-y: auto;

    padding: 6px;

}

.sp-multiselect-option {

    display: flex !important;

    align-items: center;

    gap: 10px;

    padding: 8px 10px;

    border-radius: 6px;

    font-size: 14px !important;

    font-weight: 500 !important;

    margin: 0 0 2px 0 !important;

    cursor: pointer;

    transition: background-color 0.15s ease, color 0.15s ease;

}

.sp-multiselect-option:hover { background: #f1f5f9; }

.sp-multiselect-option:has(input[type="checkbox"]:checked) {

    background: #eff6ff;

    color: #1e3a8a;

    font-weight: 600 !important;

}

.sp-singleselect-item {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    padding: 8px 10px;

    border-radius: 6px;

    font-size: 14px;

    font-weight: 500;

    color: #1e293b;

    text-decoration: none !important;

    cursor: pointer;

    transition: background-color 0.15s ease, color 0.15s ease;

    border: none;

    background: transparent;

    width: 100%;

    text-align: left;

    font-family: inherit;

}

.sp-singleselect-item:hover { background: #f1f5f9; color: #0f172a; }

.sp-singleselect-item.is-selected { background: #eff6ff; color: #1e3a8a; font-weight: 600; }



/* ==========================================================================

   5. GEMENSAM KALENDER- & TIDSVÄLJARE (.sp-custom-dt-picker)

   ========================================================================== */



.sp-custom-dt-picker { position: relative; width: 100%; }

.sp-custom-dt-menu {

    position: absolute;

    top: calc(100% + 4px);

    left: 0;

    z-index: 95;

    width: 300px;

    max-width: 92vw;

    background: #ffffff;

    border: 1px solid #cbd5e1;

    border-radius: 10px;

    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);

    padding: 12px;

    user-select: none;

}

.sp-dt-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 8px;

    padding-bottom: 6px;

    border-bottom: 1px solid #f1f5f9;

}

.sp-dt-nav-btn {

    background: #f8fafc;

    border: 1px solid #cbd5e1;

    border-radius: 6px;

    width: 28px;

    height: 28px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    font-size: 13px;

    font-weight: 700;

    color: #334155;

    cursor: pointer;

    transition: all 0.15s ease;

    padding: 0;

}

.sp-dt-nav-btn:hover {

    background: var(--sp-theme-btn-bg, #1d4ed8);

    border-color: var(--sp-theme-btn-bg, #1d4ed8);

    color: var(--sp-theme-btn-fg, #ffffff);

}

.sp-dt-month-label {

    font-size: 14px;

    font-weight: 700;

    color: #0f172a;

    text-transform: capitalize;

}

.sp-dt-weekdays {

    display: grid;

    grid-template-columns: repeat(7, 1fr);

    text-align: center;

    font-size: 11px;

    font-weight: 700;

    color: #64748b;

    margin-bottom: 4px;

}

.sp-dt-days-grid {

    display: grid;

    grid-template-columns: repeat(7, 1fr);

    gap: 2px;

}

.sp-dt-day-btn {

    border: none;

    background: transparent;

    border-radius: 6px;

    height: 32px;

    font-size: 13px;

    font-weight: 500;

    color: #1e293b;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    font-family: inherit;

    transition: background-color 0.12s ease, color 0.12s ease;

    padding: 0;

}

.sp-dt-day-btn:hover:not(:disabled) {

    background: #eff6ff;

    color: #1e3a8a;

    font-weight: 600;

}

.sp-dt-day-btn.is-other-month { color: #cbd5e1; }

.sp-dt-day-btn.is-today {

    box-shadow: inset 0 0 0 1.5px var(--sp-theme-btn-bg, #1d4ed8);

    font-weight: 700;

}

.sp-dt-day-btn.is-selected {

    background: var(--sp-theme-btn-bg, #1d4ed8) !important;

    color: var(--sp-theme-btn-fg, #ffffff) !important;

    font-weight: 700;

}

.sp-dt-time-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 8px;

    margin-top: 10px;

    padding-top: 10px;

    border-top: 1px solid #e2e8f0;

}

.sp-dt-time-select {

    padding: 5px 8px !important;

    border: 1px solid #cbd5e1 !important;

    border-radius: 6px !important;

    background: #f8fafc !important;

    font-size: 13px !important;

    font-weight: 600 !important;

    color: #0f172a !important;

    width: auto !important;

    cursor: pointer;

}

.sp-dt-footer {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 6px;

    margin-top: 10px;

    padding-top: 8px;

    border-top: 1px solid #f1f5f9;

}

.sp-dt-action-btn {

    border: 1px solid #cbd5e1;

    background: #f8fafc;

    color: #334155;

    border-radius: 6px;

    padding: 5px 10px;

    font-size: 12px;

    font-weight: 600;

    cursor: pointer;

    font-family: inherit;

    transition: all 0.15s ease;

}

.sp-dt-action-btn:hover { background: #e2e8f0; color: #0f172a; }

.sp-dt-action-btn.is-primary {

    background: var(--sp-theme-btn-bg, #1d4ed8);

    border-color: var(--sp-theme-btn-bg, #1d4ed8);

    color: var(--sp-theme-btn-fg, #ffffff);

}

.sp-dt-action-btn.is-primary:hover { opacity: 0.92; }



/* ==========================================================================

   6. MODALER (KONSTNÄRSMODAL, FÖRHANDSGRANSKNING & VARNINGSMODAL)

   ========================================================================== */



.sp-artist-modal-backdrop,

.sp-artist-modal-backdrop * {

    box-sizing: border-box;

}

.sp-artist-modal-backdrop {

    display: none;

    position: fixed;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    width: 100vw;

    height: 100vh;

    z-index: 900 !important;

    background: rgba(15, 23, 42, 0.62);

    align-items: center;

    justify-content: center;

    padding: 20px;

    overflow-y: auto;

    cursor: default;

}

.sp-artist-modal-backdrop.is-open {

    display: flex !important;

}

.sp-artist-modal-box {

    background: #ffffff;

    max-width: 740px;

    width: 100%;

    max-height: 90vh;

    overflow-y: auto;

    border-radius: 14px;

    padding: 28px;

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);

    text-align: left;

    position: relative;

    margin: auto;

}

.sp-artist-modal-header {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 12px;

    border-bottom: 1px solid #e2e8f0;

    padding-bottom: 14px;

    margin-bottom: 18px;

}

.sp-artist-modal-header-main {

    display: flex;

    gap: 14px;

    align-items: flex-start;

    flex: 1;

    min-width: 0;

}

.sp-artist-modal-header-info {

    min-width: 0;

    flex: 1;

}

.sp-artist-modal-header-close {

    margin: 0;

    flex-shrink: 0;

}

.sp-modal-gallery-grid {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));

    gap: 12px;

}

@media (max-width: 600px) {

    .sp-artist-modal-box { padding: 20px 18px; }

    .sp-modal-gallery-grid {

        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

        gap: 10px;

    }

    .sp-artist-modal-header {

        flex-wrap: wrap;

        align-items: center;

    }

    .sp-artist-modal-header-main { display: contents; }

    .sp-artist-modal-header-main > img { order: 1; }

    .sp-artist-modal-header-close {

        order: 2;

        margin-left: auto !important;

    }

    .sp-artist-modal-header-info {

        order: 3;

        flex: 0 0 100%;

        width: 100%;

        margin-top: 6px;

    }

}



/* ==========================================================================

   7. PUBLIKT KONSTNÄRSREGISTER (GRID & LISTA)

   ========================================================================== */



.sp-artists-directory-wrap,

.sp-artists-directory-wrap * {

    box-sizing: border-box;

}

.sp-artists-filter-bar {

    display: grid;

    grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) auto;

    gap: 14px;

    align-items: center;

    margin-bottom: 24px;

    background: #ffffff;

    padding: 18px 22px;

    border: 1px solid #e2e8f0;

    border-radius: 12px;

    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);

    width: 100%;

    max-width: 100%;

}

.sp-artists-filter-actions {

    display: flex;

    align-items: center;

    gap: 10px;

    flex-wrap: wrap;

    justify-content: flex-end;

    padding-right: 4px;

}

@media (max-width: 960px) {

    .sp-artists-filter-bar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

    .sp-artists-filter-actions { grid-column: 1 / -1; justify-content: flex-end; padding-right: 0; }

}

@media (max-width: 640px) {

    .sp-artists-filter-bar { grid-template-columns: 1fr; padding: 16px; }

    .sp-artists-filter-actions {

        display: grid;

        grid-template-columns: 1fr;

        gap: 8px;

        width: 100%;

        padding-right: 0;

    }

    .sp-artists-filter-actions .wp-block-buttons {

        display: grid !important;

        grid-template-columns: 1fr 1fr;

        width: 100%;

        gap: 8px;

    }

    .sp-artists-filter-actions .wp-block-button,

    .sp-artists-filter-actions .wp-block-button__link {

        width: 100%;

    }

}

body .sp-artists-directory-wrap input[type="search"].sp-artists-search-input,

body .sp-artists-directory-wrap .sp-artists-search-input {

    -webkit-appearance: none !important;

    appearance: none !important;

    width: 100% !important;

    height: auto !important;

    padding: 10px 12px 10px 36px !important;

    border: 1px solid #cbd5e1 !important;

    border-radius: 8px !important;

    background-color: #f8fafc !important;

    color: #0f172a !important;

    font-size: 15px !important;

    line-height: 1.25 !important;

    font-family: inherit !important;

    margin: 0 !important;

    box-shadow: none !important;

    box-sizing: border-box !important;

}

body .sp-artists-directory-wrap input[type="search"].sp-artists-search-input:focus,

body .sp-artists-directory-wrap .sp-artists-search-input:focus {

    outline: none !important;

    border-color: currentColor !important;

    background-color: #ffffff !important;

}

.sp-artist-card {

    background: #ffffff;

    border: 1px solid #e2e8f0;

    border-radius: 12px;

    overflow: hidden;

    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);

    display: flex;

    flex-direction: column;

    transition: transform 0.18s ease, box-shadow 0.18s ease;

    cursor: pointer;

}

.sp-artist-card:hover {

    transform: translateY(-3px);

    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);

}

.sp-artist-avatar-box {

    width: 100%;

    aspect-ratio: 1 / 1;

    background: #f1f5f9;

    overflow: hidden;

    display: flex;

    align-items: center;

    justify-content: center;

    position: relative;

}

.sp-artist-avatar-box img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

}

.sp-artists-grid.is-list-view {

    grid-template-columns: 1fr !important;

    gap: 10px;

}

.sp-artists-grid.is-list-view .sp-artist-card {

    flex-direction: row;

    align-items: center;

    padding: 10px 14px;

    border-radius: 10px;

}

.sp-artists-grid.is-list-view .sp-artist-card:hover {

    transform: translateX(3px);

}

.sp-artists-grid.is-list-view .sp-artist-avatar-box {

    width: 56px;

    height: 56px;

    min-width: 56px;

    aspect-ratio: 1 / 1;

    border-radius: 50%;

}

.sp-artists-grid.is-list-view .sp-artist-avatar-box .sp-exhibition-badge {

    display: none;

}

.sp-artists-grid.is-list-view .sp-artist-card-body {

    padding: 0 16px;

    text-align: left !important;

    flex-direction: row;

    align-items: center;

    justify-content: space-between;

    flex-wrap: wrap;

    gap: 10px;

}

.sp-artists-grid.is-list-view .sp-artist-card-body h3 {

    font-size: 16px !important;

    margin: 0 !important;

}

@media (max-width: 540px) {

    .sp-artists-grid.is-list-view .sp-artist-card-body {

        flex-direction: column;

        align-items: flex-start;

        gap: 2px;

    }

}



/* ==========================================================================

   8. BOKNINGSRUTA (#sp-booking-box) & DELTAGARLISTA (.sp-admin-bookings-panel)

   ========================================================================== */



#sp-booking-box,

#sp-booking-box * {

    box-sizing: border-box;

}

#sp-booking-box .sp-booking-row-2 {

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 18px;

    margin-bottom: 16px;

}

#sp-booking-box .sp-booking-row-3 {

    display: grid;

    grid-template-columns: 1.4fr 1fr 0.8fr;

    gap: 18px;

    margin-bottom: 16px;

}

@media (max-width: 680px) {

    #sp-booking-box .sp-booking-row-2,

    #sp-booking-box .sp-booking-row-3 {

        grid-template-columns: 1fr;

        gap: 14px;

    }

}

#sp-booking-box .sp-booking-input {

    width: 100%;

    padding: 10px 12px;

    border: 1px solid #cbd5e1;

    border-radius: 8px;

    background: #f8fafc;

    font-size: 15px;

    line-height: 1.4;

    font-family: inherit;

    box-sizing: border-box;

    margin: 0;

}

#sp-booking-box .sp-booking-input:focus {

    outline: none;

    border-color: currentColor;

    background: #ffffff;

}

.sp-admin-bookings-panel {

    background: #ffffff;

    border: 1px solid #e2e8f0 !important;

    border-radius: 12px;

    padding: 24px !important;

    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);

    margin-bottom: 24px;

    min-width: 0;

    max-width: 100%;

    overflow: hidden;

}

.sp-admin-bookings-panel .sp-fe-booking-search {

    width: 100%;

    padding: 10px 12px;

    border: 1px solid #cbd5e1;

    border-radius: 8px;

    font-size: 15px;

    line-height: 1.25;

    box-sizing: border-box;

    background: #f8fafc;

    font-family: inherit;

    margin: 0;

}

.sp-admin-bookings-panel .sp-fe-booking-search:focus {

    outline: none;

    border-color: currentColor;

    background: #ffffff;

}



/* ==========================================================================

   9. E-POST & MALLAR (.sp-admin-email-panel) & VARIABEL-CHIPS

   ========================================================================== */



.sp-admin-email-panel {

    background: #ffffff;

    border: 1px solid #e2e8f0 !important;

    border-radius: 12px;

    padding: 24px !important;

    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);

    margin-bottom: 24px;

    overflow: visible !important;

}

.sp-admin-email-panel .sp-dropdown-group-heading {

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.5px;

    color: #64748b;

    padding: 8px 10px 4px 10px;

    border-top: 1px solid #f1f5f9;

    margin-top: 4px;

}

.sp-email-subtabs {

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 6px;

    background: #f1f5f9;

    padding: 6px;

    border-radius: 10px;

    border: 1px solid #e2e8f0;

    margin-bottom: 22px;

}

.sp-email-subtab {

    padding: 11px 14px;

    border: none;

    border-radius: 7px;

    background: transparent;

    font-size: 14px;

    font-weight: 600;

    color: #475569;

    cursor: pointer;

    transition: all 0.15s ease;

    font-family: inherit;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

}

.sp-email-subtab:hover { color: #0f172a; background: rgba(255, 255, 255, 0.65); }

.sp-email-subtab.active {

    background: #ffffff;

    color: #0f172a;

    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);

}

@media (max-width: 600px) {

    .sp-email-subtabs { grid-template-columns: 1fr; }

    .sp-email-subtab { justify-content: flex-start; }

}

.sp-var-chips-bar {

    display: flex;

    align-items: center;

    gap: 6px;

    flex-wrap: wrap;

    padding: 8px 10px;

    background: #f8fafc;

    border-bottom: 1px solid #e2e8f0;

    font-size: 12px;

}

.sp-var-chip-btn {

    background: #eff6ff;

    border: 1px solid #bfdbfe;

    color: #1e3a8a;

    border-radius: 6px;

    padding: 3px 8px;

    font-size: 12px;

    font-weight: 600;

    font-family: monospace;

    cursor: pointer;

    transition: all 0.15s ease;

    line-height: 1.3;

}

.sp-var-chip-btn:hover {

    background: #dbeafe;

    border-color: #93c5fd;

    color: #1e40af;

}

.sp-tpl-selector-list {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));

    gap: 12px;

    margin-bottom: 20px;

}

.sp-tpl-select-card {

    text-align: left;

    background: #f8fafc !important;

    border: 1.5px solid #cbd5e1 !important;

    border-radius: 10px !important;

    padding: 14px 16px !important;

    cursor: pointer;

    transition: all 0.15s ease;

    font-family: inherit;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    gap: 6px;

    box-shadow: none !important;

    color: #0f172a !important;

}

.sp-tpl-select-card:hover {

    background: #ffffff !important;

    border-color: #94a3b8 !important;

}

.sp-tpl-select-card.active {

    background: #eff6ff !important;

    border-color: #1d4ed8 !important;

    box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.15) !important;

}



/* ==========================================================================

   10. EVENEMANG, PLATSER & FORMULÄRBYGGARE (.sp-admin-events-panel)

   ========================================================================== */



.sp-admin-events-panel {

    background: #ffffff;

    border: 1px solid #e2e8f0 !important;

    border-radius: 12px;

    padding: 24px !important;

    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);

    margin-bottom: 24px;

    overflow: visible !important;

}

.sp-events-subtabs {

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 6px;

    background: #f1f5f9;

    padding: 6px;

    border-radius: 10px;

    border: 1px solid #e2e8f0;

    margin-bottom: 22px;

}

.sp-events-subtab {

    padding: 11px 14px;

    border: none;

    border-radius: 7px;

    background: transparent;

    font-size: 14px;

    font-weight: 600;

    color: #475569;

    cursor: pointer;

    transition: all 0.15s ease;

    font-family: inherit;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

}

.sp-events-subtab:hover { color: #0f172a; background: rgba(255, 255, 255, 0.65); }

.sp-events-subtab.active {

    background: #ffffff;

    color: #0f172a;

    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);

}

@media (max-width: 720px) {

    .sp-events-subtabs { grid-template-columns: 1fr; }

    .sp-events-subtab { justify-content: flex-start; }

}

.sp-fb-field-card {

    background: #ffffff;

    border: 1px solid #cbd5e1;

    border-radius: 10px;

    padding: 14px 16px;

    margin-bottom: 12px;

    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);

}

.sp-fb-chip-bar {

    display: flex;

    align-items: center;

    gap: 8px;

    flex-wrap: wrap;

    padding: 12px 14px;

    background: #eff6ff;

    border: 1px solid #bfdbfe;

    border-radius: 10px;

    margin-bottom: 16px;

}

.sp-fb-add-btn {

    background: #ffffff;

    border: 1px solid #93c5fd;

    color: #1e3a8a;

    border-radius: 7px;

    padding: 6px 12px;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;

    transition: all 0.15s ease;

    font-family: inherit;

}

.sp-fb-add-btn:hover {

    background: #dbeafe;

    border-color: #3b82f6;

}

#sp-fb-preview-modal {

    z-index: 9995 !important;

}

#sp-fb-preview-modal .sp-portal-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

    gap: 16px;

}

#sp-fb-preview-modal .sp-portal-field { margin-bottom: 16px; }

#sp-fb-preview-modal .sp-portal-field label {

    display: block;

    font-weight: 600;

    font-size: 14px;

    color: #0f172a;

    margin-bottom: 6px;

}

#sp-fb-preview-modal input[type="text"],

#sp-fb-preview-modal input[type="email"],

#sp-fb-preview-modal input[type="tel"],

#sp-fb-preview-modal input[type="number"],

#sp-fb-preview-modal textarea {

    width: 100%;

    padding: 10px 12px;

    border: 1px solid #cbd5e1;

    border-radius: 8px;

    font-size: 15px;

    line-height: 1.25;

    box-sizing: border-box;

    background: #ffffff;

    color: #0f172a;

    font-weight: 500;

    font-family: inherit;

    margin: 0;

}



/* Mobilanpassning för Admin-tabellerna */

@media (max-width: 768px) {

    .sp-portal-card,

    .sp-support-banner,

    .sp-admin-bookings-panel,

    .sp-admin-events-panel,

    .sp-admin-email-panel {

        padding: 16px !important;

    }

    .sp-portal-wrap .wp-block-buttons { max-width: 100%; }

    .sp-portal-wrap .wp-block-button { max-width: 100%; }

    .sp-portal-wrap .wp-block-button__link:not(.sp-btn-icon) {

        max-width: 100%;

        height: auto !important;

        min-height: 36px !important;

        padding: 8px 14px !important;

        white-space: normal !important;

        text-align: center;

    }

    .sp-support-dropdown-col {

        min-width: 0 !important;

        width: 100% !important;

        flex: 1 1 100% !important;

    }

    #sp-fe-members-table,

    #sp-fe-members-table tbody,

    #sp-fe-members-table tr,

    #sp-fe-members-table td,

    .sp-admin-bookings-panel .sp-fe-bookings-table,

    .sp-admin-bookings-panel .sp-fe-bookings-table tbody,

    .sp-admin-bookings-panel .sp-fe-bookings-table tr,

    .sp-admin-bookings-panel .sp-fe-bookings-table td {

        display: block;

        width: 100% !important;

    }

    #sp-fe-members-table thead,

    .sp-admin-bookings-panel .sp-fe-bookings-table thead {

        display: flex;

        flex-wrap: wrap;

        gap: 8px;

        padding: 8px 0;

        border-bottom: 2px solid #cbd5e1;

    }

    #sp-fe-members-table thead tr,

    .sp-admin-bookings-panel .sp-fe-bookings-table thead tr {

        display: flex;

        flex-wrap: wrap;

        gap: 8px;

        border: none !important;

    }

    #sp-fe-members-table thead th,

    .sp-admin-bookings-panel .sp-fe-bookings-table thead th {

        padding: 4px 6px !important;

        font-size: 12px;

    }

    #sp-fe-members-table tr.sp-fe-member-row,

    .sp-admin-bookings-panel .sp-fe-bookings-table tr.sp-fe-booking-row {

        border: 1px solid #e2e8f0 !important;

        border-radius: 10px;

        padding: 12px;

        margin-bottom: 12px;

        background: #f8fafc;

    }

    #sp-fe-members-table td,

    .sp-admin-bookings-panel .sp-fe-bookings-table td {

        padding: 6px 0 !important;

        text-align: left !important;

        border: none !important;

    }

    #sp-fe-members-table td .wp-block-buttons {

        justify-content: flex-start !important;

    }

}