.main-header-container .cart-dropdown,
.main-header-container .notifications-dropdown {
    position: relative;
}

/* Dashboard: aynı satırdaki kartlar eşit yükseklik */
.partner-dashboard > .row {
    align-items: stretch;
}
.partner-dashboard > .row > [class*="col"] {
    display: flex;
    flex-direction: column;
}
.partner-dashboard > .row > [class*="col"] > .card.custom-card {
    flex: 1 1 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.partner-dashboard > .row > [class*="col"] > .card.custom-card > .card-body {
    flex: 1 1 auto;
}

.partner-dashboard .leads-source-chart {
    position: relative;
    min-height: 14rem;
}

.partner-dashboard .partner-net-legend .crm-lead-legend {
    max-width: 100%;
    padding-inline-start: 0.55rem;
    white-space: normal;
    line-height: 1.25;
    word-break: break-word;
    text-align: center;
}
.partner-dashboard .partner-net-legend .crm-lead-legend::before {
    inset-block-start: 0.2rem;
}
.partner-dashboard .partner-net-legend .crm-lead-legend.net-ar:before {
    background-color: rgb(var(--success-rgb));
}
.partner-dashboard .partner-net-legend .crm-lead-legend.net-pr:before {
    background-color: rgb(var(--danger-rgb));
}
.partner-dashboard .partner-net-legend .crm-lead-legend.net-aap:before {
    background-color: rgb(var(--info-rgb));
}
.partner-dashboard .partner-net-legend .crm-lead-legend.net-pap:before {
    background-color: rgb(var(--pink-rgb));
}

.country-selector .header-link img {
    width: 1.5rem !important;
    height: 1.05rem !important;
    border-radius: 0.2rem !important;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.country-selector .dropdown-menu img {
    width: 1.35rem !important;
    height: 0.95rem !important;
    border-radius: 0.15rem !important;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.app-sidebar .slide.has-sub:not(.open) > .slide-menu {
    display: none;
}

.app-content .dataTables_wrapper,
.app-content .card-body {
    max-width: 100%;
}

.app-content .container-fluid,
.app-content .row > [class*="col"],
.app-content .card.custom-card {
    min-width: 0;
    max-width: 100%;
}

.app-content .card-body {
    min-width: 0;
}

.app-content .dataTables_wrapper,
.app-content .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.campaign-view-canvas {
    width: 460px !important;
}

.campaign-view-label {
    color: var(--default-text-color);
    opacity: 0.72;
}

.campaign-view-message {
    white-space: pre-wrap;
    word-break: break-word;
    min-height: 5.5rem;
    padding: 1rem;
    border: 1px solid var(--default-border);
    border-radius: 0.5rem;
    background: rgb(var(--light-rgb));
    font-size: 0.875rem;
    line-height: 1.65;
}

.campaign-view-footer {
    background: rgb(var(--light-rgb));
    color: var(--default-text-color);
}

.ticket-chat-wrap {
    display: flex;
    gap: 1.25rem;
    align-items: stretch;
    margin-bottom: 1.5rem;
}

.ticket-chat-area,
.ticket-chat-side {
    background-color: var(--custom-white);
    border-radius: 0.5rem;
}

.ticket-chat-area {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 12.5rem);
    overflow: hidden;
    position: relative;
}

.ticket-chat-side {
    width: 21.875rem;
    flex: 0 0 21.875rem;
    padding: 1.5rem;
}

.ticket-chat-content {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1.75rem 2rem;
}

.ticket-chat-content ul li {
    margin-block-end: 1rem;
}

.ticket-chat-content ul li:last-child {
    margin-block-end: 0;
}

.ticket-chat-day {
    text-align: center;
    color: var(--text-muted);
    margin-block-end: 1.5rem;
    opacity: 0.7;
}

.ticket-chat-day span {
    padding: 0.188rem 0.5rem;
    font-size: 0.7rem;
    background-color: var(--primary02);
    border-radius: 0.3rem;
    color: var(--primary-color);
}

.ticket-chat-wrap .chatting-user-info {
    color: var(--default-text-color);
    font-weight: 600;
    font-size: 0.813rem;
}

.ticket-chat-wrap .chatting-user-info .msg-sent-time {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
}

.ticket-chat-wrap .chatting-user-info .msg-sent-time .chat-read-mark i {
    color: rgb(var(--success-rgb));
    margin-inline-end: 0.3rem;
}

.ticket-chat-wrap .main-chat-msg .ticket-msg-bubble {
    margin-block-start: 0.4rem;
    padding: 0.55rem 0.75rem;
    width: fit-content;
    max-width: 100%;
}

.ticket-chat-wrap .main-chat-msg .ticket-msg-bubble p {
    font-size: 0.813rem;
    word-break: break-word;
    margin-bottom: 0;
}

.ticket-chat-wrap .chat-item-start,
.ticket-chat-wrap .chat-item-end {
    display: flex;
}

.ticket-chat-wrap .chat-item-start .chat-list-inner,
.ticket-chat-wrap .chat-item-end .chat-list-inner {
    display: flex;
    align-items: flex-start;
    max-width: 75%;
    width: fit-content;
}

.ticket-chat-wrap .chat-item-start .chat-list-inner > div:not(.chat-user-profile) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.ticket-chat-wrap .chat-item-end .chat-list-inner > div:not(.chat-user-profile) {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 0;
}

.ticket-chat-wrap .chat-item-start .main-chat-msg,
.ticket-chat-wrap .chat-item-end .main-chat-msg {
    display: flex;
    flex-direction: column;
    max-width: 100%;
}

.ticket-chat-wrap .chat-item-start .main-chat-msg {
    align-items: flex-start;
}

.ticket-chat-wrap .chat-item-end .main-chat-msg {
    align-items: flex-end;
}

.ticket-chat-wrap .chat-item-start .main-chat-msg .ticket-msg-bubble {
    background-color: rgb(var(--light-rgb));
    color: var(--default-text-color);
    border-radius: 0 0.3rem 0.3rem 0.3rem;
}

.ticket-chat-wrap .chat-item-start .msg-sent-time {
    margin-inline-start: 0.25rem;
}

.ticket-chat-wrap .chat-item-end {
    justify-content: flex-end;
}

.ticket-chat-wrap .chat-item-end .chat-list-inner {
    margin-inline-start: auto;
}

.ticket-chat-wrap .chat-item-end .main-chat-msg .ticket-msg-bubble {
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 0.3rem 0 0.3rem 0.3rem;
}

.ticket-chat-wrap .chat-item-end .msg-sent-time {
    margin-inline-end: 0.25rem;
}

.ticket-chat-media {
    display: block;
    cursor: pointer;
}

.ticket-chat-media img {
    width: 3.25rem;
    height: 3.25rem;
    object-fit: cover;
    border-radius: 0.4rem;
}

.ticket-msg-files {
    display: flex;
    flex-wrap: wrap;
    justify-content: inherit;
    gap: 0.35rem;
    margin-block-start: 0.35rem;
    max-width: 16rem;
}

.ticket-file-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 100%;
    padding: 0.2rem 0.55rem;
    border: 1px solid var(--default-border);
    border-radius: 2rem;
    background: rgb(var(--light-rgb));
    color: var(--default-text-color);
    font-size: 0.72rem;
    line-height: 1.2;
}

.ticket-file-link:hover {
    color: var(--primary-color);
}

.ticket-file-link i {
    font-size: 0.9rem;
    flex-shrink: 0;
    line-height: 1;
}

.ticket-file-link-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 8.5rem;
}

.ticket-file-link-size {
    flex-shrink: 0;
    opacity: 0.55;
    font-size: 0.65rem;
}

.ticket-chat-footer .btn-send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.ticket-chat-footer .btn-send .spinner-border {
    width: 1rem;
    height: 1rem;
    margin: 0;
}

.ticket-chat-footer .btn-send:disabled {
    pointer-events: none;
    opacity: 0.8;
}

.ticket-chat-dd .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.2;
}

.ticket-chat-dd .dropdown-item i {
    margin: 0;
    line-height: 1;
    font-size: 1rem;
    width: 1rem;
    height: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ticket-chat-footer {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    min-height: 4.75rem;
    padding: 0.75rem 1rem 0.75rem 0.25rem;
    border-top: 1px solid var(--default-border);
    background-color: var(--custom-white);
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08);
}

.ticket-chat-footer .form-control {
    flex: 1 1 auto;
    min-height: 2.5rem;
    max-height: 6.5rem;
    resize: none;
}

.ticket-chat-footer-closed {
    justify-content: center;
    box-shadow: none;
}

.ticket-reply-picked {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.55rem 1.15rem 0.15rem;
}

.ticket-reply-picked:empty {
    display: none;
}

.ticket-file-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    max-width: 14rem;
    padding: 0.22rem 0.3rem 0.22rem 0.65rem;
    border: 1px solid var(--default-border);
    border-radius: 2rem;
    font-size: 0.72rem;
    background: rgb(var(--light-rgb));
}

.ticket-file-chip > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticket-file-chip-x {
    border: 0;
    background: transparent;
    width: 1.25rem;
    height: 1.25rem;
    padding: 0;
    line-height: 1;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ticket-file-chip-x:hover {
    color: var(--default-text-color);
}

.ticket-chat-side .shared-files {
    max-height: 14rem;
    overflow-y: auto;
    padding-inline-end: 0.25rem;
}

.ticket-chat-side .shared-files li {
    margin-block-end: 1rem;
}

.ticket-chat-side .shared-files li:last-child {
    margin-block-end: 0;
}

.ticket-chat-side .shared-file-icon i {
    width: 1rem;
    height: 1rem;
    line-height: 1rem;
    border-radius: 0.3rem;
    border: 1px solid var(--default-border);
    display: flex;
    align-items: center;
    padding: 0.8rem;
    justify-content: center;
    font-size: 1.125rem;
    color: var(--text-muted);
}

@media (max-width: 1199.98px) {
    .ticket-chat-wrap {
        flex-direction: column;
    }

    .ticket-chat-side {
        width: 100%;
        flex: none;
    }

    .ticket-chat-area {
        min-height: 32rem;
    }

    .ticket-chat-wrap .chat-item-start .chat-list-inner,
    .ticket-chat-wrap .chat-item-end .chat-list-inner {
        max-width: 92%;
    }
}

body[data-acl-create="0"] [id*="btnAdd"],
body[data-acl-create="0"] [id*="btnCreate"],
body[data-acl-create="0"] [id*="btnOpenAdd"],
body[data-acl-create="0"] [id*="btnNew"],
body[data-acl-create="0"] [id*="btnOpenPerm"],
body[data-acl-create="0"] a[href*="-create"],
body[data-acl-create="0"] .acl-create { display: none !important; }
body[data-acl-update="0"] [id*="btnEdit"],
body[data-acl-update="0"] [id*="btnSave"],
body[data-acl-update="0"] [id*="btnUpdate"],
body[data-acl-update="0"] a[href*="-edit"],
body[data-acl-update="0"] .acl-update { display: none !important; }
body[data-acl-delete="0"] [id*="btnDel"],
body[data-acl-delete="0"] [id*="btnDelete"],
body[data-acl-delete="0"] [class*="del"][class*="Btn"],
body[data-acl-delete="0"] .acl-delete { display: none !important; }

.page.error-bg { min-height: 100vh; }
.error-page { z-index: 2; }

.card.custom-card.crm-highlight-card {
    background-color: #513891 !important;
}
.btn-dash-accent {
    background-color: #513891 !important;
    border-color: #513891 !important;
    color: #fff !important;
}
.avatar-dash-accent {
    background-color: #513891 !important;
    color: #fff !important;
}

#wgHeroCard.card.custom-card.crm-highlight-card,
#radHeroCard.card.custom-card.crm-highlight-card,
#sysHeroCard.card.custom-card.crm-highlight-card {
    background-color: #111c43 !important;
}

#radLogBox {
    max-height: 280px;
    overflow: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    white-space: pre-wrap;
    word-break: break-word;
}

.sys-bar { height: 6px; }
.sys-info-row { padding-top: .75rem; padding-bottom: .75rem; }
.sys-log-tile {
    display: block;
    border: 1px solid var(--default-border);
    border-radius: .5rem;
    padding: 1rem;
    height: 100%;
}
.sys-log-tile:hover { background-color: var(--default-body-bg-color); }

#profileAvatarWrap { overflow: hidden; background-color: #513891; color: #fff; }
#profileAvatarWrap img { width: 100%; height: 100%; object-fit: cover; }
.profile-info-row { padding-top: .8rem !important; padding-bottom: .8rem !important; }

#rtOrgLinks a {
    color: var(--text-muted);
    text-decoration: none;
}
#rtOrgLinks a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.pv-sticky { position: sticky; }
.pv-sticky .card-body { padding-top: 14px; padding-bottom: 14px; }
.pv-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.pv-head-left { display: flex; align-items: center; gap: 10px; }
.pv-eye { width: 36px; height: 36px; border-radius: 10px; background: #e0f2fe; color: #0891b2; display: grid; place-items: center; }
.pv-eye svg { width: 18px; height: 18px; }
.pv-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; flex: 0 0 8px; }
.pv-url svg { width: 14px; height: 14px; flex: 0 0 14px; }
.pv-device { position: relative; width: min(360px, 100%); margin: 0 auto; }
.pv-side { position: absolute; width: 3px; background: #2c2c2e; border-radius: 2px; }
.pv-side-silent { left: -3px; top: 118px; height: 18px; }
.pv-side-up { left: -3px; top: 148px; height: 32px; }
.pv-side-down { left: -3px; top: 188px; height: 32px; }
.pv-side-power { right: -3px; top: 168px; height: 52px; }
.pv-phone {
    position: relative;
    width: 100%;
    background: linear-gradient(160deg, #4a4a4c 0%, #1d1d1f 42%, #2c2c2e 100%);
    border-radius: 46px;
    padding: 3px;
    overflow: hidden;
    box-shadow: 0 0 0 1px #111, inset 0 0 0 1px rgba(255,255,255,.18), 0 22px 48px rgba(15,23,42,.32);
}
.pv-screen {
    position: relative;
    height: min(800px, 78vh);
    min-height: 520px;
    border-radius: 43px;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.pv-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.pv-screen::-webkit-scrollbar { width: 0; height: 0; }
.pv-card { position: relative; z-index: 1; margin: auto 20px; border-radius: 22px; padding: 20px 16px 16px; box-shadow: 0 10px 28px rgba(15, 23, 42, .18); }
.pv-lang { display: flex; justify-content: flex-end; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: #6b7280; margin-bottom: 4px; }
.pv-lang svg { width: 14px; height: 14px; }
.pv-wifi { width: 64px; height: 64px; margin: 0 auto 10px; color: #2563eb; }
.pv-wifi svg { width: 64px; height: 64px; display: block; }
.pv-logo-frame { display: none; width: 96px; height: 96px; margin: 0 auto 16px; border-radius: 50%; overflow: hidden; line-height: 0; background: #111; -webkit-transform: translateZ(0); transform: translateZ(0); align-items: center; justify-content: center; }
.pv-logo-frame.is-on { display: flex; }
.pv-sticky .pv-logo { display: block; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: contain; object-position: center; margin: 0; border: 0; border-radius: 0; }
.pv-title { font-size: 22px; font-weight: 800; text-align: center; margin: 0; letter-spacing: -.03em; }
.pv-sub { font-size: 13px; text-align: center; margin: 8px 0 16px; opacity: .7; font-weight: 500; }
.pv-acc { margin-bottom: 8px; }
.pv-mbtn { width: 100%; border: 1px solid #e5e7eb; border-radius: 12px; padding: 10px; font-size: 13px; font-weight: 700; background: transparent; cursor: pointer; transition: background .28s ease, border-color .28s ease, color .28s ease; }
.pv-pane { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .38s cubic-bezier(.22, 1, .36, 1); }
.pv-pane.is-on { grid-template-rows: 1fr; }
.pv-pane-inner { overflow: hidden; min-height: 0; opacity: 0; transform: translateY(-8px); transition: opacity .28s ease .04s, transform .32s cubic-bezier(.22, 1, .36, 1); }
.pv-pane.is-on .pv-pane-inner { opacity: 1; transform: none; padding-top: 10px; }
.pv-field { position: relative; margin-bottom: 12px; }
.pv-field > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #9ca3af; pointer-events: none; }
.pv-field input { width: 100%; height: 52px; border: 1px solid #e5e7eb; border-radius: 14px; padding: 0 44px 0 44px; font-size: 14px; background: #fff; color: #111827; outline: none; }
.pv-field input::placeholder { color: #9ca3af; }
.pv-eye-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; color: #9ca3af; display: grid; place-items: center; }
.pv-eye-btn svg { width: 18px; height: 18px; position: static; transform: none; }
.pv-otp { width: 100%; height: 40px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.pv-consent { background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px 14px; margin: 4px 0 14px; }
.pv-check { display: flex; align-items: center; gap: 10px; font-size: 10px; color: #4b5563; margin: 0; font-weight: 500; }
.pv-check + .pv-check { margin-top: 10px; }
.pv-box { width: 18px; height: 18px; border: 1.5px solid #d1d5db; border-radius: 4px; background: #fff; flex: 0 0 18px; }
.pv-cta { width: 100%; border: 0; border-radius: 14px; height: 52px; font-weight: 700; color: #fff; font-size: 15px; }
.pv-hr { border: 0; border-top: 1px solid #e5e7eb; margin: 14px 0 10px; }
.pv-powered { text-align: center; font-size: 10px; opacity: .45; font-weight: 600; }
.hp-color { display: flex; gap: 8px; align-items: center; }
.hp-color input[type=color] { width: 42px; height: 38px; padding: 2px; border: 1px solid var(--default-border); border-radius: .375rem; }
/* YNEX Rounded Styling (noUiSlider) */
.slider-round {
  height: 0.625rem !important;
}
.slider-round .noUi-handle {
  height: 1.125rem !important;
  width: 1.125rem !important;
  inset-block-start: -0.313rem !important;
  inset-inline-end: -0.563rem;
  border-radius: 50px !important;
  background-color: var(--primary-color) !important;
  border: 1px solid var(--custom-white) !important;
  box-shadow: none !important;
}
.slider-round .noUi-handle:before,
.slider-round .noUi-handle:after {
  display: none !important;
}
.slider-round .noUi-connect {
  background: var(--primary-color) !important;
}
@media (max-width: 420px) {
    .pv-side { display: none; }
    .pv-phone { border-radius: 32px; }
    .pv-screen { border-radius: 30px; min-height: 460px; height: min(640px, 68vh); }
    .pv-card { margin: auto 14px; padding: 16px 14px 14px; }
}
.hp-asset { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.hp-thumb { width: 72px; height: 72px; border: 1px solid #e5e7eb; border-radius: 10px; padding: 5px; object-fit: contain; background: #f8fafc; }
.hp-thumb.is-bg { object-fit: cover; }
.pv-url { display: flex; align-items: center; gap: 8px; background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 999px; padding: 6px 6px 6px 12px; font-size: 11px; color: #64748b; margin-bottom: 20px; overflow: hidden; }
.pv-url-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
