.venues-header{
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0;
}

.venues-headerInfo{
    align-items: center;
    gap: 16px;
}

.venues-header .headerIconBox{
    width: 40px;
    height: 40px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    color: var(--sl-color-primary-600);
    background: rgba(37, 99, 235, 0.12);
    box-shadow: none;
}

.venues-header .headerIcon{
    color: inherit;
    font-size: 1.25rem;
}

.venues-headerText{
    gap: 4px;
}

.venues-subtitle{
    color: #6b7280;
    font-size: 0.95rem;
}

#newVenueBtn::part(base){
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    border: none;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.35);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

#newVenueBtn::part(label),
#newVenueBtn sl-icon{
    color: inherit;
}

#newVenueBtn::part(base):hover{
    background: linear-gradient(135deg, #1d4ed8 0%, #6d28d9 100%);
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}

#newVenueBtn::part(base):active{
    transform: translateY(0);
}

#venues_base{
    min-height: 100vh;
    background: linear-gradient(180deg, #f6f9ff 0%, #ffffff 82%);
    padding-bottom: 10px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: 100%;
}

.venues-body{
    gap: 24px;
    max-width: 1180px;
    width: calc(100% - 80px);
    align-self: center;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.venues-summaryRow{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 18px;
    margin-top: 16px;
}

.venues-filterCard{
    position: relative;
    background: linear-gradient(135deg, #eef4ff 0%, #dce8ff 100%);
    border: 1px solid rgba(37, 99, 235, 0.22);
    border-radius: 18px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    color: #1f2937;
    min-height: 96px;
    outline: none;
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.12);
}

.venues-filterCard:hover{
    transform: translateY(-2px);
    box-shadow: 0 20px 36px rgba(37, 99, 235, 0.16);
    border-color: rgba(37, 99, 235, 0.28);
}

.venues-filterCard:focus-visible{
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35), 0 20px 36px rgba(37, 99, 235, 0.16);
}

.venues-filterCard.is-active,
.venues-filterCard[aria-pressed="true"]{
    background: linear-gradient(135deg, #e2ecff 0%, #cddcff 100%);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 22px 40px rgba(37, 99, 235, 0.18);
}

.venues-filterCard:active{
    transform: translateY(0);
}

.venues-filterCount{
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--sl-color-primary-700);
    line-height: 1;
}

.venues-filterLabel{
    margin-top: 10px;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #475569;
}

.venues-contentCard{
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 32px 60px -40px rgba(15, 23, 42, 0.35);
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.venues-viewSwitch{
    align-self: flex-end;
    display: inline-flex;
    gap: 0;
    padding: 4px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.venues-viewSwitch sl-button::part(base){
    min-width: 52px;
    border-radius: 10px;
    border: none;
    color: #475569;
    background: transparent;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.venues-viewSwitch sl-button::part(label),
.venues-viewSwitch sl-button sl-icon{
    color: inherit;
}

.venues-viewSwitch sl-button[variant="primary"]::part(base){
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.35);
}

.venues-viewSwitch sl-button:not([variant="primary"])::part(base){
    color: #475569;
}

.venues-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    padding: 16px 24px 24px 24px;
}

#venuesListBase{
    padding: 0 0 8px 0;
}

.venues-card{
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 24px 48px -28px rgba(15, 23, 42, 0.45);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 220px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.venues-card:hover{
    transform: translateY(-3px);
    box-shadow: 0 32px 56px -26px rgba(15, 23, 42, 0.55);
}

.venues-card-media{
    height: 140px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(236, 72, 153, 0.12) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.venues-card-logo{
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.15);
    padding: 6px;
}

.venues-card-body{
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.venues-card-name{
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.venues-card-location{
    font-size: 0.9rem;
    color: #64748b;
}

.venues-card-status{
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 20px;
}



.marketPage-shell {
    min-height: 100vh;
}

.marketPage-toolbar{
    align-items: center;
    gap: 12px;
}

.marketPage-headerCard{
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    border-radius: 20px;
    padding: 16px 20px;
    box-shadow: 0 18px 40px -28px rgba(15, 23, 42, 0.18);
}

.marketPage-avatar{
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: #eff4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.marketPage-avatar img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.marketPage-headerText{
    gap: 6px;
}

.marketPage-title{
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.marketPage-meta{
    color: #64748b;
    font-size: 0.95rem;
}

.marketPage-details{
    display: grid;
    gap: 12px;
    min-width: 220px;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
}

.marketPage-details strong{
    display: block;
    font-size: 0.95rem;
    color: #0f172a;
    letter-spacing: normal;
    text-transform: none;
}

.marketPage-contentWrap{
    flex: 1;
    width: 100%;
    min-height: 0;
    display: flex;
}

.marketPage-tabCard{
    flex: 1;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 32px 60px -40px rgba(15, 23, 42, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.marketPage-tabCard sl-tab-group::part(base){
    display: flex;
    flex-direction: column;
    height: 100%;
    background: transparent;
}

.marketPage-tabCard sl-tab-group::part(nav){
    padding: 0 24px;
    border-bottom: 1px solid #e2e8f0;
    align-items: center;
    min-height: 64px;
}

.marketPage-tabCard sl-tab-group::part(body){
    flex: 1;
    padding: 24px 24px 20px 24px;
    overflow: auto;
}

.marketPage-tabPanel{
    padding: 0;
}

.marketPage-tabPanel::part(base){
    height: 100%;
    overflow: auto;
    display: block;
}

.marketPage-tabCard sl-tab::part(base){
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #475569;
    padding: 0 16px;
}

.marketPage-tabCard sl-tab::part(base):focus-visible{
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
}

.marketPage-panelPlaceholder{
    color: #475569;
    font-size: 0.95rem;
}

.marketPage-alertsPanel,
.marketPage-documentsPanel,
.marketPage-notesPanel{
    margin-top: 8px;
}

.marketPage-sectionHeader{
    display: flex;
    align-items: center;
    gap: 16px;
}

.marketPage-sectionTitle{
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.marketPage-sectionSub{
    margin: 2px 0 0;
    font-size: 0.9rem;
    color: #6b7280;
}

.marketPage-marketsWrap{
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 20px 24px;
    box-sizing: border-box;
}

.marketPage-viewSwitch{
    align-self: flex-start;
    display: inline-flex;
    gap: 0;
    padding: 4px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.marketPage-viewSwitch sl-button::part(base){
    min-width: 52px;
    border-radius: 10px;
    border: none;
    color: #475569;
    background: transparent;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.marketPage-viewSwitch sl-button[variant="primary"]::part(base){
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: #fff;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.35);
}

.marketPage-cardGrid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
    gap: 18px;
    margin-top: 0;
}

.marketPage-marketCard{
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 18px 36px -28px rgba(15, 23, 42, 0.3);
    background: #fafcff;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.marketPage-marketCardHeader{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.marketPage-marketTags{
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.marketPage-marketCardHeader h4{
    margin: 0;
    font-size: 1rem;
    color: #0f172a;
}

.marketPage-marketCardBody p{
    margin: 8px 0 0;
    color: #475569;
    font-size: 0.9rem;
}

.marketPage-marketMeta{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #475569;
    font-size: 0.85rem;
}

.marketPage-marketMeta i{
    margin-right: 6px;
    color: #2563eb;
}

.marketPage-listWrap{
    margin-top: 0;
    overflow-x: auto;
}

.marketPage-table{
    width: 100%;
    border-collapse: collapse;
}

.marketPage-table th,
.marketPage-table td{
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(226,232,240,0.7);
    font-size: 0.9rem;
    color: #1f2937;
}

.marketPage-table th{
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: #64748b;
}

.marketPage-empty{
    margin-top: 24px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.95rem;
    font-style: italic;
}

.marketDetail-shell{
    padding: 32px 40px 48px 40px;
    gap: 24px;
    background: #f7f9ff;
    min-height: calc(100vh - 80px);
    flex:1;
}

.marketDetail-toolbar{
    align-items: center;
    gap: 12px;
}

.marketDetail-card{
    flex:1;
    background: #fff;
    height:calc(100vh - 100px);
    border-radius: 20px;
    padding: 20px 24px 24px;
    box-shadow: 0 32px 60px -40px rgba(15, 23, 42, 0.3);
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-height: 0;
}

#marketDetailTabs {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.marketDetail-heading{
    margin-bottom: 4px;
}

.marketDetail-titleGroup{
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.marketDetail-header{
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.marketDetail-subtitle{
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.marketDetail-title{
    margin: 0;
    font-size: 1.45rem;
    color: #0f172a;
}

.marketDetail-date{
    font-size: 0.95rem;
    color: #64748b;
}

.marketDetail-info{
    display: flex;
    gap: 20px;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.marketDetail-info strong{
    display: block;
    font-size: 1rem;
    color: #0f172a;
    text-transform: none;
}

.marketDetail-body{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.marketDetail-body h3{
    margin: 0 0 8px;
    font-size: 1rem;
    color: #0f172a;
}

.marketDetail-body p{
    margin: 0;
    color: #475569;
    line-height: 1.5;
}

.marketDetail-mapPanel{
    height: 100%;
    min-height: 0;
    width: 100%;
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
}

.venues-table{
    width: 100%;
    border-collapse: separate;
}

.venues-table thead{
    display: none;
}

.venues-table tbody tr{
    background: transparent;
}

.venues-table tbody tr:hover{
    background: transparent;
}

.venues-tableCell{
    padding: 0 !important;
}

.venueListItem_box{
    width: 100%;
    padding: 18px 28px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.65);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    background: transparent;
}

.venueListItem_box:last-child{
    border-bottom: none;
}

.venueListItem_box:hover{
    background: rgba(229, 240, 255, 0.6);
    transform: translateY(-1px);
}

.venueListItem_logoBox{
    width: 48px;
    height: 48px;
    border-radius: 14px;
    overflow: hidden;
    background: #e6f0ff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.venueListItem_logoIcon{
    width:100%;
    height:100%;
    object-fit: cover;
}

.venues-listItem{
    align-items: center;
    gap: 20px;
    width: 100%;
}

.venues-listItemText{
    justify-content: flex-start;
    align-items: flex-start;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.25;
}

.venues-listItemText > *{
    margin: 0;
}

.venues-listItemLocation{
    line-height: 1.25;
    color: inherit;
}

.venueListItem_name{
    font-weight: 700;
    font-size: 1.05rem;
    color: #1e293b;
}

.venues-empty{
    text-align: center;
    padding: 48px 16px;
    color: #6b7280;
    font-size: 0.95rem;
}

.statusIconLive{
    color:#16a34a;
}

.statusIconConstruction{
    color:#f59e0b;
}
.statusIconArchive{
    color:#ef4444;
}

:root.sl-theme-dark #venues_base{
    background: linear-gradient(180deg, var(--mm-dark-bg, #0b1120) 0%, var(--mm-dark-surface, #0f172a) 100%);
}

:root.sl-theme-dark .venues-header .headerIconBox{
    background: rgba(148, 163, 184, 0.16);
    color: var(--mm-dark-text, #f8fafc);
}

:root.sl-theme-dark .venues-subtitle{
    color: var(--mm-dark-muted, #94a3b8);
}

:root.sl-theme-dark #newVenueBtn::part(base){
    background: #1c2530;
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #f8fafc;
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.6);
}

:root.sl-theme-dark #newVenueBtn::part(base):hover{
    background: #273241;
    border-color: rgba(148, 163, 184, 0.4);
    box-shadow: 0 16px 30px rgba(2, 6, 23, 0.7);
}

:root.sl-theme-dark .venues-filterCard{
    background: linear-gradient(135deg, var(--mm-dark-surface, #0f172a) 0%, var(--mm-dark-surface-2, #111827) 100%);
    border: 1px solid var(--mm-dark-border, rgba(148, 163, 184, 0.2));
    box-shadow: var(--mm-dark-shadow, 0 20px 40px rgba(2, 6, 23, 0.6));
    color: var(--mm-dark-text, #f8fafc);
}

:root.sl-theme-dark .venues-filterCard:hover{
    background: var(--mm-dark-surface-2, #111827);
    border-color: rgba(148, 163, 184, 0.35);
}

:root.sl-theme-dark .venues-filterCard.is-active,
:root.sl-theme-dark .venues-filterCard[aria-pressed="true"]{
    background: linear-gradient(135deg, var(--mm-dark-surface-2, #111827) 0%, var(--mm-dark-surface-3, #1f2937) 100%);
    border-color: rgba(148, 163, 184, 0.35);
    box-shadow: 0 24px 44px rgba(2, 6, 23, 0.7);
}

:root.sl-theme-dark .venues-filterCount{
    color: var(--mm-dark-text, #f8fafc);
}

:root.sl-theme-dark .venues-filterLabel{
    color: var(--mm-dark-muted, #94a3b8);
}

:root.sl-theme-dark .venues-contentCard{
    background: var(--mm-dark-surface, #0f172a);
    border: 1px solid var(--mm-dark-border, rgba(148, 163, 184, 0.2));
    box-shadow: 0 32px 60px -40px rgba(2, 6, 23, 0.8);
}

:root.sl-theme-dark .venues-viewSwitch{
    background: var(--mm-dark-surface, #0f172a);
    border: 1px solid var(--mm-dark-border, rgba(148, 163, 184, 0.2));
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.4);
}

:root.sl-theme-dark .venues-viewSwitch sl-button::part(base){
    color: var(--mm-dark-muted, #94a3b8);
}

:root.sl-theme-dark .venues-viewSwitch sl-button[variant="primary"]::part(base){
    background: var(--mm-dark-surface-3, #1f2937);
    color: var(--mm-dark-text, #f8fafc);
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.6);
}

:root.sl-theme-dark .venues-card{
    background: linear-gradient(180deg, var(--mm-dark-surface, #0f172a) 0%, var(--mm-dark-surface-2, #111827) 100%);
    border: 1px solid var(--mm-dark-border, rgba(148, 163, 184, 0.2));
    box-shadow: 0 24px 48px -28px rgba(2, 6, 23, 0.7);
}

:root.sl-theme-dark .venues-card-media{
    background: rgba(148, 163, 184, 0.12);
}

:root.sl-theme-dark .venues-card-logo{
    background: rgba(15, 23, 42, 0.6);
    box-shadow: 0 16px 28px rgba(2, 6, 23, 0.5);
}

:root.sl-theme-dark .venues-card-name{
    color: var(--mm-dark-text, #f8fafc);
}

:root.sl-theme-dark .venues-card-location{
    color: var(--mm-dark-muted, #94a3b8);
}

:root.sl-theme-dark .venues-card-status{
    color: var(--mm-dark-body, #cbd5e1);
}

:root.sl-theme-dark .venueListItem_box{
    border-bottom: 1px solid var(--mm-dark-border-soft, rgba(148, 163, 184, 0.12));
}

:root.sl-theme-dark .venueListItem_box:hover{
    background: rgba(148, 163, 184, 0.12);
}

:root.sl-theme-dark .venueListItem_logoBox{
    background: rgba(148, 163, 184, 0.12);
}

:root.sl-theme-dark .venues-listItemText{
    color: var(--mm-dark-muted, #94a3b8);
}

:root.sl-theme-dark .venueListItem_name{
    color: var(--mm-dark-text, #f8fafc);
}

:root.sl-theme-dark .venues-empty{
    color: var(--mm-dark-muted, #94a3b8);
}

:root.sl-theme-dark .marketPage-shell,
:root.sl-theme-dark .marketDetail-shell{
    background: linear-gradient(180deg, var(--mm-dark-bg, #0b1120) 0%, var(--mm-dark-surface, #0f172a) 100%);
}

:root.sl-theme-dark .marketPage-headerCard,
:root.sl-theme-dark .marketPage-tabCard,
:root.sl-theme-dark .marketDetail-card{
    background: var(--mm-dark-surface, #0f172a);
    border: 1px solid var(--mm-dark-border, rgba(148, 163, 184, 0.2));
    box-shadow: var(--mm-dark-shadow, 0 20px 40px rgba(2, 6, 23, 0.6));
}

:root.sl-theme-dark .marketPage-avatar{
    background: rgba(148, 163, 184, 0.16);
}

:root.sl-theme-dark .marketPage-title,
:root.sl-theme-dark .marketDetail-heading,
:root.sl-theme-dark .marketDetail-title,
:root.sl-theme-dark .marketDetail-body h3{
    color: var(--mm-dark-text, #f8fafc);
}

:root.sl-theme-dark .marketPage-meta,
:root.sl-theme-dark .marketPage-sectionSub,
:root.sl-theme-dark .marketPage-panelPlaceholder,
:root.sl-theme-dark .marketDetail-subtitle,
:root.sl-theme-dark .marketDetail-date,
:root.sl-theme-dark .marketDetail-body p{
    color: var(--mm-dark-muted, #94a3b8);
}

:root.sl-theme-dark .marketDetail-info strong{
    color: var(--mm-dark-text, #f8fafc);
}

:root.sl-theme-dark #marketDetailTabs::part(nav){
    border-bottom: 1px solid var(--mm-dark-border-soft, rgba(148, 163, 184, 0.12));
}

:root.sl-theme-dark #marketDetailTabs sl-tab::part(base){
    color: var(--mm-dark-muted, #94a3b8);
}

:root.sl-theme-dark #marketDetailTabs sl-tab[active]::part(base){
    color: var(--mm-dark-text, #f8fafc);
}

:root.sl-theme-dark #marketDetailTabs::part(base),
:root.sl-theme-dark #marketDetailTabs::part(body),
:root.sl-theme-dark #marketDetailTabs sl-tab-panel::part(base){
    background: transparent;
}

:root.sl-theme-dark .marketDetail-mapPanel{
    background: var(--mm-dark-surface, #0f172a);
}

:root.sl-theme-dark .marketDetail-shell .market_dates_card{
    background: var(--mm-dark-surface, #0f172a);
    border: 1px solid var(--mm-dark-border, rgba(148, 163, 184, 0.2));
    box-shadow: 0 18px 36px -28px rgba(2, 6, 23, 0.7);
}

:root.sl-theme-dark .marketDetail-shell .market_card_header{
    background: #1C2530;
    color: var(--mm-dark-text, #f8fafc);
    border-bottom: 1px solid var(--mm-dark-border-soft, rgba(148, 163, 184, 0.12));
}

:root.sl-theme-dark .marketDetail-shell .market_card_header sl-badge::part(base),
:root.sl-theme-dark .marketDetail-shell .market_vendor_count::part(base){
    background: rgba(148, 163, 184, 0.2);
    border-color: rgba(148, 163, 184, 0.35);
    color: var(--mm-dark-text, #f8fafc);
}

:root.sl-theme-dark .marketDetail-shell .market_dates_card_body{
    color: var(--mm-dark-body, #cbd5e1);
}

:root.sl-theme-dark .marketDetail-shell .market_vendor_empty{
    color: var(--mm-dark-muted, #94a3b8);
}

:root.sl-theme-dark .marketDetail-shell .mv_vendor_name{
    color: var(--mm-dark-text, #f8fafc);
}

:root.sl-theme-dark #marketDetailBackBtn::part(base){
    background: #1C2530;
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #f8fafc;
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.6);
}

:root.sl-theme-dark #marketDetailBackBtn::part(base):hover{
    background: #273241;
    border-color: rgba(148, 163, 184, 0.4);
    box-shadow: 0 16px 30px rgba(2, 6, 23, 0.7);
}

:root.sl-theme-dark .marketPage-tabCard sl-tab-group::part(nav){
    border-bottom: 1px solid var(--mm-dark-border-soft, rgba(148, 163, 184, 0.12));
}

:root.sl-theme-dark .marketPage-tabCard sl-tab::part(base){
    color: var(--mm-dark-muted, #94a3b8);
}

:root.sl-theme-dark .marketPage-viewSwitch{
    background: var(--mm-dark-surface, #0f172a);
    border: 1px solid var(--mm-dark-border, rgba(148, 163, 184, 0.2));
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.4);
}

:root.sl-theme-dark .marketPage-viewSwitch sl-button::part(base){
    color: var(--mm-dark-muted, #94a3b8);
}

:root.sl-theme-dark .marketPage-viewSwitch sl-button[variant="primary"]::part(base){
    background: var(--mm-dark-surface-3, #1f2937);
    color: var(--mm-dark-text, #f8fafc);
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.6);
}

:root.sl-theme-dark .marketPage-marketCard{
    background: var(--mm-dark-surface, #0f172a);
    border: 1px solid var(--mm-dark-border, rgba(148, 163, 184, 0.2));
    box-shadow: 0 18px 36px -28px rgba(2, 6, 23, 0.7);
}

:root.sl-theme-dark .marketPage-marketCardHeader h4{
    color: var(--mm-dark-text, #f8fafc);
}

:root.sl-theme-dark .marketPage-marketCardBody p,
:root.sl-theme-dark .marketPage-marketMeta{
    color: var(--mm-dark-muted, #94a3b8);
}

:root.sl-theme-dark .marketPage-marketMeta i{
    color: var(--mm-dark-muted, #94a3b8);
}

:root.sl-theme-dark .marketPage-table th,
:root.sl-theme-dark .marketPage-table td{
    color: var(--mm-dark-body, #cbd5e1);
    border-bottom: 1px solid var(--mm-dark-border-soft, rgba(148, 163, 184, 0.12));
}

:root.sl-theme-dark .marketPage-table th{
    color: var(--mm-dark-muted, #94a3b8);
}

:root.sl-theme-dark .marketPage-empty{
    color: var(--mm-dark-muted, #94a3b8);
}

@media (max-width: 1024px){
    .venues-header{
        margin: 0;
    }
    .venues-body{
        margin: 24px 28px 56px 28px;
        width: calc(100% - 56px);
    }
}

@media (max-width: 640px){
    .venues-header{
        flex-wrap: wrap;
        gap: 12px;
    }
    .venues-header .headerIconBox{
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }
    .venues-body{
        margin: 16px 20px 48px 20px;
        width: calc(100% - 40px);
    }
    .venues-summaryRow{
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 12px;
    }
    .venueListItem_box{
        padding: 16px 20px;
    }
    .venues-viewSwitch{
        align-self: center;
    }
    .venues-grid{
        grid-template-columns: 1fr;
        padding: 16px;
    }
}
.venueDetails_iconBox{
    margin-left: auto;
    margin-right: auto;
}

.venueDetails_name{
    text-align: center;
}

.venueDetail_statusText{
    margin-left:10px;
}
.venueDetail_statusTextRow{
    margin-top: 10px;
}

.venueDetails_statusText{
    margin-left:10px;
}

.venueDetails_name{
    margin-top:10px;
}
#wizard_splashImageBox{
    position: relative;
    width:150px;
    height:267px;
    border: 1px solid;
    border-color: var(--border-color);
    cursor: pointer;
    overflow: hidden;
}

#wizard_iconBox{
    position: relative;
    width:80px;
    height:80px;
    border: 1px solid;
    border-color: var(--border-color);
    cursor: pointer;
    overflow: hidden;
}

#wizard_splashImageBoxSummary{
    position: relative;
    width:150px;
    height:267px;
    border: 1px solid;
    border-color: var(--border-color);
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

#wizard_iconBoxSummary{
    position: relative;
    width:80px;
    height:80px;
    border: 1px solid;
    border-color: var(--border-color);
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

#wizard_splashImageIcon{
    position: absolute;
    top:115px;
    left:68px;
}

#wizard_splashIconIcon{
    position: absolute;
    top:30px;
    left:30px;
}
#wizard_splashImageIconSummary{
    position: absolute;
    top:115px;
    left:68px;
}
#wizard_splashIconIconSummary{
    position: absolute;
    top:30px;
    left:30px;
}

.wizardBtn{
    margin-left: 5px;
    margin-right: 5px;
  }

  .wizardInstructs {
    margin-top: 10px;
    font-size: 12px;
    color: var(--sl-color-primary-600);
    margin-bottom: 20px;
    text-align: center;
}

.wizardSummary_boldText{
    font-weight: 900;
}

.wizardSummary_text{
    margin-left: 10px;
}

.venueWizard-summaryLayout{
    min-height: 301px;
    width: 100%;
    box-sizing: border-box;
    padding: 0 16px;
    display: grid;
    grid-template-columns: minmax(280px, 1.6fr) minmax(170px, 1fr) minmax(120px, 0.7fr);
    gap: 24px;
    align-items: start;
}

.venueWizard-summaryText{
    min-width: 0;
}

.venueWizard-summaryMedia{
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.venueWizard-summaryMedia h6{
    margin: 0 0 8px 0;
}

.venueWizard-summaryLocationRow{
    flex-wrap: wrap;
    row-gap: 4px;
}

@media (max-width: 1200px){
    .venueWizard-summaryLayout{
        grid-template-columns: minmax(240px, 1fr) minmax(160px, 0.9fr);
    }
}

@media (max-width: 860px){
    .venueWizard-summaryLayout{
        grid-template-columns: 1fr;
    }
}

#marketDetailTabs sl-tab-panel[name="shifts"]::part(base) {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 295px) !important;
}

#marketDetailTabs sl-tab-panel[name="details"]::part(base) {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

#marketDetailTabs sl-tab-panel[name="map"]::part(base) {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1 1 auto;
    width: 100%;
}

#marketDetailTabs sl-tab-panel[active] {
    flex: 1 1 auto;
    min-height: 0;
}

#marketDetailTabs sl-tab-panel[active]::part(base) {
    height: 100%;
    min-height: 0;
    width: 100%;
}

#marketDetailTabs::part(base),
#marketDetailTabs::part(body) {
    width: 100%;
}

#marketDetailTabs sl-tab-panel[active] {
    width: 100%;
}

.marketDetail-mapPanel .market-map-layout {
    height: 100%;
    min-height: 0;
    max-height: 100%;
}

#market_dash {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
    padding: 4px 0 12px;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

.marketDetail-shell .market_dates_card {
    flex: 1 1 260px;
    max-width: 320px;
    width: auto;
    height: auto;
    margin: 0;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 18px 36px -28px rgba(15, 23, 42, 0.3);
}

.marketDetail-shell .market_card_header {
    height: auto;
    padding: 10px 14px;
    line-height: normal;
    text-align: left;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: #ffffff;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.marketDetail-shell .market_card_header sl-icon {
    color: inherit;
}

.marketDetail-shell .market_card_header sl-badge::part(base),
.marketDetail-shell .market_vendor_count::part(base) {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.marketDetail-shell .market_dates_card_body {
    flex: 1 1 auto;
    margin-left: 0;
    padding: 12px 16px 16px;
    height: auto;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#marketDetailBackBtn::part(base) {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    border: none;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.35);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    gap: 8px;
}

#marketDetailBackBtn::part(label),
#marketDetailBackBtn sl-icon {
    color: inherit;
}

#marketDetailBackBtn::part(base):hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #6d28d9 100%);
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}

#marketDetailBackBtn::part(base):active {
    transform: translateY(0);
}

#venueBase {
    background: white;
    margin: 20px;
    flex: 1;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border:1px solid rgba(221, 229, 239, 0.9)
}

#venue_headerSection{
    height:200px;
}

#venue_dataSection{
    flex:1;

}

#marketPageBackBtn{
    margin: 20px;
}

#marketPageShell{
    background: #FAFAFB;
}

:root.sl-theme-dark #marketPageShell{
    background: linear-gradient(180deg, var(--mm-dark-bg, #0b1120) 0%, var(--mm-dark-surface, #0f172a) 100%);
}

:root.sl-theme-dark #venueBase{
    background: var(--mm-dark-surface, #0f172a);
    border: 1px solid var(--mm-dark-border, rgba(148, 163, 184, 0.2));
    box-shadow: var(--mm-dark-shadow, 0 20px 40px rgba(2, 6, 23, 0.6));
}

:root.sl-theme-dark #venue_headerSection{
    border-bottom: 1px solid var(--mm-dark-border-soft, rgba(148, 163, 184, 0.12));
}

:root.sl-theme-dark #venue_dataSection{
    background: transparent;
}

:root.sl-theme-dark .marketPage-shell sl-tag::part(base){
    background: rgba(148, 163, 184, 0.16);
    border-color: rgba(148, 163, 184, 0.24);
    color: #e2e8f0;
}

:root.sl-theme-dark sl-button.market-create-btn::part(base){
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid var(--mm-dark-border, rgba(148, 163, 184, 0.2));
    color: #e2e8f0;
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.5);
}

:root.sl-theme-dark sl-button.market-create-btn::part(base):hover{
    background: rgba(148, 163, 184, 0.2);
    border-color: rgba(148, 163, 184, 0.35);
    box-shadow: 0 16px 30px rgba(2, 6, 23, 0.6);
}
