@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap");
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css");

/* ═══════════════════════════════════════════════════════════════
   BAYİ YÖNETİM PORTALI — KURUMSAL MODERN TASARIM SİSTEMİ
   Premium Corporate Dashboard · Red Accent · Clean Architecture
   ═══════════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKEN SİSTEMİ ─────────────────────────────────── */
:root,
.portal-modern,
.portal-wrapper {
    /* Brand Colors */
    --pm-red:           var(--PortalColor, #e01b22);
    --pm-red-hover:     color-mix(in srgb, var(--pm-red) 82%, #000);
    --pm-red-deep:      color-mix(in srgb, var(--pm-red) 65%, #000);
    --pm-red-light:     color-mix(in srgb, var(--pm-red) 10%, #fff);
    --pm-red-subtle:    color-mix(in srgb, var(--pm-red) 5%, #fff);
    --pm-red-glow:      color-mix(in srgb, var(--pm-red) 20%, transparent);

    /* Neutral Palette */
    --pm-slate-900:     #0d1321;
    --pm-slate-800:     #1a2332;
    --pm-slate-700:     #253347;
    --pm-slate-600:     #3d5068;
    --pm-slate-500:     #566880;
    --pm-slate-400:     #7a8fa6;
    --pm-slate-300:     #a8b8c8;
    --pm-slate-200:     #d0dae4;
    --pm-slate-100:     #e8edf2;
    --pm-slate-50:      #f4f6f9;

    /* Text System */
    --pm-text-primary:    #0d1321;
    --pm-text-secondary:  #3d5068;
    --pm-text-muted:      #7a8fa6;
    --pm-text-faint:      #a8b8c8;
    --pm-text-light:      #d0dae4;
    --pm-text-inverse:    #ffffff;

    /* Surface System */
    --pm-bg:              #ffffff;
    --pm-bg-subtle:       #f8f9fb;
    --pm-bg-muted:        #f2f4f7;
    --pm-bg-canvas:       #eef1f5;
    --pm-surface-raised:  #ffffff;
    --pm-surface-sunken:  #f4f6f9;

    /* Border System */
    --pm-border:          #dde2ea;
    --pm-border-light:    #eaecf0;
    --pm-border-strong:   #c8cfd8;
    --pm-border-focus:    var(--pm-red);

    /* Status Colors */
    --pm-success:         #0d9e6a;
    --pm-success-light:   #e6f7f1;
    --pm-warning:         #d97706;
    --pm-warning-light:   #fef3e2;
    --pm-danger:          var(--pm-red);
    --pm-danger-light:    var(--pm-red-light);
    --pm-info:            #0284c7;
    --pm-info-light:      #e0f2fe;

    /* Typography */
    --pm-font:            'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --pm-font-mono:       'JetBrains Mono', 'Cascadia Code', 'Fira Code', monospace;

    /* Spacing Scale */
    --pm-space-1:   4px;
    --pm-space-2:   8px;
    --pm-space-3:   12px;
    --pm-space-4:   16px;
    --pm-space-5:   20px;
    --pm-space-6:   24px;
    --pm-space-8:   32px;
    --pm-space-10:  40px;
    --pm-space-12:  48px;
    --pm-space-16:  64px;

    /* Legacy spacing aliases */
    --pm-spacing-xs:  var(--pm-space-1);
    --pm-spacing-sm:  var(--pm-space-2);
    --pm-spacing-md:  var(--pm-space-4);
    --pm-spacing-lg:  var(--pm-space-6);
    --pm-spacing-xl:  var(--pm-space-8);

    /* Radius */
    --pm-radius-xs:  3px;
    --pm-radius-sm:  5px;
    --pm-radius:     8px;
    --pm-radius-md:  10px;
    --pm-radius-lg:  14px;
    --pm-radius-xl:  20px;
    --pm-radius-full: 9999px;

    /* Shadow System */
    --pm-shadow-xs:   0 1px 2px rgba(13,19,33,.06);
    --pm-shadow-sm:   0 1px 3px rgba(13,19,33,.08), 0 1px 2px rgba(13,19,33,.05);
    --pm-shadow-md:   0 4px 8px rgba(13,19,33,.07), 0 2px 4px rgba(13,19,33,.05);
    --pm-shadow-lg:   0 10px 20px rgba(13,19,33,.08), 0 4px 8px rgba(13,19,33,.05);
    --pm-shadow-xl:   0 20px 40px rgba(13,19,33,.10), 0 8px 16px rgba(13,19,33,.06);
    --pm-shadow-red:  0 4px 16px color-mix(in srgb, var(--pm-red) 30%, transparent);

    /* Transitions */
    --pm-transition-fast:   all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --pm-transition:        all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --pm-transition-slow:   all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --pm-sidebar-width: 264px;
    --pm-header-height: 60px;
    --pm-content-padding: 28px;
}

/* ─── SCROLLBAR TASARIMI ────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
    border-radius: var(--pm-radius-full);
}

::-webkit-scrollbar-thumb {
    background: var(--pm-slate-200);
    border-radius: var(--pm-radius-full);
    transition: background 0.2s, opacity 0.2s;
    opacity: 0;
}

::-webkit-scrollbar:hover::-webkit-scrollbar-thumb {
    opacity: 1;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--pm-red) !important;
}

* {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

*:hover {
    scrollbar-color: var(--pm-slate-200) transparent;
}

*:hover {
    scrollbar-color: color-mix(in srgb, var(--pm-red) 40%, transparent) transparent;
}

/* ─── TEMEL STİLLER ─────────────────────────────────────────── */
html {
    font-size: 10px;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--pm-font);
    font-size: 13px;
    line-height: 1.6;
    color: var(--pm-text-primary);
    background-color: white;
    word-wrap: break-word;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: auto;
}

.portal-modern {
    font-family: var(--pm-font);
    background: var(--pm-bg-canvas);
    color: var(--pm-text-primary);
    font-size: 13px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.portal-modern *,
*,
*:before,
*:after {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
}

/* ─── TYPOGRAPHY ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--pm-font);
    font-weight: 600;
    line-height: 1.3;
    color: var(--pm-text-primary);
}

h1, .h1, h2, .h2, h3, .h3 { margin-top: 18px; margin-bottom: 9px; }
h4, .h4, h5, .h5, h6, .h6 { margin-top: 9px; margin-bottom: 9px; }

h3, .h3 { font-size: 20px; }
h5, .h5 { font-size: 13px; }

p { margin: 0 0 9px; font-size: inherit; line-height: 1.6; }

/* ─── LINKS ─────────────────────────────────────────────────── */
a {
    color: var(--pm-red);
    text-decoration: none;
    transition: var(--pm-transition-fast);
}

a:hover, a:focus {
    color: var(--pm-red-hover);
    text-decoration: none;
}

a:focus {
    outline: 2px solid var(--pm-red-glow);
    outline-offset: 2px;
}

[role="button"] { cursor: pointer; }

/* ─── HEADER BÖLÜMÜ ─────────────────────────────────────────── */
.portal-modern #TatkoPortalHeader {
    background: linear-gradient(135deg, var(--pm-red) 0%, var(--pm-red-hover) 100%);
    border-radius: var(--pm-radius);
    padding: var(--pm-space-4);
    margin-bottom: var(--pm-space-6);
    box-shadow: var(--pm-shadow-red);
}

/* ─── ANA HEADER ─────────────────────────────────────────────── */
#Lpportalheader {
    background: transparent;
    height: auto;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin-top: 0;
    box-shadow: 0 1px 0 var(--pm-border), 0 4px 20px rgba(13,19,33,.06);
    z-index: 1000;
}

#headerLp {
    position: relative;
    width: 100%;
    margin: 0;
    background: var(--pm-red);
    background: linear-gradient(135deg, var(--pm-red) 0%, var(--pm-red-deep) 100%);
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    padding: 0;
    min-height: auto;
}

.portal-header {
    margin-left: 0;
    border-bottom: 1px solid var(--pm-border);
    background: var(--pm-bg);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 950;
    width: 100%;
    box-shadow: var(--pm-shadow-sm);
}

.portal-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--pm-space-6);
    height: var(--pm-header-height);
    background: transparent;
    margin-left: var(--pm-sidebar-width);
}

.portal-page-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--pm-text-primary);
    letter-spacing: 0.3px;
    flex: 1;
    text-align: left;
}

.portal-user-info {
    display: flex;
    align-items: center;
    gap: var(--pm-space-4);
}

.portal-user-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--pm-text-primary);
}

.portal-user-tabela {
    font-size: 11px;
    color: var(--pm-text-muted);
    /* background: var(--pm-bg-muted);
    padding: 3px 10px;
    border-radius: var(--pm-radius-full);
    border: 1px solid var(--pm-border); */
    font-weight: 500;
    
}

/* ─── LOGO ALANI ─────────────────────────────────────────────── */
.logoLp-container {
    overflow: hidden;
    height: auto;
    width: auto;
    min-width: 140px;
    max-width: 200px;
    margin: 0;
    display: flex;
    align-items: center;
    z-index: 55;
    flex-shrink: 0;
    padding: 8px 16px 8px 20px;
}

.logoLp-container .logo {
    display: flex;
    align-items: center;
}

.logoLp-container .logo .logo-img,
.logoLp-container .logo .site-logo-img {
    max-height: 40px;
    width: auto !important;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: opacity 0.2s ease;
}

/* ─── NAV ALANI ─────────────────────────────────────────────── */
.navLp-containerUst {
    height: auto;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-right: 0;
    width: auto;
    float: none;
}

.navLp-container {
    margin-top: 0;
    height: auto;
    width: 100%;
    margin-right: 0;
    float: none;
}

.navLp-bayi {
    padding: 0 16px;
    background: rgba(0, 0, 0, 0.08);
}

/* ─── CARİ BİLGİLERİ ────────────────────────────────────────── */
#CariBilgileri {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    font-weight: 600;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.95);
    padding: 6px 0;
    letter-spacing: 0.2px;
}

#CariBilgilerX1300 {
    float: right;
    font-weight: 600;
    margin-right: 0;
    margin-top: 2%;
    display: none;
    width: 100%;
    height: 20%;
    color: rgba(255, 255, 255, 0.9);
}

/* ─── SEPET & DUYURU İKONLARI ───────────────────────────────── */
#sepeticon,
#duyuruicon {
    background: rgba(255,255,255,0.18);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.25);
    margin-left: 6px;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--pm-radius-full);
    min-width: 20px;
    text-align: center;
    line-height: 1.4;
    backdrop-filter: blur(4px);
}

/* ─── BAYİ HATTI ────────────────────────────────────────────── */
.bayi-hatti {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-family: var(--pm-font);
    margin-left: auto;
    margin-right: 8px;
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--pm-radius);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: var(--pm-transition-fast);
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}

.bayi-hatti:hover {
    background: rgba(255, 255, 255, 0.20);
    border-color: rgba(255,255,255,0.30);
}

.phone-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.bayi-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.bayi-text .ust {
    font-weight: 600;
    font-size: 10px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.bayi-text .alt {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

/* ─── DROPDOWN MENÜLERİ ─────────────────────────────────────── */
.dropdownLpProfilim,
.dropdownLpUygulamalar {
    display: inline-block;
    float: right;
    margin-left: 8px;
    position: relative;
}

.dropbtnLp,
.btnLp {
    background-color: transparent;
    color: rgba(255,255,255,0.9);
    padding: 8px 12px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    height: 48px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--pm-transition-fast);
    border-radius: var(--pm-radius-sm);
}

.dropbtnLp:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.dropdownLpProfilim-content,
.dropdownLpUygulamalar-content {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    background: var(--pm-bg);
    min-width: 200px;
    width: 220px;
    border: 1px solid var(--pm-border);
    border-radius: var(--pm-radius);
    box-shadow: var(--pm-shadow-xl);
    z-index: 1050;
    overflow: hidden;
    animation: pm-dropdown-in 0.15s ease;
}

@keyframes pm-dropdown-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.dropdownLpProfilim-content a,
.dropdownLpUygulamalar-content a {
    color: var(--pm-text-secondary);
    padding: 9px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    transition: var(--pm-transition-fast);
    border-left: 2px solid transparent;
}

.dropdownLpProfilim-content a:hover,
.dropdownLpUygulamalar-content a:hover {
    background: var(--pm-red-subtle);
    color: var(--pm-red);
    border-left-color: var(--pm-red);
}

.dropdownLpProfilim:hover .dropdownLpProfilim-content,
.dropdownLpUygulamalar:hover .dropdownLpUygulamalar-content {
    display: block;
}

.dropdownimgLp {
    width: 18px;
    height: 18px;
    object-fit: contain;
    float: none;
    opacity: 0.75;
}

/* ─── GÖRSELLER VE BADGE ─────────────────────────────────────── */
.GorusveOnerilerDiv,
#GorusveOnerilerDiv,
#portalDestekDiv {
    float: left;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    margin-left: 16px;
    min-height: 100px;
}

#GorusveOnerilerDiv,
#portalDestekDiv {
    display: none;
}

/* ─── SIDEBAR ────────────────────────────────────────────────── */
.portal-wrapper {
    display: flex;
    min-height: 100vh;
    background: var(--pm-bg-canvas);
}

.portal-sidebar {
    width: var(--pm-sidebar-width);
    background: var(--pm-bg);
    border-right: 1px solid var(--pm-border);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 8px rgba(13,19,33,.04);
    transition: var(--pm-transition);
}

.portal-sidebar-logo {
    display: flex;
    width: 100% !important;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--pm-border);
    min-height: 60px;
    background: var(--pm-red);
    flex-shrink: 0;
}

.portal-sidebar-body {
    flex: 1;
    padding: 12px 10px;
    overflow-y: auto;
}

.portal-sidebar-menu {
    list-style: none;
    padding: 8px;
    margin: 0;
}

.portal-sidebar-section-header {
    font-size: 10px;
    font-weight: 700;
    color: var(--pm-text-faint);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 14px 10px 6px;
    margin-top: 4px;
}

.portal-sidebar-item {
    margin-bottom: 2px;
}

.portal-sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--pm-radius-sm);
    color: var(--pm-text-secondary);
    font-weight: 500;
    text-decoration: none !important;
    transition: var(--pm-transition-fast);
    font-size: 13px;
    cursor: pointer;
    position: relative;
}

.portal-sidebar-link:hover {
    background: var(--pm-red-subtle);
    color: var(--pm-red);
}

.portal-sidebar-link.active,
.portal-sidebar-link[style*="background-color: rgb(237, 28, 36)"],
.portal-sidebar-link[style*="background-color: rgb(224, 27, 34)"] {
    background: var(--pm-red) !important;
    color: #ffffff !important;
    box-shadow: var(--pm-shadow-red);
}

.portal-sidebar-link.active svg,
.portal-sidebar-link.active span {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

.portal-sidebar-link svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
    flex-shrink: 0;
}

.portal-sidebar-submenu {
    list-style: none;
    padding: 0 0 0 30px;
    margin: 2px 0;
}

.portal-sidebar-submenu .portal-sidebar-link {
    padding: 7px 10px;
    font-size: 12px;
    color: var(--pm-text-muted);
}

.portal-sidebar-submenu .portal-sidebar-link:hover {
    color: var(--pm-red);
    background: transparent;
}

/* ─── ANA İÇERİK ALANI ──────────────────────────────────────── */
.portal-main-container {
    flex: 1;
    margin-left: 0;
    padding: 0;
    transition: var(--pm-transition);
    width: 100%;
}

/* ─── SLIDER / GALERİ ───────────────────────────────────────── */
#slidergalery {
    text-align: center;
    margin-bottom: var(--pm-space-6);
}

.col-md-12{
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.portal-modern #slidergalery .row {
    margin: 0;
    background: var(--pm-bg);
    border: 1px solid var(--pm-border);
    border-radius: var(--pm-radius);
    overflow: hidden;
    box-shadow: var(--pm-shadow-sm);
}

.portal-modern #slidergalery .row .col-lg-6 {
    padding: 0;
}

.portal-modern #slidergalery .row .col-lg-6:first-child {
    border-right: 1px solid var(--pm-border);
}

.portal-modern #slidergalery .bot_10,
.portal-modern #slidergalery #idgallery {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dx-gallery-item-image {
    width: 100%;
    height: 100%;
}

/* ─── GERİ SAYIM ────────────────────────────────────────────── */
#countdown {
    text-align: center;
    background: var(--pm-slate-900);
    border: 1px solid var(--pm-slate-800);
    border-radius: var(--pm-radius);
    box-shadow: var(--pm-shadow-lg);
    margin: auto;
    padding: 20px 0;
    position: fixed;
    top: 18px;
    right: 1050px;
    z-index: 99999;
}

#countdown:before {
    content: "";
    width: 6px;
    height: 56px;
    background: var(--pm-slate-700);
    border: 1px solid var(--pm-slate-800);
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    display: block;
    position: absolute;
    left: -8px;
    top: 22px;
}

.portal-modern #countdown {
    background: linear-gradient(135deg, var(--pm-slate-900) 0%, var(--pm-slate-800) 100%);
    border-radius: var(--pm-radius);
    padding: var(--pm-space-6);
    margin: var(--pm-space-4) 0;
    position: relative;
    border-left: 3px solid var(--pm-red);
    box-shadow: var(--pm-shadow-lg);
}

.portal-modern #countdown:before,
.portal-modern #countdown:after {
    display: none !important;
}

.portal-modern #countdown #tiles {
    display: flex;
    justify-content: center;
    gap: var(--pm-space-4);
}

.portal-modern #countdown #tiles > span {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--pm-radius-sm);
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    min-width: 60px;
    padding: 10px 14px;
    border-bottom: 2px solid var(--pm-red);
    text-align: center;
    letter-spacing: -0.5px;
}

.portal-modern #countdown #tiles > span:before,
.portal-modern #countdown #tiles > span:after {
    display: none !important;
}

.portal-modern #countdown .labels {
    display: flex;
    justify-content: center;
    gap: var(--pm-space-4);
    margin-top: var(--pm-space-2);
    list-style: none;
    padding: 0;
}

.portal-modern #countdown .labels li {
    color: rgba(255, 255, 255, 0.45);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    min-width: 60px;
    text-align: center;
    font-weight: 600;
}

/* ─── DASHBOARD İSTATİSTİK GRID ─────────────────────────────── */
.pm-dashboard-grid > .row {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: var(--pm-space-4);
    margin-bottom: var(--pm-space-6);
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.portal-modern .pm-dashboard-grid > .row {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: var(--pm-space-4);
    margin-bottom: var(--pm-space-6);
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.portal-modern .pm-dashboard-grid > .row > [class*="col-"] {
    padding: 0 !important;
    flex: 0 0 auto !important;
    max-width: 100% !important;
    width: 100% !important;
}

.portal-modern .pm-dashboard-grid > .row > [class*="col-"].kol_wit_50 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
}

@media (max-width: 1200px) {
    .pm-dashboard-grid > .row,
    .portal-modern .pm-dashboard-grid > .row {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 991px) {
    .pm-dashboard-grid > .row,
    .portal-modern .pm-dashboard-grid > .row {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 575px) {
    .pm-dashboard-grid > .row,
    .portal-modern .pm-dashboard-grid > .row {
        grid-template-columns: 1fr !important;
    }
}

/* ─── DASHBOARD STAT KART ───────────────────────────────────── */
.dashboard-stat,
.portal-modern .dashboard-stat {
    background: var(--pm-bg) !important;
    border: 1px solid var(--pm-border);
    border-radius: var(--pm-radius);
    padding: 0;
    position: relative;
    min-height: 200px;
    height: 200px;
    transition: var(--pm-transition);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--pm-shadow-xs);
}

.portal-modern .dashboard-stat:hover {
    border-color: var(--pm-red);
    transform: translateY(-3px);
    box-shadow: var(--pm-shadow-md), 0 0 0 1px var(--pm-red-glow);
}

.portal-modern .dashboard-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--pm-red) 0%, var(--pm-red-glow) 100%);
    opacity: 0;
    transition: var(--pm-transition);
}

.portal-modern .dashboard-stat:hover::before {
    opacity: 1;
}

/* Stat Icon */
.portal-modern .pm-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--pm-radius-sm);
    background: var(--pm-bg-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: var(--pm-space-3) var(--pm-space-4) var(--pm-space-2);
    color: var(--pm-red);
    transition: var(--pm-transition);
    border: 1px solid var(--pm-border-light);
}

.portal-modern .pm-stat-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.portal-modern .dashboard-stat:hover .pm-stat-icon {
    background: var(--pm-red);
    color: #ffffff;
    border-color: var(--pm-red);
    transform: scale(1.04);
    box-shadow: var(--pm-shadow-red);
}

/* Stat Content */
.portal-modern .pm-stat-content {
    flex: 1;
    padding: 0 var(--pm-space-3) var(--pm-space-2);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portal-modern .pm-stat-desc {
    color: var(--pm-text-muted);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    margin-bottom: var(--pm-space-1);
}

.portal-modern .pm-stat-number {
    margin-bottom: var(--pm-space-4);
}

.portal-modern .pm-stat-number span {
    color: var(--pm-text-primary);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.8px;
    display: block;
    line-height: 1.1;
}

.portal-modern .pm-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.portal-modern .pm-stat-label {
    color: var(--pm-text-muted);
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex: 1;
}

.portal-modern .pm-stat-value {
    color: var(--pm-text-primary);
    font-size: 12px;
    font-weight: 600;
}

.portal-modern .pm-stat-divider {
    height: 1px;
    background: var(--pm-border-light);
    margin: var(--pm-space-1) 0;
    width: 100%;
}

/* Stat Action */
.portal-modern .pm-stat-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--pm-space-2) var(--pm-space-3);
    border-top: 1px solid var(--pm-border-light);
    color: var(--pm-red);
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--pm-transition-fast);
    letter-spacing: 0.3px;
}

.portal-modern .pm-stat-action:hover {
    background: var(--pm-red-subtle);
    color: var(--pm-red);
    text-decoration: none;
}

.portal-modern .pm-stat-action span {
    display: flex;
    align-items: center;
}

.portal-modern .pm-stat-action svg {
    width: 12px;
    height: 12px;
    stroke-width: 2;
}

/* Legacy Stat: Hide eski elemanlar */
.portal-modern .dashboard-stat .details,
.portal-modern .dashboard-stat .desc,
.portal-modern .dashboard-stat .cari_aciklama,
.portal-modern .dashboard-stat .number,
.portal-modern .dashboard-stat .d_yil,
.portal-modern .dashboard-stat .visual {
    display: none;
}

.portal-modern .dashboard-stat .more,
.portal-modern #borcalacak_incele,
.portal-modern #siparisler_incele,
.portal-modern #KullanilabilirDbs_incele,
.portal-modern #KullanilabilirCh_incele {
    display: flex;
    color: var(--pm-red);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    padding: var(--pm-space-2) var(--pm-space-4);
    border-top: 1px solid var(--pm-border-light);
    margin-top: auto;
    transition: var(--pm-transition-fast);
    bottom: auto;
    right: auto;
    letter-spacing: 0.3px;
}

.portal-modern .dashboard-stat .more:hover,
.portal-modern #borcalacak_incele:hover,
.portal-modern #siparisler_incele:hover,
.portal-modern #KullanilabilirDbs_incele:hover,
.portal-modern #KullanilabilirCh_incele:hover {
    text-decoration: none;
    background: var(--pm-red-subtle);
}

/* Legacy dashboard-stat */
.dashboard-stat {
    background: -o-linear-gradient(var(--PortalColor, #e01b22));
    background: -moz-linear-gradient(var(--PortalColor, #e01b22));
}

/* ─── ÜRÜN ARAMA BÖLÜMLERİ ──────────────────────────────────── */
.portal-modern .col-md-12 > .row {
    background: var(--pm-bg);
    border: 1px solid var(--pm-border);
    border-radius: var(--pm-radius);
    padding: var(--pm-space-6);
    margin-bottom: var(--pm-space-4);
    position: relative;
    box-shadow: var(--pm-shadow-xs);
}

.portal-modern .col-md-12 > .row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--pm-red) 0%, var(--pm-red-glow) 60%, transparent 100%);
    border-radius: var(--pm-radius) var(--pm-radius) 0 0;
}

/* ─── TİPOGRAFİ YARDIMCILARI ────────────────────────────────── */
.portal-modern .baslik_arama {
    color: var(--pm-text-muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    margin-bottom: var(--pm-space-1);
    display: flex;
    align-items: center;
    gap: 6px;
}

.portal-modern .baslik_arama::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--pm-red);
    border-radius: 50%;
    opacity: 0.9;
    flex-shrink: 0;
}

.baslik_arama {
    float: left;
    width: 100%;
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 11px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--pm-text-muted);
}

.portal-modern .bold,
.bold {
    font-weight: 600 !important;
    color: var(--pm-text-primary);
    font-size: 12px;
}

/* ─── BUTONLAR ───────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    touch-action: manipulation;
    cursor: pointer;
    background-image: none;
    border: 1px solid transparent;
    white-space: nowrap;
    padding: 8px 16px;
    font-size: 13px;
    line-height: 1.5;
    border-radius: var(--pm-radius-sm);
    transition: var(--pm-transition);
    -webkit-user-select: none;
    user-select: none;
    font-family: var(--pm-font);
    gap: 6px;
}

.btn:hover {
    text-decoration: none;
}

.portal-modern .btn_LpOk,
.portal-modern .btn-primary,
.btn-primary {
    background-color: var(--pm-red) !important;
    color: #ffffff !important;
    border: 1px solid var(--pm-red) !important;
    border-radius: var(--pm-radius-sm);
    padding: 4px !important;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: var(--pm-transition-fast);
}

.portal-modern .btn_LpOk:hover,
.portal-modern .btn-primary:hover {
    background-color: var(--pm-red-hover) !important;
    border-color: var(--pm-red-hover) !important;
    box-shadow: var(--pm-shadow-red);
}

.portal-modern .btn_LpOk .dx-button-content,
.portal-modern .btn-primary .dx-button-content {
    padding: 4px !important;
}

/* Portal Color Button */
.portal-color {
    background: linear-gradient(135deg, var(--PortalColor, var(--pm-red)), var(--pm-red-hover));
    color: #fff;
    border: none;
}

/* ─── FORM KONTROLLERI ──────────────────────────────────────── */
.form-control {
    display: block;
    width: 100%;
    height: 40px;
    padding: 8px 12px;
    font-size: 13px;
    font-family: var(--pm-font);
    line-height: 1.5;
    color: var(--pm-text-primary);
    background-color: var(--pm-bg);
    background-image: none;
    border: 1px solid var(--pm-border);
    border-radius: var(--pm-radius-sm);
    box-shadow: var(--pm-shadow-xs);
    transition: var(--pm-transition-fast);
    -webkit-appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: var(--pm-red);
    box-shadow: 0 0 0 3px var(--pm-red-glow);
}

.form-control::-webkit-input-placeholder,
.form-control::placeholder {
    color: var(--pm-text-faint);
    font-weight: 400;
}

.portal-modern .form-control {
    background-color: var(--pm-bg);
    border: 1px solid var(--pm-border);
    border-radius: var(--pm-radius-sm);
    padding: 9px 12px;
    font-size: 13px;
    color: var(--pm-text-primary);
}

.portal-modern .form-control:focus {
    outline: none;
    border-color: var(--pm-red);
    box-shadow: 0 0 0 3px var(--pm-red-glow);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--pm-text-secondary);
    letter-spacing: 0.3px;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-group.half {
    flex: 1;
}

/* Input Group */
.input-group {
    position: relative;
    display: table;
    border-collapse: separate;
}

.input-group .form-control {
    position: relative;
    z-index: 2;
    float: left;
    width: 100%;
    margin-bottom: 0;
}

.input-group-addon,
.input-group-btn,
.input-group .form-control {
    display: table-cell;
}

.input-group-addon {
    font-size: 14px;
    padding: 0 10px;
    background: var(--pm-bg-muted);
    border: 1px solid var(--pm-border);
    border-radius: var(--pm-radius-sm);
    color: var(--pm-text-muted);
}

.input-group-addon,
.input-group-btn {
    width: 1%;
    white-space: nowrap;
    vertical-align: middle;
}

.input-group-btn {
    position: relative;
    font-size: 0;
    white-space: nowrap;
}

.input-group-btn > .btn {
    position: relative;
}

.input-group-btn:last-child > .btn,
.input-group-btn:last-child > .btn-group {
    z-index: 2;
    margin-left: -1px;
}

.input-group-btn .btn {
    height: 40px;
    width: auto;
    padding: 0 14px;
}

.input-group .form-control:first-child,
.input-group-addon:first-child,
.input-group-btn:first-child > .btn {
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
}

.input-group .form-control:last-child,
.input-group-addon:last-child,
.input-group-btn:last-child > .btn {
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
}

/* ─── DEVEXTREME BİLEŞENLERİ ────────────────────────────────── */
.portal-modern .dx-textbox,
.portal-modern .dx-tagbox,
.portal-modern .dx-selectbox {
    border-radius: var(--pm-radius-sm);
}

.portal-modern .dx-texteditor,
.dx-texteditor {
    background: var(--pm-bg);
    border-radius: var(--pm-radius-sm);
    box-shadow: var(--pm-shadow-xs);
    background-color: var(--pm-bg-subtle);
}

.portal-modern .dx-texteditor.dx-state-focused {
    border-color: var(--pm-red) !important;
    box-shadow: 0 0 0 3px var(--pm-red-glow) !important;
}

.portal-modern .dx-texteditor-input {
    padding: 9px 12px;
    font-size: 13px;
    min-height: 38px;
    font-family: var(--pm-font);
    color: var(--pm-text-primary);
}

.portal-modern .dx-placeholder {
    color: var(--pm-text-faint);
}

/* DevExtreme Checkbox */
.portal-modern .dx-checkbox,
.dx-checkbox {
    margin-right: 6px;
}

.portal-modern .dx-checkbox-icon,
.dx-checkbox-icon {
    border-radius: var(--pm-radius-xs);
    border: 2px solid var(--pm-border-strong);
    width: 16px;
    height: 16px;
    transition: var(--pm-transition-fast);
}

.portal-modern .dx-checkbox:hover .dx-checkbox-icon {
    border-color: var(--pm-red);
}

.portal-modern .dx-checkbox-checked .dx-checkbox-icon {
    background-color: var(--pm-red);
    border-color: var(--pm-red);
}

/* DevExtreme Buttons */
.dx-button-success {
    background: linear-gradient(135deg, #0d5fa0, #1a7ac8);
    color: white;
    border-radius: var(--pm-radius-sm);
    font-weight: 600;
    border: none;
}

.dx-button-danger {
    background: linear-gradient(135deg, var(--pm-red-deep), var(--pm-red));
    color: white;
    border-radius: var(--pm-radius-sm);
    font-weight: 600;
    border: none;
}

.dx-button:hover {
    opacity: 0.92;
    transition: var(--pm-transition-fast);
}

/* ─── PANELLER ───────────────────────────────────────────────── */
.portal-modern .panel,
.panel {
    border: 1px solid var(--pm-border);
    border-radius: var(--pm-radius);
    margin-top: var(--pm-space-4);
    box-shadow: var(--pm-shadow-xs);
    background: var(--pm-bg);
}

.portal-modern .panel-heading,
.panel-heading {
    background: var(--pm-bg-subtle);
    border-bottom: 1px solid var(--pm-border);
    padding: var(--pm-space-3) var(--pm-space-4);
    border-radius: var(--pm-radius) var(--pm-radius) 0 0;
}

.portal-modern .panel-heading h3 {
    font-size: 13px;
    font-weight: 600;
    color: var(--pm-text-primary);
    margin: 0;
}

.panel-body {
    padding: 16px 20px 20px;
}

/* ─── BİLGİ FORMU ────────────────────────────────────────────── */
.portal-modern .oval-quotes {
    background: var(--pm-bg);
    border: 1px solid var(--pm-border);
    border-left: 3px solid var(--pm-red);
    border-radius: var(--pm-radius-sm);
    padding: var(--pm-space-4);
    margin: var(--pm-space-4) 0;
}

.portal-modern .oval-quotes label {
    display: block;
    margin-bottom: var(--pm-space-1);
    font-weight: 500;
    color: var(--pm-text-primary);
    font-size: 12px;
}

.portal-modern .oval-quotes label strong {
    font-weight: 700;
    color: var(--pm-red);
}

/* ─── TABS ───────────────────────────────────────────────────── */
.portal-modern .tab-container {
    background: var(--pm-bg);
    border: 1px solid var(--pm-border);
    border-radius: var(--pm-radius);
    margin-bottom: var(--pm-space-6);
    box-shadow: var(--pm-shadow-xs);
    overflow: hidden;
}

.portal-modern .tab-container .nav-tabs {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--pm-border);
    background: var(--pm-bg-subtle);
    padding: 0 var(--pm-space-2);
    margin: 0;
    list-style: none;
    gap: 2px;
}

.portal-modern .tab-container .nav-tabs > li {
    flex: 0 0 auto;
}

.portal-modern .tab-container .nav-tabs > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 500;
    color: var(--pm-text-muted);
    text-decoration: none;
    border-radius: var(--pm-radius-xs) var(--pm-radius-xs) 0 0;
    transition: var(--pm-transition-fast);
    position: relative;
}

.portal-modern .tab-container .nav-tabs > li > a:hover {
    color: var(--pm-red);
    background: var(--pm-red-subtle);
}

.portal-modern .tab-container .nav-tabs > li.active > a,
.portal-modern .tab-container .nav-tabs > li > a[style*="bold"] {
    color: var(--pm-red);
    background: var(--pm-bg);
    font-weight: 600;
    border-bottom: 2px solid var(--pm-red);
}

.portal-modern .tab-container .tab-pane {
    padding: var(--pm-space-4);
}

.portal-modern .tab-container .tab-pane a.bot_10 {
    display: inline-flex;
    align-items: center;
    padding: 7px 13px;
    margin: 3px;
    background: var(--pm-bg);
    border: 1px solid var(--pm-border);
    border-radius: var(--pm-radius-sm);
    color: var(--pm-text-secondary);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--pm-transition-fast);
    gap: 6px;
}

.portal-modern .tab-container .tab-pane a.bot_10:hover {
    border-color: var(--pm-red);
    color: var(--pm-red);
    background: var(--pm-red-subtle);
}

/* Nav-Tabs Global */
.nav-tabs {
    background-color: var(--pm-bg-subtle);
    border-bottom-width: 0;
    margin-bottom: -10px;
    height: 58px;
}

.nav-tabs > li {
    float: left;
    margin-right: 2px;
    margin-bottom: -1px;
    background-color: transparent;
    color: var(--pm-text-muted);
}

.nav-tabs > li > a {
    padding: 16px 18px;
    margin-right: 0;
    min-width: 80px;
    text-align: center;
    border-radius: 0;
    color: var(--pm-text-muted);
    border-width: 0;
    line-height: 1.5;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--pm-transition-fast);
}

.nav-tabs > li.active {
    position: relative;
    color: var(--pm-text-primary);
}

.nav-tabs > li.active a,
.nav-tabs > li.active a:hover,
.nav-tabs > li.active a:focus {
    background: var(--pm-red) !important;
    color: white;
    font-weight: 600;
}

.nav-tabs > li a:hover {
    background: var(--pm-red-subtle);
    color: var(--pm-red);
    text-decoration: none;
}

.tab-content {
    background: var(--pm-bg);
    padding: 0 !important;
    margin: 0 !important;
    float: left;
    width: 100%;
}

/* ─── DUYURU POPUP ───────────────────────────────────────────── */
.portal-modern #duyuruPopupDis,
#duyuruPopupDis {
    position: fixed;
    z-index: 999999;
    top: 0;
    left: 0;
    background: rgba(13,19,33,0.65);
    backdrop-filter: blur(6px);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    align-items: center;
}

#duyuruPopupIc {
    width: auto;
    height: 90%;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    align-items: center;
    border-radius: var(--pm-radius);
    overflow: hidden;
}

#duyuruPopupIc img {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--pm-radius);
    box-shadow: var(--pm-shadow-xl);
}

.close_duyuru_popup {
    color: #ffffff;
    font: 20px/100% var(--pm-font), sans-serif;
    position: relative;
    right: 30px;
    float: right;
    text-decoration: none;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    top: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    transition: var(--pm-transition-fast);
    cursor: pointer;
}

.close_duyuru_popup:hover {
    background: var(--pm-red);
}

.close_duyuru_popup:after {
    content: '✕';
}

/* ─── MODAL ──────────────────────────────────────────────────── */
.modal {
    display: none;
    overflow: hidden;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    -webkit-overflow-scrolling: touch;
    outline: 0;
    background: rgba(13,19,33,0.6);
    backdrop-filter: blur(4px);
}

.modal-header {
    background: linear-gradient(135deg, var(--pm-red) 0%, var(--pm-red-hover) 100%) !important;
    color: #fff;
    padding: 14px 20px;
    border-bottom: none;
    border-radius: var(--pm-radius) var(--pm-radius) 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ─── BADGE ──────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    padding: 2px 7px;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    vertical-align: middle;
    white-space: nowrap;
    text-align: center;
    background-color: var(--pm-red);
    border-radius: var(--pm-radius-full);
}

/* ─── NAVBAR ─────────────────────────────────────────────────── */
.navbar {
    position: relative;
    margin-top: 16px !important;
    border: 1px solid var(--pm-border);
    width: 100%;
    float: left !important;
    margin-right: 24px !important;
    border-radius: var(--pm-radius-sm);
    background: var(--pm-bg);
}

.navbar-fixed-top,
.navbar-fixed-bottom {
    position: fixed;
    right: 0;
    left: 0;
    z-index: 1030;
}

.navbar-fixed-top {
    top: 0;
    border-width: 0 0 1px;
}

/* ─── LAYOUT YARDIMCILARI ───────────────────────────────────── */
.container {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.row {
    margin-left: -11px;
    margin-right: -15px;
}

.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1,
.col-xs-2, .col-sm-2, .col-md-2, .col-lg-2,
.col-xs-3, .col-sm-3, .col-md-3, .col-lg-3,
.col-xs-4, .col-sm-4, .col-md-4, .col-lg-4,
.col-xs-5, .col-sm-5, .col-md-5, .col-lg-5,
.col-xs-6, .col-sm-6, .col-md-6, .col-lg-6,
.col-xs-7, .col-sm-7, .col-md-7, .col-lg-7,
.col-xs-8, .col-sm-8, .col-md-8, .col-lg-8,
.col-xs-9, .col-sm-9, .col-md-9, .col-lg-9,
.col-xs-10, .col-sm-10, .col-md-10, .col-lg-10,
.col-xs-11, .col-sm-11, .col-md-11, .col-lg-11,
.col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {
    position: relative;
    min-height: 1px;
    padding-left: 15px;
    padding-right: 15px;
}

.col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6,
.col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 {
    float: left;
}

.col-xs-12 { width: 100%; }

.clearfix:before, .clearfix:after,
.container:before, .container:after,
.container-fluid:before, .container-fluid:after,
.row:before, .row:after,
.nav:before, .nav:after,
.navbar:before, .navbar:after,
.panel-body:before, .panel-body:after,
.modal-footer:before, .modal-footer:after {
    content: " ";
    display: table;
}

.clearfix:after,
.container:after, .container-fluid:after,
.row:after,
.nav:after, .navbar:after,
.panel-body:after,
.modal-footer:after {
    clear: both;
}

.left  { float: left; }
.right { float: right; }
.clear { clear: both; }
.al_center { text-align: center; }

.fade {
    opacity: 0;
    transition: opacity 0.15s linear;
}

.fade.in { opacity: 1; }

.tab-content > .tab-pane { display: none; }
.tab-content > .active   { display: block; }

.nav {
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
}

.nav > li {
    position: relative;
    display: block;
}

.nav > li > a {
    position: relative;
    display: block;
    padding: 10px 15px;
}

.btn-group,
.btn-group-vertical {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.page-header {
    margin: 0;
    padding: 0;
    border-bottom: none;
}

.xs-mb-15  { margin-bottom: 15px; }
.top_5     { margin-top: 1px; float: left; margin-left: 5px; }
.top_2     { margin-top: 2px; }
.wit_100   { width: 100%; }
.icon-2x   { margin-right: 4px; }

.bot_10  { margin-bottom: 20px; float: left; }
.bott_10 { margin-bottom: 10px; float: left; }

.noti-clss { margin: 0; }

select[multiple], select[size] { height: auto; }

table { background-color: transparent; }

input, button, select, textarea {
    font-family: var(--pm-font);
    font-size: inherit;
    line-height: inherit;
}

input:-webkit-autofill { background-color: transparent !important; }

/* ─── YÜKLEME ANIMASYONU ────────────────────────────────────── */
.tekerlek_yukleniyor {
    position: fixed;
    z-index: 999999;
    top: 0;
    left: 0;
    background: rgba(13,19,33,0.55);
    backdrop-filter: blur(4px);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    align-items: center;
}

.tekerlek_yukleniyor span {
    margin-left: 10px;
    color: var(--pm-text-primary);
    font-weight: 500;
}

.tekerlek_yukleniyor_alt {
    width: 160px;
    height: 90px;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    align-items: center;
    background: var(--pm-bg);
    border-radius: var(--pm-radius);
    box-shadow: var(--pm-shadow-xl);
    border: 1px solid var(--pm-border);
    gap: 12px;
}

.tekerlek_dondur {
    /* animation: teker_rotation 1600ms infinite linear; */
    transform-origin: 50% 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes teker_rotation {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.yanipSonen {
    animation: blinker 1.2s linear infinite;
    color: white;
}

@keyframes blinker {
    50% { opacity: 0.5; }
}

/* ─── YILDIZ VE YARDIMCI GÖRSELLER ─────────────────────────── */
.yeniYildiz2 {
    width: 30px;
    height: 30px;
    position: absolute;
    float: left;
    margin-left: -26px;
    margin-top: -6px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.yeniYildiz {
    width: 60px;
    height: auto;
    position: absolute;
    top: -18px;
    right: -12px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
}

/* ─── KAYAR BUTONLAR ────────────────────────────────────────── */
#yukariPortal {
    display: none;
    position: fixed;
    bottom: 22px;
    right: 20px;
    z-index: 9999;
    cursor: pointer;
    float: right;
    max-width: 40px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
    transition: var(--pm-transition);
}

#yukariPortal:hover { transform: translateY(-2px); }

#Portal_Yukari {
    position: fixed;
    bottom: 68px;
    right: 20px;
    z-index: 9999;
    cursor: pointer;
    float: right;
    max-width: 40px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
    transition: var(--pm-transition);
}

#Portal_Yukari:hover { transform: translateY(-2px); }

/* ─── SERVİS ANKET ───────────────────────────────────────────── */
.ServisAnketGovde {
    width: 93%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 48px;
    padding: 20px;
}

.ServisAnketsoru {
    font-weight: 600;
    float: left;
    margin-top: 10px;
    color: var(--pm-text-primary);
    font-size: 13px;
}

.ServisAnketBaslik {
    color: var(--pm-red);
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    width: 100%;
    margin-top: 10px;
}

.ServisAnketRadio {
    width: 100%;
    margin-top: 10px;
    margin-left: 20px;
}

.ServisAnketHizmetUst {
    width: 60%;
    float: left;
    margin-top: 10px;
}

.ServisAnketHizmet {
    float: left;
    margin-left: 10%;
}

.ServisAnketHizmetCevap {
    float: right;
    margin-left: 10%;
    font-weight: 700;
}

/* ─── POPUP BAŞLIK ───────────────────────────────────────────── */
.lp_popup_header {
    margin: -6px 0 0 -15px !important;
    background: linear-gradient(135deg, var(--PortalColor, var(--pm-red)) 0%, var(--pm-red-hover) 100%);
    color: white;
    width: 111% !important;
    height: auto !important;
    padding: 12px 24px !important;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-radius: 0;
    font-size: 14px;
}

/* ─── MARKA LOGO STİLLERİ ───────────────────────────────────── */
.marshallogo {
    background-color: #FAFA47 !important;
    font-weight: 800 !important;
    font-size: 14px;
    background: url(https://bayiportal.lastikpark.com/img/Marshal-Tire.png?mmxchache=1) no-repeat 60px 8px;
}

.michelin_stok_logo {
    background-color: #FAFA47 !important;
    font-weight: 800 !important;
    background: url(https://bayiportal.lastikpark.com/img/michelin.png) no-repeat center;
    background-size: 130px 50px !important;
    padding-left: 50px !important;
}

.michelin_stok_logo2 {
    background-color: #FAFA47 !important;
    font-weight: 800 !important;
    background-size: 75px 50px !important;
    padding-left: 50px !important;
}

.goodyear_stok_logo {
    background-color: #FAFA47 !important;
    font-weight: 800 !important;
    background: url(https://bayiportal.lastikpark.com/img/goodyear_stok_logo.png) no-repeat center;
    background-size: 75px 50px !important;
    padding-left: 50px !important;
}

.goodyear_stok_logo2 {
    background-color: #FAFA47 !important;
    font-weight: 800 !important;
    background-size: 75px 50px !important;
    padding-left: 50px !important;
}

.pirelli_stok_logo {
    background: url(https://bayiportal.lastikpark.com/img/Pirelli_StokLogo.png) no-repeat center;
    background-size: 175px 50px !important;
    padding-left: 50px !important;
    background-color: #FAFA47 !important;
    font-weight: 800 !important;
}

.pirelli_stok_logo2 {
    background-size: 175px 50px !important;
    padding-left: 50px !important;
    background-color: #FAFA47 !important;
    font-weight: 800 !important;
}

.michelinlogo {
    background-color: #FAFA47 !important;
    font-weight: 800 !important;
    font-size: 14px;
    background: url(https://bayiportal.lastikpark.com/img/michelin.png?mmxchache=1) no-repeat 60px 8px;
}

.michelinlogo2 {
    background: url(https://bayiportal.lastikpark.com/img/GoodyearLogo.png?mmxchache=1) no-repeat center;
    background-size: 64px 24px;
    padding-left: 50px !important;
}

/* ─── ADRES DURUMU RENKLERI ─────────────────────────────────── */
.Adres-Onayli   { background-color: #0d7a3e !important; color: #fff; }
.Adres-Red      { background-color: var(--pm-red) !important; color: #fff; }
.Adres-Beklemede { background-color: #c49000 !important; color: #fff; }

/* ─── LOGİN EKRANI ───────────────────────────────────────────── */
.loginbody { height: 100% !important; }

.loginss2 {
    height: 100vh;
    background: var(--pm-bg-canvas);
}

#login_ust_div {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.login-container {
    padding: 8px;
    width: 580px;
    margin-left: auto;
    margin-right: auto;
    max-width: 500px;
    border-radius: var(--pm-radius-md);
    backdrop-filter: blur(10px);
}

.login-container .panel-default {
    background: transparent;
    padding: 0;
    border: 0;
    overflow: inherit;
    margin-bottom: 0 !important;
}

.login-container .panel-default .panel-heading {
    padding: 0;
    background: transparent;
    border: 0;
    text-align: center;
    margin-bottom: 20px;
}

.login-container .panel-default .panel-heading span {
    display: block;
    color: var(--pm-text-muted);
    line-height: 1.5;
    font-size: 14px;
    font-weight: 400;
    font-family: var(--pm-font);
    margin-top: 10px;
    padding-bottom: 10px;
}

.login-container .panel-default .panel-body .form-group {
    margin: 0;
    padding: 0;
}

.login-container .panel-default .panel-body .form-group > div {
    padding: 0;
}

.login-container .panel-default .panel-body .form-group .input-group {
    border-bottom: none;
    padding: 10px 0;
    transition: var(--pm-transition-fast);
    margin-bottom: 8px;
}

.login-container .panel-default .panel-body .form-group .input-group:focus-within {
    border-bottom-color: var(--pm-red);
}

.login-container .panel-default .panel-body .form-group .input-group .input-group-addon {
    border: 0;
    background-color: transparent;
}

.login-container .panel-default .panel-body .form-group .input-group .input-group-addon .icon {
    font-size: 18px;
    color: var(--pm-text-muted);
}

.login-container .panel-default .panel-body .form-group .input-group .form-control {
    border: 0;
    background-color: transparent;
    box-shadow: none;
    color: var(--pm-text-primary);
    padding: 0;
    font-family: var(--pm-font);
    font-size: 14px;
    font-weight: 600;
    height: 36px;
}

.login-container .panel-default .panel-body .form-group .input-group.parsley-error {
    border-color: var(--pm-red);
}

.login-container .panel-default .panel-body .form-group.login-submit {
    padding-top: 32px;
    padding-bottom: 12px;
}

.login-container .panel-default .panel-body .form-group.login-submit .btn {
    width: 100%;
    font-size: 16px;
    font-weight: 700;
    box-shadow: var(--pm-shadow-red) !important;
    letter-spacing: 0.5px;
}

.login-container .panel-default .panel-body .form-group.footer {
    margin-top: 3px;
    line-height: 35px;
    font-size: 14px;
}

.login-container .panel-default .panel-body .form-group .remember {
    text-align: right;
    color: var(--pm-text-muted);
    float: right;
}

.login-container .panel-default .panel-body .form-group .remember label {
    margin: 0;
    cursor: pointer;
}

.login-container_sigorta {
    background: var(--pm-bg);
    box-shadow: 0 0 0 1px var(--pm-red), var(--pm-shadow-xl);
    padding: 8px;
    width: 580px;
    position: absolute;
    top: 42%;
    left: 44%;
    margin-left: -200px;
    margin-top: -250px;
    border-radius: var(--pm-radius-md);
}

.login_bilgi {
    font-weight: 700 !important;
    color: var(--pm-red) !important;
    font-size: 20px !important;
    text-shadow: none;
}

.login_question {
    color: var(--pm-text-secondary);
    float: right;
    margin-top: 8px;
    margin-right: -5px;
    line-height: 28px;
    font-size: 13px;
}

.bottom-tel {
    color: var(--pm-red);
    font-size: 20px;
    font-weight: 800;
    margin-top: 50px;
    text-align: center;
    color: black;
}

.bottom-tel a:hover {
    text-shadow: 0 0 8px var(--pm-red-glow);
}

.bd {
    font: 13px/100% var(--pm-font), sans-serif !important;
    color: var(--pm-text-primary);
    cursor: pointer;
}

/* ─── SİPARİŞ ÖZET ───────────────────────────────────────────── */
.spet-ozet {
    width: 100%;
    float: left;
    height: 100%;
    background: linear-gradient(180deg, var(--pm-bg-subtle), var(--pm-bg-muted)) !important;
    padding: 20px;
    border-radius: var(--pm-radius);
    border: 1px solid var(--pm-border);
}

.so-title {
    width: 100%;
    float: left;
    font-size: 17px;
    font-weight: 700;
    text-align: right;
    border-bottom: 1px solid var(--pm-border);
    padding: 0 0 10px 0;
    color: var(--pm-text-primary);
}

.so-bottom {
    width: 100%;
    float: left;
    padding: 20px 0 0 0;
}

.so-bottom ul {
    width: 100%;
    float: left;
    list-style: none;
    margin: 0;
    padding: 0;
}

.so-bottom ul li {
    width: 100%;
    float: right;
    text-align: right;
    font-size: 12px;
    padding: 0 0 18px 0;
    color: var(--pm-text-secondary);
}

.so-bottom ul li:last-child { padding: 0; }

.so-bottom ul li .price-b {
    width: 100%;
    float: right;
    font-size: 18px;
    font-weight: 700;
    color: var(--pm-text-primary);
}

/* ─── ÇEŞITLI ────────────────────────────────────────────────── */
.cari_aciklama {
    float: left;
    font-size: 17px;
    margin-top: 14px;
    font-weight: 700;
    color: var(--pm-text-primary);
}

.desc_yil { text-align: left !important; }

.details.d_yil,
.details.d_yil {
    left: 30px !important;
    right: inherit;
    padding-right: inherit;
}

.alt_text {
    text-align: center !important;
    padding-right: 15px;
    background: none !important;
    position: relative;
    z-index: 11;
}

.alt_text input {
    text-align: center !important;
    background: none;
}

.text_line {
    position: relative;
    display: inline-block;
}

.text_line span {
    position: absolute;
    top: 12px;
    vertical-align: middle;
    line-height: 100%;
    font-weight: 600;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.ust_baslik {
    font-weight: 700;
    margin-bottom: 14px;
    font-size: 16px;
    color: var(--pm-text-primary);
}

.alt_baslik {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--pm-text-secondary);
}

.bilgi_yazi {
    font-size: 16px;
    margin-top: 10px;
    color: var(--pm-text-secondary);
}

.bilgi_img { margin-right: 10px; }

.siparis_tamamla {
    float: left;
    margin-right: 48px;
    position: relative;
    top: 6px;
    width: 70%;
    margin-bottom: 8px;
}

.btnPerakendeAyarlarKaydet {
    width: 175px;
    height: 36px;
    margin-top: 18px;
}

.negative {
    color: var(--pm-red);
    font-weight: 700;
}

/* ─── ÖDEME MODÜLÜ ───────────────────────────────────────────── */
.payment-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 24px;
}

.left-panel {
    flex: 2;
    min-width: 380px;
}

.right-panel {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}

.right-panel.dx-card {
    background: linear-gradient(145deg, var(--pm-slate-900) 0%, var(--pm-slate-800) 100%);
    color: white;
    border-radius: var(--pm-radius-lg);
    padding: 28px 22px;
    box-shadow: var(--pm-shadow-xl);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border: 1px solid var(--pm-slate-700);
}

.right-panel h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    margin-bottom: 22px;
    color: rgba(255,255,255,0.85);
}

.virtual-card img {
    width: 100%;
    max-width: 260px;
    border-radius: var(--pm-radius-md);
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    display: block;
    margin: 0 auto 22px auto;
}

#payButton, #cancelButton { margin-bottom: 10px; }

.agreements {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    margin-top: 18px;
}

.agreements a {
    color: #60b8f5;
    text-decoration: none;
    margin-right: 4px;
    transition: var(--pm-transition-fast);
}

.agreements a:hover { color: #93cffd; text-decoration: underline; }

#approveCheckbox { margin-top: 10px; }

.payment-wrapper .dx-card > div[id^="amount"],
.payment-wrapper .dx-card > div[id^="description"],
.payment-wrapper .dx-card > div[id^="cardHolder"],
.payment-wrapper .dx-card > div[id^="cardNumber"],
.payment-wrapper .dx-card > .row {
    margin-bottom: 14px;
}

.payment-wrapper .row > .half { margin-right: 8px; }
.payment-wrapper .row > .half:last-child { margin-right: 0; }

/* ─── TAKSİT KUTUSU ─────────────────────────────────────────── */
.installment-container,
.installment-box-wrapper {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.installment-box {
    background: var(--pm-bg-muted);
    padding: 14px;
    border-radius: var(--pm-radius);
    width: 148px;
    text-align: center;
    cursor: pointer;
    transition: var(--pm-transition);
    border: 2px solid var(--pm-border);
}

.installment-box:hover {
    border-color: var(--pm-red);
    background: var(--pm-red-subtle);
}

.installment-box.selected {
    border-color: var(--pm-red);
    background: var(--pm-red);
    color: #fff;
    box-shadow: var(--pm-shadow-red);
}

.installment-box .title {
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 13px;
}

.installment-box .monthly,
.installment-box .total {
    font-size: 11px;
    opacity: 0.85;
}

/* ─── KREDİ KARTI GÖRSELİ ──────────────────────────────────── */
.card-wrapper {
    position: relative;
    width: 300px;
    height: 180px;
}

.card-bg {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: var(--pm-radius-md);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    padding: 20px;
    color: white;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    box-sizing: border-box;
}

.card-logo {
    position: absolute;
    top: 25px;
    left: 145px;
    width: 100px;
    height: auto;
    z-index: 100;
}

.card-Type {
    position: absolute;
    top: 39px;
    left: 245px;
    width: 130px;
    height: auto;
    z-index: 100;
}

.card-number,
.card-name,
.card-expiry {
    color: white;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    position: absolute;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.card-number { top: 100px; left: 50px; font-size: 16px; }
.card-name   { top: 129px; left: 51px; font-size: 12px; }
.card-expiry { top: 128px; right: 110px; font-size: 12px; }

/* ─── INFO KARTLARI ─────────────────────────────────────────── */
.info-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.info-card {
    background: var(--pm-red);
    border-radius: var(--pm-radius-md);
    color: white;
    padding: 20px;
    flex: 1 1 calc(25% - 18px);
    box-shadow: var(--pm-shadow-md), var(--pm-shadow-red);
    transition: var(--pm-transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 210px;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pm-shadow-xl), var(--pm-shadow-red);
}

.info-title {
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    font-size: 22px;
    line-height: 1.2;
}

.info-values {
    color: rgba(255,255,255,0.9);
    font-size: 18px;
    margin-bottom: 14px;
    font-weight: 500;
}

.info-button {
    align-self: flex-start;
    background-color: rgba(0,0,0,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 6px 14px;
    border-radius: var(--pm-radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: var(--pm-transition-fast);
}

.info-button:hover {
    background-color: rgba(0,0,0,0.35);
}

@media (max-width: 992px) {
    .info-card { flex: 1 1 calc(50% - 18px); }
}
@media (max-width: 600px) {
    .info-card { flex: 1 1 100%; }
}

/* ─── KART SEKSİYON ─────────────────────────────────────────── */
.card-section {
    background: var(--pm-bg);
    border-radius: var(--pm-radius-md);
    box-shadow: var(--pm-shadow-sm);
    border: 1px solid var(--pm-border);
    margin: 18px 0;
    padding: 18px;
}

.card-header {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--pm-text-primary);
}

.card-header i {
    margin-right: 8px;
    color: var(--pm-info);
}

.toggle-icon {
    margin-left: auto;
    cursor: pointer;
    color: var(--pm-text-muted);
    transition: var(--pm-transition-fast);
}

.toggle-icon:hover { color: var(--pm-red); }

.card-body { padding-top: 8px; }

/* ─── POPUP GENEL ────────────────────────────────────────────── */
#popupContent { padding: 12px; }

.dx-popup-message {
    font-size: 14px;
    margin-bottom: 14px;
    color: var(--pm-text-secondary);
    line-height: 1.6;
}

/* ─── DIS UL ─────────────────────────────────────────────────── */
.dis_ul {
    margin-top: -10px;
    width: 310px;
    min-width: 310px;
    margin-right: -300px;
}

/* ─── DATAGRID GENEL ────────────────────────────────────────── */
.dx-datagrid .dx-row > td {
    text-align: center;
}

.dx-datagrid .dx-header-row > td {
    font-weight: 700;
    background-color: var(--pm-bg-subtle);
    text-align: center;
    color: var(--pm-text-primary);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Bank header logos */
.dx-datagrid .dx-header-row > td:nth-child(2) {
    background-image: url('/images/akbank.png');
    background-repeat: no-repeat;
    background-position: center left;
    padding-left: 28px;
}

/* ─── WRAPPER SEÇİCİLER ─────────────────────────────────────── */
.portal-wrapper #TatkoPortalHeader {
    display: block !important;
}

/* ─── PORTAL COLOR GLOBAL ───────────────────────────────────── */
.nav-tabs > li a:hover {
    background: var(--pm-red-subtle);
    color: var(--pm-red);
}

/* ─── FORM MODAL STILLER ────────────────────────────────────── */
#form-bp1,
#form-bp2 .modal-content {
    box-shadow: var(--pm-shadow-xl);
    border-radius: var(--pm-radius);
}

#form-bp1,
#form-bp2 .modal-content .left,
.btn-default {
    padding: 10px;
}

/* ─── DATAGRID KAPSAM STILI ─────────────────────────────────── */
.dx-theme-generic-typography h3 {
    margin-left: 1%;
}

/* ─── POPUP DEPO ─────────────────────────────────────────────── */
#popupdepo { /* içerik media query içinde */ }

/* ════════════════════════════════════════════════════════════════
   TAB NAVİGASYON SİSTEMİ
   ════════════════════════════════════════════════════════════════ */

/* Container */
.pm-tabs-container {
    /* background: var(--pm-bg); */
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    margin-bottom: 18px;
    position: relative;
    z-index: 100;
    pointer-events: auto;
}

.pm-tabs-container .tab-content {
        background: transparent !important;
    border-radius: 0;
}

.pm-tabs-container .tab-container,
.pm-tabs-container.tab-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pm-tabs-container .nav-tabs,
.pm-tabs-container .nav-tabs li,
.pm-tabs-container .nav-tabs li a {
    background: transparent !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pm-tabs-container .nav-tabs span {
    font-size: inherit !important;
    font-family: inherit !important;
    font-weight: inherit !important;
}

.pm-tabs-container .icon-2x {
    font-size: 17px !important;
    width: 22px !important;
    height: 22px !important;
}

.pm-tabs-container .tab-content {
        background: transparent !important;
    border-radius: 0 0 var(--pm-radius) 0;
}

/* Tab Navigation Bar */
.pm-tabs-nav {
    display: flex;
    background: var(--pm-bg);
    border-bottom: 1px solid var(--pm-border);
    padding: 0 12px;
    margin: 0;
    list-style: none;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 2px;
    position: relative;
    z-index: 100;
    pointer-events: auto;
}

.pm-tabs-nav::-webkit-scrollbar { display: none; }

.pm-tabs-nav > li {
    flex-shrink: 0;
    margin: 0;
    border: none;
}

/* Tab Buttons */
.pm-tabs-nav > li > a,
.pm-tabs-nav > li > .pm-tab-button {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 13px 18px;
    background: transparent;
    border: none;
    border-radius: var(--pm-radius-xs) var(--pm-radius-xs) 0 0;
    color: var(--pm-text-muted);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--pm-transition-fast);
    position: relative;
    white-space: nowrap;
}

.pm-tabs-nav > li > a:hover,
.pm-tabs-nav > li > .pm-tab-button:hover {
    background: var(--pm-bg-subtle);
    color: var(--pm-text-primary);
    text-decoration: none;
}

.pm-tabs-nav > li.active > a,
.pm-tabs-nav > li.active > .pm-tab-button {
    background: var(--pm-bg);
    color: var(--pm-red);
    font-weight: 600;
}

.pm-tabs-nav > li.active > a::after,
.pm-tabs-nav > li.active > .pm-tab-button::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--pm-red);
    border-radius: 2px 2px 0 0;
}

/* Tab Icons */
.pm-tabs-nav .pm-tab-icon {
    font-size: 15px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.pm-tabs-nav > li > a:hover .pm-tab-icon,
.pm-tabs-nav > li > .pm-tab-button:hover .pm-tab-icon {
    transform: scale(1.08);
}

.pm-tabs-nav > li.active > a .pm-tab-icon,
.pm-tabs-nav > li.active > .pm-tab-button .pm-tab-icon {
    color: var(--pm-red);
}

/* Tab Content */
.pm-tab-pane {
    /* padding: 20px; */
    animation: pm-fade-in 0.2s ease-in-out;
}

@keyframes pm-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── ACTION LINKS GRID ─────────────────────────────────────── */
.pm-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    background: transparent !important;
}

.pm-action-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--pm-bg);
    border: 1px solid var(--pm-border);
    border-left: 2px solid var(--pm-red);
    border-radius: var(--pm-radius-sm);
    color: var(--pm-text-secondary);
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--pm-transition);
    position: relative;
    overflow: hidden;
}

.pm-action-item:hover {
    background: var(--pm-red-subtle);
    color: var(--pm-red);
    border-color: var(--pm-border);
    border-left-color: var(--pm-red);
    transform: translateX(2px);
    text-decoration: none !important;
}

.pm-action-item .pm-action-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pm-bg-muted);
    border-radius: var(--pm-radius-sm);
    color: var(--pm-red);
    transition: var(--pm-transition-fast);
    font-size: 0;
    flex-shrink: 0;
    border: 1px solid var(--pm-border-light);
}

.pm-action-item .pm-action-icon::before { content: ''; display: none; }

.pm-action-item .pm-action-icon svg {
    width: 15px;
    height: 15px;
    stroke-width: 2;
    stroke: currentColor;
    fill: none;
    display: block;
    visibility: visible;
    opacity: 1;
}

.pm-action-item .pm-action-icon i {
    font-size: 13px;
    display: inline-block !important;
    line-height: 1;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto;
    height: auto;
}

.pm-action-item .pm-action-icon img {
    width: 15px;
    height: 15px;
    object-fit: contain;
    display: block;
    visibility: visible;
    opacity: 1;
}

.pm-action-item:hover .pm-action-icon {
    background: var(--pm-red-light);
    color: var(--pm-red);
    border-color: var(--pm-red-glow);
}

/* ─── KART STİLİ TABS ────────────────────────────────────────── */
.pm-tabs-card-style {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    padding: 16px 12px;
    background: var(--pm-bg-subtle);
    border-bottom: 1px solid var(--pm-border);
    position: relative;
    z-index: 100;
    pointer-events: auto;
}

.pm-tabs-card-style > li {
    margin: 0;
    border: none;
    position: relative !important;
    z-index: 10 !important;
    pointer-events: auto !important;
    display: block !important;
}

.pm-tabs-nav.pm-tabs-card-style {
    position: relative;
    z-index: 100;
    pointer-events: auto;
}

.pm-tabs-card-style .pm-tab-card {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 14px 10px;
    background: var(--pm-bg);
    border: 1px solid var(--pm-border);
    border-radius: var(--pm-radius-sm);
    color: var(--pm-text-muted);
    text-align: center;
    cursor: pointer !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 15 !important;
    transition: var(--pm-transition);
}

.pm-tabs-card-style .pm-tab-card:hover {
    border-color: var(--pm-border-strong);
    background: var(--pm-bg);
    color: var(--pm-text-primary);
    z-index: 25 !important;
    cursor: pointer !important;
}

.pm-tabs-card-style > li.active .pm-tab-card {
    background: var(--pm-bg);
    border-color: var(--pm-red);
    border-width: 2px;
    color: var(--pm-red);
    box-shadow: 0 0 0 1px var(--pm-red-glow);
    z-index: 30 !important;
}

.pm-tabs-card-style .pm-tab-card .pm-tab-icon {
    font-size: 18px;
    width: 36px;
    height: 36px;
    background: var(--pm-bg-muted);
    border-radius: var(--pm-radius-sm);
    color: var(--pm-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--pm-transition-fast);
    border: 1px solid var(--pm-border-light);
}

.pm-tabs-card-style .pm-tab-card:hover .pm-tab-icon {
    background: var(--pm-bg-subtle);
    color: var(--pm-text-primary);
    border-color: var(--pm-border);
}

.pm-tabs-card-style > li.active .pm-tab-card .pm-tab-icon {
    background: var(--pm-red);
    color: #ffffff;
    border-color: var(--pm-red);
}

.pm-tabs-card-style .pm-tab-card .pm-tab-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2px;
    line-height: 1.3;
}

/* Özel Menü ID'leri */
#fiyatstok, #siparisler, #Islemler, #FiloSiparisler {
    position: relative !important;
    z-index: 10 !important;
    pointer-events: auto !important;
    display: block !important;
}

#fiyatstok a, #siparisler a, #Islemler a, #FiloSiparisler a {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 20 !important;
    display: block !important;
}

#fiyatstok .pm-tab-card,
#siparisler .pm-tab-card,
#Islemler .pm-tab-card,
#FiloSiparisler .pm-tab-card {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 15 !important;
}

.pm-tab-icon,
.pm-tab-label {
    pointer-events: none;
    position: relative;
    z-index: 1;
}

.pm-tabs-container * { pointer-events: auto; }

#menukontroltabsdiv { display: none !important; }

/* ─── TAB BADGE ───────────────────────────────────────────────── */
.pm-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--pm-red);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    border-radius: var(--pm-radius-full);
    margin-left: 4px;
}

.pm-tabs-nav > li:not(.active) .pm-tab-badge {
    background: var(--pm-slate-300);
}

/* ─── TAB TOOLTIP ─────────────────────────────────────────────── */
.pm-tab-tooltip { position: relative; }

.pm-tab-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 7px 11px;
    background: var(--pm-slate-900);
    color: #ffffff;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    border-radius: var(--pm-radius-sm);
    opacity: 0;
    pointer-events: none;
    transition: var(--pm-transition-fast);
    z-index: 200;
}

.pm-tab-tooltip:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

/* ─── FLOATING TAB BAR ────────────────────────────────────────── */
.pm-tabs-floating {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: var(--pm-shadow-sm);
    border-radius: var(--pm-radius-md);
    margin: 0 14px 14px;
}

/* ─── ICON ANİMASYONLARI ─────────────────────────────────────── */
.pm-tab-icon-spin {
    animation: pm-spin 1.2s linear infinite;
}

@keyframes pm-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.pm-tab-icon-pulse {
    animation: pm-pulse 2s ease-in-out infinite;
}

@keyframes pm-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.65; transform: scale(1.1); }
}

/* ─── ERİŞİLEBİLİRLİK ────────────────────────────────────────── */
.pm-tabs-nav > li > a:focus,
.pm-tabs-nav > li > .pm-tab-button:focus,
.pm-action-item:focus {
    outline: 2px solid var(--pm-red);
    outline-offset: 2px;
}


/* ════════════════════════════════════════════════════════════════
   İÇERİK LAYOUT GLOBAL FIX
   ════════════════════════════════════════════════════════════════ */

@supports selector(:has(a)) {
    .dx-content:has(#TatkoPortalHeader) {
        padding-left: var(--pm-sidebar-width) !important;
        padding-top: var(--pm-header-height) !important;
        box-sizing: border-box;
        width: 100%;
    }
}

@supports not selector(:has(a)) {
    .dx-content #TatkoPortalHeader ~ .cont_center,
    .dx-content #TatkoPortalHeader ~ #scrollViewContainer,
    .dx-content #TatkoPortalHeader ~ .portal-main-container,
    .dx-content #TatkoPortalHeader ~ div[data-bind*="dxScrollView"] {
        margin-left: var(--pm-sidebar-width) !important;
        margin-top: var(--pm-header-height) !important;
        width: calc(100% - var(--pm-sidebar-width)) !important;
    }
}

@media (max-width: 1200px) {
    @supports selector(:has(a)) {
        .dx-content:has(#TatkoPortalHeader) {
            padding-left: 0 !important;
            padding-top: 56px !important;
        }
    }
    @supports not selector(:has(a)) {
        .dx-content #TatkoPortalHeader ~ .cont_center,
        .dx-content #TatkoPortalHeader ~ #scrollViewContainer,
        .dx-content #TatkoPortalHeader ~ .portal-main-container,
        .dx-content #TatkoPortalHeader ~ div[data-bind*="dxScrollView"] {
            margin-left: 0 !important;
            margin-top: 56px !important;
            width: 100% !important;
        }
    }
}

/* ════════════════════════════════════════════════════════════════
   BUTON UI SİSTEMİ
   ════════════════════════════════════════════════════════════════ */

.dx-button-style {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 22px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: var(--pm-radius-sm);
    transition: var(--pm-transition);
    outline: none;
    box-shadow: var(--pm-shadow-sm);
    position: relative;
    overflow: hidden;
    min-width: 80px;
    white-space: nowrap;
    font-family: var(--pm-font);
    letter-spacing: 0.3px;
    gap: 6px;
}

.dx-button-style:hover {
    transform: translateY(-1px);
    box-shadow: var(--pm-shadow-md);
}

.dx-button-style:active {
    transform: translateY(0);
    box-shadow: var(--pm-shadow-xs);
}

.dx-button-style:focus {
    outline: 2px solid var(--pm-red-glow);
    outline-offset: 2px;
}

.dx-button-style.color-lastikpark {
    background: var(--pm-red) !important;
    border-color: var(--pm-red) !important;
    color: #ffffff !important;
    margin-top: 14px;
    box-shadow: var(--pm-shadow-red);
}

.dx-button-style.color-lastikpark:hover {
    background: var(--pm-red-hover) !important;
    border-color: var(--pm-red-hover) !important;
    box-shadow: 0 6px 16px color-mix(in srgb, var(--pm-red) 40%, transparent);
}

.dx-button-style.color-lastikpark:active {
    background: var(--pm-red-deep) !important;
    border-color: var(--pm-red-deep) !important;
}

.dx-button-style.btn-primary-style {
    background: #0571e0 !important;
    border-color: #0571e0 !important;
    color: #ffffff !important;
}

.dx-button-style.btn-primary-style:hover {
    background: #044fb5 !important;
    border-color: #044fb5 !important;
}

.dx-button-style.btn-default-style {
    background: #5a6472 !important;
    border-color: #5a6472 !important;
    color: #ffffff !important;
}

.dx-button-style.btn-default-style:hover {
    background: #454e59 !important;
    border-color: #454e59 !important;
}

.dx-button-style.btn-success-style {
    background: #0a7a52 !important;
    border-color: #0a7a52 !important;
    color: #ffffff !important;
}

.dx-button-style.btn-success-style:hover {
    background: #085e3e !important;
    border-color: #085e3e !important;
}

.dx-button-style.btn-warning-style {
    background: #c97c00 !important;
    border-color: #c97c00 !important;
    color: #ffffff !important;
}

.dx-button-style.btn-warning-style:hover {
    background: #a66400 !important;
    border-color: #a66400 !important;
}

.dx-button-style.btn-large {
    padding: 12px 28px;
    font-size: 15px;
    min-width: 120px;
}

.dx-button-style.btn-small {
    padding: 5px 14px;
    font-size: 11px;
    min-width: 60px;
}

.dx-button-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    height: 100%;
}

.dx-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 15px;
}

.dx-button-text {
    display: inline-block;
    line-height: 1;
}

/* ════════════════════════════════════════════════════════════════
   ICON SİSTEMİ
   ════════════════════════════════════════════════════════════════ */

.pm-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    stroke-width: 1.8;
    stroke: currentColor;
    fill: none;
    transition: var(--pm-transition-fast);
    flex-shrink: 0;
}

.pm-icon-sm  { width: 14px; height: 14px; }
.pm-icon-md  { width: 20px; height: 20px; }
.pm-icon-lg  { width: 24px; height: 24px; }

.pm-action-icon .pm-icon { width: 18px; height: 18px; }
.pm-stat-icon   .pm-icon { width: 26px; height: 26px; }
.portal-sidebar-link .pm-icon { width: 16px; height: 16px; }

/* SVG Data URI ikonlar */
.pm-icon-home::before {
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'%3E%3C/path%3E%3Cpolyline points='9 22 9 12 15 12 15 22'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    width: 1em;
    height: 1em;
}

.pm-icon-chart::before {
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='20' x2='18' y2='10'%3E%3C/line%3E%3Cline x1='12' y1='20' x2='12' y2='4'%3E%3C/line%3E%3Cline x1='6' y1='20' x2='6' y2='14'%3E%3C/line%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    width: 1em;
    height: 1em;
}

.pm-icon-cart::before {
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'%3E%3C/circle%3E%3Ccircle cx='20' cy='21' r='1'%3E%3C/circle%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    width: 1em;
    height: 1em;
}

.pm-icon-users::before,
.pm-icon-settings::before,
.pm-icon-file::before,
.pm-icon-search::before,
.pm-icon-bell::before,
.pm-icon-box::before,
.pm-icon-arrow-right::before,
.pm-icon-check::before,
.pm-icon-x::before,
.pm-icon-info::before {
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    width: 1em;
    height: 1em;
}

.pm-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pm-icon-i {
    font-size: inherit;
    line-height: 1;
}

/* FontAwesome icon görünürlük garantisi */
.pm-action-icon .fa,
.pm-action-icon .fas,
.pm-action-icon .far,
.pm-action-icon .fab,
.pm-action-icon .fal,
.pm-action-icon .fad,
.pm-action-icon .fass,
.pm-action-icon .fasr,
.pm-action-icon .fasl {
    display: inline-block;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: inherit;
    line-height: 1;
    width: auto;
    height: auto;
}

/* ════════════════════════════════════════════════════════════════
   ÜRÜN ARAMA FİLTRELERİ
   ════════════════════════════════════════════════════════════════ */

/* Modern Product Search */
.pm-product-search {
    /* background: var(--pm-bg); */
    /* border: 1px solid var(--pm-border); */
    border-radius: var(--pm-radius);
    overflow: hidden;
    margin-bottom: var(--pm-space-4);
    /* box-shadow: var(--pm-shadow-xs); */
}

.pm-product-search::before {
    content: '';
    display: block;
    height: 2px;
    background: linear-gradient(90deg, var(--pm-red) 0%, var(--pm-red-glow) 60%, transparent 100%);
}

.pm-product-search .pm-search-header {
    background: linear-gradient(135deg, var(--pm-slate-900) 0%, var(--pm-slate-800) 100%);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pm-product-search .pm-search-header .pm-search-icon {
    width: 40px;
    height: 40px;
    background: var(--pm-red);
    border-radius: var(--pm-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    box-shadow: var(--pm-shadow-red);
}

.pm-product-search .pm-search-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.pm-product-search .pm-search-subtitle {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    margin: 2px 0 0;
}

.pm-search-field-wrapper {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.pm-search-btn {
    flex-shrink: 0;
    height: 38px;
    padding: 0 20px;
    background: var(--pm-red);
    color: #fff;
    border: none;
    border-radius: var(--pm-radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--pm-transition-fast);
    white-space: nowrap;
}

.pm-search-btn:hover {
    background: var(--pm-red-hover);
    box-shadow: var(--pm-shadow-red);
}

.pm-filter-section {
    padding: 16px 20px;
    border-top: 1px solid var(--pm-border-light);
    animation: fadeInUp 0.35s ease;
}

.pm-filter-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--pm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.9px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pm-filter-label::before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--pm-red);
    border-radius: 50%;
    opacity: 0.8;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* DevExtreme Overrides — Product Search */
.pm-product-search .dx-tagbox,
.pm-product-search .dx-textbox,
.pm-product-search .dx-selectbox,
.pm-search-container .dx-tagbox,
.pm-search-container .dx-textbox,
.pm-search-container .dx-selectbox {
    border: 1px solid var(--pm-border);
    border-radius: var(--pm-radius-sm);
    background: var(--pm-bg);
}

.pm-product-search .dx-textbox .dx-texteditor-input,
.pm-search-container .dx-textbox .dx-texteditor-input {
    padding: 8px 12px;
    font-size: 13px;
}

.pm-product-search .dx-checkbox,
.pm-search-container .dx-checkbox { margin: 0; }

.pm-product-search .dx-checkbox-icon,
.pm-search-container .dx-checkbox-icon {
    border-radius: var(--pm-radius-xs);
    border: 2px solid var(--pm-border-strong);
    width: 16px;
    height: 16px;
}

.pm-product-search .dx-checkbox-checked .dx-checkbox-icon,
.pm-search-container .dx-checkbox-checked .dx-checkbox-icon {
    background: var(--pm-red);
    border-color: var(--pm-red);
}

.pm-product-search .dx-button,
.pm-search-container .dx-button {
    border-radius: var(--pm-radius-sm);
    padding: 8px 18px;
    font-weight: 600;
}

/* Search Container */
.pm-search-container {
    background: var(--pm-bg);
    border: 1px solid var(--pm-border);
    border-radius: var(--pm-radius);
    overflow: hidden;
    margin-bottom: var(--pm-space-4);
    box-shadow: var(--pm-shadow-xs);
}

.pm-search-container::before {
    content: '';
    display: block;
    height: 2px;
    background: linear-gradient(90deg, var(--pm-red) 0%, var(--pm-red-glow) 60%, transparent 100%);
}

.pm-banner-section {
    padding: var(--pm-space-6);
    border-bottom: 1px solid var(--pm-border-light);
    background: var(--pm-bg-subtle);
}

.pm-banner-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pm-banner-image {
    max-width: 100%;
    height: auto;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.pm-banner-image:hover { opacity: 0.9; }

.pm-brand-section {
    padding: var(--pm-space-4) var(--pm-space-6);
    border-bottom: 1px solid var(--pm-border-light);
    background: var(--pm-bg-subtle);
    display: flex;
    justify-content: center;
}

.pm-brand-logo {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

/* Search Filters Grid */
.pm-search-filters {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--pm-space-4);
    padding: var(--pm-space-6);
}

.pm-filter-item {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    gap: var(--pm-space-1);
}

.pm-filter-item-wide { grid-column: span 3; }
.pm-filter-item-checkboxes { grid-column: span 2; }

.pm-filter-item-trust {
    grid-column: span 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pm-filter-control { width: 100%; }

.pm-input-group {
    display: flex;
    gap: var(--pm-space-1);
}

.pm-input-field { flex: 1; }
.pm-input-action { flex-shrink: 0; }

.pm-input-secondary { margin-top: var(--pm-space-2); }

.pm-input-secondary .baslik_arama {
    font-size: 10px;
    color: var(--pm-text-faint);
}

.pm-input-field-legacy,
.pm-input-field-legacy.form-control {
    flex: 1;
    border: 1px solid var(--pm-border);
    border-radius: var(--pm-radius-sm);
    padding: 9px 12px;
    font-size: 13px;
    background: var(--pm-bg);
}

.pm-input-action-legacy,
.pm-input-action-legacy.btn-primary {
    flex-shrink: 0;
    background: var(--pm-red);
    border: none;
    border-radius: var(--pm-radius-sm);
    padding: 7px 16px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: var(--pm-transition-fast);
}

.pm-input-action-legacy:hover {
    background: var(--pm-red-hover);
    box-shadow: var(--pm-shadow-red);
}

.pm-form-legacy { margin: 0; }

.pm-checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--pm-space-2);
}

.pm-checkbox-column {
    display: flex;
    flex-direction: column;
    gap: var(--pm-space-1);
}

.pm-checkbox-item {
    display: flex;
    align-items: center;
    gap: var(--pm-space-1);
}

.pm-checkbox-wrapper { flex-shrink: 0; }

.pm-checkbox-label {
    font-size: 11px;
    color: var(--pm-text-secondary);
    font-weight: 500;
}

.pm-star-icon {
    width: 13px;
    height: 13px;
    object-fit: contain;
    flex-shrink: 0;
}

.pm-trust-banner {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pm-trust-image {
    max-width: 100%;
    height: auto;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.pm-trust-image:hover { opacity: 0.9; }

/* ════════════════════════════════════════════════════════════════
   VERİ TABLOSU (DATA GRID) — PREMIUM CORPORATE
   ════════════════════════════════════════════════════════════════ */

/* Results Wrapper */
.pm-results-wrapper {
    margin-bottom: var(--pm-space-6);
}

/* Results Header */
.pm-results-header {
    background: var(--pm-bg);
    border: 1px solid var(--pm-border);
    border-radius: var(--pm-radius) var(--pm-radius) 0 0;
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: none;
}

.pm-results-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pm-results-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--pm-red) 0%, var(--pm-red-hover) 100%);
    border-radius: var(--pm-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: var(--pm-shadow-red);
    flex-shrink: 0;
}

.pm-results-heading {
    font-size: 17px;
    font-weight: 700;
    color: var(--pm-text-primary);
    margin: 0;
    line-height: 1.2;
}

.pm-results-subtitle {
    font-size: 12px;
    color: var(--pm-text-muted);
    margin: 3px 0 0 0;
    font-weight: 400;
}

/* Data Grid Wrapper */
.pm-data-grid-wrapper {
    background: var(--pm-bg);
    border: 1px solid var(--pm-border);
    border-radius: 0 0 var(--pm-radius) var(--pm-radius);
    overflow: hidden;
}

/* Data Grid Base */
.pm-data-grid { 
    width: 100%; 
    overflow-x: hidden !important;
}

.pm-data-grid .dx-datagrid {
    border: none !important;
    background: transparent !important;
    font-family: var(--pm-font) !important;
    width: 100% !important;
    max-width: 100% !important;
}

.pm-data-grid .dx-datagrid table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;
}

.pm-data-grid .dx-datagrid .dx-datagrid-content {
    overflow-x: hidden !important;
    width: 100% !important;
}

.pm-data-grid .dx-datagrid .dx-scrollable {
    overflow-x: hidden !important;
}

.pm-data-grid .dx-datagrid .dx-scrollable-container {
    overflow-x: hidden !important;
}

/* Cell Padding */
.pm-data-grid .dx-datagrid td,
.pm-data-grid .dx-datagrid .dx-cell {
    padding: 2px 3px !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    white-space: normal !important;
}

.pm-data-grid .dx-datagrid .dx-header-row > td,
.pm-data-grid .dx-datagrid .dx-data-row > td {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Row Alternation Fix */
.pm-data-grid .dx-datagrid .dx-data-row.dx-row-alt {
    background-color: var(--pm-bg-subtle) !important;
}

/* Selection Row - Portal Red Background, White Text */
.pm-data-grid .dx-datagrid .dx-data-row.dx-selection {
    background-color: var(--pm-red) !important;
}

.pm-data-grid .dx-datagrid .dx-data-row.dx-row-alt.dx-selection {
    background-color: var(--pm-red) !important;
}

.pm-data-grid .dx-datagrid .dx-data-row.dx-selection > td,
.pm-data-grid .dx-datagrid .dx-data-row.dx-row-alt.dx-selection > td {
    background-color: var(--pm-red) !important;
    color: white !important;
}

.pm-data-grid .dx-datagrid .dx-data-row.dx-selection td,
.pm-data-grid .dx-datagrid .dx-data-row.dx-row-alt.dx-selection td {
    color: white !important;
}

/* Force selection color on all cells */
.pm-data-grid .dx-datagrid .dx-selection td {
    background-color: var(--pm-red) !important;
    color: white !important;
}

.pm-data-grid .dx-datagrid .dx-row-alt.dx-selection td {
    background-color: var(--pm-red) !important;
    color: white !important;
}

/* Sepete At Button - Fixed Width */
.pm-data-grid .dx-datagrid button[aria-label="Sepete At"],
.pm-data-grid .dx-datagrid .dx-button[aria-label="Sepete At"] {
    min-width: 90px !important;
    width: 90px !important;
    white-space: nowrap !important;
    padding: 4px 8px !important;
}

.pm-data-grid .dx-datagrid button[aria-label="Sepete At"] span,
.pm-data-grid .dx-datagrid .dx-button[aria-label="Sepete At"] span {
    white-space: nowrap !important;
}

/* Grid Header */
.pm-data-grid .dx-header-row {
    background: var(--pm-bg-subtle) !important;
    border-bottom: 2px solid var(--pm-red) !important;
}

.pm-data-grid .dx-header-row td {
    background: transparent !important;
    padding: 12px 14px !important;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: var(--pm-text-secondary) !important;
    border: none !important;
}

/* Data Rows */
.pm-data-grid .dx-data-row {
    transition: var(--pm-transition-fast);
}

.pm-data-grid .dx-data-row > td {
    padding: 14px !important;
    border-bottom: 1px solid var(--pm-border-light) !important;
    background: var(--pm-bg) !important;
    font-size: 13px;
    color: var(--pm-text-primary);
    line-height: 1.5;
}

.pm-data-grid .dx-data-row:hover > td {
    background: var(--pm-red-subtle) !important;
}

/* Focus State */
.pm-data-grid .dx-datagrid-focusable .dx-row > td.dx-focused {
    background: var(--pm-red-subtle) !important;
    position: relative;
}

.pm-data-grid .dx-datagrid-focusable .dx-row > td.dx-focused::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    border: 2px solid var(--pm-red);
    pointer-events: none;
    border-radius: 1px;
}

/* Selection */
.pm-data-grid .dx-selection {
    background: var(--pm-red-subtle) !important;
}

.pm-data-grid .dx-datagrid-selection {
    background: var(--pm-red-light) !important;
}

/* Grid Cells */
.pm-grid-cell { padding: 0; height: 100%; }

.pm-grid-cell-image {
    text-align: center;
    padding: 6px;
}

.pm-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.pm-image-link {
    display: block;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.pm-image-link:hover { transform: scale(1.08); }

.pm-image-img {
    max-width: 38px;
    max-height: 38px;
    object-fit: contain;
    border-radius: var(--pm-radius-sm);
    border: 1px solid var(--pm-border-light);
}

.pm-grid-cell-season {
    text-align: center;
    padding: 6px;
}

.pm-season-link {
    display: inline-block;
    text-decoration: none;
}

.pm-season-img {
    max-width: 48px;
    max-height: 28px;
    object-fit: contain;
    border-radius: var(--pm-radius-xs);
}

/* Editing */
.pm-data-grid .dx-editor-cell { padding: 6px !important; }

.pm-data-grid .dx-texteditor { font-size: 13px; }

/* Pager */
.pm-data-grid .dx-datagrid-pager {
    padding: 14px !important;
    background: var(--pm-bg-subtle);
    border-top: 1px solid var(--pm-border-light);
}

.pm-data-grid .dx-pages { margin: 0; }

.pm-data-grid .dx-page {
    min-width: 34px;
    height: 34px;
    border-radius: var(--pm-radius-sm);
    margin: 0 2px;
    background: var(--pm-bg);
    border: 1px solid var(--pm-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--pm-text-secondary);
    transition: var(--pm-transition-fast);
    cursor: pointer;
}

.pm-data-grid .dx-page.dx-page-number {
    background: var(--pm-red);
    border-color: var(--pm-red);
    color: white;
    box-shadow: var(--pm-shadow-red);
}

.pm-data-grid .dx-page:hover:not(.dx-page-number) {
    border-color: var(--pm-red);
    color: var(--pm-red);
    background: var(--pm-red-subtle);
}

.pm-data-grid .dx-page-size {
    min-width: 58px;
    height: 34px;
    border-radius: var(--pm-radius-sm);
    border: 1px solid var(--pm-border);
    background: var(--pm-bg);
    padding: 4px 8px;
    font-size: 12px;
    font-family: var(--pm-font);
}

.pm-data-grid .dx-page-size-next,
.pm-data-grid .dx-page-size-prev {
    border-radius: var(--pm-radius-sm);
}

.pm-data-grid .dx-pager-info {
    font-size: 12px;
    color: var(--pm-text-muted);
    font-weight: 500;
}

/* Load Panel */
.pm-data-grid .dx-loadpanel {
    background: var(--pm-bg);
    border-radius: var(--pm-radius);
    box-shadow: var(--pm-shadow-lg);
    border: 1px solid var(--pm-border);
}

.pm-data-grid .dx-loadpanel-message {
    color: var(--pm-text-secondary);
    font-size: 13px;
}

/* Filter Row */
.pm-data-grid .dx-filter-row {
    background: var(--pm-bg-subtle);
    border-bottom: 1px solid var(--pm-border);
}

.pm-data-grid .dx-filter-row td {
    padding: 10px 14px !important;
}

/* Group Row */
.pm-data-grid .dx-group-row {
    background: linear-gradient(90deg, var(--pm-red) 0%, var(--pm-red-hover) 100%);
}

.pm-data-grid .dx-group-row td {
    color: white;
    font-weight: 700;
    font-size: 12px;
    padding: 9px 14px !important;
}

/* Footer Row */
.pm-data-grid .dx-footer-row {
    background: var(--pm-bg-subtle);
    border-top: 2px solid var(--pm-red);
    font-weight: 700;
}

.pm-data-grid .dx-footer-row td {
    padding: 11px 14px !important;
    color: var(--pm-text-primary);
    font-weight: 700;
}

/* Empty Row */
.pm-data-grid .dx-datagrid-content .dx-empty-row { background: var(--pm-bg); }

.pm-data-grid .dx-datagrid-nodata {
    padding: 56px 20px;
    text-align: center;
    color: var(--pm-text-muted);
    font-size: 13px;
    font-style: italic;
}

/* Alternating Rows */
.pm-data-grid .dx-row:nth-child(even) > td:not(.dx-focused) {
    background: var(--pm-bg-subtle) !important;
}

/* Scrollbar */
.pm-data-grid .dx-scrollable {
    scrollbar-width: thin;
    scrollbar-color: var(--pm-border) transparent;
}

/* ════════════════════════════════════════════════════════════════
   RESPONSİVE BREAKPOINTS
   ════════════════════════════════════════════════════════════════ */

@media (max-width: 1365px) {
    #popupdepo {
        width: 97% !important;
        margin-left: 1% !important;
        margin-right: 1% !important;
    }
}

@media (max-width: 1199px) {
    .pm-search-filters {
        grid-template-columns: repeat(8, 1fr);
        gap: var(--pm-space-2);
    }

    .pm-filter-item { grid-column: span 2; }

    .pm-filter-item-wide,
    .pm-filter-item-trust { grid-column: span 4; }

    .pm-filter-item-checkboxes { grid-column: span 4; }
}

@media (max-width: 1200px) {
    .portal-modern .pm-dashboard-grid > .row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .portal-top-bar {
        margin-left: 0;
        padding: 0 var(--pm-space-4);
    }

    .pm-tabs-card-style {
        grid-template-columns: repeat(3, 1fr);
        padding: 12px 10px;
        gap: 8px;
    }

    .pm-tabs-card-style .pm-tab-card { padding: 12px 8px; gap: 6px; }
    .pm-tabs-card-style .pm-tab-card .pm-tab-icon { font-size: 16px; width: 30px; height: 30px; }
    .pm-tabs-card-style .pm-tab-card .pm-tab-label { font-size: 10px; }

    .pm-results-header {
        padding: 16px 20px;
    }

    .pm-results-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .pm-results-heading { font-size: 16px; }

    .pm-data-grid-wrapper {
        border-radius: 0 0 var(--pm-radius-sm) var(--pm-radius-sm);
    }

    .info-card { flex: 1 1 calc(50% - 18px); }

    .left-panel { min-width: 320px; }
    .right-panel { min-width: 280px; }
}

@media (max-width: 768px) {
    .portal-modern #slidergalery .row .col-lg-6:first-child {
        border-right: none;
        border-bottom: 1px solid var(--pm-border);
    }

    .portal-modern .pm-dashboard-grid > .row {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--pm-space-2);
    }

    .portal-modern .dashboard-stat { min-height: 155px; }

    .pm-search-filters {
        grid-template-columns: 1fr;
        gap: var(--pm-space-2);
        padding: var(--pm-space-4);
    }

    .pm-filter-item,
    .pm-filter-item-wide,
    .pm-filter-item-checkboxes,
    .pm-filter-item-trust { grid-column: span 1; }

    .pm-checkbox-grid { grid-template-columns: 1fr; }

    .pm-banner-section,
    .pm-brand-section { padding: var(--pm-space-4); }

    .pm-results-header {
        padding: 14px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .pm-results-icon { width: 38px; height: 38px; font-size: 16px; }
    .pm-results-heading { font-size: 15px; }
    .pm-results-subtitle { font-size: 11px; }

    .pm-image-img { max-width: 28px; max-height: 28px; }
    .pm-season-img { max-width: 36px; max-height: 22px; }

    .payment-wrapper { flex-direction: column; padding: 16px; gap: 16px; }
    .left-panel, .right-panel { min-width: auto; width: 100%; }

    .pm-tabs-nav {
        padding: 0 8px;
        gap: 1px;
    }

    .pm-tabs-nav > li > a,
    .pm-tabs-nav > li > .pm-tab-button {
        padding: 11px 14px;
        font-size: 11px;
    }

    .pm-tab-pane { padding: 14px 12px; }

    .pm-actions-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .pm-action-item {
        padding: 12px 14px;
        gap: 10px;
        font-size: 12px;
    }

    .login-container {
        width: 95%;
        max-width: 440px;
        margin-top: 40px;
    }
}

@media (max-width: 575px) {
    .portal-modern .pm-dashboard-grid > .row { grid-template-columns: 1fr; }
    .portal-modern .dashboard-stat { min-height: 140px; }

    .portal-modern .pm-stat-icon {
        width: 44px;
        height: 44px;
        margin: var(--pm-space-2);
    }

    .portal-modern .pm-stat-icon svg { width: 20px; height: 20px; }

    .pm-tabs-card-style {
        grid-template-columns: repeat(2, 1fr);
        padding: 10px 8px;
        gap: 7px;
    }
}

@media (max-width: 500px) {
    html { font-size: 62.5%; }

    .pm-input-group { flex-direction: column; }
    .pm-input-action, .pm-input-action-legacy { width: 100%; }

    .info-card { flex: 1 1 100%; }

    .installment-box { width: 100%; }
}

@media (max-width: 480px) {
    .portal-modern .pm-dashboard-grid > .row { grid-template-columns: 1fr; }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .img-container h3 { font-size: 1.4rem; }
    .img-container .btn { font-size: 0.7rem; }
}

@media (orientation: landscape) and (max-height: 500px) {
    .showcase-area { height: 50vmax; }
}

/* Button responsive */
@media (max-width: 767px) {
    .dx-button-style {
        padding: 7px 18px;
        font-size: 12px;
        min-width: 70px;
    }

    .dx-button-style.btn-large {
        padding: 11px 24px;
        font-size: 14px;
        min-width: 100px;
    }

    .dx-button-style.btn-small {
        padding: 5px 12px;
        font-size: 11px;
    }
}

/* ════════════════════════════════════════════════════════════════
   EKSTRA LEGACY UYUMLULUK STİLLERİ
   ════════════════════════════════════════════════════════════════ */

.kol_wit_50 {}

@media only screen and (max-width: 1365px) {
    .kol_wit_50 {
        width: 100%;
        padding-top: 7px;
        margin-bottom: 9px;
    }
}

@media only screen and (max-width: 768px) {
    img { height: auto; width: auto; }

    .dashboard-stat {
        width: 100%;
        padding-top: 7px;
        margin-bottom: 9px;
    }

    .dashboard-stat div, span { font-size: 12px !important; }

    .navLp-container {
        margin-top: -51px !important;
        margin-right: 0 !important;
    }

    .navLp-containerUst {
        margin-top: 10px;
        width: 100% !important;
        float: right;
    }

    .navLp-bayi {
        margin-top: 0 !important;
        right: 0;
    }

    #CariBilgileri {
        font-weight: 700 !important;
        width: 100%;
        text-align: right !important;
    }
}

/* ════════════════════════════════════════════════════════════════
   PORTAL COLOR (ÖZEL MARKA RENGİ)
   ════════════════════════════════════════════════════════════════ */

/* Bu class'lar --PortalColor değişkenini kullanır */
.modal-header { background-color: var(--PortalColor, var(--pm-red)) !important; }

.nav-tabs > li.active a,
.nav-tabs > li.active a:hover,
.nav-tabs > li.active a:focus {
    background: var(--PortalColor, var(--pm-red)) !important;
    color: white;
}

.badge { background-color: var(--pm-red); }

/* ════════════════════════════════════════════════════════════════
   RENK SKALASI — CARİ DURUM BADGE
   ════════════════════════════════════════════════════════════════ */

.pm-status-success   { background: var(--pm-success-light); color: var(--pm-success); border: 1px solid color-mix(in srgb, var(--pm-success) 25%, transparent); }
.pm-status-warning   { background: var(--pm-warning-light); color: var(--pm-warning); border: 1px solid color-mix(in srgb, var(--pm-warning) 25%, transparent); }
.pm-status-danger    { background: var(--pm-danger-light);  color: var(--pm-danger);  border: 1px solid color-mix(in srgb, var(--pm-danger) 25%, transparent);  }
.pm-status-info      { background: var(--pm-info-light);    color: var(--pm-info);    border: 1px solid color-mix(in srgb, var(--pm-info) 25%, transparent);    }

.pm-status-success, .pm-status-warning, .pm-status-danger, .pm-status-info {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--pm-radius-full);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* ════════════════════════════════════════════════════════════════
   GENEL YARDIMCI SINIFLAR
   ════════════════════════════════════════════════════════════════ */

.pm-text-primary    { color: var(--pm-text-primary) !important; }
.pm-text-secondary  { color: var(--pm-text-secondary) !important; }
.pm-text-muted      { color: var(--pm-text-muted) !important; }
.pm-text-red        { color: var(--pm-red) !important; }
.pm-text-success    { color: var(--pm-success) !important; }
.pm-text-warning    { color: var(--pm-warning) !important; }

.pm-fw-400 { font-weight: 400 !important; }
.pm-fw-500 { font-weight: 500 !important; }
.pm-fw-600 { font-weight: 600 !important; }
.pm-fw-700 { font-weight: 700 !important; }

.pm-fs-10 { font-size: 10px !important; }
.pm-fs-11 { font-size: 11px !important; }
.pm-fs-12 { font-size: 12px !important; }
.pm-fs-13 { font-size: 13px !important; }
.pm-fs-14 { font-size: 14px !important; }

.pm-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pm-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pm-flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ════════════════════════════════════════════════════════════════
   PORTAL KAYIT FORMU — EK STİLLER
   ════════════════════════════════════════════════════════════════ */

.btnPerakendeAyarlarKaydet {
    width: 175px;
    height: 36px;
    margin-top: 18px;
    background: var(--pm-red);
    color: white;
    border: none;
    border-radius: var(--pm-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--pm-transition-fast);
}

.btnPerakendeAyarlarKaydet:hover {
    background: var(--pm-red-hover);
    box-shadow: var(--pm-shadow-red);
}

/* ════════════════════════════════════════════════════════════════
   PM-SEARCH-CONTAINER — LEGACY BLOKLAR İÇİN STİLLER
   ════════════════════════════════════════════════════════════════ */

.pm-search-container {
    background: var(--pm-bg);
    border-radius: var(--pm-radius);
    overflow: hidden;
    box-shadow: var(--pm-shadow-xs);
    margin-bottom: 16px;
    border: 1px solid var(--pm-border);
}

.pm-brand-section {
    background: var(--pm-red);
    padding: 16px 20px;
    text-align: center;
    border-bottom: 1px solid var(--pm-border);
}

.pm-brand-section img.pm-brand-logo {
    max-width: 100%;
    width: auto;
    height: 60px;
    object-fit: contain;
}

.pm-search-filters {
    padding: 16px;
    background: #ffffff;
}

.pm-filter-item {
    margin-bottom: 16px;
}

.pm-filter-item:last-child {
    margin-bottom: 0;
}

.pm-filter-item .baslik_arama {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--pm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}

.pm-filter-control {
    position: relative;
}

.pm-input-group {
    display: flex;
    gap: 8px;
}

.pm-input-field {
    flex: 1;
}

.pm-input-action {
    flex-shrink: 0;
}

.pm-filter-item-checkboxes .pm-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.pm-checkbox-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pm-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: #f8f9fa;
    border-radius: var(--pm-radius-sm);
    border: 1px solid transparent;
    transition: var(--pm-transition-fast);
}

.pm-checkbox-item:hover {
    background: var(--pm-red-subtle);
    border-color: var(--pm-border);
}

.pm-checkbox-wrapper {
    flex-shrink: 0;
}

.pm-checkbox-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--pm-text-primary);
}

.pm-filter-item-trust {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--pm-border);
}

.pm-trust-banner {
    padding: 12px;
    background: #f8f9fa;
    text-align: center;
    border-radius: var(--pm-radius-sm);
}

.pm-trust-image {
    max-width: 280px;
    width: 100%;
    cursor: pointer;
    transition: var(--pm-transition-fast);
}

.pm-trust-image:hover {
    transform: scale(1.02);
}

.pm-search-btn .dx-icon {
    color: #ffffff; /* istediğin renk */
}


/* ============================================
   PRODUCT LIST VIEW TOGGLE (TABLE/GRID)
   ============================================ */

/* Table/View Toggle */
.pm-view-btn:hover {
    background: rgba(237, 28, 36, 0.1) !important;
    color: #ed1c24 !important;
}

.pm-view-btn.active {
    background: #ed1c24 !important;
    color: #ffffff !important;
}

/* View Containers */
.pm-view-table.hidden {
    display: none !important;
}

.pm-view-grid {
    display: none;
}

.pm-view-grid.active {
    display: block;
}

/* Product Cards Hover */
.pm-product-card:hover {
    border-color: #ed1c24 !important;
    box-shadow: 0 4px 12px rgba(237, 28, 36, 0.15) !important;
    transform: translateY(-2px);
}

.pm-product-card:hover .pm-card-image img {
    transform: scale(1.05);
}

/* Responsive Grid - 4 Columns Default */
.pm-products-grid {
    width: 100% !important;
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px;
}

.dx-button-has-icon.dx-button-has-text {
    background: var(--pm-red);
    color: white;
}

.dx-button-has-icon.dx-button-has-text i {
    color: white;
}






/* TABLE */
.dx-datagrid-table {
    border-collapse: separate;
    border-spacing: 0;
}

/* HEADER */
.dx-datagrid-headers {
    background: #f8f9fb;
    border-bottom: 1px solid #e5e7eb;
}

.dx-datagrid-headers .dx-row > td {
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    color: #6b7280;
    letter-spacing: .04em;
    padding: 14px 12px;
    border-bottom: 1px solid #e5e7eb;
}

/* ROW */
.dx-datagrid-rowsview .dx-row > td {
    padding: 14px 12px;
    border-bottom: 1px solid #f1f3f5;
    transition: background .15s ease;
}

/* ZEBRA ROW */
.dx-datagrid-rowsview .dx-row:nth-child(even) {
    background: #fafbfc;
}

/* HOVER */
.dx-datagrid-rowsview .dx-row:hover {
    background: #f1f5f9;
}

/* SELECTED ROW */
.dx-datagrid-rowsview .dx-selection {
    background: #eef2ff !important;
}

/* FOCUS */
.dx-datagrid-rowsview .dx-row-focused {
    background: #eef2ff !important;
}

/* CELL */
.dx-datagrid .dx-data-row td {
    vertical-align: middle;
}

/* GRID BORDER */
.dx-datagrid-borders > .dx-datagrid-headers,
.dx-datagrid-borders > .dx-datagrid-rowsview {
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
}

/* PAGINATION */
.dx-pager {
    padding: 12px;
    border-top: 1px solid #e5e7eb;
}

/* PAGINATION BUTTON */
.dx-page {
    border-radius: 6px;
    transition: all .15s;
}

.dx-page:hover {
    background: #f3f4f6;
}

/* ACTIVE PAGE */
.dx-page.dx-selection {
    background: #2563eb;
    color: white;
}

/* FILTER ROW */
.dx-datagrid-filter-row td {
    background: #fbfbfb;
    border-bottom: 1px solid #e5e7eb;
}

.dx-template-wrapper.dx-popup-title{
    height: 40px;
    width: 100%;
    padding-top: 0px;
    float: none !important;
}

.dx-toolbar-bottom{
        align-content: center;
        padding-left: 16px;
        padding-right: 16px;
}

/* ─── PORTAL MAIN DASHBOARD REFACTOR ─────────────────────────── */

/* Content Area */
.portal-modern .content-area {
    flex: 1;
    max-width: 100%;
    margin: 0 auto;
}

/* Stats Row */
.portal-modern .stats-row {
    grid-column: span 12;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* Stat Card Internals */
.portal-modern .stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.portal-modern .stat-icon-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.portal-modern .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--pm-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    background: var(--pm-bg-muted);
    color: var(--pm-red);
    margin-bottom: 0;
}

/* ─── FILTER SECTION COMPONENTS ──────────────────────────────── */

.portal-modern .pm-filter-section {
    margin-bottom: 12px;
    padding: 16px;
    background: var(--pm-bg);
    border-radius: var(--pm-radius-sm);
    border: 1px solid var(--pm-border);
}

.portal-modern .pm-filter-section:last-child {
    margin-bottom: 0;
}

.portal-modern .pm-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.portal-modern .pm-section-icon {
    width: 24px;
    height: 24px;
    background: var(--pm-red-subtle, rgba(237, 28, 36, 0.08));
    border-radius: var(--pm-radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pm-red);
    font-size: 12px;
}

.portal-modern .pm-section-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--pm-text-primary);
    margin: 0;
    flex: 1;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.portal-modern .pm-filter-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 0;
}

.portal-modern .pm-filter-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.portal-modern .pm-filter-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--pm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.portal-modern .pm-filter-label i,
.portal-modern .pm-search-label i {
    color: var(--pm-red);
    font-size: 12px;
    width: 16px;
    text-align: center;
}

/* ─── SEARCH COMPONENTS ──────────────────────────────────────── */

.portal-modern .pm-search-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.portal-modern .pm-search-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.portal-modern .pm-search-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--pm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.portal-modern .pm-search-input-wrapper {
    display: flex;
    gap: 8px;
}

.portal-modern .pm-search-field {
    flex: 1;
}

.portal-modern .pm-search-btn {
    flex-shrink: 0;
}

.portal-modern .pm-search-field-wrapper {
    display: flex;
    gap: 8px;
}

.portal-modern .pm-search-secondary {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 8px;
    flex-direction: column;
}

.portal-modern .pm-search-hint {
    font-size: 11px;
    color: var(--pm-text-faint);
    flex: 1;
}

/* ─── SEASON COMPONENTS ──────────────────────────────────────── */

.portal-modern .pm-season-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

/* ─── FEATURE COMPONENTS ─────────────────────────────────────── */

.portal-modern .pm-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.portal-modern .pm-feature-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.portal-modern .pm-feature-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--pm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0;
}

.portal-modern .pm-feature-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.portal-modern .pm-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: var(--pm-bg-muted);
    border-radius: var(--pm-radius-xs);
    border: 1px solid transparent;
    transition: var(--pm-transition-fast);
    cursor: pointer;
}

.portal-modern .pm-feature-item:hover {
    border-color: var(--pm-red);
    background: var(--pm-red-subtle, rgba(237, 28, 36, 0.04));
}

.portal-modern .pm-feature-checkbox {
    flex-shrink: 0;
}

.portal-modern .pm-feature-text {
    font-size: 12px;
    font-weight: 500;
    color: var(--pm-text-primary);
}

.portal-modern .pm-star-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ─── TRUST SECTION ──────────────────────────────────────────── */

.portal-modern .pm-trust-section {
    padding: 12px;
    background: var(--pm-bg-muted);
    border-top: 1px solid var(--pm-border);
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.portal-modern .pm-trust-section.pm-trust-section--full {
    width: 100%;
    background: var(--pm-bg);
    padding: 16px;
    margin-top: 8px;
    border-radius: var(--pm-radius-sm);
    border-top: none;
}

.portal-modern .pm-hero-banner {
    max-width: 180px;
    width: auto;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.portal-modern .pm-hero-banner:hover {
    transform: scale(1.02);
}

.portal-modern .pm-trust-badge {
    max-width: 280px;
    width: 100%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.portal-modern .pm-trust-badge:hover {
    transform: scale(1.02);
}

/* ─── RESULTS AREA ───────────────────────────────────────────── */

.portal-modern .pm-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: var(--pm-bg);
    border-radius: var(--pm-radius-sm);
    border: 1px solid var(--pm-border);
}

.portal-modern .pm-results-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.portal-modern .pm-results-icon {
    width: 32px;
    height: 32px;
    background: var(--pm-red-subtle, rgba(237, 28, 36, 0.08));
    border-radius: var(--pm-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pm-red);
    font-size: 14px;
}

.portal-modern .pm-results-title-text h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--pm-text-primary);
    margin: 0;
    line-height: 1.3;
}

.portal-modern .pm-results-title-text p {
    font-size: 11px;
    color: var(--pm-text-muted);
    margin: 2px 0 0 0;
}

.portal-modern .pm-view-toggle {
    display: flex;
    gap: 4px;
    background: var(--pm-bg-muted);
    padding: 4px;
    border-radius: var(--pm-radius-sm);
}

.portal-modern .pm-view-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--pm-text-muted);
    border-radius: var(--pm-radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--pm-transition-fast);
    font-size: 14px;
}

.portal-modern .pm-view-btn.active {
    background: var(--pm-red);
    color: #ffffff;
}

.portal-modern .pm-view-btn:hover:not(.active) {
    background: var(--pm-bg-subtle);
    color: var(--pm-text-primary);
}

/* ─── PRODUCT GRID VIEW ──────────────────────────────────────── */

.portal-modern .pm-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    padding: 16px;
}

.portal-modern .pm-product-card {
    background: var(--pm-bg);
    border: 1px solid var(--pm-border);
    border-radius: var(--pm-radius);
    overflow: hidden;
    transition: var(--pm-transition);
    cursor: pointer;
    position: relative;
}

.portal-modern .pm-product-card:hover {
    border-color: var(--pm-red);
    transform: translateY(-2px);
    box-shadow: var(--pm-shadow-md);
}

.portal-modern .pm-card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: var(--pm-bg-muted);
    position: relative;
}

.portal-modern .pm-card-image-inner {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.portal-modern .pm-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portal-modern .pm-card-body {
    padding: 16px;
}

.portal-modern .pm-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--pm-text-primary);
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.portal-modern .pm-card-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.portal-modern .pm-card-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.portal-modern .pm-card-detail-label {
    color: var(--pm-text-muted);
    font-weight: 500;
}

.portal-modern .pm-card-detail-value {
    color: var(--pm-text-primary);
    font-weight: 600;
}

.portal-modern .pm-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--pm-border);
}

.portal-modern .pm-card-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--pm-red);
}

.portal-modern .pm-card-price-ask {
    font-size: 14px;
    color: var(--pm-text-muted);
}

.portal-modern .pm-card-add-btn {
    background: var(--pm-red);
    color: #ffffff;
    border: none;
    border-radius: var(--pm-radius-xs);
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--pm-transition-fast);
}

.portal-modern .pm-card-add-btn:hover {
    background: var(--pm-red-hover);
    box-shadow: var(--pm-shadow-red);
}

/* Season Badge on Card */
.portal-modern .pm-card-season-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: var(--pm-bg);
    border-radius: var(--pm-radius-xs);
    box-shadow: var(--pm-shadow-sm);
    overflow: hidden;
    cursor: pointer;
}

.portal-modern .pm-card-season-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

/* Grid Loading & No Products */
.portal-modern .pm-grid-loading {
    text-align: center;
    padding: 40px;
    color: var(--pm-text-muted);
}

.portal-modern .pm-grid-loading i {
    font-size: 32px;
    margin-bottom: 12px;
    color: var(--pm-red);
}

.portal-modern .pm-grid-loading p {
    font-size: 14px;
    margin: 0;
}

.portal-modern .pm-no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--pm-text-muted);
}

.portal-modern .pm-no-products i {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.portal-modern .pm-no-products p {
    font-size: 14px;
    margin: 0;
}

/* ─── RESPONSIVE OVERRIDES ───────────────────────────────────── */

@media (max-width: 1024px) {
    .portal-modern .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .portal-modern .pm-filter-row,
    .portal-modern .pm-search-grid,
    .portal-modern .pm-features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .portal-modern .stats-row {
        grid-template-columns: 1fr;
    }
    .portal-modern .pm-trust-section {
        flex-direction: column;
        gap: 12px;
    }
}

/* ─── STAT CARD INTERNALS ────────────────────────────────────── */

.portal-modern .pm-stat-col {
    padding: 0;
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
}

.portal-modern .pm-stat-content {
    flex: 1;
    padding: 0;
}

.portal-modern .pm-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.portal-modern .pm-stat-label-inline {
    color: var(--pm-text-muted);
    font-size: 12px;
    font-weight: 500;
    flex: 1;
}

.portal-modern .pm-stat-value-inline {
    color: var(--pm-text-primary);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.1;
}

.portal-modern .pm-stat-desc-text {
    color: var(--pm-text-muted);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
}

.portal-modern .pm-stat-number-big {
    color: var(--pm-text-primary);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.portal-modern .pm-stat-action-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-top: 1px solid var(--pm-border);
    margin-top: auto;
}

/* ─── FORM CARD COMPONENTS ───────────────────────────────────── */

.portal-modern .pm-form-card {
    background: var(--pm-bg);
    border-radius: var(--pm-radius-sm);
    border: 1px solid var(--pm-border);
    overflow: hidden;
    margin-bottom: 16px;
}

.portal-modern .pm-form-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--pm-border);
    background: var(--pm-bg-subtle);
}

.portal-modern .pm-form-card-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--pm-text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.portal-modern .pm-form-icon {
    color: var(--pm-red);
    font-size: 14px;
}

.portal-modern .pm-form-card-body {
    padding: 14px;
}

.portal-modern .pm-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.portal-modern .pm-form-group {
    margin-bottom: 12px;
}

.portal-modern .pm-form-label {
    display: block;
    font-weight: 600;
    color: var(--pm-text-primary);
    margin-bottom: 6px;
    font-size: 12px;
}

.portal-modern .pm-form-input-row {
    display: flex;
    gap: 8px;
}

.portal-modern .pm-form-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--pm-border);
    border-radius: var(--pm-radius-xs);
    font-size: 12px;
    transition: var(--pm-transition-fast);
    font-family: var(--pm-font);
    color: var(--pm-text-primary);
    background: var(--pm-bg);
}

.portal-modern .pm-form-input:focus {
    outline: none;
    border-color: var(--pm-red);
    box-shadow: 0 0 0 3px var(--pm-red-glow);
}

.portal-modern .pm-form-actions {
    text-align: right;
    margin-top: 16px;
}

.portal-modern .pm-alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--pm-radius-sm);
    padding: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--pm-text-secondary);
}

/* ─── BUTTON VARIANTS ────────────────────────────────────────── */

.portal-modern .pm-btn-primary {
    background-color: var(--pm-red);
    color: #ffffff;
    border: none;
    border-radius: var(--pm-radius-xs);
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--pm-transition-fast);
}

.portal-modern .pm-btn-primary:hover {
    background-color: var(--pm-red-hover);
    box-shadow: var(--pm-shadow-red);
}

.portal-modern .pm-btn-primary-sm {
    background-color: var(--pm-red);
    color: #ffffff;
    border: none;
    border-radius: var(--pm-radius-xs);
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--pm-transition-fast);
}

.portal-modern .pm-btn-primary-sm:hover {
    background-color: var(--pm-red-hover);
}

.portal-modern .pm-btn-secondary-sm {
    background: var(--pm-bg);
    color: var(--pm-text-muted);
    border: 1px solid var(--pm-border);
    border-radius: var(--pm-radius-xs);
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--pm-transition-fast);
}

.portal-modern .pm-btn-secondary-sm:hover {
    border-color: var(--pm-text-muted);
    color: var(--pm-text-primary);
}

/* ─── TRUST SECTION VARIANTS ─────────────────────────────────── */

.portal-modern .pm-trust-section--centered {
    padding: 12px;
    background: var(--pm-bg-muted);
    border-top: 1px solid var(--pm-border);
    text-align: center;
    margin-top: 12px;
    display: block;
}

.portal-modern .pm-trust-section--centered .pm-hero-banner,
.portal-modern .pm-trust-section--centered .pm-trust-badge {
    display: inline-block;
}

.portal-modern .pm-hero-banner--md {
    max-width: 280px;
    margin-bottom: 12px;
}

.portal-modern .pm-hero-banner--sm {
    max-width: 250px;
}

/* ─── UTILITY CLASSES ────────────────────────────────────────── */

.portal-modern .pm-flex-center {
    display: flex;
    align-items: center;
}

.portal-modern .pm-flex-1 {
    flex: 1;
}

.portal-modern .pm-icon-md {
    font-size: 14px;
}

.portal-modern .pm-icon-lg {
    font-size: 16px;
}

.portal-modern .pm-mb-1 {
    margin-bottom: 4px;
}

.portal-modern .pm-text-red {
    color: var(--pm-red);
}

.portal-modern .pm-text-xl {
    font-size: 20px;
}

.portal-modern .pm-text-bold {
    font-weight: 700;
}

/* =========================================================
   PORTAL PAGE-LEVEL COMPONENTS - Report Cards, Filters, Alerts
   ========================================================= */

/* Portal Wrapper - Universal page container */
.portal-wrapper {
    min-height: 100vh;
    background: var(--pm-bg-subtle);
}

.portal-main-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: var(--pm-space-4) var(--pm-space-3);
}

/* Report Section */
.pm-report-section {
    margin-bottom: var(--pm-space-4);
}

/* Report Card - Main content wrapper for each report/section */
.pm-report-card {
    background: var(--pm-bg);
    border-radius: var(--pm-radius);
    border: 1px solid var(--pm-border);
    box-shadow: var(--pm-shadow-sm);
    overflow: hidden;
    transition: var(--pm-transition);
}

.pm-report-card:hover {
    box-shadow: var(--pm-shadow-md);
}

.pm-report-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--pm-space-3) var(--pm-space-4);
    border-bottom: 1px solid var(--pm-border);
    background: var(--pm-bg);
    flex-wrap: wrap;
    gap: var(--pm-space-2);
}

.pm-report-card-title {
    display: flex;
    align-items: center;
    gap: var(--pm-space-2);
    font-size: 16px;
    font-weight: 700;
    color: var(--pm-text-primary);
    letter-spacing: 0.3px;
}

.pm-report-card-title i {
    color: var(--pm-red);
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.pm-report-card-actions {
    display: flex;
    align-items: center;
    gap: var(--pm-space-2);
    flex-wrap: wrap;
}

.pm-report-card-body {
    padding: var(--pm-space-4);
}

/* Report Filters - Horizontal filter bar */
.pm-report-filters {
    display: flex;
    align-items: flex-end;
    gap: var(--pm-space-3);
    flex-wrap: wrap;
    padding: var(--pm-space-3);
    background: var(--pm-bg-subtle);
    border-radius: var(--pm-radius-sm);
    margin-bottom: var(--pm-space-3);
}

.pm-report-filter-field {
    display: flex;
    flex-direction: column;
    gap: var(--pm-space-1);
    min-width: 180px;
    flex: 1;
    max-width: 280px;
}

.pm-report-filter-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--pm-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pm-report-filter-actions {
    display: flex;
    align-items: flex-end;
    gap: var(--pm-space-2);
    flex-wrap: wrap;
}

.pm-report-filter-hint {
    font-size: 12px;
    color: var(--pm-red);
    font-weight: 500;
}

/* Action Button - Used inside report cards */
.pm-btn-action {
    min-width: auto;
}

.pm-btn-action .dx-button {
    border-radius: var(--pm-radius-sm) !important;
    border: 1px solid var(--pm-red) !important;
    background: var(--pm-red) !important;
    color: #fff !important;
    font-weight: 600 !important;
    padding: 6px 16px !important;
    transition: var(--pm-transition) !important;
}

.pm-btn-action .dx-button:hover {
    background: var(--pm-red-hover) !important;
    box-shadow: var(--pm-shadow-red) !important;
}

.pm-btn-action .dx-button .dx-icon {
    color: #fff !important;
}

/* Report Grid - DataGrid wrapper */
.pm-report-grid {
    width: 100%;
    margin-top: var(--pm-space-2);
}

/* Report Alerts */
.pm-report-alert {
    display: flex;
    align-items: center;
    gap: var(--pm-space-2);
    padding: var(--pm-space-2) var(--pm-space-3);
    border-radius: var(--pm-radius-sm);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: var(--pm-space-3);
}

.pm-report-alert i {
    font-size: 16px;
    flex-shrink: 0;
}

.pm-report-alert--warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}

.pm-report-alert--warning i {
    color: #e0a800;
}

.pm-report-alert--info {
    background: var(--pm-red-subtle);
    color: var(--pm-red-deep);
    border: 1px solid rgba(237, 28, 36, 0.15);
}

.pm-report-alert--info i {
    color: var(--pm-red);
}

.pm-report-alert--danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Popup Body - Modern popup content spacing */
.pm-popup-body {
    padding: var(--pm-space-3);
}

/* Catalog Layout - Treeview + Grid side-by-side */
.pm-catalog-layout {
    display: flex;
    gap: var(--pm-space-4);
    align-items: flex-start;
}

.pm-catalog-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: var(--pm-bg);
    border-radius: var(--pm-radius);
    border: 1px solid var(--pm-border);
    padding: var(--pm-space-3);
    position: sticky;
    top: 120px;
}

.pm-catalog-content {
    flex: 1;
    min-width: 0;
}

/* Insurance Form - Modern form layout for PortalSigorta */
.pm-insurance-form {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--pm-space-3);
    margin-bottom: var(--pm-space-3);
}

.pm-insurance-field {
    display: flex;
    flex-direction: column;
    gap: var(--pm-space-1);
}

.pm-insurance-field-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--pm-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pm-insurance-field-input {
    width: 100%;
}

.pm-insurance-field-with-search {
    display: flex;
    gap: var(--pm-space-1);
}

.pm-insurance-field-with-search > div:first-child {
    flex: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .portal-main-container {
        padding: var(--pm-space-2) var(--pm-space-1);
    }

    .pm-report-card-header {
        padding: var(--pm-space-2) var(--pm-space-3);
    }

    .pm-report-card-body {
        padding: var(--pm-space-2) var(--pm-space-3);
    }

    .pm-report-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .pm-report-filter-field {
        max-width: 100%;
    }

    .pm-catalog-layout {
        flex-direction: column;
    }

    .pm-catalog-sidebar {
        width: 100%;
        position: static;
    }

    .pm-insurance-form {
        grid-template-columns: 1fr;
    }
}

/* ===== PortalMain HTML Refactor - Gallery, Stats, Modals ===== */

.pm-gallery-section {
    margin-bottom: var(--pm-space-4);
}

.pm-gallery-card {
    display: flex;
    background: var(--pm-bg);
    border: 1px solid var(--pm-border);
    border-radius: var(--pm-radius);
    overflow: hidden;
    box-shadow: var(--pm-shadow-xs);
}

.pm-gallery-half {
    flex: 1;
    min-width: 0;
    padding: 0;
}

.pm-gallery-half img,
.pm-gallery-half .bot_10,
.pm-gallery-half .dx-gallery {
    width: 100%;
    height: 100%;
    min-height: 269px;
    object-fit: cover;
    display: block;
}

.pm-countdown-section {
    margin-bottom: var(--pm-space-3);
}

.pm-stats-section {
    padding: 0 var(--pm-space-3);
    margin-bottom: var(--pm-space-4);
}

.pm-stats-section .stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--pm-space-3);
}

.pm-modal-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--pm-space-3);
    padding: var(--pm-space-3);
}

.pm-modal-filter-field {
    display: flex;
    flex-direction: column;
    gap: var(--pm-space-1);
}

.pm-modal-filter-field > span {
    font-size: 12px;
    font-weight: 600;
    color: var(--pm-text-secondary);
}

.pm-modal-notes {
    padding: var(--pm-space-3);
}

.pm-modal-actions {
    display: flex;
    gap: var(--pm-space-2);
    padding: var(--pm-space-3);
}

@media (max-width: 1024px) {
    .pm-gallery-card {
        flex-direction: column;
    }
    .pm-stats-section .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pm-stats-section .stats-row {
        grid-template-columns: 1fr;
    }
}


/* ═══════════════════════════════════════════════════════════════
   COMPREHENSIVE RESPONSIVE SYSTEM
   Mobile-first responsive overrides for ALL portal components
   ═══════════════════════════════════════════════════════════════ */

/* ─── VIEWPORT META HELPER ──────────────────────────────────── */
/* Prevent horizontal scroll everywhere */
.portal-wrapper,
.portal-main-container,
.portal-modern,
.cont_center {
    max-width: 100vw;
    overflow-x: hidden;
}

/* ─── 1440px - Large Desktop ────────────────────────────────── */
@media (max-width: 1440px) {
    .pm-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ─── 1200px - Sidebar Collapse + Content Full-Width ────────── */
@media (max-width: 1200px) {
    .portal-sidebar {
        transform: translateX(-100%);
        position: fixed;
        z-index: 9999;
        transition: transform 0.3s ease;
    }

    .portal-sidebar.sidebar-open {
        transform: translateX(0);
    }

    .portal-wrapper {
        flex-direction: column;
    }

    .portal-main-container,
    .cont_center {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .pm-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ─── 1024px - Tablet Landscape ─────────────────────────────── */
@media (max-width: 1024px) {
    /* Product search filters - stack to single column */
    .pm-filter-row,
    .pm-search-grid {
        grid-template-columns: 1fr;
        gap: var(--pm-space-2);
    }

    .pm-features-grid {
        grid-template-columns: 1fr;
    }

    /* Report filter fields wrap */
    .pm-report-filters {
        flex-wrap: wrap;
    }

    .pm-report-filter-field {
        min-width: 180px;
        flex: 1 1 200px;
    }

    /* Modal filter grid */
    .pm-modal-filter-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Gallery stacks */
    .pm-gallery-card {
        flex-direction: column;
    }

    .pm-gallery-half img,
    .pm-gallery-half .bot_10,
    .pm-gallery-half .dx-gallery {
        min-height: 200px;
    }

    /* Stats 2 columns */
    .pm-stats-section .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Tabs card style 3 columns */
    .pm-tabs-card-style {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ─── 768px - Tablet Portrait / Mobile Landscape ────────────── */
@media (max-width: 768px) {
    /* Main container tighter padding */
    .portal-main-container {
        padding: var(--pm-space-2) var(--pm-space-2);
    }

    /* Report cards */
    .pm-report-card-header {
        padding: var(--pm-space-2) var(--pm-space-3);
        flex-direction: column;
        align-items: flex-start;
    }

    .pm-report-card-title {
        font-size: 14px;
    }

    .pm-report-card-title i {
        font-size: 15px;
    }

    .pm-report-card-body {
        padding: var(--pm-space-3);
    }

    .pm-report-card-actions {
        width: 100%;
    }

    /* Report filters - full stack */
    .pm-report-filters {
        flex-direction: column;
        align-items: stretch;
        gap: var(--pm-space-2);
    }

    .pm-report-filter-field {
        max-width: 100%;
        min-width: 0;
        flex: 1 1 100%;
    }

    .pm-report-filter-actions {
        flex-direction: column;
        width: 100%;
    }

    .pm-report-filter-actions .pm-btn-action {
        width: 100%;
    }

    .pm-report-filter-hint {
        font-size: 11px;
    }

    /* Stats - single column */
    .pm-stats-section .stats-row {
        grid-template-columns: 1fr;
        gap: var(--pm-space-2);
    }

    .pm-stats-section {
        padding: 0 var(--pm-space-1);
    }

    /* Dashboard stat cards */
    .dashboard-stat {
        min-height: auto;
    }

    .stat-header {
        padding: var(--pm-space-2);
    }

    .pm-stat-content {
        padding: var(--pm-space-2);
    }

    .pm-stat-value,
    .pm-stat-value-inline {
        font-size: 13px;
    }

    .pm-stat-label,
    .pm-stat-label-inline {
        font-size: 11px;
    }

    .pm-stat-action {
        padding: 6px 0;
        font-size: 11px;
    }

    /* Gallery */
    .pm-gallery-card {
        flex-direction: column;
    }

    .pm-gallery-half img,
    .pm-gallery-half .bot_10,
    .pm-gallery-half .dx-gallery {
        min-height: 160px;
        height: auto;
    }

    /* Product search area */
    .pm-product-search {
        border-radius: var(--pm-radius-sm);
    }

    .pm-search-area {
        padding: var(--pm-space-3);
    }

    .pm-filter-section {
        padding: var(--pm-space-2);
    }

    .pm-section-header {
        gap: var(--pm-space-1);
    }

    .pm-section-title {
        font-size: 14px;
    }

    .pm-filter-row,
    .pm-search-grid {
        grid-template-columns: 1fr;
        gap: var(--pm-space-2);
    }

    .pm-search-input-wrapper,
    .pm-search-field-wrapper {
        flex-direction: column;
    }

    .pm-search-btn {
        width: 100%;
    }

    .pm-features-grid {
        grid-template-columns: 1fr;
    }

    .pm-feature-list {
        gap: var(--pm-space-1);
    }

    /* Trust section */
    .pm-trust-section {
        flex-direction: column;
        gap: var(--pm-space-2);
        align-items: center;
    }

    .pm-trust-section--full .pm-search-btn {
        width: 100%;
    }

    .pm-hero-banner,
    .pm-hero-banner--md,
    .pm-hero-banner--sm {
        max-width: 100%;
        height: auto;
    }

    /* Product cards grid */
    .pm-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--pm-space-2);
    }

    .pm-product-card {
        border-radius: var(--pm-radius-sm);
    }

    .pm-card-title {
        font-size: 13px;
    }

    .pm-card-detail-label,
    .pm-card-detail-value {
        font-size: 11px;
    }

    .pm-card-price {
        font-size: 14px;
    }

    .pm-card-add-btn {
        font-size: 12px;
        padding: 6px 10px;
    }

    /* Results header */
    .pm-results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--pm-space-2);
        padding: var(--pm-space-3);
    }

    .pm-results-header-left {
        flex-direction: column;
        gap: var(--pm-space-1);
    }

    .pm-view-toggle {
        width: 100%;
        justify-content: flex-end;
    }

    /* Data grid */
    .pm-data-grid-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .pm-data-grid {
        min-width: 600px;
    }

    .pm-report-grid {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Tabs navigation */
    .pm-tabs-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0;
        gap: 0;
    }

    .pm-tabs-nav > li > a,
    .pm-tabs-nav > li > .pm-tab-button {
        white-space: nowrap;
        padding: 10px 12px;
        font-size: 11px;
    }

    .pm-tab-pane {
        padding: var(--pm-space-2);
    }

    /* Tabs card style */
    .pm-tabs-card-style {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        padding: 8px;
    }

    .pm-tabs-card-style .pm-tab-card {
        padding: 10px 6px;
        gap: 4px;
    }

    .pm-tabs-card-style .pm-tab-card .pm-tab-icon {
        font-size: 14px;
        width: 28px;
        height: 28px;
    }

    .pm-tabs-card-style .pm-tab-card .pm-tab-label {
        font-size: 9px;
    }

    /* Actions grid */
    .pm-actions-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    /* Modal / Popup responsive */
    .pm-modal-filter-grid {
        grid-template-columns: 1fr;
    }

    .pm-modal-actions {
        flex-direction: column;
    }

    .pm-modal-actions button,
    .pm-modal-actions .dx-button-style {
        width: 100%;
    }

    /* Popup overrides */
    .dx-popup-wrapper .dx-popup-content {
        padding: var(--pm-space-2) !important;
    }

    .pm-popup-body {
        padding: var(--pm-space-2);
    }

    /* Countdown */
    .pm-countdown-section {
        overflow-x: auto;
    }

    #countdown #tiles span {
        font-size: 24px;
        min-width: 50px;
    }

    /* Catalog layout */
    .pm-catalog-layout {
        flex-direction: column;
    }

    .pm-catalog-sidebar {
        width: 100%;
        position: static;
    }

    /* Insurance form */
    .pm-insurance-form {
        grid-template-columns: 1fr;
    }

    /* Alert boxes */
    .pm-report-alert {
        font-size: 13px;
        padding: var(--pm-space-2) var(--pm-space-3);
    }

    /* Form cards */
    .pm-form-card {
        margin-bottom: var(--pm-space-2);
    }

    .pm-form-card-header {
        padding: var(--pm-space-2) var(--pm-space-3);
    }

    /* Breadcrumb / Top bar */
    .portal-top-bar {
        margin-left: 0;
        padding: 0 var(--pm-space-2);
        font-size: 12px;
    }
}

/* ─── 576px - Small Mobile ──────────────────────────────────── */
@media (max-width: 576px) {
    .portal-main-container {
        padding: var(--pm-space-1);
    }

    .pm-report-section {
        margin-bottom: var(--pm-space-2);
    }

    .pm-report-card {
        border-radius: var(--pm-radius-sm);
    }

    .pm-report-card-header {
        padding: var(--pm-space-2);
    }

    .pm-report-card-title {
        font-size: 13px;
    }

    .pm-report-card-body {
        padding: var(--pm-space-2);
    }

    /* Product cards single column */
    .pm-products-grid {
        grid-template-columns: 1fr;
    }

    .pm-card-footer {
        flex-direction: column;
        gap: var(--pm-space-1);
    }

    /* Gallery */
    .pm-gallery-half img,
    .pm-gallery-half .bot_10,
    .pm-gallery-half .dx-gallery {
        min-height: 120px;
    }

    /* Stats */
    .pm-stat-number-big {
        font-size: 18px;
    }

    .pm-stat-desc-text {
        font-size: 11px;
    }

    /* Search area */
    .pm-search-area {
        padding: var(--pm-space-2);
    }

    .pm-filter-section {
        padding: var(--pm-space-1);
    }

    .pm-section-title {
        font-size: 13px;
    }

    .pm-filter-label,
    .pm-search-label {
        font-size: 12px;
    }

    /* Tabs card 2 col */
    .pm-tabs-card-style {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
        padding: 6px;
    }

    .pm-tabs-card-style .pm-tab-card {
        padding: 8px 4px;
    }

    .pm-tabs-card-style .pm-tab-card .pm-tab-icon {
        font-size: 12px;
        width: 24px;
        height: 24px;
    }

    .pm-tabs-card-style .pm-tab-card .pm-tab-label {
        font-size: 8px;
    }

    /* DevExtreme widget overrides for mobile */
    .dx-textbox,
    .dx-datebox,
    .dx-selectbox,
    .dx-tagbox {
        font-size: 14px !important;
    }

    .dx-datagrid-headers .dx-datagrid-table .dx-row > td {
        font-size: 11px !important;
        padding: 4px 6px !important;
    }

    .dx-datagrid-rowsview .dx-row > td {
        font-size: 11px !important;
        padding: 4px 6px !important;
    }

    /* Popup full-width on small screens */
    .dx-popup-wrapper .dx-overlay-content {
        width: 100% !important;
        max-width: 100vw !important;
        left: 0 !important;
        border-radius: 0 !important;
    }

    /* Button sizing */
    .pm-btn-action {
        min-height: 40px;
    }

    .dx-button-style {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* ─── 400px - Extra Small ───────────────────────────────────── */
@media (max-width: 400px) {
    .pm-report-card-title span {
        font-size: 12px;
    }

    .pm-report-card-title i {
        font-size: 13px;
        width: 18px;
    }

    .pm-stat-label-inline,
    .pm-stat-value-inline {
        font-size: 10px;
    }

    .pm-tabs-card-style {
        grid-template-columns: repeat(2, 1fr);
    }

    #countdown #tiles span {
        font-size: 18px;
        min-width: 36px;
    }

    .pm-card-image {
        height: 120px;
    }
}

/* ─── SIDEBAR OVERLAY FOR MOBILE ────────────────────────────── */
@media (max-width: 1200px) {
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.4);
        z-index: 9998;
    }

    .sidebar-overlay.active {
        display: block;
    }
}

/* ─── TOUCH OPTIMIZATIONS ───────────────────────────────────── */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .pm-report-filter-field input,
    .pm-report-filter-field .dx-texteditor {
        min-height: 44px;
    }

    .pm-btn-action,
    .pm-search-btn,
    .dx-button {
        min-height: 44px;
    }

    .portal-sidebar-link {
        min-height: 44px;
        padding: 10px 14px;
    }

    .pm-tabs-nav > li > a,
    .pm-tabs-nav > li > .pm-tab-button {
        min-height: 44px;
    }

    .pm-feature-item {
        min-height: 44px;
        padding: 8px 0;
    }

    /* Disable hover effects on touch */
    .pm-report-card:hover {
        box-shadow: var(--pm-shadow-sm);
    }

    .portal-sidebar-link:hover {
        background: transparent;
    }

    /* Smooth scrolling for touch */
    .pm-data-grid-wrapper,
    .pm-report-grid,
    .pm-tabs-nav {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
}

/* ════════════════════════════════════════════════════════════════
   MOBİL RESPONSIVE SİSTEM — HAMBURGEr MENÜ & HEADER
   ════════════════════════════════════════════════════════════════ */

/* ─── PORTAL SIDEBAR HEADER ──────────────────────────────────── */
.portal-sidebar-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: var(--pm-red);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    min-height: 60px;
    flex-shrink: 0;
    gap: 8px;
}

/* ─── HAMBURGEr MENU BTN (header'da) ─────────────────────────── */
.pm-hamburger-btn {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--pm-bg-muted);
    border: 1px solid var(--pm-border);
    border-radius: var(--pm-radius-sm);
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
    transition: var(--pm-transition-fast);
}

.pm-hamburger-btn:hover,
.pm-hamburger-btn:focus {
    background: var(--pm-slate-100);
    outline: none;
}

.pm-hamburger-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--pm-text-primary);
    border-radius: 2px;
    transition: var(--pm-transition-fast);
}

/* ─── SIDEBAR CLOSE BTN ─────────────────────────────────────── */
.pm-sidebar-close {
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--pm-radius-sm);
    color: white;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--pm-transition-fast);
    margin-left: auto;
}

.pm-sidebar-close:hover {
    background: rgba(255, 255, 255, 0.28);
}

/* ─── HEADER RIGHT SECTION ───────────────────────────────────── */
.pm-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.pm-header-cart {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: var(--pm-radius-sm);
    transition: var(--pm-transition-fast);
}

.pm-header-cart:hover {
    background: var(--pm-bg-muted);
}

.pm-header-cart-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--pm-text-primary);
    white-space: nowrap;
}

.pm-header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--pm-red-light);
    border-radius: 8px;
    flex-shrink: 0;
}

.pm-header-user {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.3;
    flex-shrink: 0;
}

/* ─── 1200px - Hamburger görünür, sidebar gizli ──────────────── */
@media (max-width: 1200px) {
    .pm-hamburger-btn {
        display: flex;
    }

    .pm-sidebar-close {
        display: flex;
    }

    /* Sidebar header'ın altından başlasın (header görünür kalsın) */
    .portal-sidebar {
        top: var(--pm-header-height);
        height: calc(100vh - var(--pm-header-height));
    }

    /* Top bar margin-left sıfırla (sidebar yokken) */
    .portal-top-bar {
        margin-left: 0 !important;
        padding: 0 var(--pm-space-4) !important;
        gap: 8px;
    }

    /* Header tam genişlik yap */
    .portal-header {
        z-index: 10000;
    }

    /* Stats grid — 2 sütun (inline style override) */
    .stats-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    /* Galeri sütunları tam genişlik */
    #slidergalery .col-lg-6,
    #slidergalery .kol_wit_50 {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* ─── 992px - Tablet ─────────────────────────────────────────── */
@media (max-width: 992px) {
    .pm-header-phone {
        display: none;
    }
}

/* ─── 768px - Mobil ──────────────────────────────────────────── */
@media (max-width: 768px) {
    /* Stats grid — tek sütun */
    .stats-row {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    /* Header boşlukları azalt */
    .portal-top-bar {
        padding: 0 10px !important;
        gap: 6px;
    }

    .pm-header-right {
        gap: 8px;
    }

    /* Kullanıcı adı - kısa */
    .portal-user-name {
        font-size: 12px;
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .portal-user-tabela {
        font-size: 10px;
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Galeri yüksekliği */
    #idgallery,
    #slidergalery .dx-gallery,
    #slidergalery [data-bind*="dxGallery"] {
        min-height: 160px !important;
        height: auto !important;
    }

    #slidergalery img[data-bind*="SagBannerSource"] {
        height: 160px !important;
    }

    /* Sepet butonu label gizle */
    .pm-header-cart-label {
        display: none;
    }

    /* Content area padding */
    .portal-main-container {
        padding: var(--pm-space-2) !important;
    }

    /* Portal sidebar max-width on mobile - tam ekran kaplasın */
    .portal-sidebar {
        width: min(var(--pm-sidebar-width), 80vw) !important;
    }
}

/* ─── 480px - Küçük Mobil ────────────────────────────────────── */
@media (max-width: 480px) {
    .pm-header-user .portal-user-name,
    .pm-header-user .portal-user-tabela {
        display: none;
    }

    .pm-header-right {
        gap: 4px;
    }

    /* Header yüksekliği optimize */
    .portal-top-bar {
        height: 52px !important;
        min-height: 52px;
    }

    /* Content offset güncelle */
    @supports selector(:has(a)) {
        .dx-content:has(#TatkoPortalHeader) {
            padding-top: 52px !important;
        }
    }
    @supports not selector(:has(a)) {
        .dx-content #TatkoPortalHeader ~ .cont_center,
        .dx-content #TatkoPortalHeader ~ #scrollViewContainer,
        .dx-content #TatkoPortalHeader ~ .portal-main-container,
        .dx-content #TatkoPortalHeader ~ div[data-bind*="dxScrollView"] {
            margin-top: 52px !important;
        }
    }
}

/* ─── PRINT OVERRIDE ────────────────────────────────────────── */
@media print {
    .portal-sidebar,
    .portal-top-bar,
    #TatkoPortalHeader,
    #commonhtmltatko,
    #Menuler,
    .pm-report-filter-actions,
    .pm-btn-action,
    .pm-view-toggle,
    .pm-trust-section,
    .pm-countdown-section {
        display: none !important;
    }

    .portal-main-container,
    .cont_center {
        margin-left: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
    }

    .pm-report-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
    }
}

/* ─── READONLY FILTER VARIANT ───────────────────────────────── */
.pm-report-filters-readonly {
    margin-top: var(--pm-space-3);
    padding-top: var(--pm-space-3);
    border-top: 1px solid var(--pm-border);
}
