/* =====================================================================
   PANDAWA STUDIO — Guest Tabler Cascade Fix v1.4
   Loaded LAST in <head>, after @stack('head') and page-inline styles.
   Scope: Guest shell only. Member/Admin pages are intentionally excluded.
   ===================================================================== */

/* Guest navigation geometry: exact current Member sidebar rhythm. */
body.pandawa-guest-shell[data-pandawa-ui="tabler"][data-pandawa-theme-context="guest"] #pandawa-guest-sidebar .pandawa-guest-navigation,
body.pandawa-checkout-shell[data-pandawa-ui="tabler"][data-pandawa-theme-context="guest"] #pandawa-guest-sidebar .pandawa-guest-navigation {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 3px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding-right: 12px !important;
    padding-left: 12px !important;
}

body.pandawa-guest-shell[data-pandawa-ui="tabler"][data-pandawa-theme-context="guest"] #pandawa-guest-sidebar .pandawa-guest-navigation > .nav-link,
body.pandawa-checkout-shell[data-pandawa-ui="tabler"][data-pandawa-theme-context="guest"] #pandawa-guest-sidebar .pandawa-guest-navigation > .nav-link {
    display: flex !important;
    flex: 0 0 auto !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;
    height: auto !important;
    gap: 11px !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    border: 1px solid transparent !important;
    border-radius: 9px !important;
    font-size: 14px !important;
    font-weight: 550 !important;
    line-height: 1.4 !important;
    text-align: left !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease !important;
}

body.pandawa-guest-shell[data-pandawa-ui="tabler"][data-pandawa-theme-context="guest"] #pandawa-guest-sidebar .pandawa-guest-navigation > .nav-link > span:not(.nav-link-icon),
body.pandawa-checkout-shell[data-pandawa-ui="tabler"][data-pandawa-theme-context="guest"] #pandawa-guest-sidebar .pandawa-guest-navigation > .nav-link > span:not(.nav-link-icon) {
    display: block !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

body.pandawa-guest-shell[data-pandawa-ui="tabler"][data-pandawa-theme-context="guest"] #pandawa-guest-sidebar .pandawa-guest-nav-heading,
body.pandawa-checkout-shell[data-pandawa-ui="tabler"][data-pandawa-theme-context="guest"] #pandawa-guest-sidebar .pandawa-guest-nav-heading {
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 22px 10px 8px !important;
    padding: 0 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1.45 !important;
    letter-spacing: .09em !important;
    text-align: left !important;
    text-transform: uppercase !important;
}

body.pandawa-guest-shell[data-pandawa-ui="tabler"][data-pandawa-theme-context="guest"] #pandawa-guest-sidebar .pandawa-guest-nav-heading:first-child,
body.pandawa-checkout-shell[data-pandawa-ui="tabler"][data-pandawa-theme-context="guest"] #pandawa-guest-sidebar .pandawa-guest-nav-heading:first-child {
    margin-top: 2px !important;
}

/* Dark hover/focus must remain dark on the dark sidebar. */
html[data-bs-theme="dark"] body.pandawa-guest-shell[data-pandawa-ui="tabler"][data-pandawa-theme-context="guest"] #pandawa-guest-sidebar .pandawa-guest-navigation > .nav-link:hover:not(.active),
html[data-bs-theme="dark"] body.pandawa-checkout-shell[data-pandawa-ui="tabler"][data-pandawa-theme-context="guest"] #pandawa-guest-sidebar .pandawa-guest-navigation > .nav-link:hover:not(.active),
body.pandawa-guest-shell.dark-only[data-pandawa-ui="tabler"][data-pandawa-theme-context="guest"] #pandawa-guest-sidebar .pandawa-guest-navigation > .nav-link:hover:not(.active),
body.pandawa-checkout-shell.dark-only[data-pandawa-ui="tabler"][data-pandawa-theme-context="guest"] #pandawa-guest-sidebar .pandawa-guest-navigation > .nav-link:hover:not(.active),
html[data-bs-theme="dark"] body.pandawa-guest-shell[data-pandawa-ui="tabler"][data-pandawa-theme-context="guest"] #pandawa-guest-sidebar .pandawa-guest-navigation > .nav-link:focus-visible:not(.active),
html[data-bs-theme="dark"] body.pandawa-checkout-shell[data-pandawa-ui="tabler"][data-pandawa-theme-context="guest"] #pandawa-guest-sidebar .pandawa-guest-navigation > .nav-link:focus-visible:not(.active),
body.pandawa-guest-shell.dark-only[data-pandawa-ui="tabler"][data-pandawa-theme-context="guest"] #pandawa-guest-sidebar .pandawa-guest-navigation > .nav-link:focus-visible:not(.active),
body.pandawa-checkout-shell.dark-only[data-pandawa-ui="tabler"][data-pandawa-theme-context="guest"] #pandawa-guest-sidebar .pandawa-guest-navigation > .nav-link:focus-visible:not(.active) {
    color: #e4dcff !important;
    -webkit-text-fill-color: #e4dcff !important;
    background: #2a3a50 !important;
    background-color: #2a3a50 !important;
    background-image: none !important;
    border-color: #354968 !important;
    box-shadow: none !important;
}

html[data-bs-theme="dark"] body.pandawa-guest-shell[data-pandawa-ui="tabler"][data-pandawa-theme-context="guest"] #pandawa-guest-sidebar .pandawa-guest-navigation > .nav-link:hover:not(.active) > *,
html[data-bs-theme="dark"] body.pandawa-checkout-shell[data-pandawa-ui="tabler"][data-pandawa-theme-context="guest"] #pandawa-guest-sidebar .pandawa-guest-navigation > .nav-link:hover:not(.active) > *,
body.pandawa-guest-shell.dark-only[data-pandawa-ui="tabler"][data-pandawa-theme-context="guest"] #pandawa-guest-sidebar .pandawa-guest-navigation > .nav-link:hover:not(.active) > *,
body.pandawa-checkout-shell.dark-only[data-pandawa-ui="tabler"][data-pandawa-theme-context="guest"] #pandawa-guest-sidebar .pandawa-guest-navigation > .nav-link:hover:not(.active) > * {
    color: #e4dcff !important;
    -webkit-text-fill-color: #e4dcff !important;
}

html[data-bs-theme="dark"] body.pandawa-guest-shell[data-pandawa-ui="tabler"][data-pandawa-theme-context="guest"] #pandawa-guest-sidebar .pandawa-guest-navigation > .nav-link.active:hover,
html[data-bs-theme="dark"] body.pandawa-checkout-shell[data-pandawa-ui="tabler"][data-pandawa-theme-context="guest"] #pandawa-guest-sidebar .pandawa-guest-navigation > .nav-link.active:hover,
body.pandawa-guest-shell.dark-only[data-pandawa-ui="tabler"][data-pandawa-theme-context="guest"] #pandawa-guest-sidebar .pandawa-guest-navigation > .nav-link.active:hover,
body.pandawa-checkout-shell.dark-only[data-pandawa-ui="tabler"][data-pandawa-theme-context="guest"] #pandawa-guest-sidebar .pandawa-guest-navigation > .nav-link.active:hover {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: #354968 !important;
    background-color: #354968 !important;
    border-color: transparent !important;
}

/* /layanan: tone down the white borders from the page's later inline styles. */
html[data-bs-theme="dark"] body.pandawa-checkout-shell[data-pandawa-ui="tabler"][data-pandawa-theme-context="guest"][data-pandawa-page="layanan"] #servicesCatalogContent,
body.pandawa-checkout-shell.dark-only[data-pandawa-ui="tabler"][data-pandawa-theme-context="guest"][data-pandawa-page="layanan"] #servicesCatalogContent {
    border-color: #344258 !important;
}

html[data-bs-theme="dark"] body.pandawa-checkout-shell[data-pandawa-ui="tabler"][data-pandawa-theme-context="guest"][data-pandawa-page="layanan"] #servicesCatalogContent :is(.catalog-panel, .catalog-platform-selector, .catalog-filter, .catalog-refinement-group, .catalog-platform-group, .catalog-card, .catalog-empty, details.catalog-category-filter, details.catalog-group),
body.pandawa-checkout-shell.dark-only[data-pandawa-ui="tabler"][data-pandawa-theme-context="guest"][data-pandawa-page="layanan"] #servicesCatalogContent :is(.catalog-panel, .catalog-platform-selector, .catalog-filter, .catalog-refinement-group, .catalog-platform-group, .catalog-card, .catalog-empty, details.catalog-category-filter, details.catalog-group) {
    border-color: #344258 !important;
}

html[data-bs-theme="dark"] body.pandawa-checkout-shell[data-pandawa-ui="tabler"][data-pandawa-theme-context="guest"][data-pandawa-page="layanan"] #servicesCatalogContent :is(.catalog-platform, .catalog-chip, .catalog-target, .catalog-server, .catalog-detail, .catalog-reset, .catalog-group-filter-button, .catalog-disclosure-arrow, .catalog-filter input, .catalog-filter select),
body.pandawa-checkout-shell.dark-only[data-pandawa-ui="tabler"][data-pandawa-theme-context="guest"][data-pandawa-page="layanan"] #servicesCatalogContent :is(.catalog-platform, .catalog-chip, .catalog-target, .catalog-server, .catalog-detail, .catalog-reset, .catalog-group-filter-button, .catalog-disclosure-arrow, .catalog-filter input, .catalog-filter select) {
    border-color: #3a4a63 !important;
}

html[data-bs-theme="dark"] body.pandawa-checkout-shell[data-pandawa-ui="tabler"][data-pandawa-theme-context="guest"][data-pandawa-page="layanan"] #servicesCatalogContent :is(.catalog-group-heading, .catalog-platform-group-heading, .catalog-meta, .catalog-detail-box, .catalog-price-area, .catalog-info-header, .catalog-modal-header, .catalog-modal-footer, .catalog-modal-description),
body.pandawa-checkout-shell.dark-only[data-pandawa-ui="tabler"][data-pandawa-theme-context="guest"][data-pandawa-page="layanan"] #servicesCatalogContent :is(.catalog-group-heading, .catalog-platform-group-heading, .catalog-meta, .catalog-detail-box, .catalog-price-area, .catalog-info-header, .catalog-modal-header, .catalog-modal-footer, .catalog-modal-description) {
    border-color: #344258 !important;
}

/* Preserve the dashed empty-state treatment while darkening only its line. */
html[data-bs-theme="dark"] body.pandawa-checkout-shell[data-pandawa-ui="tabler"][data-pandawa-theme-context="guest"][data-pandawa-page="layanan"] #servicesCatalogContent .catalog-empty,
body.pandawa-checkout-shell.dark-only[data-pandawa-ui="tabler"][data-pandawa-theme-context="guest"][data-pandawa-page="layanan"] #servicesCatalogContent .catalog-empty {
    border-color: #344258 !important;
}
