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

/* Client dashboard — partner ile aynı kart/eşit yükseklik dili */
.client-dashboard > .row {
    align-items: stretch;
}
.client-dashboard > .row > [class*="col"] {
    display: flex;
    flex-direction: column;
}
.client-dashboard > .row > [class*="col"] > .card.custom-card {
    flex: 1 1 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.client-dashboard > .row > [class*="col"] > .card.custom-card > .card-body {
    flex: 1 1 auto;
}
.client-dashboard .leads-source-chart {
    position: relative;
    min-height: 14rem;
}
.client-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;
}
.client-dashboard .partner-net-legend .crm-lead-legend::before {
    inset-block-start: 0.2rem;
}
.client-dashboard .partner-net-legend .crm-lead-legend.net-ar:before {
    background-color: rgb(var(--success-rgb));
}
.client-dashboard .partner-net-legend .crm-lead-legend.net-pr:before {
    background-color: rgb(var(--danger-rgb));
}
.client-dashboard .partner-net-legend .crm-lead-legend.net-aap:before {
    background-color: rgb(var(--info-rgb));
}
.client-dashboard .partner-net-legend .crm-lead-legend.net-pap:before {
    background-color: rgb(var(--pink-rgb));
}
.client-dashboard #clientSessionTrend {
    min-height: 200px;
}

/* 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);
}

/* —— AI Anket & Reklam —— */
.hs-ad-page {
    --hs-ink: #0f172a;
    --hs-muted: #64748b;
    --hs-line: #e8eef5;
    --hs-soft: #f4f8fc;
    --hs-sky: #0ea5b7;
    --hs-sky-soft: #e8f7fa;
    --hs-panel: #ffffff;
}

.hs-ad-hero {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(125deg, #e8f6fb 0%, #eef4ff 48%, #f5f9fc 100%);
    border: 1px solid rgba(14, 165, 183, 0.14);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.hs-ad-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(14, 165, 183, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 183, 0.07) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 80% 70% at 20% 30%, #000 20%, transparent 75%);
    pointer-events: none;
}

.hs-ad-hero-body {
    position: relative;
    padding: 1.75rem 1.75rem 1.85rem;
    max-width: 42rem;
}

.hs-ad-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0f766e;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(14, 165, 183, 0.22);
    backdrop-filter: blur(6px);
    margin-bottom: 0.85rem;
}

.hs-ad-hero-title {
    margin: 0 0 0.55rem;
    font-size: clamp(1.35rem, 2.1vw, 1.75rem);
    line-height: 1.25;
    font-weight: 700;
    color: var(--hs-ink);
    letter-spacing: -0.02em;
}

.hs-ad-hero-text {
    margin: 0 0 1.15rem;
    color: var(--hs-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.hs-ad-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.hs-ad-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border-radius: 0.75rem;
    border: 1px solid transparent;
    padding: 0.62rem 1rem;
    font-size: 0.875rem;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.hs-ad-btn i { font-size: 1rem; }

.hs-ad-btn-solid {
    background: #fff;
    color: var(--hs-ink);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.hs-ad-btn-solid:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    color: var(--hs-ink);
}

.hs-ad-btn-ghost {
    background: rgba(255, 255, 255, 0.35);
    color: #334155;
    border-color: rgba(15, 23, 42, 0.08);
}

.hs-ad-btn-ghost:hover {
    background: #fff;
    color: var(--hs-ink);
}

.hs-ad-btn-accent {
    background: var(--hs-sky);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 18px rgba(14, 165, 183, 0.28);
}

.hs-ad-btn-accent:hover {
    background: #0b91a1;
    color: #fff;
    transform: translateY(-1px);
}

.hs-ad-btn-sm {
    padding: 0.45rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 0.65rem;
}

.hs-ad-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.hs-ad-kicker {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #475569;
}

.hs-ad-kicker-sub {
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
    color: var(--hs-muted);
}

.hs-ad-kpi-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.35rem;
}

.hs-ad-kpi {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.05rem;
    border-radius: 1rem;
    background: var(--hs-panel);
    border: 1px solid var(--hs-line);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    min-height: 5.5rem;
}

.hs-ad-kpi-label {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    color: var(--hs-muted);
    line-height: 1.3;
}

.hs-ad-kpi-value {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 750;
    letter-spacing: -0.03em;
    color: var(--hs-ink);
    line-height: 1;
}

.hs-ad-kpi-icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.8rem;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    font-size: 1.05rem;
}

.hs-ad-kpi.tone-sky .hs-ad-kpi-icon { background: #e6f7fb; color: #0ea5b7; }
.hs-ad-kpi.tone-mint .hs-ad-kpi-icon { background: #e8f8f1; color: #10b981; }
.hs-ad-kpi.tone-violet .hs-ad-kpi-icon { background: #eef0ff; color: #6366f1; }
.hs-ad-kpi.tone-amber .hs-ad-kpi-icon { background: #fff6e8; color: #f59e0b; }
.hs-ad-kpi.tone-rose .hs-ad-kpi-icon { background: #fff0f3; color: #f43f5e; }

.hs-ad-panel {
    background: var(--hs-panel);
    border: 1px solid var(--hs-line);
    border-radius: 1.15rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.hs-ad-panel-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.85rem 1.15rem;
    border-bottom: 1px solid var(--hs-line);
    background: linear-gradient(180deg, #fbfdff, #fff);
}

.hs-ad-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem;
}

.hs-ad-tab {
    position: relative;
    padding: 0.55rem 0.8rem;
    color: #64748b;
    text-decoration: none;
    font-weight: 650;
    font-size: 0.9rem;
    border-radius: 0.65rem;
}

.hs-ad-tab em {
    font-style: normal;
    opacity: 0.7;
    font-weight: 600;
}

.hs-ad-tab:hover { color: var(--hs-ink); background: var(--hs-soft); }
.hs-ad-tab.is-on {
    color: var(--hs-sky);
    background: var(--hs-sky-soft);
}

.hs-ad-pills {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.2rem;
    background: var(--hs-soft);
    border-radius: 999px;
    border: 1px solid var(--hs-line);
}

.hs-ad-pills-wrap {
    border-radius: 0.9rem;
}

.hs-ad-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 650;
    color: #64748b;
    text-decoration: none;
    border: 0;
    background: transparent;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.hs-ad-pill span {
    display: inline-grid;
    place-items: center;
    min-width: 1.2rem;
    height: 1.2rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    font-size: 0.68rem;
    background: rgba(15, 23, 42, 0.06);
}

.hs-ad-pill.is-on {
    background: #fff;
    color: var(--hs-ink);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.hs-ad-pill.is-on span {
    background: var(--hs-sky-soft);
    color: var(--hs-sky);
}

.hs-ad-panel-body { padding: 1.1rem 1.15rem 1.35rem; }

.hs-ad-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.95rem;
}

.hs-ad-search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.hs-ad-search {
    position: relative;
    flex: 1 1 16rem;
    min-width: 12rem;
}

.hs-ad-search i {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.hs-ad-search input {
    width: 100%;
    height: 2.55rem;
    border: 1px solid var(--hs-line);
    border-radius: 0.8rem;
    padding: 0 0.9rem 0 2.35rem;
    background: #fff;
    color: var(--hs-ink);
    outline: none;
    box-shadow: none;
}

.hs-ad-search input:focus {
    border-color: rgba(14, 165, 183, 0.45);
    box-shadow: 0 0 0 3px rgba(14, 165, 183, 0.12);
}

.hs-ad-empty {
    text-align: center;
    padding: 3.25rem 1rem 2.75rem;
}

.hs-ad-empty-art {
    width: 4.25rem;
    height: 4.25rem;
    margin: 0 auto 1rem;
    border-radius: 1.25rem;
    display: grid;
    place-items: center;
    font-size: 1.7rem;
    color: var(--hs-sky);
    background: linear-gradient(160deg, #e8f7fa, #eef4ff);
    border: 1px solid rgba(14, 165, 183, 0.14);
}

.hs-ad-empty h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--hs-ink);
}

.hs-ad-empty p {
    margin: 0 auto 1.1rem;
    max-width: 26rem;
    color: var(--hs-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.hs-ad-perf-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.hs-ad-perf-card {
    padding: 1.1rem 1.15rem;
    border-radius: 1rem;
    border: 1px solid var(--hs-line);
    background: var(--hs-soft);
}

.hs-ad-perf-card p {
    margin: 0 0 0.4rem;
    font-size: 0.8rem;
    color: var(--hs-muted);
}

.hs-ad-perf-card strong {
    font-size: 1.4rem;
    letter-spacing: -0.03em;
    color: var(--hs-ink);
}

.hs-ad-table {
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.hs-ad-table thead th {
    background: var(--hs-soft) !important;
    border-bottom: 1px solid var(--hs-line) !important;
    border-top: 0 !important;
    color: #64748b !important;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.75rem 0.9rem !important;
}

.hs-ad-table tbody td {
    border-color: var(--hs-line) !important;
    padding: 0.9rem !important;
    vertical-align: middle;
    color: #334155;
}

.hs-ad-row-title {
    font-weight: 700;
    color: var(--hs-ink);
}

.hs-ad-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.hs-ad-badge-draft { background: #f1f5f9; color: #475569; }
.hs-ad-badge-active { background: #e8f8f1; color: #047857; }
.hs-ad-badge-paused { background: #fff6e8; color: #b45309; }

.hs-ad-row-actions {
    display: inline-flex;
    gap: 0.3rem;
}

.hs-ad-icon-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 0.6rem;
    border: 1px solid var(--hs-line);
    background: #fff;
    color: #64748b;
    display: inline-grid;
    place-items: center;
    padding: 0;
}

.hs-ad-icon-btn:hover { color: var(--hs-sky); border-color: rgba(14, 165, 183, 0.35); background: var(--hs-sky-soft); }
.hs-ad-icon-btn.is-danger:hover { color: #e11d48; border-color: rgba(225, 29, 72, 0.28); background: #fff1f3; }

/* Form / view canvases */
.hs-ad-form-canvas,
.hs-ad-view-canvas {
    width: min(520px, 100vw) !important;
    border-left: 1px solid var(--hs-line);
    box-shadow: -18px 0 40px rgba(15, 23, 42, 0.08);
}

.hs-ad-form-canvas {
    display: flex;
    flex-direction: column;
    background: #fff;
}

.hs-ad-form-canvas .offcanvas-header,
.hs-ad-view-canvas .offcanvas-header {
    padding: 1.1rem 1.25rem 0.85rem;
    border-bottom: 1px solid var(--hs-line);
}

.hs-ad-form-canvas .offcanvas-title {
    font-weight: 750;
    letter-spacing: -0.01em;
}

.hs-ad-form-canvas .offcanvas-body {
    overflow-y: auto;
    padding: 1.15rem 1.25rem 1.5rem;
}

.hs-ad-form-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.95rem 1.25rem;
    border-top: 1px solid var(--hs-line);
    background: #fbfdff;
}

.hs-ad-form-foot-right {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: flex-end;
}

.hs-ad-field { margin-bottom: 1.05rem; }
.hs-ad-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.hs-ad-field-label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #64748b;
}

.hs-ad-input,
.hs-ad-form-canvas .form-control,
.hs-ad-form-canvas .select2-container .select2-selection--single {
    border-radius: 0.8rem !important;
    border-color: var(--hs-line) !important;
    min-height: 2.55rem;
    box-shadow: none !important;
}

.hs-ad-form-canvas textarea.form-control {
    min-height: 5.5rem;
    padding-top: 0.7rem;
}

.hs-ad-form-canvas .form-control:focus {
    border-color: rgba(14, 165, 183, 0.45) !important;
    box-shadow: 0 0 0 3px rgba(14, 165, 183, 0.12) !important;
}

.hs-ad-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.hs-ad-type-card {
    width: 100%;
    text-align: left;
    border: 1px solid var(--hs-line);
    border-radius: 1rem;
    background: #fff;
    padding: 0.95rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-height: 6.4rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.hs-ad-type-card i {
    font-size: 1.2rem;
    color: #94a3b8;
    margin-bottom: 0.15rem;
}

.hs-ad-type-card strong {
    font-size: 0.95rem;
    color: var(--hs-ink);
}

.hs-ad-type-card span {
    font-size: 0.75rem;
    color: var(--hs-muted);
    line-height: 1.4;
}

.hs-ad-type-card.is-on,
.hs-ad-type-card.active {
    border-color: rgba(14, 165, 183, 0.55);
    background: linear-gradient(180deg, #f4fbfd, #fff);
    box-shadow: 0 0 0 3px rgba(14, 165, 183, 0.12);
}

.hs-ad-type-card.is-on i,
.hs-ad-type-card.active i { color: var(--hs-sky); }

.hs-ad-seg {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 0.3rem;
    padding: 0.25rem;
    border-radius: 0.9rem;
    background: var(--hs-soft);
    border: 1px solid var(--hs-line);
}

.hs-ad-seg-btn {
    border: 0;
    background: transparent;
    color: #64748b;
    border-radius: 0.7rem;
    padding: 0.55rem 0.4rem;
    font-size: 0.8rem;
    font-weight: 650;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.hs-ad-seg-btn.is-on {
    background: #fff;
    color: var(--hs-ink);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.hs-ad-mini-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.hs-ad-mini {
    border: 1px solid var(--hs-line);
    background: #fff;
    color: #475569;
    border-radius: 999px;
    padding: 0.28rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
}

.hs-ad-mini:hover {
    border-color: rgba(14, 165, 183, 0.35);
    color: var(--hs-sky);
    background: var(--hs-sky-soft);
}

.hs-ad-upload {
    border: 1.5px dashed #cbd5e1;
    border-radius: 1rem;
    padding: 1.35rem 1rem;
    text-align: center;
    background: linear-gradient(180deg, #f8fafc, #fff);
    margin-bottom: 1.05rem;
}

.hs-ad-upload i {
    display: block;
    font-size: 1.7rem;
    color: #94a3b8;
    margin-bottom: 0.55rem;
}

.hs-ad-upload p {
    margin: 0.55rem 0 0;
    font-size: 0.75rem;
    color: var(--hs-muted);
}

.hs-ad-upload img {
    max-width: 100%;
    margin-top: 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid var(--hs-line);
}

.hs-ad-q-item {
    background: #f8fafc;
    border: 1px solid var(--hs-line) !important;
    border-radius: 0.95rem !important;
    margin-bottom: 0.65rem;
}

.hs-ad-q-item .form-control {
    border-radius: 0.7rem !important;
}

.hs-ad-view-loc {
    font-weight: 700;
    color: var(--hs-ink);
    margin-bottom: 0.85rem;
}

.hs-ad-meta-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    border: 1px solid var(--hs-line);
    border-radius: 0.95rem;
    overflow: hidden;
}

.hs-ad-meta-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0.9rem;
    border-bottom: 1px solid var(--hs-line);
    font-size: 0.875rem;
}

.hs-ad-meta-list li:last-child { border-bottom: 0; }
.hs-ad-meta-list span { color: var(--hs-muted); }
.hs-ad-meta-list strong { color: var(--hs-ink); font-weight: 700; text-align: right; }

.hs-ad-view-desc {
    white-space: pre-wrap;
    word-break: break-word;
    min-height: 4.5rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--hs-line);
    border-radius: 0.9rem;
    background: var(--hs-soft);
    font-size: 0.875rem;
    line-height: 1.6;
    color: #334155;
}

.hs-ad-q-view {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.hs-ad-q-view li {
    border: 1px solid var(--hs-line);
    border-radius: 0.85rem;
    padding: 0.8rem 0.9rem;
    background: #fff;
}

.hs-ad-view-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    margin-top: 0.5rem;
}

.hs-ad-view-stats > div {
    border: 1px solid var(--hs-line);
    border-radius: 0.85rem;
    padding: 0.8rem 0.9rem;
    background: var(--hs-soft);
}

.hs-ad-view-stats span {
    display: block;
    font-size: 0.72rem;
    color: var(--hs-muted);
    margin-bottom: 0.25rem;
}

.hs-ad-view-stats strong {
    font-size: 1.15rem;
    color: var(--hs-ink);
}

.hs-ad-view-foot {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--hs-line);
    font-size: 0.78rem;
    color: var(--hs-muted);
}

@media (max-width: 1199.98px) {
    .hs-ad-kpi-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hs-ad-perf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
    .hs-ad-kpi-row,
    .hs-ad-perf-grid,
    .hs-ad-field-row,
    .hs-ad-type-grid { grid-template-columns: 1fr; }
    .hs-ad-hero-body { padding: 1.35rem; }
    .hs-ad-panel-top { padding: 0.75rem; }
    .hs-ad-form-foot { flex-direction: column; align-items: stretch; }
    .hs-ad-form-foot-right { width: 100%; }
    .hs-ad-form-foot-right .hs-ad-btn { flex: 1; }
}

.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; }
