.report-page-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #d3d9e4;
    border-radius: 10px;
    background: #fff;
    color: #16253e;
    font-size: 13px;
    font-weight: 750;
    padding: 10px 13px;
    text-decoration: none;
}

.report-page-link:hover {
    background: #f6f9fd;
    border-color: #a8b8d2;
    color: #121e32;
}

.report-subnav {
    display: inline-flex;
    gap: 4px;
    margin: 0 0 20px;
    padding: 4px;
    border: 1px solid #e4e7ed;
    border-radius: 11px;
    background: #fff;
}

.report-subnav a {
    border-radius: 7px;
    color: #6e737c;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 11px;
    text-decoration: none;
}

.report-subnav a:hover,
.report-subnav a.active {
    background: #eef2f8;
    color: #16253e;
}

.report-dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.report-dashboard-metric {
    display: flex;
    min-height: 175px;
    flex-direction: column;
    border: 1px solid #eaecef;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(14, 24, 41, .035);
    padding: 21px;
}

.report-dashboard-metric-today {
    border-color: #132137;
    background: linear-gradient(135deg, #0f1a2b, #172842);
}

.report-metric-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #6e737c;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .15px;
}

.report-dashboard-metric-today .report-metric-topline {
    color: #e3eaf5;
}

.report-dashboard-metric > strong {
    margin: 18px 0 7px;
    color: #0e1727;
    font-size: 28px;
    letter-spacing: -.9px;
    line-height: 1;
}

.report-dashboard-metric > strong small {
    color: #787f8a;
    font-size: 13px;
    letter-spacing: 0;
}

.report-dashboard-metric-today > strong,
.report-dashboard-metric-today > strong small {
    color: #fff;
}

.report-dashboard-metric > p {
    margin: 0;
    color: #70757e;
    font-size: 12px;
}

.report-dashboard-metric-today > p {
    color: #e0e7f2;
}

.report-comparison-note {
    margin-top: auto;
    padding-top: 14px;
    color: #91969e;
    font-size: 11px;
}

.report-dashboard-metric-today .report-comparison-note {
    color: #dce4f1;
}

.report-growth {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 7px 5px 5px;
}

.report-growth-icon {
    display: inline-grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border-radius: 50%;
    font-size: 13px;
    line-height: 1;
}

.report-growth.is-positive {
    background: #e9f8ef;
    color: #197447;
}

.report-growth.is-positive .report-growth-icon {
    background: #c9efd7;
}

.report-growth.is-negative {
    background: #fff0f1;
    color: #b23b4c;
}

.report-growth.is-negative .report-growth-icon {
    background: #ffd8dc;
}

.report-growth.is-neutral {
    background: #eff1f4;
    color: #6a7079;
}

.report-growth.is-neutral .report-growth-icon {
    background: #dfe2e6;
}

.report-dashboard-metric-today .report-growth.is-positive {
    background: #d7f5e1;
    color: #17673f;
}

.report-dashboard-metric-today .report-growth.is-negative {
    background: #ffe1e5;
    color: #9a3040;
}

.report-dashboard-metric-today .report-growth.is-neutral {
    background: #e8edf5;
    color: #15233b;
}

.report-daily-filter-card {
    margin-bottom: 15px;
    border: 1px solid #eaecef;
    border-radius: 14px;
    background: #fff;
    padding: 15px;
}

.report-daily-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.report-daily-summary article {
    border: 1px solid #eaecef;
    border-radius: 13px;
    background: #fff;
    padding: 18px;
}

.report-daily-summary span {
    display: block;
    color: #757a82;
    font-size: 12px;
}

.report-daily-summary strong {
    display: block;
    margin-top: 7px;
    color: #0e1727;
    font-size: 25px;
    letter-spacing: -.6px;
}

.report-daily-summary small {
    color: #787f8a;
    font-size: 12px;
    letter-spacing: 0;
}

.customer-view-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.customer-edit-panel {
    margin: 0 0 18px;
    padding: 18px;
    border: 1px solid #eaecef;
    border-radius: 14px;
    background: #fff;
}

.customer-edit-panel legend {
    padding: 0 4px;
    color: #0e1727;
    font-size: 14px;
    font-weight: 750;
}

.customer-edit-field {
    display: block;
    margin-bottom: 12px;
    color: #757a82;
    font-size: 12px;
    font-weight: 650;
}

.customer-edit-field input,
.customer-edit-field textarea {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    border: 1px solid #dadde2;
    border-radius: 9px;
    background: #fff;
    color: #0e1727;
    font-size: 14px;
    font-family: inherit;
}

.customer-edit-field textarea {
    min-height: 60px;
    resize: vertical;
}

.customer-edit-field input:focus,
.customer-edit-field textarea:focus {
    outline: 2px solid #15243d;
    outline-offset: 1px;
}

.customer-edit-actions {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.customer-edit-actions button {
    border: 0;
    border-radius: 9px;
    padding: 10px 15px;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
}

#customer-edit-save {
    background: #15243d;
    color: #fff;
}

#customer-edit-save:hover {
    background: #132036;
}

#customer-edit-cancel {
    background: #eef2f8;
    color: #16253e;
}

#customer-edit-cancel:hover {
    background: #e1e7f1;
}

#customer-edit-error:not(:empty) {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff1f2;
    color: #9f1239;
    font-size: 13px;
}

@media (max-width: 1200px) and (min-width: 981px) {
    .report-dashboard-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .report-dashboard-metrics {
        grid-template-columns: 1fr;
    }

    .report-dashboard-metric {
        min-height: 150px;
    }
}

@media (max-width: 700px) {
    .report-subnav {
        display: flex;
        width: 100%;
    }

    .report-subnav a {
        flex: 1;
        text-align: center;
    }

    .report-daily-summary {
        grid-template-columns: 1fr;
    }

    .report-page-link {
        width: 100%;
        justify-content: center;
    }
}
.report-trend-card .report-trend-chart-wrap{height:184px;padding-top:8px;overflow:hidden}
.report-trend-point{cursor:pointer;touch-action:manipulation}
.report-trend-hit{pointer-events:all}
.report-trend-point[aria-pressed="true"] .report-trend-bar,.report-trend-point:focus .report-trend-bar{stroke:#14253e;stroke-width:2}
.report-trend-value{min-height:2.5em;margin:10px 0 0;font-size:13px;font-weight:650;color:#24364e}

/* Tablonun minimum genişliği grid kartını ve tüm sayfayı büyütmesin. */
.report-ranking-grid > .report-card {
    min-width: 0;
    max-width: 100%;
}
.report-ranking-grid .report-card-head > div {
    min-width: 0;
    overflow-wrap: anywhere;
}
.report-ranking-grid .report-period-badge { flex-shrink: 0; }
.report-ranking-grid .report-table-scroll {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.report-ranking-grid .report-compact-table td:first-child { overflow-wrap: anywhere; }
@media (max-width: 980px) {
    .report-ranking-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
    .report-ranking-grid .report-product-copy strong,
    .report-ranking-grid .report-product-copy span,
    .report-ranking-grid .report-product-total {
        white-space: normal;
        overflow-wrap: anywhere;
        min-width: 0;
    }
}

/* Kart ve ödeme simgeleri: renk, ödeme türünü ve rakamın anlamını bir bakışta ayırır; metin yine yanında durur. */
.stat-icon {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: #eef2f8;
    color: #16253e;
}

.stat-icon .ui-icon {
    width: 18px;
    height: 18px;
    margin: 0;
}

.stat-icon-cash, .stat-icon-profit { background: #e7f6ec; color: #1d7a45; }
.stat-icon-card { background: #e8f0fe; color: #2355a2; }
.stat-icon-credit { background: #fff4dc; color: #9a5a00; }
.stat-icon-items { background: #f1ecfb; color: #5b3fa3; }
.stat-icon-return { background: #fdecea; color: #a3281e; }
.stat-icon-cost { background: #eef1f4; color: #4b5563; }
.stat-icon-expense { background: var(--sb-orange-soft); color: var(--sb-orange-ink); }
.stat-icon-net { background: #e6f6f5; color: #0f766e; }
.stat-icon-time, .stat-icon-sales { background: #eef2f8; color: #16253e; }

.report-daily-summary .report-stat-label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.report-daily-summary .stat-icon {
    display: inline-grid;
}

.report-metric-topline .report-stat-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.report-dashboard-metric-today .stat-icon {
    background: rgba(255, 255, 255, .13);
    color: #fff;
}

.report-subnav a .ui-icon {
    margin-right: 6px;
}

/* Fiş listesindeki ödeme dağılımı: yalnız tutarı olan ödeme türleri, türüne göre renkli. */
.pay-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
}

.pay-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px 3px 7px;
    border-radius: 999px;
    background: #f1f3f6;
    color: #2b3442;
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
}

.pay-chip .ui-icon {
    width: 14px;
    height: 14px;
    margin: 0;
}

.pay-chip-cash { background: #e7f6ec; color: #1d6b3f; }
.pay-chip-card { background: #e8f0fe; color: #1f4f99; }
.pay-chip-credit { background: #fff4dc; color: #855000; }
.pay-chip-swap { background: #f1ecfb; color: #5b3fa3; }
.pay-chip-iban { background: #e3f4f1; color: #0f5f58; }
.stat-icon-iban { background: #e3f4f1; color: #0f766e; }
/* IBAN raporu açıkken tahsilat kutuları dörtlüdür (nakit, kart, IBAN, veresiye). */
.report-daily-summary.has-iban { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.report-iban-accounts { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.report-iban-accounts span { white-space: nowrap; }
@media (max-width: 980px) { .report-daily-summary.has-iban { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .report-daily-summary.has-iban { grid-template-columns: 1fr; } .report-iban-accounts span { white-space: normal; } }

/* Gün raporu ve satış kayıtları: Bugün / Dün / önceki-sonraki gün ve tarih seçimi. */
.report-day-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 16px; }
.report-daily-filter-card .report-day-switch { margin-bottom: 12px; }
.report-day-switch > a { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 7px 14px; border: 1px solid #e1e5ec; border-radius: 10px; background: #fff; color: #16253e; font-size: 13px; font-weight: 700; text-decoration: none; }
.report-day-switch > a:hover { border-color: #a8b8d2; background: #f6f9fd; }
.report-day-switch > a.active { border-color: var(--sb-navy); background: var(--sb-navy); color: #fff; }
.report-day-switch .report-day-step { min-width: 38px; padding: 7px 0; font-size: 18px; line-height: 1; }
.report-day-form { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.report-day-form label { color: #6b7380; font-size: 12px; }
.report-day-form input { height: 38px; padding: 0 10px; border: 1px solid #d3d9e4; border-radius: 10px; background: #fff; }
.report-day-form button { height: 38px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--sb-orange); color: var(--sb-navy); font-weight: 800; }
.report-day-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.report-daily-summary .report-day-change { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.report-daily-summary .report-day-change .report-growth { display: inline-flex; }
.report-daily-summary .report-day-change .report-growth-icon { display: inline-grid; }
.report-hourly-card { margin-bottom: 18px; }
.report-hour-axis { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); color: #8b919a; font-size: 11px; font-variant-numeric: tabular-nums; text-align: center; }
.report-trend-bar.is-negative { fill: #b02a37; }
@media (max-width: 1100px) { .report-day-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
    .report-subnav { overflow-x: auto; }
    .report-subnav a { flex: 1 0 auto; white-space: nowrap; }
    .report-day-summary { grid-template-columns: minmax(0, 1fr); }
    .report-day-form { width: 100%; margin-left: 0; }
    .report-day-form input { flex: 1; min-width: 0; }
}

/* Gün raporu tarih aralığı: etiket ve kutu birlikte durur; dar ekranda iki sütun, düğme tam genişlik. */
.report-range-form .report-date-field { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 12px; font-weight: 700; color: #70757c; }
.report-range-form .report-date-field input { font-size: 15px; font-weight: 500; color: #22252b; }
@media (max-width: 700px) {
    .report-range-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .report-range-form .report-date-field { flex-direction: column; align-items: stretch; gap: 4px; }
    .report-range-form .report-date-field input { min-width: 0; width: 100%; }
    .report-range-form button { grid-column: 1 / -1; }
}
