/* Bazaarcan kontrol paneli — kompakt SR tarzı düzen. -hasancancap */

/* Sayfa başlığı */
body.bz-dash-page .page-head {
    margin-bottom: 14px;
    align-items: center;
}

body.bz-dash-page .page-head h1 {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

body.bz-dash-page .content.bz-box {
    padding: 18px 20px 24px;
}

/* Grid ve kart yoğunluğu */
.bz-dash .grid {
    gap: 10px;
    margin-bottom: 10px;
}

.bz-dash .card {
    padding: 14px 16px;
    border-radius: 12px;
}

.bz-dash .card:hover {
    transform: none;
}

.bz-dash .kpi {
    padding: 12px 14px;
    border-radius: 12px;
}

.bz-dash .kpi:hover {
    transform: none;
}

.bz-dash .kpi .kl {
    font-size: 0.68rem;
    letter-spacing: 0.04em;
}

.bz-dash .kpi .kl i {
    font-size: 0.85rem;
}

.bz-dash .kpi .kv {
    font-size: 1.28rem;
    margin-top: 0.35rem;
}

.bz-dash .kpi-feat .kv {
    font-size: 1.42rem;
}

/* Kart başlıkları — tek tip hizalama */
.bz-dash .chead.bz-dash-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 10px;
    padding: 0 0 10px;
    border-bottom: 1px solid var(--line);
    flex-wrap: nowrap;
}

.bz-dash .chead.bz-dash-card-head h3 {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
    white-space: nowrap;
}

.bz-dash .chead.bz-dash-card-head h3 i {
    font-size: 0.95rem;
}

.bz-dash .chead.bz-dash-card-head .link {
    font-size: 0.75rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.bz-dash-kpis .kpi .kl {
    letter-spacing: 0.04em;
}

.bz-dash-panels {
    margin-bottom: 0;
}

.bz-dash-chart-tabs {
    flex-shrink: 0;
}

.bz-dash-chart-tabs.seg button {
    font-size: 0.72rem;
    padding: 0.24rem 0.5rem;
}

.bz-dash .chart-value {
    margin: 0.15rem 0 0.1rem;
}

.bz-dash .chart-value .big {
    font-size: 1.3rem;
}

.bz-dash-chart {
    min-height: 220px;
    margin-top: 0;
}

.bz-dash-sales-tbl th:last-child,
.bz-dash-sales-tbl td:last-child {
    text-align: right;
}

.bz-dash-sales-tbl td strong {
    font-weight: 600;
    color: var(--ink-soft);
    font-size: 0.82rem;
}

.bz-dash .tbl-wrap table.tbl {
    font-size: 0.8rem;
}

.bz-dash table.tbl th {
    font-size: 0.66rem;
    padding: 0 8px 7px;
}

.bz-dash table.tbl td {
    padding: 7px 8px;
}

.bz-dash-updated {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--line-2);
    font-size: 0.72rem;
    color: var(--ink-mute);
    font-weight: 500;
}

@media (max-width: 980px) {
    .bz-dash-chart-tabs {
        width: auto;
        margin-top: 0;
    }

    .bz-dash-chart-card .chead.bz-dash-card-head {
        flex-wrap: wrap;
    }
}

/* Alt bölüm — col-4 / col-8 */
.bz-dash-bottom.r-4-8 {
    grid-template-columns: 1fr 2fr;
    margin-top: 10px;
    margin-bottom: 0;
}

@media (max-width: 1199.98px) {
    .bz-dash-bottom.r-4-8 {
        grid-template-columns: 1fr;
    }
}

.bz-dash-side {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.bz-dash-list,
.bz-dash-prefs {
    padding-top: 2px;
}

.bz-dash-list-row,
.bz-dash-pref-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 0;
}

.bz-dash-list-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink-soft);
    text-decoration: none;
    min-width: 0;
}

.bz-dash-list-label:hover {
    color: var(--em-deep);
}

.bz-dash-list-label i {
    font-size: 0.9rem;
    flex-shrink: 0;
}

.bz-dash-list-label i.tone-ok {
    color: var(--em-deep);
}

.bz-dash-list-label i.tone-warn {
    color: var(--warn);
}

.bz-dash-list-label i.tone-mute {
    color: var(--ink-mute);
}

.bz-dash .hr {
    margin: 0;
}

.bz-dash-pref-row {
    align-items: flex-start;
}

.bz-dash-pref-copy {
    flex: 1;
    min-width: 0;
}

.bz-dash-pref-copy strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 2px;
    line-height: 1.25;
}

.bz-dash-pref-copy p {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.35;
    color: var(--ink-mute);
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bz-dash-pref-state {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 0.85rem;
    margin-top: 1px;
}

.bz-dash-pref-state.on {
    background: rgba(15, 157, 99, 0.12);
    color: var(--pos);
}

.bz-dash-pref-state.off {
    background: rgba(224, 73, 75, 0.1);
    color: var(--neg);
}

.bz-dash-orders-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.bz-dash-orders-wrap {
    flex: 1;
    max-height: 480px;
    overflow: auto;
    margin-top: 2px;
}

.bz-dash-orders-empty {
    text-align: center;
    color: var(--ink-mute);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 20px 10px !important;
}

.bz-dash-orders-tbl .amt b {
    margin-left: 4px;
    font-size: 0.8rem;
    font-weight: 700;
}

.bz-dash-orders-tbl .amt.is-canceled .tag,
.bz-dash-orders-tbl .amt.is-canceled b {
    text-decoration: line-through;
    opacity: 0.65;
}

.bz-dash-orders-tbl .ord-id {
    white-space: nowrap;
    font-size: 0.78rem;
}

.bz-dash-orders-tbl .ord-id a {
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

.bz-dash-orders-tbl .ord-id a:hover {
    color: var(--em-deep);
}

.bz-dash-orders-tbl .st {
    font-size: 0.68rem;
    padding: 0.18rem 0.45rem;
}

.bz-dash-orders-tbl .tag {
    font-size: 0.66rem;
    padding: 0.16rem 0.45rem;
}

.bz-dash-late {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 15px;
    height: 15px;
    margin-left: 3px;
    padding: 0 3px;
    border-radius: 3px;
    background: var(--neg);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1;
    vertical-align: middle;
    cursor: help;
}

.bz-dash-house-sent {
    margin-left: 3px;
    color: var(--em-deep);
    font-size: 0.82rem;
    vertical-align: middle;
}

.bz-dash-house-eligible {
    margin-left: 3px;
    color: var(--ink-mute);
    font-size: 0.82rem;
    vertical-align: middle;
}

.bz-dash-action {
    background: var(--bg-3);
    color: var(--ink-mute);
    font-weight: 600;
}

.bz-dash-list .tag.warn {
    background: rgba(214, 138, 12, 0.12);
    color: var(--warn);
}

.bz-dash-list .tag {
    font-size: 0.66rem;
    padding: 0.16rem 0.45rem;
}

/* Alt satır — çok satan ürünler / kategoriler — hasancancap */
.bz-dash-foot.r-7-5 {
    grid-template-columns: 7fr 5fr;
    margin-top: 10px;
    margin-bottom: 0;
}

@media (max-width: 1199.98px) {
    .bz-dash-foot.r-7-5 {
        grid-template-columns: 1fr;
    }
}

.bz-dash-bestsellers-wrap {
    max-height: 420px;
    overflow: auto;
    margin-top: 2px;
}

.bz-dash-bestsellers-tbl .bz-dash-prod-thumb {
    width: 40px;
    padding-right: 4px;
}

.bz-dash-bestsellers-tbl .bz-dash-prod-thumb img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--line);
    display: block;
}

.bz-dash-bestsellers-tbl .bz-dash-prod-title {
    max-width: 180px;
}

.bz-dash-bestsellers-tbl .bz-dash-prod-title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink-soft);
    text-decoration: none;
}

.bz-dash-bestsellers-tbl .bz-dash-prod-title a:hover {
    color: var(--em-deep);
}

.bz-dash-asin {
    border: 0;
    background: none;
    padding: 0;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--ink-mute);
    cursor: pointer;
}

.bz-dash-asin:hover {
    color: var(--em-deep);
}

.bz-dash-prod-cat {
    font-size: 0.76rem;
    color: var(--ink-mute);
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bz-dash-qty {
    background: rgba(59, 111, 224, 0.1);
    color: var(--info);
    font-weight: 700;
}

.bz-dash-empty {
    text-align: center;
    color: var(--ink-mute);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 24px 10px !important;
}

.bz-dash-categories-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.bz-dash-categories-body {
    flex: 1;
    min-height: 200px;
    max-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

.bz-dash-categories-empty {
    margin: 0;
    text-align: center;
    font-size: 0.8rem;
    color: var(--ink-mute);
    font-weight: 500;
}

.bz-dash-categories-list {
    width: 100%;
    padding-top: 4px;
}

.bz-dash-cat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line-2);
}

.bz-dash-cat-row:last-child {
    border-bottom: 0;
}

.bz-dash-cat-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink-soft);
}
