.user-editor.post-type-page .select-lang,
.user-editor.post-type-page .table-heading-languages,
.user-editor.post-type-page .table-langs,
.user-editor.post-type-page .table-langs-edit,
.user-editor.post-type-page .language-panel {
    display: none;
}
.simple-textarea button[title="Italic"],
.simple-textarea button[title="Strikethrough"],
.simple-textarea button[title="Emoticons"],
.simple-textarea button[title="Special character"],
.simple-textarea button[title="Undo"],
.simple-textarea button[title="Redo"],
.simple-textarea button[title="Superscript"],
.simple-textarea button[title="Subscript"],
.simple-textarea button[title="Justify"] {
    display: none;
}
.term-logo img {
    aspect-ratio: 5 / 3;
    object-fit: contain;
    width: 60px;
}
.activate-watermark {
    display: none;
}
/* GA4 / Search Console statistika paneli üslubları köçürüldü →
   /partials/admin/analytics/assets/style.css */

/* Anbar — sidebar */

.admin-sidebar-element[class*="sidebar-anbar"] > a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.anbar-strings {
    display: none;
}
.admin-bar-element.add-new {
    display: none;
}

/* Anbar — filtr */

/* Anbar — siyahı */

.admin-content .row-title {
    color: var(--t-ink);
    font-weight: 600;
}

.post-table .row-title {
    white-space: nowrap;
}
.admin-content .row-title:hover {
    text-decoration: underline;
}
.admin-content .post-table td a:not(.action-button):not(.button):not(.add-button):not(.anbar-product-canvas-open):not([class*="anbar-quick"]) {
    color: var(--t-ink);
    font-weight: 600;
    text-decoration: none;
}
.admin-content .post-table td a:not(.action-button):not(.button):not(.add-button):not(.anbar-product-canvas-open):not([class*="anbar-quick"]):hover {
    text-decoration: underline;
}
.anbar-list-total {
    color: #666;
    font-size: 13px;
    padding: 10px 0;
}
.tr-extra > td,
.tr-extra-open > td {
    background: #dfe1e5;
}
/* Nüvənin `.post-table tbody td` haşiyəsini üstələmək üçün tr selektoru ilə */
.post-table tbody tr.tr-extra > td,
.post-table tbody tr.tr-extra-open > td {
    border-bottom: 1px solid #bfbfbf;
}
.post-table .anbar-extra-table {
    background: transparent;
    border-collapse: collapse;
    width: auto;
}
.post-table .anbar-extra-table tr,
.post-table .anbar-extra-table thead tr {
    background: transparent !important;
}
.post-table .anbar-extra-table th,
.post-table .anbar-extra-table td {
    background: transparent;
    border: 0;
    border-bottom: 1px solid #d3d6de;
    padding: 6px 24px 6px 0;
    width: auto;
}
.post-table .anbar-extra-table th {
    font-weight: 600;
}
.post-table .anbar-extra-table th,
.post-table .anbar-extra-table td,
.post-table .anbar-extra-table .sub-text {
    color: #000;
}
.post-table .anbar-extra-table tbody tr:last-child td {
    border-bottom: 0;
}

/* Anbar — sətir əməliyyatı */

.anbar-loading {
    margin-left: 10px;
}
.disabled-button {
    opacity: 0.6;
}
/* Forma — sahə qrupu */

.admin-field-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.admin-field-group > * {
    margin: 0;
}

/* Anbar — sürətli əlavə */

.anbar-quick-row {
    align-items: center;
    display: flex;
    gap: 6px;
    width: 100%;
}
.anbar-quick-row > .searchBoxWrap {
    flex: 1 1 auto;
    min-width: 0;
}
.anbar-quick-row > select {
    flex: 1 1 auto;
    margin: 0;
    min-width: 0;
}
.anbar-quick {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
}
.anbar-quick-row.anbar-quick-open .anbar-quick {
    flex: 1 1 auto;
}
.anbar-quick .anbar-quick-name {
    flex: 1 1 auto;
    margin: 0;
    min-width: 0;
}
.admin-content .anbar-quick-add,
.admin-content .anbar-product-canvas-open,
.admin-content .anbar-canvas-button,
.admin-content .anbar-quick-save,
.admin-content .anbar-quick-cancel {
    background: #fafbfd;
    border: 1px solid #e3e6ef;
    border-radius: 5px;
    color: #4a5068;
    flex: 0 0 auto;
    font-size: 16px;
    height: 30px;
    line-height: 28px;
    text-align: center;
    text-decoration: none;
    width: 30px;
}
.admin-content .anbar-quick-add:hover,
.admin-content .anbar-product-canvas-open:hover,
.admin-content .anbar-canvas-button:hover {
    background: #3e487e;
    border-color: #3e487e;
    color: #fff;
}
.admin-content .anbar-quick-save {
    background: #2f8a4c;
    border-color: #2f8a4c;
    color: #fff;
}
.admin-content .anbar-quick-cancel:hover {
    background: #b8343a;
    border-color: #b8343a;
    color: #fff;
}
.anbar-quick .hidden,
.anbar-quick-row select.hidden {
    display: none;
}
.admin-content .anbar-repeater-remove {
    align-items: center;
    bottom: calc(4px + (35px - 28px) / 2);
    display: flex;
    height: 28px;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: -36px;
    text-decoration: none;
    width: 28px;
}

.admin-content .anbar-repeater-remove.button-danger {
    padding: 0;
    width: 28px;
}
.admin-content .anbar-lines-table .anbar-repeater-remove.button-danger {
    height: 36px;
    width: 36px;
}

/* Anbar — alt sətir bloku */

.anbar-repeater {
    width: 100%;
}
.anbar-repeater-row {
    align-items: flex-end;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 4px 0;
    position: relative;
}
.anbar-repeater-cell {
    display: flex;
    flex-direction: column;
    flex: 1 1 140px;
    min-width: 0;
}
/* Repeater və cədvəlli bloklar (qiymətlər, anbarlar üzrə qalıq, bağlanan qaimələr) başlıq üstdə, tam endə. */
.option-page .admin-element:has(.anbar-repeater) > .admin-element-1,
.option-page .admin-element:has(.anbar-repeater) > .admin-element-2,
.option-page
    .admin-element:has(
        .anbar-price-table,
        .anbar-stock-table,
        .anbar-allocations
    )
    > .admin-element-1,
.option-page
    .admin-element:has(
        .anbar-price-table,
        .anbar-stock-table,
        .anbar-allocations
    )
    > .admin-element-2 {
    width: 100%;
}
.anbar-repeater-actions {
    margin-top: 5px;
}
@media (min-width: 1366px) {
    .option-page .admin-element:has(.anbar-repeater),
    .option-page
        .admin-element:has(
            .anbar-price-table,
            .anbar-stock-table,
            .anbar-allocations
        ) {
        width: 900px;
    }
}
.anbar-repeater-cell label {
    color: #666;
    font-size: 12px;
    margin-bottom: 2px;
}
.anbar-repeater-cell input,
.anbar-repeater-cell select {
    margin: 0;
    min-width: 0;
    width: 100%;
}
.product_image .display-uploaded-image {
    max-height: 200px;
    max-width: 200px;
}
.admin-element .anbar-repeater-remove i,
.admin-element .anbar-repeater-actions i {
    color: inherit;
    font-size: inherit;
    padding-left: 0;
}
/* Anbar — lövhə */

.admin-dashboard-area {
    margin: 0;
}
.admin-dashboard-area > .admin-dashboard-block {
    display: none;
}
.section-heading .badge {
    margin-left: 6px;
    vertical-align: middle;
}
.master-accordion-title .section-heading {
    margin: 0;
}
.admin-content .section-heading .anbar-section-link {
    font-size: 13px;
    font-weight: 400;
    margin-left: 10px;
}


/* Anbar — sənəd forması */

.anbar-lines-table .anbar-repeater-row {
    border-bottom: 0;
    display: table-row;
    padding: 0;
    position: static;
}
.anbar-lines-table tbody td {
    vertical-align: top;
}
.anbar-lines-table .anbar-line-system,
.anbar-lines-table .anbar-line-diff {
    white-space: nowrap;
}
.admin-content .anbar-lines-table .anbar-repeater-remove {
    position: static;
}
.anbar-lines {
    flex: 0 0 auto;
    max-width: calc(100vw - 270px);
    width: 1100px;
}
.anbar-lines-table {
    width: 100%;
}
.anbar-lines-total {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    justify-content: flex-end;
    padding: 10px 12px;
}
.anbar-lines-total b {
    font-variant-numeric: tabular-nums;
}
.anbar-lines-total .anbar-total-main {
    font-size: 1.15em;
}
.anbar-lines-total .anbar-total-main b {
    color: var(--t-ink);
}
.anbar-lines-table th:first-child,
.anbar-lines-table td:first-child {
    width: 32%;
}
.anbar-lines-table th:last-child,
.anbar-lines-table td:last-child {
    width: 1%;
}
.anbar-lines-table input,
.anbar-lines-table select {
    margin: 0;
    min-width: 80px;
    width: 100%;
}
.anbar-repeater .refineText,
.anbar-repeater .searchBoxElement {
    width: 100% !important;
}
.anbar-repeater .searchBoxElement {
    z-index: 20;
}
.anbar-batch {
    display: flex;
    gap: 4px;
}
.anbar-discount {
    display: flex;
    gap: 4px;
}
.anbar-discount .hidden {
    display: none;
}
.anbar-lines-table .anbar-discount input {
    flex: 1 1 auto;
    min-width: 60px;
}
.anbar-lines-table .anbar-discount select {
    flex: 0 0 auto;
    min-width: 0;
    width: auto;
}
.anbar-line-balance {
    display: block;
    white-space: pre-line;
}
.anbar-doc-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.anbar-doc-actions .form-result {
    flex: 1 1 100%;
}

/* Anbar — hesabat */

.anbar-table tfoot th {
    background: #f4f4f4;
    font-weight: 600;
}

/*
 * Əmək haqqı tabeli: sətirdə 5 input var (gün, saat, mükafat, tutulma, qeyd). Defolt 100 %
 * enli input-larla cədvəl 1440 px ekranda belə ~1750 px olurdu və səhifə üfüqi sürüşürdü
 * (12 işçilik real data ilə görünür). Rəqəm sahəsinə 6–8 rəqəm kifayətdir.
 */
.anbar-payroll-lines td input[type="number"] {
    min-width: 0;
    width: 90px;
}

.anbar-payroll-lines td input[type="text"] {
    min-width: 140px;
}

/* General */
.option-page .form-description,
.anbar-canvas .form-description {
    color: var(--t-steel);
    font-weight: 400;
    font-size: 12px;
    font-style: normal;
    margin-bottom: 7px;
}

/* Anbar — canvas */

.anbar-canvas-overlay {
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    height: 100%;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000001;
}
.anbar-canvas-overlay.active-canvas-overlay {
    display: block;
}
.anbar-canvas {
    background-color: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 100%;
    position: fixed;
    right: 0;
    top: 0;
    transform: translateX(100%);
    transition:
        transform 0.25s ease,
        visibility 0.25s;
    visibility: hidden;
    width: 480px;
    z-index: 1000002;
}
.anbar-canvas.active-canvas-sidebar {
    transform: translateX(0);
    visibility: visible;
}
.anbar-canvas-head {
    align-items: center;
    border-bottom: 1px solid #e3e5ea;
    display: flex;
    font-weight: 600;
    justify-content: space-between;
    padding: 14px 20px;
}
.anbar-canvas-close {
    color: #4a5068;
    font-size: 18px;
}
.anbar-canvas-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 16px 20px;
}
.anbar-canvas .admin-element {
    display: block;
    margin-bottom: 12px;
}
.anbar-canvas .admin-element-block {
    max-width: 100%;
    width: 100%;
}
body.anbar-canvas-open {
    overflow: hidden;
}

/* Anbar — siyahının çapı */

@media print {
    .admin-bar,
    .admin-sidebar,
    .page-title a,
    .table-heading-area,
    .action-buttons,
    .anbar-extra-button,
    .pagination,
    .tr-extra {
        display: none !important;
    }
    body,
    .admin-content {
        background: #fff;
    }
    .admin-content {
        margin: 0;
        padding: 0;
        width: 100%;
    }
    .post-table {
        border: 0;
    }
    .post-table th,
    .post-table td {
        border-bottom: 1px solid #ccc;
        color: #000;
    }
}

/* Nüvədə display_info() var, amma .alert-info stili yoxdur (kopya bildirişi və s.) */
.alert-info {
    border-left-color: #2271b1;
}
.alert-info a {
    text-decoration: underline;
}

/* Input-un dərhal altındakı checkbox (məs. «Tam ödənilib») input-a yapışmasın. */
.admin-element-2 input + .admin-form-checkbox {
    margin-top: 10px;
}

/* Məhsul kartı: qalıq minimumdan aşağı olan anbar */

/*
 * .anbar-table-fit — birinci sütun (ad) sıxılmır: məzmunu qədər en, bir sətir; qalan en
 * digər sütunlara (input-lar) qalır. Altdakı .sub-text ad ilə yan-yana yazılır.
 * İstifadə: <table class="master-table post-table anbar-table anbar-table-fit">
 */
.anbar-table-fit td:first-child,
.anbar-table-fit th:first-child {
    white-space: nowrap;
    width: 1%;
}
.anbar-table-fit td:first-child .sub-text {
    display: inline;
    margin-left: 4px;
}

/* Məhsul kartı, «Qiymətlər»: son alış mayası və marja */
.anbar-last-cost {
    margin-bottom: 10px;
    font-weight: 600;
}
.anbar-price-table .anbar-margin {
    margin-top: 3px;
}
.anbar-price-table .anbar-margin-low {
    color: #d33434;
}

/* Bir sətirdə bir neçə sahə (məs. açılış borcu: istiqamət · məbləğ · tarix) */
.anbar-inline-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.anbar-inline-fields > * {
    flex: 1 1 160px;
    min-width: 0;
}

/* Məhsul kartı, açılış qalığı tarixi — cədvəlin üstündə */
.anbar-opening-date {
    align-items: center;
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}
.anbar-opening-date input {
    max-width: 180px;
}

/* Hesabatlar səhifəsi — hər hesabat bir kart */
.anbar-report-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.anbar-report-card {
    --card-accent: #5b6572;
    --card-tint: #eef0f3;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #dfe1e5;
    border-radius: 8px;
    box-shadow: inset 3px 0 0 var(--card-accent);
    box-sizing: border-box;
    color: inherit;
    display: flex;
    flex: 0 0 calc((100% - 45px) / 4);
    gap: 14px;
    height: 116px;
    overflow: hidden;
    padding: 16px 16px 16px 19px;
    text-decoration: none;
    transition:
        border-color 0.15s,
        box-shadow 0.15s,
        transform 0.15s;
}
.anbar-report-card:hover {
    border-color: var(--card-accent);
    box-shadow:
        inset 3px 0 0 var(--card-accent),
        0 6px 16px rgba(23, 32, 43, 0.08);
    transform: translateY(-2px);
}
.anbar-report-card-icon {
    align-items: center;
    background: var(--card-tint);
    border-radius: 8px;
    color: var(--card-accent);
    display: flex;
    flex: 0 0 40px;
    font-size: 19px;
    height: 40px;
    justify-content: center;
}
.anbar-report-card:hover .anbar-report-card-icon {
    background: var(--card-accent);
    color: #fff;
}
.anbar-report-card-body {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}
.anbar-report-card-title {
    color: #17202b;
    font-weight: 600;
}
.anbar-report-card-text {
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    color: #666;
    display: -webkit-box;
    font-size: 13px;
    line-height: 1.4;
    overflow: hidden;
}
.anbar-report-stock .anbar-report-card {
    --card-accent: #1d5fa8;
    --card-tint: #e4eefa;
}
.anbar-report-finance .anbar-report-card {
    --card-accent: #12b157;
    --card-tint: #e2f5e9;
}
.anbar-report-field .anbar-report-card {
    --card-accent: #f76707;
    --card-tint: #fff0e3;
}
.anbar-report-field_sales .anbar-report-card {
    --card-accent: #7048e8;
    --card-tint: #efeafd;
}
@media (max-width: 1400px) {
    .anbar-report-card { flex-basis: calc((100% - 30px) / 3); }
}
@media (max-width: 1000px) {
    .anbar-report-card { flex-basis: calc((100% - 15px) / 2); }
}
@media (max-width: 600px) {
    .anbar-report-card { flex-basis: 100%; }
}

/* Əməliyyat blokunda izah tam sətirdə (düymələrin altında) */
.anbar-doc-actions .form-description {
    flex: 1 1 100%;
}
.anbar-doc-actions .admin-form-submit {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ------------------------------------------------------------------
 * ƏSAS LÖVHƏ — lakonik: ağ panellər, sarı vurğu (--t-tape) yalnız ən yaxşı gündə. Kartlar qlobal `info-card`, cədvəllər qlobal `post-table`-dır.
 * Rəng MƏNA daşıyır: artım yaşıl, azalma qırmızı, diqqət dərəcəsi ton zolağı ilə.
 * ------------------------------------------------------------------ */
.anbar-dashboard {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}
.anbar-dashboard .info-cards {
    margin-bottom: 0;
}
a.info-card {
    color: inherit;
    text-decoration: none;
    transition: border-color .15s, transform .15s;
}
a.info-card:hover {
    border-color: var(--card-accent);
    transform: translateY(-1px);
}

/* 1. Xülasə sətri — sadə: ağ panel, sütunlar nazik xətlə ayrılır, bəzək yoxdur */
.dash-hero {
    background: #fff;
    border: 1px solid #dfe1e5;
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
}
.dash-hero-main,
.dash-kpi {
    padding: 18px 22px;
}
.dash-hero-main {
    flex: 1.4 1 280px;
}
.dash-kpi {
    border-left: 1px solid #eef0f3;
    flex: 1 1 160px;
}
.dash-hero-label,
.dash-kpi-label {
    color: #6b7280;
    font-size: 13px;
}
.dash-hero-value {
    font-size: 32px;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin: 4px 0;
    white-space: nowrap;
}
.dash-hero-meta {
    color: #6b7280;
    font-size: 12.5px;
}
.dash-kpi-meta {
    font-size: 12.5px;
}
.dash-kpi-value {
    font-size: 20px;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    margin: 4px 0;
    white-space: nowrap;
}

/* 2. Diqqət kartları — qlobal info-card; burada yalnız rəqəmin ölçüsü */
.dash-attention .info-card-value {
    font-size: 28px;
}

/* 3. İki sütun */
.dash-grid {
    align-items: flex-start;
    display: flex;
    gap: 20px;
}
.dash-main {
    flex: 1 1 0;
}
.dash-side {
    flex: 0 0 360px;
}
.dash-main,
.dash-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}
.dash-panel {
    background: #fff;
    border: 1px solid #dfe1e5;
    border-radius: 10px;
    padding: 16px 18px;
}
.dash-panel-flush {
    padding: 16px 0 0;
}
.dash-panel-flush .dash-panel-head {
    padding: 0 18px;
}
.dash-panel-flush .post-table {
    border: 0;
    border-radius: 0 0 10px 10px;
    margin: 0;
}
.dash-panel-head {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 12px;
}
.admin-content .dash-panel-head h2 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}
.dash-panel-head a {
    font-size: 13px;
    white-space: nowrap;
}
.dash-panel-total {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    white-space: nowrap;
}

/* Böyük qrafik: orta xətt, ən yaxşı gün sarı, bu gün tünd haşiyəli */
.dash-legend {
    color: #6b7280;
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    gap: 14px;
}
.dash-legend i {
    border-radius: 2px;
    display: inline-block;
    height: 10px;
    margin-right: 5px;
    vertical-align: -1px;
    width: 10px;
}
.dash-legend-avg {
    border-top: 2px dashed #8a8f98;
    height: 0 !important;
    vertical-align: 3px !important;
}
.dash-legend-best {
    background: var(--t-tape);
}
.dash-chart {
    align-items: flex-end;
    display: flex;
    gap: 4px;
    height: 200px;
    position: relative;
}
.dash-chart-avg {
    border-top: 2px dashed #8a8f98;
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    z-index: 1;
}
.dash-chart-col {
    align-items: flex-end;
    background: #f1f3f6;
    border-radius: 4px 4px 0 0;
    display: flex;
    flex: 1 1 0;
    height: 100%;
    position: relative;
}
.dash-chart-bar {
    background: #17202b;
    border-radius: 4px 4px 0 0;
    width: 100%;
}
.dash-chart-col:hover .dash-chart-bar {
    background: #3a4656;
}
.dash-chart-best .dash-chart-bar {
    background: var(--t-tape);
}
.dash-chart-today {
    box-shadow: inset 0 0 0 2px #17202b;
}
.dash-chart-col:hover::after {
    background: #17202b;
    border-radius: 4px;
    bottom: 100%;
    color: #fff;
    content: attr(data-tip);
    font-size: 11px;
    left: 50%;
    margin-bottom: 4px;
    padding: 4px 7px;
    position: absolute;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 3;
}
.dash-chart-axis {
    color: #8a8f98;
    display: flex;
    font-size: 11px;
    gap: 4px;
    margin-top: 6px;
}
.dash-chart-axis span {
    flex: 1 1 0;
    white-space: nowrap;
}

/* Sağ sütunun sətirləri */
.dash-row {
    align-items: center;
    border-bottom: 1px solid #eef0f3;
    color: inherit;
    display: flex;
    gap: 10px;
    padding: 9px 0;
    text-decoration: none;
}
.dash-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
.dash-row > .fe {
    align-items: center;
    background: #eef0f3;
    border-radius: 50%;
    color: #5b6572;
    display: inline-flex;
    flex: 0 0 30px;
    height: 30px;
    justify-content: center;
}
.dash-row-name {
    flex: 1 1 auto;
    min-width: 0;
}
.dash-row-value {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    white-space: nowrap;
}
.dash-rank {
    align-items: center;
    background: #17202b;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex: 0 0 24px;
    font-size: 12px;
    font-weight: 600;
    height: 24px;
    justify-content: center;
}
.dash-bar-row + .dash-bar-row {
    margin-top: 12px;
}
.dash-bar-head {
    display: flex;
    font-size: 13px;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 5px;
}
.dash-bar-head span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dash-bar-head span:last-child {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    white-space: nowrap;
}
.dash-bar-track {
    background: #eef0f3;
    border-radius: 4px;
    height: 6px;
}
.dash-bar-fill {
    background: #5b6572;
    border-radius: 4px;
    height: 100%;
}

@media (max-width: 1280px) {
    .dash-grid {
        align-items: stretch;
        flex-direction: column;
    }
    .dash-side {
        flex-basis: auto;
    }
}
@media (max-width: 768px) {
    .dash-kpi {
        border-left: 0;
        border-top: 1px solid #eef0f3;
    }
    .dash-chart {
        gap: 2px;
        height: 150px;
    }
}

/* Sənəd sətirləri: Excel yükləmə düyməsi və şablon linki «Məhsul əlavə et» ilə bir sırada */
.anbar-repeater-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.anbar-sheet-upload {
    cursor: pointer;
    margin: 0;
}
/* Brauzerin «Choose file» sahəsi görünməsin — düymə (label) faylı özü açır. */
.anbar-sheet-upload input[type="file"] {
    display: none;
}
.anbar-sheet-template {
    font-size: 13px;
}
.anbar-sheet-result:not(:empty) {
    margin-top: 10px;
}

/* Yalnız-backend layihə (backend.md §8a): publik sayt yoxdur — «Saytı ziyarət et» yalnız panelə geri yönləndirir. */
.admin-bar .go-site {
    display: none;
}

/* VAT rate */
.anbar-vat-rate[readonly] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Base unit */
.anbar-base-uom {
    flex: 0 0 auto;
    white-space: nowrap;
}
.anbar-quick-row > input {
    flex: 1 1 auto;
    margin: 0;
    min-width: 0;
}
.anbar-doc-discount select {
    flex: 0 0 150px;
}

@media (max-width: 768px) {
    .anbar-table td {
        white-space: nowrap;
    }
}

/* Köməkçi başlıq düymələri (Excel, çap, sayım vərəqi) — `extra-button`: yaşıl fon, ağ yazı.
   `:first-of-type` qaydasını da üstələməlidir (sənəd kartında çap birinci gəlir). */
.admin-content .page-title .add-button.extra-button {
    background: #219362;
    border-color: #219362;
    color: #fff !important;
}
.admin-content .page-title .add-button.extra-button:hover {
    background: #219362;
    border-color: #219362;
    color: #fff !important;
    filter: brightness(0.93);
}

/* Sahə — rəqib qiymətləri: ucuz olan qiymətin xanası */
.post-table td.mms-price-cheaper {
    background: #e7f6ec;
    color: #15803d;
    font-weight: 600;
}
.mms-position {
    align-items: center;
    background: #5a81d8;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    font-size: 12px;
    height: 20px;
    justify-content: center;
    width: 20px;
}
.mms-position-cheaper {
    background: #15e462;
}
.mms-position-expensive {
    background: #be2d2d;
}

/* Ayarlar tabları */
.anbar-settings-pane { width: 100%; }
.tabs-body > .anbar-settings-pane { flex-direction: column; }
.anbar-settings-pane .site-form-block { margin-top: 0; }

/* Lövhə — sahə kartları */
.dash-field-cards .info-card {
    flex: 1 1 0;
    min-width: 150px;
}
.anbar-dashboard > .section-heading {
    margin-top: 0;
}
.dash-side .mms-dash-panel {
    margin-bottom: 0;
}
