/**
 * MÃ¼Återi paneli â arka plan renkleri (tam beyaz yerine #f1f1f1 / #ebebeb)
 */
body,
.wrapper {
    background-color: #f1f1f1 !important;
}
.content-page,
.content {
    background-color: #f1f1f1 !important;
}
/* content-page flex: footer alta otursun, iÃ§erik kesilmesin */
.content-page {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--ins-topbar-height, 70px) - 1px);
    height: auto;
    overflow: visible;
}
.content-page > .content {
    flex: 1 0 auto;
    width: 100%;
    min-width: 0;
    padding-bottom: 1rem;
    overflow: visible;
}
.content-page > .footer {
    position: relative;
    flex-shrink: 0;
    margin-top: auto;
    width: auto;
    z-index: 1;
}
/* Sol menÃ¼ (masaÃ¼stÃ¼) */
.sidenav-menu {
    background-color: #f1f1f1 !important;
}
.sidenav-menu .logo {
    background: #1a1a1a !important;
}
/*
 * Ãift logo Ã¶nleme:
 * - Topbar koyu + menÃ¼ âlightâ iken theme light/dark varyantÄ±nÄ± birlikte basabiliyordu.
 * - Topbar + sidenav birlikte masaÃ¼stÃ¼nde iki marka gÃ¶steriyordu â topbar logosu kapalÄ±.
 * - HTML tek marka (logo-lg / logo-sm); condensedâde sm / defaultâta lg.
 */
.sidenav-menu > a.logo .logo-lg {
    display: block !important;
}
.sidenav-menu > a.logo .logo-sm {
    display: none !important;
}
html[data-sidenav-size=condensed] .sidenav-menu > a.logo .logo-lg,
html[data-sidenav-size=on-hover] .sidenav-menu:not(:hover) > a.logo .logo-lg {
    display: none !important;
}
html[data-sidenav-size=condensed] .sidenav-menu > a.logo .logo-sm,
html[data-sidenav-size=on-hover] .sidenav-menu:not(:hover) > a.logo .logo-sm {
    display: block !important;
}

.app-topbar {
    background: #1a1a1a;
    overflow: visible;
}

/* Ãst Ã§ubuk: logo | ortada arama | saÄda site + profil */
.app-topbar .topbar-menu.customer-topbar-menu {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem 0.5rem;
    overflow: visible;
    min-width: 0;
    width: 100%;
}
.customer-topbar-menu .topbar-search-center {
    flex: 1 1 0;
    min-width: 0;
}
.customer-topbar-start {
    min-width: 0;
}
.customer-topbar-actions {
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: 0;
    margin-left: auto;
    gap: 0.5rem;
    align-items: center;
}
.customer-topbar-icon-cluster {
    gap: 0.35rem;
    align-items: center;
}
@media (min-width: 992px) {
    .customer-topbar-icon-cluster {
        gap: 0.45rem;
    }
}
.app-topbar .logo-topbar {
    float: none;
    line-height: normal;
    /* MasaÃ¼stÃ¼: marka sol menÃ¼de; topbarâda ikinci logo yok */
    display: none !important;
    align-items: center;
    padding: 0;
    height: auto;
}
.app-topbar .logo-topbar .logo-dark {
    display: none !important;
}
.app-topbar .logo-topbar .logo-light {
    display: block !important;
}
.app-topbar .logo-topbar .logo-sm {
    display: none !important;
}
.app-topbar .logo-topbar .logo-lg {
    display: block !important;
}
.customer-topbar-avatar {
    width: 34px;
    height: 34px;
}
.topbar-mobile-search-btn {
    color: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    flex-shrink: 0;
}
.topbar-mobile-search-btn:hover,
.topbar-mobile-search-btn:focus,
.topbar-mobile-search-btn[aria-expanded="true"] {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
}
.merchant-quick-search-mobile-sheet {
    background: #1a1a1a;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.35rem;
}
.merchant-quick-search-mobile-sheet[hidden] {
    display: none !important;
}

/* Ãst Ã§ubuk: aktif site seÃ§ici (kompakt pill) */
.subscription-switcher-topbar {
    flex: 1 1 auto;
    flex-shrink: 1;
    min-width: 0;
    max-width: min(280px, 42vw);
    overflow: visible;
    position: relative;
}
.subscription-switcher-dd {
    max-width: 100%;
    width: 100%;
    position: relative !important;
}
.subscription-switcher-trigger {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
    max-width: 100%;
    padding: 0.28rem 0.55rem 0.28rem 0.65rem;
    margin: 0;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.92);
    text-align: left;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.subscription-switcher-trigger:hover,
.subscription-switcher-trigger:focus,
.subscription-switcher-trigger.show {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}
.subscription-switcher-trigger:focus {
    box-shadow: none;
    outline: none;
}
.subscription-switcher-pill-icon {
    flex-shrink: 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.55);
}
.subscription-switcher-label {
    flex: 1;
    min-width: 0;
}
.subscription-switcher-chevron {
    flex-shrink: 0;
    font-size: 0.85rem;
    opacity: 0.55;
}
.subscription-switcher-menu {
    min-width: min(280px, 92vw);
    max-width: min(320px, 92vw);
    max-height: min(320px, 55vh);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.25rem;
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    z-index: 1080;
}
/* body portal (topbar-dropdowns.js) */
.mt-topbar-dropdown-portal.subscription-switcher-menu {
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.subscription-switcher-menu .dropdown-item {
    border-radius: 6px;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.9);
}
.subscription-switcher-menu .dropdown-item:hover,
.subscription-switcher-menu .dropdown-item:focus {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
.subscription-switcher-menu .dropdown-item.active {
    background: rgba(102, 88, 221, 0.25);
    color: #fff;
}
.subscription-switcher-opt-spacer {
    display: inline-block;
    width: 1.125rem;
}
.subscription-switcher-empty {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    max-width: 100%;
    padding: 0.35rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px dashed rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.subscription-switcher-empty:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
}
.subscription-switcher-empty .ti {
    font-size: 1rem;
    opacity: 0.75;
}

/* Ãst Ã§ubuk: maÄaza hÄ±zlÄ± arama (Shopify benzeri Ã¶neri paneli) */
.merchant-quick-search-wrap {
    z-index: 1040;
}
.merchant-quick-search-input-wrap {
    position: relative;
}
/* AÃ§Ä±lÄ±r liste, input ile aynÄ± geniÅlikte (Ã¼st Ã§ubukta ortalanmÄ±Å) */
.merchant-quick-search-input-wrap .merchant-quick-search-panel {
    left: 0;
    right: 0;
    width: 100%;
    min-width: 0;
}
.merchant-quick-search-wrap .topbar-search {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: rgba(255, 255, 255, 0.95) !important;
    padding-left: 40px;
    width: 100%;
    max-width: 100%;
}
.merchant-quick-search-wrap .topbar-search::placeholder {
    color: rgba(255, 255, 255, 0.45);
}
.merchant-quick-search-wrap .topbar-search:focus {
    border-color: rgba(255, 255, 255, 0.35) !important;
    box-shadow: none !important;
    background: rgba(255, 255, 255, 0.1) !important;
}
.merchant-quick-search-wrap .app-search-icon {
    color: rgba(255, 255, 255, 0.45) !important;
}
.merchant-quick-search-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.4rem;
    border-radius: 12px;
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 1060;
    max-height: min(70vh, 420px);
    overflow-x: hidden;
    overflow-y: auto;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.merchant-quick-search-group-head {
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.merchant-quick-search-item {
    transition: background 0.12s ease;
}
.merchant-quick-search-item:hover,
.merchant-quick-search-item:focus {
    background: rgba(255, 255, 255, 0.06);
}
.merchant-quick-search-footer {
    background: rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.08) !important;
}
.merchant-quick-search-footer a {
    color: rgba(255, 255, 255, 0.75) !important;
}
.merchant-quick-search-footer a:hover {
    color: #fff !important;
}
.merchant-search-page-item:last-child {
    border-bottom: 0 !important;
}
.merchant-search-page-item:hover {
    background: #f8f9fa !important;
}

/* YazdÄ±rma: no-print ile iÅaretli Ã¶Äeler gizlensin */
@media print {
    .no-print,
    .sidenav-menu,
    .app-topbar,
    .button-on-hover,
    .button-close-offcanvas {
        display: none !important;
    }
}

/* ââ Sayfa baÅlÄ±ÄÄ± (page-title-head + page-title-box) â tÃ¼m panel, kompakt ââ */
.page-title-head,
.page-title-box {
    min-height: 0 !important;
    padding: 0.25rem 0 0.4rem !important;
    margin-bottom: 0.5rem !important;
    gap: 0.25rem 0.65rem;
    align-items: center !important;
    flex-wrap: wrap;
}
.page-title-head.mb-2,
.page-title-head.mb-3,
.page-title-head.mb-4,
.page-title-box.mb-2,
.page-title-box.mb-3,
.page-title-box.mb-4 {
    margin-bottom: 0.5rem !important;
}
.page-title-head h1,
.page-title-head h2,
.page-title-head h3,
.page-title-head h4,
.page-title-head h5,
.page-title-head h6,
.page-title-head .fs-xl,
.page-title-head .fs-xxl,
.page-title-head .page-title,
.page-title-box h1,
.page-title-box h2,
.page-title-box h3,
.page-title-box h4,
.page-title-box h5,
.page-title-box h6,
.page-title-box .page-title {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    margin: 0 !important;
}
.page-title-head .breadcrumb,
.page-title-box .breadcrumb {
    font-size: 0.625rem !important;
    line-height: 1.15 !important;
    margin: 0 !important;
    padding: 0 !important;
    --ins-breadcrumb-divider-color: rgba(0, 0, 0, 0.35);
}
.page-title-head .breadcrumb-item + .breadcrumb-item::before,
.page-title-box .breadcrumb-item + .breadcrumb-item::before {
    font-size: 0.6rem;
    padding-right: 0.25rem;
}
.page-title-head .breadcrumb-item a,
.page-title-box .breadcrumb-item a {
    text-decoration: none;
}
.page-title-head .flex-grow-1 > p,
.page-title-head > p,
.page-title-head p.text-muted,
.page-title-head .page-title-sub {
    font-size: 0.625rem !important;
    line-height: 1.2 !important;
    margin: 0.1rem 0 0 !important;
    opacity: 0.8;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.page-title-head .btn,
.page-title-head .btn-sm,
.page-title-box .btn,
.page-title-box .btn-sm {
    font-size: 0.6875rem;
    padding: 0.2rem 0.45rem;
}

/*
 * Header zaten container-fluid aÃ§Ä±yor; sayfa iÃ§i ikinci fluid yatay gutterâÄ± ikiye katlar.
 * GeÃ§ici: iÃ§ fluidâin yan paddingâini sÄ±fÄ±rla (Ã¼rÃ¼nler/kategoriler gibi tek fluid davranÄ±ÅÄ±).
 */
.content-page > .content > .container-fluid > .container-fluid {
    --bs-gutter-x: 0;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Kart aralÄ±ÄÄ± â tema 1.5rem fazla boÅluk bÄ±rakÄ±yordu */
.content-page .card {
    margin-bottom: 1rem;
}

/* Toolbar / baÅlÄ±k satÄ±rlarÄ±nda tema gap-3 mirasÄ±nÄ± ez */
.content-page .card-header {
    gap: 0.5rem !important;
}
.content-page .card-header.gap-1 { gap: 0.25rem !important; }
.content-page .card-header.gap-2 { gap: 0.5rem !important; }
.content-page .card-header.gap-3 { gap: 0.75rem !important; }

/* SMS entegrasyon aktif bar: dar ekranda border-start kÄ±rÄ±lmasÄ±n */
@media (max-width: 575.98px) {
    .sms-aktif-toggle-col {
        border-left: 0 !important;
        padding-left: 0 !important;
        border-top: 1px solid rgba(15, 23, 42, 0.08);
        padding-top: 0.75rem;
        width: 100%;
    }
}

/* Bootstrap modal stack â backdrop body'de, modal iÃ§erikte kalÄ±rsa tÄ±klanamaz */
body.modal-open .modal-backdrop {
    z-index: 1090 !important;
}
body.modal-open .modal,
body.modal-open .modal.show {
    z-index: 1100 !important;
}
body.modal-open .modal.show .modal-dialog {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    pointer-events: auto !important;
}
body.modal-open .modal.show .modal-content {
    pointer-events: auto !important;
}
#modal-merchant-notification.modal.show {
    z-index: 1110 !important;
}

/* ââ Mobil / tablet: topbar + iÃ§erik uyumu ââ */
@media (max-width: 991.98px) {
    .app-topbar .topbar-menu.customer-topbar-menu {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        gap: 0.5rem;
        align-items: center;
    }
    .customer-topbar-actions {
        gap: 0.5rem;
    }
    .subscription-switcher-topbar {
        max-width: min(220px, 42vw);
    }
    .content-page {
        /* Tek fluid gutter yeterli; ekstra yan pad dar ekranda sÄ±kÄ±ÅtÄ±rÄ±yordu */
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 767.98px) {
    .app-topbar {
        overflow: visible;
    }
    .app-topbar .topbar-menu.customer-topbar-menu {
        padding-left: 0.65rem;
        padding-right: 0.65rem;
        gap: 0.55rem;
        height: var(--ins-topbar-height);
        overflow: visible;
        align-items: center;
    }
    .customer-topbar-start {
        gap: 0 !important;
    }
    .customer-topbar-start .logo-topbar {
        display: none !important;
    }
    .customer-topbar-actions {
        gap: 0.5rem !important;
        align-items: center;
        flex: 1 1 auto;
        min-width: 0;
    }
    /* Site seÃ§ici ortada nefes alÄ±r; ikonlar saÄda grup */
    .subscription-switcher-topbar {
        flex: 1 1 auto;
        max-width: none;
        min-width: 0;
        margin-right: 0.15rem;
    }
    .subscription-switcher-trigger {
        height: 36px;
        padding: 0 0.65rem 0 0.55rem;
        font-size: 0.78rem;
        gap: 0.35rem;
        justify-content: flex-start;
    }
    .subscription-switcher-pill-icon,
    .subscription-switcher-chevron {
        font-size: 0.95rem;
    }
    .subscription-switcher-empty {
        height: 36px;
        padding: 0 0.65rem;
        max-width: 100%;
    }
    .subscription-switcher-empty-text {
        display: none;
    }
    .customer-topbar-icon-cluster {
        gap: 0.4rem !important;
        flex-shrink: 0;
    }
    /* Ortak ikon buton boyutu â eÅit hiza */
    .app-topbar .sidenav-toggle-button,
    .topbar-mobile-search-btn,
    .customer-topbar-help .customer-topbar-icon-btn,
    .customer-topbar-help .btn,
    .app-topbar .topbar-item .topbar-link,
    .customer-topbar-user .customer-topbar-icon-btn {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        padding: 0 !important;
        margin: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 10px !important;
        flex-shrink: 0;
        line-height: 1 !important;
    }
    .topbar-mobile-search-btn,
    .app-topbar .sidenav-toggle-button {
        color: rgba(255, 255, 255, 0.9) !important;
        border: 1px solid rgba(255, 255, 255, 0.14) !important;
        background: rgba(255, 255, 255, 0.06) !important;
    }
    .customer-topbar-help .btn {
        border-radius: 10px !important;
    }
    .customer-topbar-avatar {
        width: 28px !important;
        height: 28px !important;
    }
    .app-topbar #merchant-notifications-wrap.topbar-item,
    .app-topbar .customer-topbar-user.topbar-item {
        height: 36px;
        width: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .subscription-switcher-menu .dropdown-item {
        min-height: 44px;
        color: rgba(255, 255, 255, 0.92) !important;
    }
    .page-title-head .text-end.d-none.d-md-block {
        display: none !important;
    }
    .page-title-head {
        padding-bottom: 0.3rem !important;
    }
    .page-title-head .text-end {
        max-width: 100%;
    }
    .page-title-head .breadcrumb {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .card-header.d-flex {
        align-items: stretch !important;
    }
    .content-page .container-fluid {
        --ins-gutter-x: 0.75rem;
    }
    .alert .btn {
        white-space: normal;
        text-align: center;
    }
    .alert .flex-shrink-0 {
        width: 100%;
    }
    .alert .flex-shrink-0 .btn {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .app-topbar .topbar-menu.customer-topbar-menu {
        padding-left: 0.55rem;
        padding-right: 0.55rem;
        gap: 0.45rem;
    }
    .customer-topbar-actions {
        gap: 0.4rem !important;
    }
    .customer-topbar-icon-cluster {
        gap: 0.3rem !important;
    }
    .subscription-switcher-topbar {
        max-width: none;
    }
    .app-topbar .topbar-item.dropdown,
    .app-topbar .customer-topbar-help.dropdown,
    .app-topbar .customer-topbar-user.dropdown,
    .app-topbar .customer-topbar-notifications.dropdown {
        position: relative !important;
    }
}

@media (max-width: 399.98px) {
    .customer-topbar-help {
        display: none !important;
    }
    .customer-topbar-icon-cluster {
        gap: 0.35rem !important;
    }
}
