/* ==========================================================================
   ArtaTools admin theme (on top of Tabler 1.0)
   Palette taken from the ArtaTools brand: logo green, charcoal, logo gray,
   dealer-card blue and the light gray page background.
   Only variables and small layout pieces live here; components come from Tabler.
   ========================================================================== */

:root,
[data-bs-theme=light] {
    --arta-green-900: #1b4d1e;
    --arta-green-700: #236a27;   /* hover / pressed */
    --arta-green-600: #2b7d2f;   /* primary: 5.1:1 against white text */
    --arta-green-500: #3e9a3b;   /* logo green, decorative only */
    --arta-green-300: #5fcf55;   /* bright accent on dark surfaces */
    --arta-green-50:  #e9f5e8;
    --arta-charcoal:  #16191d;
    --arta-charcoal-2:#1f2328;
    --arta-gray:      #5f6368;
    --arta-blue:      #1f4e96;

    --tblr-primary: var(--arta-green-600);
    --tblr-primary-rgb: 43, 125, 47;
    --tblr-primary-fg: #fff;
    --tblr-primary-darken: var(--arta-green-700);
    --tblr-primary-lt: var(--arta-green-50);
    --tblr-primary-lt-rgb: 233, 245, 232;
    --tblr-primary-text-emphasis: var(--arta-green-900);
    --tblr-primary-bg-subtle: var(--arta-green-50);
    --tblr-primary-border-subtle: #b7dcb4;

    --tblr-azure: var(--arta-blue);
    --tblr-azure-rgb: 31, 78, 150;
    --tblr-info: var(--arta-blue);
    --tblr-info-rgb: 31, 78, 150;

    --tblr-link-color: var(--arta-green-600);
    --tblr-link-color-rgb: 43, 125, 47;
    --tblr-link-hover-color: var(--arta-green-700);
    --tblr-link-hover-color-rgb: 35, 106, 39;
    --tblr-focus-ring-color: rgba(43, 125, 47, .25);

    --tblr-body-bg: #f2f3f2;
    --tblr-body-bg-rgb: 242, 243, 242;
    --tblr-secondary-color: var(--arta-gray);

    --admin-topbar-h: 3.75rem;
}

[data-bs-theme=dark] {
    --tblr-primary: #3e9a3b;
    --tblr-primary-rgb: 62, 154, 59;
    --tblr-primary-darken: #2b7d2f;
    --tblr-primary-lt: rgba(95, 207, 85, .12);
    --tblr-link-color: var(--arta-green-300, #5fcf55);
    --tblr-link-color-rgb: 95, 207, 85;
    --tblr-link-hover-color: #8ee086;
    --tblr-body-bg: #0f1114;
    --tblr-body-bg-rgb: 15, 17, 20;
    --tblr-bg-surface: #16191d;
    --tblr-bg-surface-secondary: #1f2328;
}

/* ---- Sidebar ------------------------------------------------------------ */

.admin-sidebar {
    --tblr-navbar-bg: var(--arta-charcoal);
    --tblr-navbar-color: #aeb4ba;
    --tblr-navbar-hover-color: #fff;
    --tblr-navbar-active-color: #fff;
    --tblr-navbar-border-color: #262a30;
    background: var(--arta-charcoal) !important;
    border-right: 1px solid #262a30;
}
.admin-sidebar .nav-item.active::after { display: none; }   /* we draw our own indicator */

.admin-brand {
    display: flex; align-items: center; gap: .625rem;
    padding: .5rem .25rem; margin: 0; text-decoration: none !important;
}
.admin-brand-logo { height: 2.25rem; width: auto; }
.admin-brand-mark {
    display: inline-grid; place-items: center;
    width: 2.25rem; height: 2.25rem; border-radius: .5rem;
    background: var(--arta-green-600);
    color: #fff; font-weight: 700; font-size: 1.15rem;
}
.admin-brand-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.admin-brand-name { color: #fff; font-weight: 700; font-size: 1.05rem; letter-spacing: .01em; }
.admin-brand-name span { color: var(--arta-green-300); }
.admin-brand-sub { color: #7d848b; font-size: .7rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }

.admin-sidebar .navbar-nav .nav-link {
    border-radius: .375rem;
    margin: 1px .5rem;
    padding-left: .75rem !important; padding-right: .75rem !important;
    min-height: 2.5rem;                 /* comfortable touch target */
    gap: .125rem;
}
.admin-sidebar .navbar-nav .nav-link:hover { background: rgba(255, 255, 255, .05); }
.admin-sidebar .nav-link-icon { color: inherit; opacity: .85; }
.admin-sidebar .nav-link-icon .ti { font-size: 1.15rem; }

/* Top-level active item (no children) */
.admin-sidebar .navbar-nav > .nav-item.active > .nav-link:not(.admin-nav-toggle) {
    background: rgba(95, 207, 85, .12);
    color: #fff;
    box-shadow: inset 3px 0 0 var(--arta-green-300);
}
.admin-sidebar .navbar-nav > .nav-item.active > .nav-link .nav-link-icon { color: var(--arta-green-300); opacity: 1; }

/* Groups */
.admin-nav-chevron { font-size: .95rem; transition: transform .15s ease; opacity: .6; }
.admin-nav-toggle:not(.collapsed) .admin-nav-chevron { transform: rotate(180deg); }
.admin-subnav { padding: .125rem 0 .375rem; }
.admin-sidebar .admin-subnav .nav-link {
    padding-left: 2.6rem !important;
    min-height: 2.25rem;
    font-size: .875rem;
}
.admin-sidebar .admin-subnav .nav-link.active {
    color: #fff !important;
    background: rgba(95, 207, 85, .12);
    box-shadow: inset 3px 0 0 var(--arta-green-300);
}

@media (max-width: 991.98px) {
    .admin-sidebar .navbar-collapse { padding-bottom: .75rem; }
    .admin-brand-sub { display: none; }
}

/* ---- Top bar (title, page actions, account) ----------------------------- */

.admin-topbar {
    position: sticky; top: 0; z-index: 1020;
    background: rgba(var(--tblr-body-bg-rgb), .92);
    backdrop-filter: saturate(150%) blur(8px);
    -webkit-backdrop-filter: saturate(150%) blur(8px);
    border-bottom: 1px solid var(--tblr-border-color);
}
.admin-topbar-inner {
    display: flex; align-items: center; gap: .5rem;
    min-height: var(--admin-topbar-h);
    padding-top: .5rem; padding-bottom: .5rem;
}
.admin-title-wrap { min-width: 0; flex: 1 1 auto; display: flex; align-items: center; flex-wrap: wrap; column-gap: .75rem; row-gap: .125rem; }
.admin-title {
    margin: 0; font-size: 1.125rem; font-weight: 600; line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.admin-title-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .375rem; }
.admin-actions { display: flex; align-items: center; gap: .5rem; flex: 0 0 auto; }
.admin-actions:empty { display: none; }
.admin-back { flex: 0 0 auto; }
.admin-avatar { background: var(--arta-green-600); color: #fff; font-weight: 600; }

@media (max-width: 575.98px) {
    .admin-title { font-size: 1rem; }
    .admin-title-meta { font-size: .8rem; }
    .admin-actions .btn { padding-left: .65rem; padding-right: .65rem; }
}

.page-body { margin-top: 1.25rem; margin-bottom: 2.5rem; }

/* Theme toggle label: show the option you can switch to */
[data-bs-theme=light] .admin-theme-light,
[data-bs-theme=dark] .admin-theme-dark { display: none; }

/* ---- Toasts ------------------------------------------------------------- */

.admin-toasts { z-index: 1090; }
.admin-toast { border: 0; border-left: 4px solid; box-shadow: var(--tblr-box-shadow-dropdown); min-width: 18rem; }
.admin-toast .toast-body { padding: .75rem .875rem; }
.admin-toast-icon { font-size: 1.25rem; line-height: 1.2; }
.admin-toast-success { border-left-color: var(--tblr-success); }
.admin-toast-success .admin-toast-icon { color: var(--tblr-success); }
.admin-toast-warning { border-left-color: var(--tblr-warning); }
.admin-toast-warning .admin-toast-icon { color: var(--tblr-warning); }
.admin-toast-danger  { border-left-color: var(--tblr-danger); }
.admin-toast-danger  .admin-toast-icon { color: var(--tblr-danger); }
@media (max-width: 575.98px) {
    .admin-toasts { left: 0; right: 0; padding: .75rem !important; }
    .admin-toast { width: 100%; min-width: 0; }
}

/* ---- Confirm dialog ----------------------------------------------------- */

.admin-confirm-icon { font-size: 2.5rem; display: block; }

/* ---- Small helpers ------------------------------------------------------ */

.admin-skip { position: absolute; z-index: 2000; top: .5rem; left: .5rem; padding: .5rem 1rem; background: var(--tblr-bg-surface); }
/* position: relative makes the scroll wrapper the containing block of visually-hidden (absolute) labels,
   so they are clipped instead of widening the page on phones. */
.table-responsive { width: 100%; position: relative; }
.btn[aria-busy=true] { pointer-events: none; opacity: .75; }

/* ---- Login ------------------------------------------------------------- */

.admin-login-brand {
    display: inline-flex; align-items: center; gap: .625rem;
    padding: .625rem 1rem; border-radius: .75rem;
    background: var(--arta-charcoal);
}

/* Solid badges: Tabler leaves the text colour at the badge default, which is unreadable on
   solid backgrounds (e.g. green text on bg-success). Give them a contrasting text colour. */
.badge.bg-primary, .badge.bg-success, .badge.bg-danger, .badge.bg-info, .badge.bg-azure,
.badge.bg-secondary, .badge.bg-dark, .badge.bg-blue, .badge.bg-green, .badge.bg-red { color: #fff; }
.badge.bg-warning, .badge.bg-yellow, .badge.bg-light { color: #1d2125; }

/* ---- Shared helpers from the design skill ------------------------------ */

.num  { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.code { font-family: var(--tblr-font-monospace); font-size: .8125rem; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---- Variant grid (product form) ---------------------------------------- */

.variant-grid-wrap { overflow: auto; max-height: 70vh; }
.variant-grid { --grid-bg: var(--tblr-bg-surface); font-size: .875rem; }
.variant-grid > :not(caption) > * > * { padding: .25rem .375rem; background: var(--grid-bg); }
.variant-grid thead th {
    position: sticky; top: 0; z-index: 3;
    font-size: .8125rem; text-transform: none; letter-spacing: 0; white-space: nowrap;
    background: var(--tblr-bg-surface-secondary); vertical-align: middle;
}
.variant-grid .col-sel, .variant-grid .col-code { position: sticky; z-index: 2; }
.variant-grid .col-sel { left: 0; width: 2.25rem; }
.variant-grid .col-code { left: var(--sticky-code, 2.25rem); min-width: 10rem; box-shadow: inset -1px 0 0 var(--tblr-border-color); }
.variant-grid thead .col-sel, .variant-grid thead .col-code { z-index: 4; }
.variant-grid .col-spec { min-width: 5.5rem; }
.variant-grid td[data-col=price], .variant-grid td[data-col=salePrice] { min-width: 6.5rem; }
.variant-grid td[data-col=vatRate] { min-width: 4.5rem; }
.variant-grid td[data-col=minOrderQty], .variant-grid td[data-col=orderMultiple] { min-width: 4.75rem; }
.variant-grid td[data-col=barcode] { min-width: 8.5rem; }
.variant-grid td[data-col=weightGrams] { min-width: 5.5rem; }
.variant-grid .form-control-sm, .variant-grid .form-select-sm { min-height: 2.25rem; font-size: .875rem; }
.variant-grid .is-changed:not(.is-invalid) { background-color: rgba(var(--tblr-primary-rgb), .07); border-color: rgba(var(--tblr-primary-rgb), .45); }
.variant-grid tr.row-selected > * { --grid-bg: rgba(var(--tblr-primary-rgb), .06); }
.variant-grid tr.row-invalid > .col-code { box-shadow: inset 3px 0 0 var(--tblr-danger); }
.variant-grid .variant-img-thumb { object-fit: cover; cursor: pointer; }
.variant-grid .spec-head { font-size: .8125rem; }
.variant-bulkbar {
    display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
    padding: .5rem 1rem; border-bottom: 1px solid var(--tblr-border-color);
    background: rgba(var(--tblr-primary-rgb), .06);
}
.variant-bulkbar.d-none { display: none !important; }
.admin-dropzone { cursor: pointer; border: 2px dashed var(--tblr-border-color); min-height: 6rem; }
.admin-dropzone:hover, .admin-dropzone:focus-visible { border-color: var(--tblr-primary); }
.cursor-move { cursor: move; }
.variant-grid .spec-head { white-space: nowrap; height: auto; display: inline-flex; align-items: baseline; gap: 0; }
.variant-grid .spec-head > * { white-space: nowrap; flex-shrink: 0; }
.variant-grid .spec-unit { margin-left: .3rem; font-weight: 400; color: var(--tblr-secondary-color); }

/* Row actions: stays visible at the right edge while the table scrolls sideways */
.variant-grid .col-actions {
    position: sticky; right: 0; z-index: 2; width: 3rem; text-align: center;
    box-shadow: inset 1px 0 0 var(--tblr-border-color);
}
.variant-grid thead .col-actions { z-index: 4; }
.variant-grid .btn-icon { min-width: 2.25rem; min-height: 2.25rem; }
.variant-grid .form-check-input { width: 1.25rem; height: 1.25rem; }

/* Column chooser */
.col-chooser { min-width: 15rem; }
.col-chooser-item { display: flex; align-items: center; gap: .75rem; min-height: 2.5rem; cursor: pointer; }
.col-chooser-item .form-switch .form-check-input { cursor: pointer; }

/* Shared specs: one row per spec — label | control | actions */
#sharedList .shared-row {
    display: grid; grid-template-columns: minmax(10rem, 14rem) 1fr auto;
    align-items: center; gap: .5rem 1.5rem; padding-top: .875rem; padding-bottom: .875rem;
}
#sharedList .shared-actions { display: flex; gap: .25rem; }
#sharedList .shared-number { max-width: 14rem; }
.chip-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
    --tblr-btn-padding-y: .375rem; --tblr-btn-padding-x: .875rem;
    min-height: 2.25rem; border-radius: 999px; font-weight: 500;
    background: var(--tblr-bg-surface); border-color: var(--tblr-border-color);
}
.chip .chip-check { display: none; margin-right: .25rem; }
.btn-check:checked + .chip {
    background: rgba(var(--tblr-primary-rgb), .1); border-color: var(--tblr-primary); color: var(--tblr-primary);
}
.btn-check:checked + .chip .chip-check { display: inline-block; }
.btn-check:focus-visible + .chip { box-shadow: 0 0 0 .2rem var(--tblr-focus-ring-color); }
@media (max-width: 767.98px) {
    #sharedList .shared-row { grid-template-columns: 1fr auto; }
    #sharedList .shared-control { grid-column: 1 / -1; grid-row: 2; }
}

tr[data-href] { cursor: pointer; }
tr[data-href]:hover > * { background-color: rgba(var(--tblr-primary-rgb), .04); }

/* ---- List pages (shared pattern) ------------------------------------------ */

.admin-toolbar {
    display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
    padding: .75rem 1rem; border-bottom: 1px solid var(--tblr-border-color);
}
.admin-toolbar .admin-search { position: relative; flex: 1 1 16rem; max-width: 26rem; }
.admin-toolbar .admin-search > .ti {
    position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--tblr-secondary-color); pointer-events: none;
}
.admin-toolbar .admin-search input { padding-left: 2.25rem; }
.admin-toolbar .form-select { width: auto; min-width: 10rem; }
.admin-toolbar .admin-toolbar-end { margin-left: auto; display: flex; align-items: center; gap: .5rem; color: var(--tblr-secondary-color); font-size: .875rem; }
.admin-list > :not(caption) > * > * { padding-top: .625rem; padding-bottom: .625rem; }
.admin-list .row-actions { white-space: nowrap; text-align: right; width: 1%; }
.admin-list .row-actions .btn-icon { min-width: 2.25rem; min-height: 2.25rem; }
.admin-list .text-sub { display: block; font-size: .8125rem; color: var(--tblr-secondary-color); }
.admin-empty { padding: 3rem 1rem; }
.admin-empty-icon {
    display: inline-grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: .75rem;
    border-radius: 50%; background: var(--tblr-bg-surface-secondary); color: var(--tblr-secondary-color); font-size: 1.5rem;
}
.admin-filter-empty { display: none; }
.card-footer:empty { display: none; }

/* Detail pages: definition lists */
.admin-dl { display: grid; grid-template-columns: minmax(8rem, 35%) 1fr; gap: .5rem 1rem; margin: 0; }
.admin-dl dt { font-weight: 400; color: var(--tblr-secondary-color); }
.admin-dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* Conversation */
.chat-list { max-height: 60vh; overflow-y: auto; display: flex; flex-direction: column; gap: .75rem; }
.chat-row { display: flex; }
.chat-out { justify-content: flex-end; }
.chat-bubble { max-width: min(42rem, 80%); padding: .75rem 1rem; border-radius: .75rem; background: var(--tblr-bg-surface-secondary); }
.chat-out .chat-bubble { background: rgba(var(--tblr-primary-rgb), .1); border: 1px solid rgba(var(--tblr-primary-rgb), .25); }
.chat-meta { font-size: .75rem; color: var(--tblr-secondary-color); margin-bottom: .25rem; }

/* Process steps (returns, orders) */
.admin-steps { display: flex; gap: .5rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.admin-steps li { display: flex; align-items: center; gap: .5rem; flex: 1 1 8rem; color: var(--tblr-secondary-color); }
.admin-steps li:not(:last-child)::after { content: ""; flex: 1; height: 2px; background: var(--tblr-border-color); min-width: 1rem; }
.admin-step-dot {
    display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; flex: 0 0 auto;
    border-radius: 50%; border: 2px solid var(--tblr-border-color); font-size: .8125rem; font-weight: 600;
}
.admin-steps li.done { color: var(--tblr-body-color); }
.admin-steps li.done .admin-step-dot { background: var(--tblr-primary); border-color: var(--tblr-primary); color: #fff; }
.admin-steps li.done:not(:last-child)::after { background: var(--tblr-primary); }
.admin-steps li.current { color: var(--tblr-body-color); font-weight: 600; }
.admin-steps li.current .admin-step-dot { border-color: var(--tblr-primary); color: var(--tblr-primary); }
.admin-timeline li { position: relative; padding-left: 1rem; padding-bottom: .75rem; border-left: 2px solid var(--tblr-border-color); }
.admin-timeline li:last-child { padding-bottom: 0; }
.admin-timeline li::before { content: ""; position: absolute; left: -5px; top: .35rem; width: 8px; height: 8px; border-radius: 50%; background: var(--tblr-primary); }
@media (max-width: 575.98px) {
    .admin-toolbar .admin-search { flex-basis: 100%; max-width: none; }
    .admin-toolbar .form-select, .admin-toolbar input[type=date] { flex: 1 1 calc(50% - .5rem); min-width: 0 !important; max-width: 100%; }
    .admin-toolbar .admin-toolbar-end { margin-left: 0; width: 100%; justify-content: space-between; }
    .admin-list .hide-sm { display: none; }
}
.admin-toolbar .form-select { max-width: 100%; text-overflow: ellipsis; }

/* Bulk selection bar (lists) */
.bulk-bar {
    position: sticky; top: var(--admin-topbar-h); z-index: 5;
    display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
    padding: .625rem 1rem; border-bottom: 1px solid var(--tblr-border-color);
    background: color-mix(in srgb, var(--tblr-primary) 8%, var(--tblr-bg-surface));
}
.bulk-bar[hidden] { display: none; }
.admin-list .bulk-cell { width: 2.75rem; }
.admin-list .bulk-cell .form-check-input { width: 1.25rem; height: 1.25rem; margin: 0; }
.admin-list tr.row-selected > * { background-color: rgba(var(--tblr-primary-rgb), .06); }
.media-select { position: absolute; top: .5rem; left: .5rem; z-index: 2; padding: .25rem; border-radius: .375rem; background: rgba(255,255,255,.85); line-height: 1; }
.media-select .form-check-input { width: 1.25rem; height: 1.25rem; margin: 0; }
.media-card:has(.bulk-row:checked) { outline: 2px solid var(--tblr-primary); }

/* ── Import page ─────────────────────────────────────────────────────────── */
.admin-howto { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: .875rem; }
.admin-howto > li { counter-increment: step; position: relative; padding-left: 2.5rem; display: flex; flex-direction: column; gap: .125rem; }
.admin-howto > li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  display: grid; place-items: center; font-weight: 600; background: var(--tblr-primary-lt, #e3f1e3); color: var(--tblr-primary);
}
.admin-rules { padding-left: 1.1rem; margin: 0; display: grid; gap: .5rem; }
.import-old { text-decoration: line-through; text-decoration-color: rgba(0,0,0,.25); }

.tabular { font-variant-numeric: tabular-nums; }

/* ── Rich text editor (detail sections) ───────────────────────────────────── */
.rte { border: 1px solid var(--tblr-border-color); border-radius: var(--tblr-border-radius); background: var(--tblr-bg-forms, #fff); }
.rte:focus-within { border-color: var(--tblr-primary); box-shadow: 0 0 0 .25rem rgba(43,125,47,.15); }
.rte-toolbar { display: flex; flex-wrap: wrap; gap: .125rem; padding: .25rem; border-bottom: 1px solid var(--tblr-border-color); }
.rte-toolbar .btn { width: 2.25rem; height: 2.25rem; border: 0; background: transparent; }
.rte-toolbar .btn:hover, .rte-toolbar .btn.active { background: var(--tblr-bg-surface-secondary, #f1f3f2); }
.rte-sep { width: 1px; margin: .25rem .25rem; background: var(--tblr-border-color); }
.rte-body { min-height: 11rem; max-height: 32rem; overflow: auto; border: 0 !important; box-shadow: none !important; border-radius: 0 0 var(--tblr-border-radius) var(--tblr-border-radius); line-height: 1.6; }
.rte-body:empty::before { content: "Metni buraya yazın veya yapıştırın…"; color: var(--tblr-secondary); }
.rte-body h3 { font-size: 1.05rem; margin: 1rem 0 .5rem; }
.rte-body p { margin: 0 0 .6rem; }
.rte-body table { border-collapse: collapse; margin: .5rem 0; }
.rte-body th, .rte-body td { border: 1px solid var(--tblr-border-color); padding: .25rem .5rem; }
.admin-pills .nav-link { display: inline-flex; align-items: center; gap: .375rem; }
.detail-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--tblr-border-color); }
.detail-dot.is-filled { background: var(--tblr-primary); }
.crossref-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) auto; gap: .5rem; align-items: center; }
.crossref-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) auto; gap: .5rem; align-items: center; }
.supply-table td { padding-top: .375rem; padding-bottom: .375rem; }
.supply-table select { min-width: 10rem; }
.admin-dl-compact { row-gap: .125rem; }
.admin-dl-compact dt { font-weight: 400; }

/* Price list: compact inline price inputs */
.price-grid input.form-control { width: 6.5rem; margin-left: auto; text-align: right; }
.price-grid input.price-grid-vat { width: 4rem; }
.price-grid .is-changed:not(.is-invalid) { background-color: rgba(var(--tblr-primary-rgb), .07); border-color: rgba(var(--tblr-primary-rgb), .45); }

/* Pages: taller editor and the Google result preview */
.rte-body-tall { min-height: 20rem; max-height: 60vh; }
.rte-body h2 { font-size: 1.2rem; margin: 1.25rem 0 .5rem; }
.serp-preview { padding: .75rem; border: 1px solid var(--tblr-border-color); border-radius: var(--tblr-border-radius); background: var(--tblr-bg-surface); font-family: Arial, sans-serif; }
.serp-url { font-size: .8125rem; color: var(--tblr-secondary); }
.serp-title { font-size: 1.125rem; line-height: 1.3; color: var(--arta-blue, #1f4e96); margin: .125rem 0; }
.serp-desc { font-size: .8125rem; line-height: 1.45; color: var(--tblr-body-color); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
[data-bs-theme="dark"] .serp-title { color: #8ab4f8; }

/* Recovery codes: two columns, easy to read and print */
.recovery-codes { columns: 2; column-gap: 2rem; font-size: 1rem; padding-left: 1.5rem; margin-bottom: 1.25rem; }
.recovery-codes li { padding: .2rem 0; letter-spacing: .05em; }

/* Reports: KPI tiles, server-rendered column chart, horizontal share bars.
   Bar colour validated (dataviz validator): #2b7d2f on light, #3e9a3b on dark surfaces. */
.report-kpi { padding: .75rem 1rem; border: 1px solid var(--tblr-border-color); border-radius: var(--tblr-border-radius); height: 100%; }
.report-chart { --bar: #2b7d2f; position: relative; height: 15rem; padding-left: 3rem; }
[data-bs-theme="dark"] .report-chart, [data-bs-theme="dark"] .report-bars-fill { --bar: #3e9a3b; }
.report-chart-grid { position: absolute; inset: 0 0 1.5rem 3rem; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.report-chart-gridline { border-top: 1px solid var(--tblr-border-color-translucent, rgba(0,0,0,.08)); position: relative; height: 0; }
.report-chart-gridline span { position: absolute; left: -3rem; top: -.55rem; width: 2.6rem; text-align: right; font-size: .75rem; color: var(--tblr-secondary); font-variant-numeric: tabular-nums; }
.report-chart-bars { position: absolute; inset: 0 0 0 3rem; display: flex; align-items: stretch; gap: 2px; }
.report-chart-col { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 1.5rem; outline: none; cursor: default; }
.report-chart-bar { background: var(--bar); border-radius: 4px 4px 0 0; min-height: 0; max-width: 2.5rem; width: 70%; margin: 0 auto; transition: opacity .12s; }
.report-chart-bar.is-empty { min-height: 1px; background: var(--tblr-border-color); }
.report-chart-col:hover .report-chart-bar, .report-chart-col:focus-visible .report-chart-bar { opacity: .8; }
.report-chart-col:focus-visible { box-shadow: inset 0 0 0 2px var(--tblr-primary); border-radius: 4px; }
.report-chart-label { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); font-size: .75rem; color: var(--tblr-secondary); white-space: nowrap; }
.report-chart-tip { display: none; position: absolute; bottom: calc(100% - 1rem); left: 50%; transform: translateX(-50%); z-index: 5; min-width: 9rem; padding: .5rem .625rem;
    background: var(--tblr-bg-surface); border: 1px solid var(--tblr-border-color); border-radius: var(--tblr-border-radius); box-shadow: 0 4px 12px rgba(0,0,0,.12); font-size: .8125rem; white-space: nowrap; }
.report-chart-tip span, .report-chart-tip strong { display: block; }
.report-chart-col:hover .report-chart-tip, .report-chart-col:focus-visible .report-chart-tip { display: block; }
.report-chart-col:first-child .report-chart-tip { left: 0; transform: none; }
.report-chart-col:last-child .report-chart-tip { left: auto; right: 0; transform: none; }
.report-bars { display: grid; gap: .5rem; }
.report-bars-row { display: grid; grid-template-columns: minmax(6rem, 10rem) 1fr auto; align-items: center; gap: .75rem; }
.report-bars-track { height: .625rem; background: var(--tblr-bg-surface-secondary, #f1f3f2); border-radius: 4px; overflow: hidden; }
.report-bars-fill { --bar: #2b7d2f; display: block; height: 100%; background: var(--bar); border-radius: 0 4px 4px 0; }
.report-bars-value { text-align: right; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .report-chart-bar { transition: none; } }
.report-range { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.report-range[hidden] { display: none; }
.report-range input[type=date] { width: auto; max-width: 10rem; }
/* Funnel (Raporlar → Ziyaretçiler): a fixed value column, so every track has the same length and bars compare honestly */
.report-bars-funnel .report-bars-row { grid-template-columns: minmax(6rem, 9rem) 1fr 14.5rem; }
