* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    color: #172033;
    background: #f6f8fb;
}

body {
    min-height: 100vh;
}

.app-shell {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 250px;
    display: flex;
    flex-direction: column;
    padding: 16px 16px 12px;
    color: #d9e0ea;
    background: #111827;
    overflow: hidden;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 10px 14px;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #fff;
    color: #111827;
    font-weight: 800;
}

.brand strong,
.brand span {
    display: block;
}

.brand strong {
    color: #fff;
    font-size: 16px;
}

.brand span {
    margin-top: 3px;
    color: #8491a5;
    font-size: 11px;
}

.nav {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    overflow: hidden;
}

.nav-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-group-label {
    padding: 0 13px 6px;
    color: #6d7b8f;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 34px;
    padding: 0 13px;
    border-radius: 9px;
    color: #aab4c4;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.nav a:hover {
    color: #fff;
    background: #1d2635;
}

.nav a.active {
    color: #fff;
    background: #2b3546;
}

.nav-icon {
    width: 20px;
    text-align: center;
    font-size: 18px;
}

.nav-separator {
    height: 1px;
    margin: 12px 8px;
    background: #283243;
}

.sidebar-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 17px 8px 0;
    border-top: 1px solid #283243;
}

.avatar {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    color: #fff;
    background: #3a4557;
}

.sidebar-footer strong,
.sidebar-footer span {
    display: block;
}

.sidebar-footer strong {
    color: #fff;
    font-size: 12px;
}

.sidebar-footer span {
    margin-top: 3px;
    color: #7f8b9e;
    font-size: 10px;
}

.main {
    width: calc(100% - 250px);
    margin-left: 250px;
}

.topbar {
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    border-bottom: 1px solid #e7eaf0;
    background: #fff;
}

.topbar-title {
    font-size: 17px;
    font-weight: 700;
}

.topbar-subtitle {
    margin-top: 3px;
    color: #98a1af;
    font-size: 11px;
}

.top-actions {
    display: flex;
    gap: 8px;
}

.icon-button {
    width: 36px;
    height: 36px;
    border: 1px solid #e3e7ed;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.content {
    padding: 30px 34px 50px;
}

.page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
}

.page-heading h1 {
    margin: 0;
    font-size: 26px;
}

.page-heading p {
    margin: 7px 0 0;
    color: #778295;
    font-size: 13px;
}

.market-badge,
.channel-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 7px;
    color: #ef6c00;
    background: #fff1e5;
    font-weight: 700;
}

.market-badge {
    padding: 9px 13px;
    font-size: 12px;
}

.channel-badge {
    padding: 5px 8px;
    font-size: 11px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.summary-card {
    padding: 19px 20px;
    border: 1px solid #e7eaf0;
    border-radius: 11px;
    background: #fff;
}

.summary-card span,
.summary-card strong,
.summary-card small {
    display: block;
}

.summary-card span {
    color: #758093;
    font-size: 12px;
    font-weight: 600;
}

.summary-card strong {
    margin: 8px 0 4px;
    font-size: 25px;
}

.summary-card small {
    color: #9aa3b0;
    font-size: 11px;
}

.panel {
    overflow: hidden;
    border: 1px solid #e5e9ef;
    border-radius: 11px;
    background: #fff;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid #edf0f4;
}

.panel-header h2 {
    margin: 0;
    font-size: 15px;
}

.panel-header p {
    margin: 5px 0 0;
    color: #929baa;
    font-size: 11px;
}

.channel-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
}

.channel-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid #d7dee8;
    border-radius: 999px;
    color: #344054;
    background: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.channel-tabs a.is-on {
    color: #fff;
    border-color: #111827;
    background: #111827;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filters select,
.filter-button {
    height: 36px;
    padding: 0 12px;
    border: 1px solid #dfe4eb;
    border-radius: 7px;
    background: #fff;
    color: #374151;
}

.filter-button {
    color: #fff;
    border-color: #202938;
    background: #202938;
    cursor: pointer;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    padding: 11px 16px;
    color: #8791a1;
    background: #fafbfc;
    text-align: left;
    white-space: nowrap;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

td {
    padding: 14px 16px;
    border-top: 1px solid #f0f2f5;
    vertical-align: middle;
    font-size: 12px;
}

tbody tr:hover {
    background: #fafbfc;
}

.order-number {
    white-space: nowrap;
    color: #222c3d;
}

.product-cell {
    min-width: 260px;
    max-width: 370px;
    line-height: 1.4;
}

.barcode {
    white-space: nowrap;
    color: #6f7a8d;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px;
}

.status {
    display: inline-flex;
    align-items: center;
    padding: 5px 8px;
    border-radius: 999px;
    white-space: nowrap;
    font-size: 10px;
    font-weight: 700;
}

.status.pending {
    color: #a76800;
    background: #fff4d6;
}

.status.accepted {
    color: #137447;
    background: #e5f7ee;
}

.status.rejected {
    color: #b42318;
    background: #feeceb;
}

.status.cancelled {
    color: #687386;
    background: #eef1f5;
}

.stock-ok {
    color: #168253;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 600;
}

.stock-wait {
    color: #9aa3af;
}

.empty {
    padding: 40px;
    color: #8d97a7;
    text-align: center;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-top: 1px solid #edf0f4;
    color: #7d8796;
    font-size: 11px;
}

.pagination div {
    display: flex;
    gap: 8px;
}

.pagination a {
    padding: 7px 10px;
    border: 1px solid #e0e5eb;
    border-radius: 6px;
    color: #394456;
    text-decoration: none;
}

.alert-error {
    margin-bottom: 18px;
    padding: 12px 15px;
    border: 1px solid #ffd1cd;
    border-radius: 8px;
    color: #a92d24;
    background: #fff0ef;
}

@media (max-width: 900px) {
    .sidebar {
        width: 74px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .brand > div:not(.brand-mark),
    .nav a:not(.active) {
    }

    .brand strong,
    .brand span,
    .nav a {
        font-size: 0;
    }

    .nav-icon {
        width: 100%;
        font-size: 19px;
    }

    .sidebar-footer > div:not(.avatar) {
        display: none;
    }

    .main {
        width: calc(100% - 74px);
        margin-left: 74px;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .panel-header,
    .page-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .content {
        padding: 22px 18px;
    }
}

/* Return product thumbnail */

.product-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-image,
.product-image-placeholder {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 9px;
}

.product-image {
    display: block;
    object-fit: cover;
    border: 1px solid #e7eaf0;
    background: #f7f8fa;
}

.product-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f6f8;
    border: 1px solid #e7eaf0;
    font-size: 18px;
}

.product-name {
    display: block;
    line-height: 1.4;
}

/* Return detail */

.return-detail-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 22px;
}

.return-detail-heading h1 {
    margin: 8px 0 4px;
}

.return-detail-heading p {
    margin: 0;
    color: #8791a1;
}

.back-link {
    color: #6f7a8d;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}

.return-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, .8fr);
    gap: 18px;
    align-items: start;
}

.return-detail-main {
    display: grid;
    gap: 18px;
}

.detail-card {
    overflow: hidden;
    border: 1px solid #e5e9ef;
    border-radius: 12px;
    background: #fff;
}

.detail-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #edf0f4;
}

.detail-card-header h2 {
    margin: 0;
    font-size: 15px;
}

.detail-card-header p {
    margin: 4px 0 0;
    color: #929bab;
    font-size: 11px;
}

.return-product {
    display: flex;
    gap: 20px;
    padding: 22px;
}

.return-product-image {
    width: 120px;
    height: 120px;
    min-width: 120px;
    object-fit: cover;
    border: 1px solid #e7eaf0;
    border-radius: 12px;
    background: #f7f8fa;
}

.return-product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.return-product-content {
    flex: 1;
}

.return-product-content h3 {
    max-width: 620px;
    margin: 2px 0 9px;
    color: #202938;
    font-size: 16px;
    line-height: 1.45;
}

.return-product-prices {
    display: flex;
    gap: 38px;
    margin-top: 24px;
}

.return-product-prices div {
    display: grid;
    gap: 5px;
}

.return-product-prices small {
    color: #929bab;
}

.return-product-prices strong {
    color: #202938;
}

.detail-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-field {
    display: grid;
    gap: 7px;
    padding: 18px 20px;
    border-right: 1px solid #edf0f4;
    border-bottom: 1px solid #edf0f4;
}

.detail-field span:first-child {
    color: #929bab;
    font-size: 11px;
}

.detail-field strong {
    overflow-wrap: anywhere;
    color: #2a3445;
    font-size: 12px;
}

.detail-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 20px;
    border-bottom: 1px solid #edf0f4;
    font-size: 12px;
}

.detail-summary-row span {
    color: #8791a1;
}

.detail-summary-row.total {
    border-bottom: 0;
}

@media (max-width: 1050px) {
    .return-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .return-product {
        flex-direction: column;
    }

    .detail-fields {
        grid-template-columns: 1fr;
    }

    .return-product-prices {
        flex-wrap: wrap;
        gap: 20px;
    }
}

.return-detail-link {
    font-weight: 700;
    text-decoration: none;
}

.return-detail-link:hover {
    text-decoration: underline;
}

/* Orders */

.order-external-id {
    margin-top: 4px;
    color: #98a1af;
    font-size: 9px;
}

.order-date {
    white-space: nowrap;
    color: #667085;
}

.order-amount {
    white-space: nowrap;
    color: #202938;
}

.channel-badge.compact {
    padding: 4px 8px;
    font-size: 9px;
}

.status.info {
    color: #175cd3;
    background: #eff4ff;
}

.status.unknown {
    color: #596579;
    background: #eef1f5;
}

.order-detail-button {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    color: #485467;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
}

.order-detail-button:hover {
    color: #111827;
}

/* Order Details */

.back-link {
    display: inline-block;
    margin-bottom: 8px;
    color: #667085;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.back-link:hover {
    color: #111827;
}

.order-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
    align-items: start;
}

.order-detail-main {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.order-products {
    padding: 0 20px;
}

.order-product {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #edf0f4;
}

.order-product:last-child {
    border-bottom: 0;
}

.order-product-image {
    width: 100px;
    height: 100px;
    overflow: hidden;
    border: 1px solid #e6e9ee;
    border-radius: 12px;
    background: #f7f8fa;
}

.order-product-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #98a1af;
    font-size: 11px;
}

.order-product-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.order-product-info strong {
    color: #172033;
    font-size: 13px;
    line-height: 1.5;
}

.order-product-info span {
    color: #8a94a5;
    font-size: 10px;
}

.order-product-price {
    display: grid;
    grid-template-columns: repeat(3, minmax(80px, auto));
    gap: 20px;
    text-align: right;
}

.order-product-price div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.order-product-price span {
    color: #98a1af;
    font-size: 9px;
}

.order-product-price strong {
    color: #172033;
    font-size: 12px;
    white-space: nowrap;
}

.order-info-panel {
    overflow: hidden;
}

.order-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 4px 20px 20px;
}

.order-info-grid > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 16px 0;
    border-bottom: 1px solid #edf0f4;
}

.order-info-grid span {
    color: #98a1af;
    font-size: 9px;
}

.order-info-grid strong {
    color: #273244;
    font-size: 11px;
}

.order-summary-card {
    position: sticky;
    top: 20px;
    padding: 20px;
    border: 1px solid #e3e7ed;
    border-radius: 12px;
    background: #fff;
}

.order-summary-card h2 {
    margin: 0 0 18px;
    color: #172033;
    font-size: 14px;
}

.order-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid #edf0f4;
    color: #667085;
    font-size: 10px;
}

.order-summary-row strong {
    color: #273244;
    font-size: 11px;
}

.order-summary-total {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 18px;
}

.order-summary-total span {
    color: #667085;
    font-size: 10px;
}

.order-summary-total strong {
    color: #111827;
    font-size: 23px;
}

@media (max-width: 1000px) {
    .order-detail-layout {
        grid-template-columns: 1fr;
    }

    .order-summary-card {
        position: static;
    }

    .order-product {
        grid-template-columns: 80px minmax(0, 1fr);
    }

    .order-product-image {
        width: 80px;
        height: 80px;
    }

    .order-product-price {
        grid-column: 1 / -1;
        text-align: left;
    }

    .order-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Stock Management */

.filter-input {
    min-width: 260px;
    padding: 10px 12px;
    border: 1px solid #dfe3e8;
    border-radius: 8px;
    background: #fff;
    font: inherit;
}

.stock-product {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
}

.stock-product-image {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eceff2;
    background: #f7f8fa;
    flex: 0 0 52px;
}

.stock-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.stock-product-name {
    display: block;
    max-width: 360px;
    line-height: 1.35;
}

.stock-barcode {
    max-width: 220px;
    word-break: break-all;
    font-size: 13px;
}

.stock-quantity {
    font-size: 16px;
}

/* Stock table layout fixes */

.stock-barcode {
    min-width: 145px;
    max-width: 190px;
    white-space: nowrap;
    word-break: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
}

.stock-product {
    min-width: 300px;
}

.stock-product-name {
    max-width: 300px;
}

.stock-quantity {
    min-width: 45px;
    display: inline-block;
}

.stock-table-date {
    white-space: nowrap;
    min-width: 145px;
}

/* Product catalog */

.product-main-id {
    display: block;
    margin-top: 4px;
    color: #8a94a6;
    font-size: 11px;
}

.filter-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border: 1px solid #dfe3e8;
    border-radius: 8px;
    background: #fff;
    color: #596579;
    text-decoration: none;
    font-size: 13px;
}

.status.neutral {
    background: #eef1f5;
    color: #667085;
}

/* Product details */

.product-name-link {
    color: inherit;
    text-decoration: none;
}

.product-name-link:hover {
    text-decoration: underline;
}

.detail-back {
    display: inline-block;
    margin-bottom: 10px;
    color: #667085;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.detail-back:hover {
    color: #1f2937;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.product-detail-image-panel {
    padding: 20px;
}

.product-detail-image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 12px;
    background: #f8fafc;
}

.product-detail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #98a2b3;
}

.product-detail-content {
    padding: 24px;
}

.product-detail-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #edf0f3;
}

.product-detail-title h2 {
    margin: 5px 0 0;
    font-size: 22px;
    line-height: 1.35;
}

.detail-label {
    color: #98a2b3;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.product-detail-stock {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0;
    padding: 18px 20px;
    border-radius: 10px;
    background: #f8fafc;
}

.product-detail-stock span {
    color: #667085;
    font-size: 13px;
}

.product-detail-stock strong {
    font-size: 26px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.detail-field {
    padding: 15px;
    border: 1px solid #edf0f3;
    border-radius: 9px;
}

.detail-field span {
    display: block;
    margin-bottom: 6px;
    color: #98a2b3;
    font-size: 12px;
}

.detail-field strong {
    display: block;
    color: #1f2937;
    font-size: 14px;
}

.detail-break {
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
    }

    .product-detail-image-panel {
        max-width: 420px;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* Marketplaces */

.marketplace-card {
    overflow: hidden;
    border: 1px solid #e6e9ee;
    border-radius: 12px;
    background: #fff;
}

.marketplace-header {
    padding: 22px 24px;
    border-bottom: 1px solid #edf0f3;
}

.marketplace-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.marketplace-logo {
    display: flex;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f27a1a;
    color: #fff;
    font-size: 24px;
    font-weight: 800;
}

.marketplace-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.marketplace-name-row h2 {
    margin: 0;
    font-size: 20px;
}

.marketplace-brand p {
    margin: 5px 0 0;
    color: #7a8495;
    font-size: 13px;
}

.marketplace-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 1px solid #edf0f3;
}

.marketplace-stat {
    padding: 20px 24px;
    border-right: 1px solid #edf0f3;
}

.marketplace-stat:last-child {
    border-right: 0;
}

.marketplace-stat span,
.marketplace-stat small {
    display: block;
    color: #8a94a6;
    font-size: 12px;
}

.marketplace-stat strong {
    display: block;
    margin: 5px 0;
    color: #202939;
    font-size: 24px;
}

.marketplace-section-title {
    padding: 22px 24px 8px;
}

.marketplace-section-title h3 {
    margin: 0;
    font-size: 16px;
}

.marketplace-section-title p {
    margin: 5px 0 0;
    color: #8a94a6;
    font-size: 13px;
}

.marketplace-sync-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 14px 24px 24px;
}

.sync-card {
    display: flex;
    min-height: 190px;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    padding: 18px;
    border: 1px solid #e7eaf0;
    border-radius: 10px;
    background: #fff;
}

.sync-card h4 {
    margin: 0 0 7px;
    font-size: 15px;
}

.sync-card p {
    margin: 0;
    color: #7a8495;
    font-size: 13px;
    line-height: 1.55;
}

.sync-button {
    width: 100%;
    padding: 10px 14px;
    border: 0;
    border-radius: 8px;
    background: #1f2937;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
}

.sync-button:hover {
    opacity: .9;
}

.sync-card-warning {
    border-color: #f3d6a6;
    background: #fffdf8;
}

.sync-warning-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sync-warning-title span {
    padding: 4px 8px;
    border-radius: 20px;
    background: #fff0d7;
    color: #a76000;
    font-size: 11px;
    font-weight: 700;
}

.sync-warning {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 7px;
    background: #fff4e5;
    color: #8a5200;
    font-size: 12px;
    line-height: 1.45;
}

.sync-button-warning {
    background: #b96b00;
}

.marketplace-message {
    margin-bottom: 16px;
    padding: 13px 15px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 500;
}

.marketplace-message.success {
    border: 1px solid #b7e4cd;
    background: #edf9f2;
    color: #157347;
}

.marketplace-message.error {
    border: 1px solid #f1c2c7;
    background: #fff1f2;
    color: #b42318;
}

@media (max-width: 900px) {
    .marketplace-stats,
    .marketplace-sync-grid {
        grid-template-columns: 1fr;
    }

    .marketplace-stat {
        border-right: 0;
        border-bottom: 1px solid #edf0f3;
    }
}

/* Marketplace sync result modal */

.sync-modal-overlay {
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, .48);
    backdrop-filter: blur(3px);
    animation: syncModalFade .18s ease-out;
}

.sync-modal-overlay.closing {
    opacity: 0;
    transition: opacity .16s ease;
}

.sync-modal {
    position: relative;
    width: min(500px, 100%);
    padding: 32px;
    border: 1px solid #e8ebef;
    border-radius: 16px;
    background: #fff;
    box-shadow:
        0 24px 60px rgba(15, 23, 42, .20);
    text-align: center;
    animation: syncModalOpen .22s ease-out;
}

.sync-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    display: flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: #f4f6f8;
    color: #667085;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.sync-modal-icon {
    display: flex;
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 28px;
    font-weight: 800;
}

.sync-modal-icon.success {
    background: #eaf8f0;
    color: #16834f;
}

.sync-modal-icon.error {
    background: #fff0f1;
    color: #c4323f;
}

.sync-modal h2 {
    margin: 0;
    color: #182230;
    font-size: 21px;
}

.sync-modal-subtitle {
    margin: 8px 0 20px;
    color: #7a8495;
    font-size: 13px;
}

.sync-modal-result {
    margin-bottom: 22px;
    padding: 14px 16px;
    border-radius: 9px;
    font-size: 13px;
    line-height: 1.6;
    text-align: left;
}

.sync-modal-result.success {
    border: 1px solid #bce6ce;
    background: #f0faf4;
    color: #157347;
}

.sync-modal-result.error {
    border: 1px solid #f2c5c9;
    background: #fff3f4;
    color: #b42318;
}

.sync-modal-ok {
    width: 100%;
    padding: 11px 16px;
    border: 0;
    border-radius: 8px;
    background: #1f2937;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}

.sync-modal-ok:hover {
    background: #111827;
}

.sync-button:disabled {
    cursor: wait;
    opacity: .72;
}

.sync-spinner {
    display: inline-block;
    width: 13px;
    height: 13px;
    margin-right: 8px;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    vertical-align: -2px;
    animation: syncSpinner .7s linear infinite;
}

@keyframes syncSpinner {
    to {
        transform: rotate(360deg);
    }
}

@keyframes syncModalFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes syncModalOpen {
    from {
        opacity: 0;
        transform: translateY(8px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Inventory confirmation modal */

.confirm-modal-overlay {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, .52);
    backdrop-filter: blur(3px);
}

.confirm-modal-overlay.open {
    display: flex;
    animation: syncModalFade .18s ease-out;
}

.confirm-modal {
    position: relative;
    width: min(460px, 100%);
    padding: 32px;
    border: 1px solid #e7eaf0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
    text-align: center;
    animation: syncModalOpen .22s ease-out;
}

.confirm-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    display: flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: #f4f6f8;
    color: #667085;
    cursor: pointer;
    font-size: 21px;
}

.confirm-modal-icon {
    display: flex;
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff3df;
    color: #b96b00;
    font-size: 28px;
    font-weight: 800;
}

.confirm-modal h2 {
    margin: 0;
    color: #182230;
    font-size: 22px;
}

.confirm-modal-description {
    margin: 8px 0 20px;
    color: #7a8495;
    font-size: 13px;
    line-height: 1.5;
}

.confirm-modal-warning {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 14px 16px;
    border: 1px solid #f3d6a6;
    border-radius: 9px;
    background: #fff9ef;
    color: #8a5200;
    text-align: left;
}

.confirm-modal-warning strong {
    font-size: 13px;
}

.confirm-modal-warning span {
    font-size: 12px;
    line-height: 1.5;
}

.confirm-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 22px;
}

.confirm-modal-cancel,
.confirm-modal-approve {
    padding: 11px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}

.confirm-modal-cancel {
    border: 1px solid #dfe3e8;
    background: #fff;
    color: #475467;
}

.confirm-modal-cancel:hover {
    background: #f8fafc;
}

.confirm-modal-approve {
    border: 1px solid #b96b00;
    background: #b96b00;
    color: #fff;
}

.confirm-modal-approve:hover {
    background: #9d5b00;
}

/* =========================================================
   DASHBOARD
   ========================================================= */

.dashboard-page {
    padding: 28px 30px 40px;
}

.dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.dashboard-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-title-row h1 {
    margin: 0;
    color: #182230;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -.4px;
}

.dashboard-subtitle {
    margin: 8px 0 0;
    color: #7a8495;
    font-size: 13px;
}

.marketplace-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border: 1px solid #d8eee4;
    border-radius: 999px;
    background: #f1faf6;
    color: #157347;
    font-size: 12px;
    font-weight: 600;
}

.marketplace-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #0f8f62;
}

.dashboard-header-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}


.dashboard-period-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-period-form label {
    color: #667085;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.dashboard-period-select {
    min-height: 38px;
    padding: 0 34px 0 12px;
    border: 1px solid #dfe3e8;
    border-radius: 8px;
    background: #fff;
    color: #344054;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
}

.dashboard-period-select:hover,
.dashboard-period-select:focus {
    border-color: #0f8f62;
}


.dashboard-action,
.dashboard-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #dfe3e8;
    border-radius: 8px;
    background: #fff;
    color: #475467;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

.dashboard-action:hover,
.dashboard-refresh:hover {
    background: #f8fafb;
}

.dashboard-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid #f1c2c7;
    border-radius: 9px;
    background: #fff1f2;
    color: #b42318;
    font-size: 13px;
}

.dashboard-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 18px;
}

.dashboard-kpi-card {
    min-width: 0;
    padding: 19px;
    border: 1px solid #e7eaee;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .02);
}

.dashboard-kpi-card.primary {
    border-color: #d8eee4;
    background: linear-gradient(145deg, #f7fcfa, #fff);
}

.dashboard-kpi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-kpi-label {
    color: #667085;
    font-size: 13px;
    font-weight: 500;
}

.dashboard-kpi-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    border-radius: 8px;
    background: #f2f4f7;
    color: #667085;
    font-size: 15px;
    font-weight: 600;
}

.dashboard-kpi-card.primary .dashboard-kpi-icon {
    background: #e7f7f0;
    color: #0f8f62;
}

.dashboard-kpi-value {
    display: block;
    margin-top: 15px;
    color: #182230;
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -.5px;
}

.dashboard-kpi-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f0f2f4;
    color: #98a2b3;
    font-size: 11px;
}

.dashboard-kpi-footer strong {
    color: #475467;
    font-weight: 600;
}

.dashboard-kpi-footer a {
    color: #0f8f62;
    text-decoration: none;
    font-weight: 600;
}

.dashboard-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(320px, .85fr);
    gap: 18px;
    margin-bottom: 18px;
}

.dashboard-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(320px, .85fr);
    gap: 18px;
}

.dashboard-card {
    min-width: 0;
    border: 1px solid #e7eaee;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .02);
}

.dashboard-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 19px 20px;
    border-bottom: 1px solid #edf0f3;
}

.dashboard-card-header h2 {
    margin: 0;
    color: #1d2939;
    font-size: 15px;
    font-weight: 650;
}

.dashboard-card-header p {
    margin: 5px 0 0;
    color: #98a2b3;
    font-size: 11px;
}

.dashboard-card-total {
    text-align: right;
}

.dashboard-card-total strong {
    display: block;
    color: #1d2939;
    font-size: 15px;
}

.dashboard-card-total span {
    display: block;
    margin-top: 3px;
    color: #98a2b3;
    font-size: 10px;
}

.sales-chart {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    width: 100%;
    height: 260px;
    padding: 25px 18px 19px;
    overflow: hidden;
}

.sales-chart-column {
    flex: 1 1 0;
}

.sales-chart-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    min-width: 0;
}

.sales-chart-value {
    min-height: 17px;
    margin-bottom: 8px;
    color: #667085;
    font-size: 10px;
    white-space: nowrap;
}

.sales-chart-bar-wrapper {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    height: 170px;
}

.sales-chart-bar {
    width: min(34px, 70%);
    min-height: 8px;
    border-radius: 7px 7px 3px 3px;
    background: #0f8f62;
    transition: opacity .15s ease;
}

.sales-chart-bar:hover {
    opacity: .78;
}

.sales-chart-date {
    margin-top: 9px;
    color: #98a2b3;
    font-size: 10px;
}

.status-list {
    padding: 8px 20px 18px;
}

.status-row {
    padding: 11px 0;
}

.status-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.status-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #475467;
    font-size: 12px;
}

.status-row-top strong {
    color: #344054;
    font-size: 12px;
}

.status-indicator {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #98a2b3;
}

.status-indicator.success {
    background: #12b76a;
}

.status-indicator.pending {
    background: #f79009;
}

.status-indicator.info {
    background: #2e90fa;
}

.status-indicator.cancelled {
    background: #f04438;
}

.status-progress {
    height: 5px;
    margin-top: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #f2f4f7;
}

.status-progress-value {
    height: 100%;
    min-width: 3px;
    border-radius: inherit;
    background: #98a2b3;
}

.status-progress-value.success {
    background: #12b76a;
}

.status-progress-value.pending {
    background: #f79009;
}

.status-progress-value.info {
    background: #2e90fa;
}

.status-progress-value.cancelled {
    background: #f04438;
}

.dashboard-card-link {
    color: #0f8f62;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.dashboard-table-wrapper {
    overflow-x: auto;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
}

.dashboard-table th {
    padding: 11px 20px;
    border-bottom: 1px solid #edf0f3;
    background: #fafbfc;
    color: #98a2b3;
    font-size: 10px;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
}

.dashboard-table td {
    padding: 13px 20px;
    border-bottom: 1px solid #f0f2f4;
    color: #667085;
    font-size: 11px;
    white-space: nowrap;
}

.dashboard-table tbody tr:last-child td {
    border-bottom: 0;
}

.dashboard-table tbody tr:hover {
    background: #fafcfb;
}

.dashboard-order-number {
    color: #1d2939;
    font-weight: 600;
    text-decoration: none;
}

.dashboard-date {
    color: #667085;
}

.text-right {
    text-align: right !important;
}

.dashboard-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
}

.dashboard-status.success {
    background: #ecfdf3;
    color: #027a48;
}

.dashboard-status.pending {
    background: #fffaeb;
    color: #b54708;
}

.dashboard-status.info {
    background: #eff8ff;
    color: #175cd3;
}

.dashboard-status.cancelled {
    background: #fef3f2;
    color: #b42318;
}

.dashboard-status.neutral {
    background: #f2f4f7;
    color: #475467;
}

.returns-card {
    min-height: 100%;
}

.return-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #fff4ed;
    color: #e04f16;
    font-size: 18px;
}

.return-main {
    padding: 25px 20px 17px;
}

.return-main strong {
    display: block;
    color: #1d2939;
    font-size: 34px;
    line-height: 1;
}

.return-main span {
    display: block;
    margin-top: 7px;
    color: #98a2b3;
    font-size: 11px;
}

.return-amount {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 20px;
    padding: 13px 0;
    border-top: 1px solid #edf0f3;
    border-bottom: 1px solid #edf0f3;
}

.return-amount span {
    color: #667085;
    font-size: 11px;
}

.return-amount strong {
    color: #344054;
    font-size: 14px;
}

.return-net {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 17px 20px;
}

.return-net span {
    display: block;
    color: #98a2b3;
    font-size: 10px;
}

.return-net strong {
    display: block;
    margin-top: 3px;
    color: #0f8f62;
    font-size: 15px;
}

.return-net a {
    color: #0f8f62;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .dashboard-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-main-grid,
    .dashboard-bottom-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .dashboard-page {
        padding: 20px 15px 30px;
    }

    .dashboard-header {
        flex-direction: column;
    }

    .dashboard-header-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .dashboard-period-form {
        width: 100%;
    }

    .dashboard-period-select {
        flex: 1;
    }

    .dashboard-action,
    .dashboard-refresh {
        flex: 1;
    }

    .dashboard-kpi-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-title-row {
        flex-wrap: wrap;
    }

    .sales-chart {
        gap: 7px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .sales-chart-value {
        font-size: 8px;
    }
}


/* =========================================================
   ORDERS PAGE
   ========================================================= */

.orders-page .summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 22px;
}

.orders-page .summary-card {
    min-height: 112px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.orders-page .summary-card:first-child {
    border-color: #d8eee4;
    background: linear-gradient(135deg, #fbfffd 0%, #f5fcf8 100%);
}

.orders-page .summary-card:first-child strong {
    color: #0f8f62;
}

.orders-page .orders-panel {
    margin-top: 0;
}

.orders-page .orders-panel .panel-header {
    padding: 20px 22px;
}

.orders-page .orders-panel .panel-header h2 {
    font-size: 16px;
    color: #1f2937;
}

.orders-page .orders-panel .panel-header p {
    font-size: 12px;
}

.orders-page .filters {
    align-items: center;
}

.orders-page .filters select {
    min-width: 165px;
    cursor: pointer;
}

.orders-page .filter-button {
    min-width: 82px;
    border-color: #0f8f62;
    background: #0f8f62;
    font-weight: 600;
    transition: background .15s ease, border-color .15s ease;
}

.orders-page .filter-button:hover {
    border-color: #0b7651;
    background: #0b7651;
}

.orders-page table {
    min-width: 900px;
}

.orders-page th {
    padding: 12px 18px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.orders-page td {
    padding: 15px 18px;
    border-bottom: 1px solid #edf0f4;
    vertical-align: middle;
}

.orders-page tbody tr {
    transition: background .12s ease;
}

.orders-page tbody tr:hover {
    background: #fafcfb;
}

.orders-page tbody tr:last-child td {
    border-bottom: 0;
}

.orders-page .order-number {
    color: #1f2937;
    font-weight: 700;
    text-decoration: none;
}

.orders-page .order-number:hover {
    color: #0f8f62;
}

.orders-page .order-external-id {
    margin-top: 4px;
    color: #9aa3b0;
    font-size: 10px;
}

.orders-page .order-date {
    color: #5f6b7a;
    white-space: nowrap;
    font-size: 12px;
}

.orders-page .order-amount {
    color: #263142;
    font-size: 13px;
    white-space: nowrap;
}

.orders-page .status {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.orders-page .status.pending {
    color: #b45309;
    background: #fff7e6;
}

.orders-page .status.info {
    color: #2563eb;
    background: #eff6ff;
}

.orders-page .status.accepted {
    color: #157347;
    background: #edf9f2;
}

.orders-page .status.cancelled {
    color: #b42318;
    background: #fff1f2;
}

.orders-page .status.rejected {
    color: #b42318;
    background: #fff1f2;
}

.orders-page .status.unknown {
    color: #667085;
    background: #f2f4f7;
}

.orders-page .order-detail-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid #dcefe7;
    border-radius: 7px;
    color: #0f8f62;
    background: #f7fcf9;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s ease, border-color .15s ease;
}

.orders-page .order-detail-button:hover {
    border-color: #bfe3d3;
    background: #edf9f2;
}

.orders-page .pagination {
    padding: 16px 20px;
}

.orders-page .pagination a {
    border-color: #dcefe7;
    color: #0f8f62;
}

.orders-page .pagination a:hover {
    border-color: #bfe3d3;
    background: #edf9f2;
}

@media (max-width: 1100px) {
    .orders-page .summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .orders-page .summary-grid {
        grid-template-columns: 1fr;
    }

    .orders-page .panel-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .orders-page .filters {
        width: 100%;
    }

    .orders-page .filters select,
    .orders-page .filter-button {
        flex: 1;
    }
}


/* Returns Page */
.returns-page {
    width: 100%;
}

.returns-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.returns-panel {
    width: 100%;
}

.returns-panel .panel-header {
    min-height: 72px;
}

.returns-panel table {
    min-width: 0;
}

.returns-panel th,
.returns-panel td {
    vertical-align: middle;
}

.returns-panel .product-cell {
    min-width: 260px;
}

.returns-panel .barcode {
    white-space: nowrap;
}

.returns-panel .return-detail-link {
    color: #172033;
}

.returns-panel .return-action-cell {
    width: 90px;
    text-align: right;
    white-space: nowrap;
}

.returns-panel .order-detail-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    padding: 8px 11px;
    border: 1px solid #d8eee4;
    border-radius: 8px;
    background: #f7fcfa;
    color: #0f8f62;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
}

.returns-panel .order-detail-button:hover {
    background: #edf9f4;
    border-color: #bfe5d4;
}

.returns-page .stock-ok {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #0f8f62;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.returns-page .stock-wait {
    color: #98a1af;
    font-size: 11px;
}

@media (max-width: 900px) {
    .returns-summary-grid {
        grid-template-columns: 1fr;
    }

    .returns-panel .panel-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .returns-panel .filters {
        width: 100%;
    }

    .returns-panel .filters select,
    .returns-panel .filter-button {
        flex: 1;
    }
}


/* =========================================================
   RETURN DETAILS
   ========================================================= */

.return-detail-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.return-detail-heading h1 {
    margin: 6px 0 4px;
    color: #172033;
    font-size: 25px;
    line-height: 1.2;
}

.return-detail-heading p {
    margin: 0;
    color: #8791a1;
    font-size: 12px;
}

.return-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
    align-items: start;
}

.return-detail-main {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.return-detail-side {
    position: sticky;
    top: 20px;
}

.return-detail-side .detail-card {
    overflow: hidden;
}

.return-detail-main .detail-card,
.return-detail-side .detail-card {
    overflow: hidden;
    border: 1px solid #e3e7ed;
    border-radius: 12px;
    background: #fff;
}

.return-detail-main .detail-card-header,
.return-detail-side .detail-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 20px;
    border-bottom: 1px solid #edf0f4;
}

.return-detail-main .detail-card-header h2,
.return-detail-side .detail-card-header h2 {
    margin: 0;
    color: #172033;
    font-size: 15px;
}

.return-detail-main .detail-card-header p,
.return-detail-side .detail-card-header p {
    margin: 5px 0 0;
    color: #98a1af;
    font-size: 10px;
}

.return-product {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    padding: 22px 20px;
}

.return-product-image,
.return-product-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 12px;
}

.return-product-image {
    display: block;
    object-fit: cover;
    border: 1px solid #e6e9ee;
    background: #f7f8fa;
}

.return-product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e6e9ee;
    background: #f7f8fa;
    color: #98a1af;
    font-size: 28px;
}

.return-product-content {
    min-width: 0;
}

.return-product-content h3 {
    margin: 0 0 8px;
    color: #172033;
    font-size: 15px;
    line-height: 1.5;
}

.return-product-content .barcode {
    display: block;
    margin-bottom: 18px;
    color: #8a94a5;
    font-size: 10px;
}

.return-product-prices {
    display: grid;
    grid-template-columns: repeat(3, minmax(90px, 1fr));
    gap: 18px;
}

.return-product-prices > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.return-product-prices small {
    color: #98a1af;
    font-size: 9px;
}

.return-product-prices strong {
    color: #172033;
    font-size: 12px;
    white-space: nowrap;
}

.detail-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 4px 20px 20px;
}

.detail-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding: 16px 12px 16px 0;
    border-bottom: 1px solid #edf0f4;
}

.detail-field:nth-last-child(-n + 3) {
    border-bottom: 0;
}

.detail-field span:first-child {
    color: #98a1af;
    font-size: 9px;
}

.detail-field > strong {
    min-width: 0;
    overflow: hidden;
    color: #273244;
    font-size: 11px;
    text-overflow: ellipsis;
}

.detail-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 20px;
    border-bottom: 1px solid #edf0f4;
    color: #667085;
    font-size: 10px;
}

.detail-summary-row strong {
    color: #273244;
    font-size: 11px;
    text-align: right;
}

.detail-summary-row.total {
    border-bottom: 0;
    padding-top: 18px;
    padding-bottom: 20px;
}

.detail-summary-row.total span {
    color: #667085;
}

.detail-summary-row.total strong {
    color: #0f8f62;
    font-size: 12px;
}

.return-detail-side .detail-card-header {
    padding-bottom: 16px;
}

.return-detail-side .detail-card-header + .detail-summary-row {
    border-top: 0;
}

.return-detail-heading > .status {
    margin-top: 3px;
    white-space: nowrap;
}

.stock-ok {
    color: #0f8f62 !important;
}

.stock-wait {
    color: #98a1af !important;
}

@media (max-width: 1000px) {
    .return-detail-grid {
        grid-template-columns: 1fr;
    }

    .return-detail-side {
        position: static;
    }
}

@media (max-width: 700px) {
    .return-detail-heading {
        flex-direction: column;
        gap: 10px;
    }

    .return-product {
        grid-template-columns: 1fr;
    }

    .return-product-image,
    .return-product-placeholder {
        width: 100px;
        height: 100px;
    }

    .return-product-prices {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .detail-fields {
        grid-template-columns: 1fr 1fr;
    }

    .detail-field:nth-last-child(-n + 3) {
        border-bottom: 1px solid #edf0f4;
    }

    .detail-field:nth-last-child(-n + 2) {
        border-bottom: 0;
    }
}

@media (max-width: 480px) {
    .return-product-prices {
        grid-template-columns: 1fr;
    }

    .detail-fields {
        grid-template-columns: 1fr;
    }

    .detail-field,
    .detail-field:nth-last-child(-n + 2),
    .detail-field:nth-last-child(-n + 3) {
        border-bottom: 1px solid #edf0f4;
    }

    .detail-field:last-child {
        border-bottom: 0;
    }
}


/* Product Detail */

.product-detail-back {
    display: inline-flex;
    margin-bottom: 10px;
    color: #667085;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.product-detail-back:hover {
    color: #111827;
}

.product-detail-badges {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
    align-items: start;
}

.product-detail-main {
    min-width: 0;
}

.product-detail-side {
    min-width: 0;
}

.product-detail-product {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 28px;
    padding: 24px;
    align-items: center;
}

.product-detail-image-wrap {
    width: 230px;
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: 1px solid #edf0f3;
    border-radius: 14px;
    background: #fff;
}

.product-detail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #98a2b3;
    font-size: 13px;
    background: #f8fafc;
}

.product-detail-content {
    min-width: 0;
}

.product-detail-content h2 {
    margin: 12px 0 8px;
    color: #101828;
    font-size: 24px;
    line-height: 1.35;
}

.product-detail-main-id {
    margin-bottom: 22px;
    color: #667085;
    font-size: 13px;
    word-break: break-word;
}

.ty-price-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-width: 460px;
    margin-bottom: 12px;
}

.ty-price-card > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid #eaecf0;
    border-radius: 14px;
    background: #fff;
}

.ty-price-card span,
.ty-price-card em {
    color: #667085;
    font-size: 12px;
    font-style: normal;
}

.ty-price-card strong {
    color: #101828;
    font-size: 26px;
    letter-spacing: -0.03em;
}

.ty-price-card strong.is-struck {
    color: #98a2b3;
    font-size: 20px;
    text-decoration: line-through;
}

.product-detail-stock-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    max-width: 420px;
    padding: 16px 18px;
    border: 1px solid #eaecf0;
    border-radius: 12px;
    background: #f9fafb;
}

.product-detail-stock-box > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-detail-stock-box > div span {
    color: #667085;
    font-size: 12px;
}

.product-detail-stock-box > div strong {
    color: #101828;
    font-size: 28px;
}

.product-detail-fields {
    margin: 0 24px 24px;
}

.product-create-layout {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 16px;
    align-items: start;
}

.product-create-note {
    margin: 14px 0 8px;
    color: #667085;
    font-size: 12px;
}

.product-image-picker {
    position: relative;
    display: grid;
    place-items: center;
    height: 140px;
    overflow: hidden;
    border: 1px dashed #d0d5dd;
    border-radius: 12px;
    background: #f8fafc;
    color: #667085;
    font-size: 13px;
    cursor: pointer;
}

.product-image-picker input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.product-image-picker img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    resize: vertical;
}

@media (max-width: 720px) {
    .product-create-layout {
        grid-template-columns: 1fr;
    }
}
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
}

.product-detail-modal {
    width: min(760px, calc(100vw - 32px));
}

.product-detail-button {
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
}

.pack-barcodes {
    margin-top: 14px;
}

.pack-barcodes p,
.pack-barcodes-header span {
    color: #667085;
    font-size: 12px;
}

.pack-barcodes-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.pack-row {
    display: grid;
    grid-template-columns: 1fr 90px auto;
    gap: 8px;
    margin-top: 8px;
}

.pack-row:has(select) {
    grid-template-columns: 120px 1fr 80px auto;
}

.pack-row input,
.pack-row select {
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    background: #fff;
}

.channel-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

.channel-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px;
    border: 1px solid #e6e8ee;
    border-radius: 12px;
    background: #f8fafc;
}

.channel-card header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.channel-card header span,
.channel-card label {
    color: #667085;
    font-size: 12px;
}

.channel-card input {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    background: #fff;
}

@media (max-width: 720px) {
    .channel-cards {
        grid-template-columns: 1fr;
    }
}

.product-detail-barcode {
    grid-column: 1 / -1;
}

.product-detail-code {
    overflow: visible;
    color: #172033;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-overflow: unset;
    white-space: normal;
    word-break: break-all;
}

.product-stock-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 30px 20px;
    text-align: center;
}

.product-stock-summary > span:first-child {
    color: #667085;
    font-size: 13px;
}

.product-stock-summary > strong {
    color: #101828;
    font-size: 42px;
    line-height: 1;
}

.product-detail-meta {
    border-top: 1px solid #eaecf0;
}

.product-detail-meta > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 16px 20px;
    border-bottom: 1px solid #eaecf0;
}

.product-detail-meta > div:last-child {
    border-bottom: 0;
}

.product-detail-meta span {
    color: #667085;
    font-size: 12px;
}

.product-detail-meta strong {
    color: #344054;
    font-size: 13px;
}

.product-name-link {
    color: inherit;
    text-decoration: none;
}

.product-name-link:hover .stock-product-name {
    text-decoration: underline;
}

@media (max-width: 1050px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .product-detail-side {
        width: 100%;
    }
}

@media (max-width: 700px) {
    .product-detail-heading {
        align-items: flex-start;
    }

    .product-detail-product {
        grid-template-columns: 1fr;
    }

    .product-detail-image-wrap {
        width: 100%;
        height: 280px;
    }

    .product-detail-content h2 {
        font-size: 20px;
    }

    .product-detail-stock-box {
        max-width: none;
    }
}

/* =========================================================
   DASHBOARD - MODERN SALES TREND
   ========================================================= */

.sales-card {
    overflow: hidden;
}

.sales-trend {
    position: relative;
    min-height: 300px;
    padding: 20px 22px 18px;
}

.sales-trend-svg {
    display: block;
    width: 100%;
    height: 240px;
    overflow: visible;
}

.sales-grid-line {
    stroke: #edf1f5;
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.sales-area {
    fill: url(#salesAreaGradient);
}

.sales-line {
    fill: none;
    stroke: #0f8f62;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.sales-point {
    fill: #ffffff;
    stroke: #0f8f62;
    stroke-width: 2.5;
    vector-effect: non-scaling-stroke;
    cursor: pointer;
    transition: r .15s ease;
}

.sales-point:hover {
    r: 8;
}

.sales-trend-labels {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 7px;
    padding: 0 2px;
    color: #98a2b3;
    font-size: 10px;
    font-weight: 500;
}

.sales-trend-labels span {
    white-space: nowrap;
}

.sales-trend-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    color: #98a2b3;
    font-size: 12px;
}

@media (max-width: 768px) {
    .sales-trend {
        min-height: 250px;
        padding: 16px 12px;
    }

    .sales-trend-svg {
        height: 190px;
    }

    .sales-trend-labels {
        font-size: 9px;
    }
}

/* =========================================================
   RESPONSIVE LAYOUT
   ========================================================= */

@media (max-width: 1024px) {
    .sidebar {
        display: none;
    }

    .main {
        width: 100%;
        margin-left: 0;
        min-width: 0;
    }

    .content {
        padding: 22px 20px 40px;
    }

    .dashboard-page {
        width: 100%;
        min-width: 0;
        padding: 20px;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 16px;
    }

    .dashboard-header-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .dashboard-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-main-grid,
    .dashboard-bottom-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 600px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .app-shell,
    .main,
    .content {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .topbar {
        height: auto;
        min-height: 64px;
        padding: 12px 16px;
        gap: 12px;
    }

    .topbar-title {
        font-size: 15px;
    }

    .topbar-subtitle {
        font-size: 10px;
    }

    .content {
        padding: 0;
    }

    .dashboard-page {
        padding: 16px 14px 30px;
    }

    .dashboard-header {
        margin-bottom: 18px;
    }

    .dashboard-title-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .dashboard-title-row h1 {
        font-size: 23px;
    }

    .dashboard-subtitle {
        font-size: 12px;
        line-height: 1.5;
    }

    .dashboard-header-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .dashboard-period-form {
        grid-column: 1 / -1;
        width: 100%;
    }

    .dashboard-period-form label {
        flex: 0 0 auto;
    }

    .dashboard-period-select {
        flex: 1;
        width: 100%;
        min-width: 0;
    }

    .dashboard-action,
    .dashboard-refresh {
        width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }

    .dashboard-kpi-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        margin-bottom: 12px;
    }

    .dashboard-kpi-card {
        width: 100%;
        padding: 16px;
    }

    .dashboard-kpi-value {
        font-size: 24px;
        overflow-wrap: anywhere;
    }

    .dashboard-kpi-footer {
        flex-wrap: wrap;
    }

    .dashboard-main-grid,
    .dashboard-bottom-grid {
        width: 100%;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        margin-bottom: 12px;
    }

    .dashboard-card {
        width: 100%;
        min-width: 0;
        overflow: hidden;
    }

    .dashboard-card-header {
        padding: 15px 16px;
        gap: 10px;
    }

    .dashboard-card-total {
        flex: 0 0 auto;
    }

    .sales-trend {
        width: 100%;
        min-width: 0;
        min-height: 230px;
        padding: 14px 10px;
        overflow: hidden;
    }

    .sales-trend-svg {
        width: 100%;
        max-width: 100%;
        height: 180px;
    }

    .sales-trend-labels {
        gap: 5px;
        overflow: hidden;
        font-size: 8px;
    }

    .dashboard-table-wrapper {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .dashboard-table {
        min-width: 620px;
    }

    .dashboard-table th,
    .dashboard-table td {
        padding-left: 14px;
        padding-right: 14px;
    }

    .status-list {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 380px) {
    .dashboard-header-actions {
        grid-template-columns: 1fr;
    }

    .dashboard-period-form {
        grid-column: auto;
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-kpi-value {
        font-size: 22px;
    }
}


/* =========================================================
   MOBILE SIDEBAR / HAMBURGER MENU
   ========================================================= */

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.mobile-menu-button {
    display: none;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid #e4e7ec;
    border-radius: 9px;
    background: #ffffff;
    color: #344054;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
}

.sidebar-overlay {
    display: none;
}

@media (max-width: 1024px) {

    .mobile-menu-button {
        display: flex;
    }

    .sidebar {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 250px;
        height: 100dvh;
        z-index: 1200;
        transform: translateX(-100%);
        transition: transform .25s ease;
        box-shadow: 8px 0 30px rgba(16, 24, 40, .14);
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1100;
        background: rgba(16, 24, 40, .42);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition:
            opacity .25s ease,
            visibility .25s ease;
    }

    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 600px) {

    .topbar {
        justify-content: space-between;
    }

    .topbar-left {
        flex: 1;
    }

    .mobile-menu-button {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        border-radius: 8px;
        font-size: 20px;
    }

    .sidebar {
        width: min(280px, 84vw);
    }
}


/* =========================================================
   MOBILE SIDEBAR FIX
   ========================================================= */

@media (max-width: 1024px) {

    .sidebar.mobile-open {
        width: min(280px, 82vw) !important;
        padding: 18px 14px !important;
        align-items: stretch !important;
    }

    .sidebar.mobile-open .brand {
        width: 100% !important;
        justify-content: flex-start !important;
        gap: 10px !important;
    }

    .sidebar.mobile-open .brand > div:not(.brand-mark) {
        display: flex !important;
        flex-direction: column !important;
    }

    .sidebar.mobile-open .brand strong,
    .sidebar.mobile-open .brand span {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
    }

    .sidebar.mobile-open .nav {
        width: 100% !important;
        align-items: stretch !important;
        overflow: auto !important;
    }

    .sidebar.mobile-open .nav a {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 12px !important;
        padding: 11px 12px !important;
        white-space: nowrap !important;
        overflow: visible !important;
        font-size: 13px !important;
    }

    .sidebar.mobile-open .nav-icon {
        width: 22px !important;
        min-width: 22px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .sidebar.mobile-open .nav a {
        font-size: 13px !important;
        text-indent: 0 !important;
    }

    .sidebar.mobile-open .nav-separator {
        width: 100% !important;
        margin: 8px 0 !important;
    }

    .sidebar.mobile-open .sidebar-footer {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        padding: 14px 8px !important;
    }

    .sidebar.mobile-open .sidebar-footer > div:last-child {
        display: flex !important;
        flex-direction: column !important;
        min-width: 0 !important;
    }

    .sidebar.mobile-open .sidebar-footer strong,
    .sidebar.mobile-open .sidebar-footer span {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        width: auto !important;
        height: auto !important;
    }
}

@media (max-width: 600px) {
    .sidebar.mobile-open {
        width: min(260px, 82vw) !important;
    }
}


/* =========================================================
   PRODUCTS - MOBILE CARD TABLE
   ========================================================= */

@media (max-width: 700px) {

    .table-wrap {
        width: 100%;
        overflow-x: visible !important;
    }

    .table-wrap table {
        display: block;
        width: 100%;
        min-width: 0 !important;
    }

    .table-wrap thead {
        display: none;
    }

    .table-wrap tbody {
        display: grid;
        width: 100%;
        gap: 10px;
    }

    .table-wrap tbody tr {
        display: grid;
        width: 100%;
        min-width: 0;
        padding: 14px;
        box-sizing: border-box;
        border: 1px solid #eaecf0;
        border-radius: 12px;
        background: #fff;
    }

    .table-wrap tbody td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        padding: 8px 0 !important;
        border: 0 !important;
        border-bottom: 1px solid #f2f4f7 !important;
        white-space: normal !important;
        text-align: right;
    }

    .table-wrap tbody td::before {
        content: attr(data-label);
        flex: 0 0 42%;
        color: #98a2b3;
        font-size: 10px;
        font-weight: 600;
        text-align: left;
    }

    /* Ürün bölümü kartın başlığı */
    .table-wrap tbody td:first-child {
        display: block;
        padding: 0 0 12px !important;
        margin-bottom: 3px;
    }

    .table-wrap tbody td:first-child::before {
        display: none;
    }

    .stock-product {
        width: 100%;
        min-width: 0;
        display: grid;
        grid-template-columns: 54px minmax(0, 1fr);
        align-items: center;
        gap: 11px;
    }

    .stock-product-image {
        width: 54px !important;
        height: 54px !important;
        min-width: 54px;
        object-fit: cover;
        border-radius: 8px;
    }

    .stock-product > div:last-child {
        min-width: 0;
    }

    .stock-product-name {
        display: block;
        width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.35;
        text-align: left;
    }

    .product-main-id {
        display: block;
        margin-top: 4px;
        text-align: left;
        overflow-wrap: anywhere;
    }

    .stock-barcode {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .table-wrap tbody td:last-child {
        border-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    .table-wrap .empty {
        display: block !important;
        text-align: center !important;
        padding: 24px 10px !important;
    }

    .table-wrap .empty::before {
        display: none;
    }
}



/* =========================================================
   ORDERS - PRODUCT PREVIEW
   ========================================================= */

.order-product-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.order-product-image {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border: 1px solid #eaecf0;
    border-radius: 9px;
    background: #fff;
    object-fit: cover;
}

.order-product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafb;
    color: #98a2b3;
    font-size: 18px;
}

.order-product-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.order-product-name {
    display: block;
    max-width: 190px;
    overflow: hidden;
    color: #344054;
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-product-count {
    color: #98a2b3;
    font-size: 10px;
}


/* =========================================================
   ORDERS - MOBILE CARDS
   ========================================================= */

@media (max-width: 768px) {

    .orders-panel .table-wrap {
        overflow: visible !important;
        border: 0 !important;
        background: transparent !important;
    }

    .orders-panel .table-wrap table,
    .orders-panel .table-wrap tbody {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .orders-panel .table-wrap thead {
        display: none !important;
    }

    .orders-panel .table-wrap tbody tr {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        width: 100% !important;
        margin-bottom: 12px;
        padding: 15px;
        overflow: hidden;
        border: 1px solid #eaecf0;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    }

    .orders-panel .table-wrap tbody td {
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
        min-width: 0 !important;
        padding: 9px 5px !important;
        border: 0 !important;
        white-space: normal !important;
    }

    .orders-panel .table-wrap tbody td::before {
        display: block;
        margin-bottom: 5px;
        color: #98a2b3;
        font-size: 9px;
        font-weight: 600;
        line-height: 1;
        text-transform: uppercase;
        content: attr(data-label);
    }

    .orders-panel .table-wrap tbody td[data-label="Sipariş No"],
    .orders-panel .table-wrap tbody td[data-label="Ürün"],
    .orders-panel .order-actions-cell {
        grid-column: 1 / -1;
    }

    .orders-panel .table-wrap tbody td[data-label="Sipariş No"] {
        padding-top: 0 !important;
        padding-bottom: 11px !important;
        border-bottom: 1px solid #f0f2f4 !important;
    }

    .orders-panel .table-wrap tbody td[data-label="Ürün"] {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
        border-bottom: 1px solid #f0f2f4 !important;
    }

    .order-product-preview {
        width: 100%;
    }

    .order-product-image {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
    }

    .order-product-info {
        flex: 1;
    }

    .order-product-name {
        max-width: none;
        white-space: normal;
        overflow-wrap: anywhere;
        font-size: 12px;
    }

    .order-product-count {
        margin-top: 3px;
        font-size: 10px;
    }

    .orders-panel .order-date {
        font-size: 11px;
    }

    .orders-panel .order-amount {
        font-size: 13px;
    }

    .orders-panel .order-actions-cell {
        padding: 10px 0 0 !important;
        margin-top: 4px;
        border-top: 1px solid #f0f2f4 !important;
    }

    .orders-panel .order-actions-cell::before {
        display: none !important;
    }

    .orders-panel .order-detail-button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 38px;
        border-radius: 8px;
        background: #f0f9f5;
        color: #0f8f62;
        font-weight: 600;
        text-decoration: none;
    }

    .orders-panel .empty {
        display: block !important;
        padding: 25px 10px !important;
        text-align: center;
    }

    .orders-panel .empty::before {
        display: none !important;
    }
}

@media (max-width: 420px) {

    .orders-panel .table-wrap tbody tr {
        padding: 13px 11px;
    }

    .order-product-image {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
    }
}



/* =========================================================
   ORDER DETAILS - HERO
   ========================================================= */

.order-detail-top {
    margin-bottom: 20px;
}

.order-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 14px;
    color: #667085;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    transition: color .15s ease, transform .15s ease;
}

.order-detail-back:hover {
    color: #0f8f62;
    transform: translateX(-2px);
}

.order-detail-back > span {
    font-size: 17px;
    line-height: 1;
}

.order-detail-hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 190px;
    padding: 30px 34px;
    overflow: hidden;
    border: 1px solid #dceee7;
    border-radius: 20px;
    background:
        radial-gradient(circle at 95% 15%,
            rgba(15, 143, 98, .13) 0,
            rgba(15, 143, 98, .06) 20%,
            transparent 42%),
        linear-gradient(135deg, #ffffff 0%, #fbfefd 55%, #f2fbf7 100%);
    box-shadow:
        0 8px 24px rgba(16, 24, 40, .055),
        0 1px 2px rgba(16, 24, 40, .03);
}

.order-detail-hero::after {
    content: "";
    position: absolute;
    top: -90px;
    right: -60px;
    width: 270px;
    height: 270px;
    border: 35px solid rgba(15, 143, 98, .035);
    border-radius: 50%;
    pointer-events: none;
}

.order-detail-hero-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    flex: 0 0 82px;
    border-radius: 18px;
    background: linear-gradient(145deg, #effbf6, #ddf5ea);
    color: #0f9d6c;
    font-size: 38px;
    box-shadow: inset 0 0 0 1px rgba(15, 143, 98, .05);
}

.order-detail-hero-content {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
}

.order-detail-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: #7b8ba5;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
}

.order-detail-hero h1 {
    margin: 0;
    color: #101828;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.035em;
}

.order-detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 22px;
}

.order-detail-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #667085;
    font-size: 13px;
    font-weight: 550;
}

.order-detail-meta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #667085;
    font-size: 16px;
}

.order-detail-status {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    min-height: 34px;
    padding: 7px 13px !important;
    border-radius: 10px !important;
    font-weight: 700;
}

.order-detail-channel {
    margin-left: auto;
    padding: 8px 14px !important;
    border-radius: 10px !important;
    font-weight: 750 !important;
}


/* Sipariş Ürünleri başlığını biraz daha belirgin yap */
.order-detail-main > .panel:first-child {
    border-radius: 18px;
    box-shadow: 0 5px 18px rgba(16, 24, 40, .045);
}

.order-detail-main > .panel:first-child .panel-header {
    padding-top: 21px;
    padding-bottom: 19px;
}

.order-detail-main > .panel:first-child .panel-header h2 {
    color: #101828;
    font-size: 18px;
    font-weight: 750;
}


/* =========================================================
   ORDER DETAILS - MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .order-detail-top {
        margin-bottom: 14px;
    }

    .order-detail-back {
        margin-bottom: 10px;
        font-size: 11px;
    }

    .order-detail-hero {
        align-items: flex-start;
        gap: 13px;
        min-height: 0;
        padding: 17px 15px;
        border-radius: 15px;
    }

    .order-detail-hero-icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        border-radius: 12px;
        font-size: 24px;
    }

    .order-detail-eyebrow {
        margin-bottom: 4px;
        font-size: 8px;
    }

    .order-detail-hero h1 {
        font-size: 21px;
        line-height: 1.15;
        overflow-wrap: anywhere;
    }

    .order-detail-meta {
        gap: 8px;
        margin-top: 13px;
    }

    .order-detail-status {
        min-height: 28px;
        padding: 5px 9px !important;
        font-size: 9px !important;
    }

    .order-detail-meta-item {
        width: 100%;
        font-size: 10px;
    }

    .order-detail-meta-icon {
        font-size: 12px;
    }

    .order-detail-channel {
        margin-left: 0;
        padding: 5px 9px !important;
        font-size: 9px !important;
    }

    .order-detail-hero::after {
        top: -75px;
        right: -100px;
        width: 210px;
        height: 210px;
    }
}

@media (max-width: 420px) {

    .order-detail-hero {
        padding: 15px 12px;
    }

    .order-detail-hero-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        font-size: 20px;
    }

    .order-detail-hero h1 {
        font-size: 19px;
    }
}



/* =========================================================
   RETURNS - MOBILE CARDS
   ========================================================= */

@media (max-width: 768px) {

    .returns-page {
        width: 100%;
        min-width: 0;
        overflow-x: hidden;
    }

    .returns-panel {
        min-width: 0;
    }

    .returns-panel .table-wrap {
        width: 100%;
        min-width: 0;
        overflow: visible !important;
        border: 0 !important;
        background: transparent !important;
    }

    .returns-panel .table-wrap table,
    .returns-panel .table-wrap tbody {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .returns-panel .table-wrap thead {
        display: none !important;
    }

    .returns-panel .table-wrap tbody tr {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 0 12px;
        padding: 14px;
        overflow: hidden;
        border: 1px solid #eaecf0;
        border-radius: 13px;
        background: #fff;
        box-shadow: 0 2px 7px rgba(16, 24, 40, .045);
    }

    .returns-panel .table-wrap tbody td {
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        min-width: 0 !important;
        width: auto !important;
        padding: 9px 5px !important;
        border: 0 !important;
        text-align: left !important;
        white-space: normal !important;
    }

    .returns-panel .table-wrap tbody td::before {
        display: block;
        margin-bottom: 5px;
        color: #98a2b3;
        font-size: 9px;
        font-weight: 700;
        line-height: 1;
        letter-spacing: .025em;
        text-transform: uppercase;
        content: attr(data-label);
    }


    /* Sipariş numarası kartın üstünde */
    .returns-panel .return-order-cell {
        grid-column: 1 / -1;
        padding: 0 4px 11px !important;
        margin-bottom: 2px;
        border-bottom: 1px solid #f0f2f4 !important;
    }

    .returns-panel .return-order-cell .order-number {
        color: #101828;
        font-size: 13px;
        font-weight: 750;
    }


    /* Ürün alanı */
    .returns-panel .return-product-cell {
        grid-column: 1 / -1;
        padding: 12px 4px !important;
        border-bottom: 1px solid #f0f2f4 !important;
    }

    .returns-panel .return-product-cell .product-info {
        display: flex !important;
        align-items: center !important;
        gap: 11px;
        width: 100%;
        min-width: 0;
    }

    .returns-panel .return-product-cell .product-image,
    .returns-panel .return-product-cell .product-image-placeholder {
        width: 64px !important;
        height: 64px !important;
        min-width: 64px !important;
        flex: 0 0 64px !important;
        border-radius: 10px;
        object-fit: cover;
    }

    .returns-panel .return-product-cell .product-image-placeholder {
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f7f9fa;
        border: 1px solid #eaecf0;
        font-size: 20px;
    }

    .returns-panel .return-product-cell .product-name {
        display: block;
        flex: 1;
        min-width: 0;
        color: #344054;
        font-size: 11px;
        font-weight: 650;
        line-height: 1.4;
        overflow-wrap: anywhere;
        white-space: normal !important;
    }


    /* Barkod */
    .returns-panel .barcode {
        max-width: 100%;
        color: #667085;
        font-size: 10px;
        overflow-wrap: anywhere;
        word-break: break-all;
        white-space: normal !important;
    }


    /* Durum / Kanal */
    .returns-panel .channel-badge,
    .returns-panel .status {
        max-width: 100%;
        white-space: nowrap;
    }

    .returns-panel .stock-ok {
        color: #0f8f62;
        font-size: 10px;
        font-weight: 700;
    }

    .returns-panel .stock-wait {
        color: #98a2b3;
    }

    .returns-panel .return-updated-cell {
        color: #667085;
        font-size: 10px;
    }


    /* Detay butonu */
    .returns-panel .return-action-cell {
        grid-column: 1 / -1;
        padding: 11px 0 0 !important;
        margin-top: 3px;
        border-top: 1px solid #f0f2f4 !important;
    }

    .returns-panel .return-action-cell::before {
        display: none !important;
    }

    .returns-panel .return-action-cell .order-detail-button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 38px;
        padding: 8px 12px;
        border-radius: 8px;
        background: #f0f9f5;
        color: #0f8f62;
        font-size: 11px;
        font-weight: 700;
        text-decoration: none;
    }


    /* Boş liste */
    .returns-panel .empty {
        display: block !important;
        grid-column: 1 / -1;
        padding: 25px 10px !important;
        text-align: center !important;
    }

    .returns-panel .empty::before {
        display: none !important;
    }


    /* Filtre alanı */
    .returns-panel .panel-header {
        align-items: stretch;
        gap: 12px;
    }

    .returns-panel .filters {
        width: 100%;
    }

    .returns-panel .filters select {
        min-width: 0;
        flex: 1;
    }

    .returns-panel .filter-button {
        flex: 0 0 auto;
    }
}

@media (max-width: 420px) {

    .returns-panel .table-wrap tbody tr {
        padding: 12px 10px;
    }

    .returns-panel .return-product-cell .product-image,
    .returns-panel .return-product-cell .product-image-placeholder {
        width: 58px !important;
        height: 58px !important;
        min-width: 58px !important;
        flex-basis: 58px !important;
    }
}



/* =========================================================
   RETURNS - PREMIUM HEADER
   ========================================================= */

.returns-hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 190px;
    margin-bottom: 18px;
    padding: 28px 32px;
    overflow: hidden;
    border: 1px solid #f5e3d2;
    border-radius: 20px;
    background:
        radial-gradient(circle at 92% 10%,
            rgba(249, 115, 22, .15) 0,
            rgba(249, 115, 22, .06) 26%,
            transparent 47%),
        linear-gradient(135deg, #fffdfa 0%, #fff8ef 100%);
    box-shadow: 0 7px 22px rgba(16, 24, 40, .05);
}

.returns-hero-icon {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    flex: 0 0 78px;
    border-radius: 18px;
    background: #ffead9;
    color: #d96908;
    font-size: 35px;
    font-weight: 800;
}

.returns-hero-content {
    position: relative;
    z-index: 2;
    flex: 1;
    min-width: 0;
}

.returns-hero-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #8a94a6;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .09em;
}

.returns-hero h1 {
    margin: 0;
    color: #101828;
    font-size: 31px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.035em;
}

.returns-hero p {
    max-width: 570px;
    margin: 10px 0 15px;
    color: #74829a;
    font-size: 13px;
    line-height: 1.55;
}

.returns-hero-market {
    display: inline-flex;
    align-items: center;
    min-height: 31px;
    padding: 6px 13px;
    border-radius: 9px;
    background: #ffead9;
    color: #f36c0a;
    font-size: 12px;
    font-weight: 750;
}

.returns-hero-decoration {
    position: absolute;
    right: 25px;
    top: 50%;
    z-index: 1;
    color: rgba(249, 115, 22, .055);
    font-size: 150px;
    font-weight: 900;
    line-height: 1;
    transform: translateY(-50%);
    pointer-events: none;
}


/* =========================================================
   RETURNS - STAT CARDS
   ========================================================= */

.returns-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.returns-stat-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
    min-height: 125px;
    padding: 20px;
    overflow: hidden;
    border: 1px solid #e8edf2;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(16, 24, 40, .045);
}

.returns-stat-card::after {
    content: "";
    position: absolute;
    top: -45px;
    right: -55px;
    width: 145px;
    height: 145px;
    border: 22px solid rgba(15, 143, 98, .035);
    border-radius: 50%;
}

.returns-stat-icon {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 13px;
    background: #eaf8f1;
    color: #159667;
    font-size: 23px;
    font-weight: 800;
}

.returns-stat-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.returns-stat-title {
    margin-bottom: 3px;
    color: #718096;
    font-size: 12px;
    font-weight: 750;
}

.returns-stat-content strong {
    color: #101828;
    font-size: 27px;
    font-weight: 800;
    line-height: 1.15;
}

.returns-stat-content small {
    margin-top: 4px;
    color: #98a2b3;
    font-size: 10px;
}

.returns-stat-arrow {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 1px solid #edf0f2;
    border-radius: 50%;
    background: #fff;
    color: #344054;
    font-size: 24px;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(16, 24, 40, .04);
}

.returns-stat-pending .returns-stat-icon {
    background: #fff3d8;
    color: #cc7a00;
}

.returns-stat-pending::after {
    border-color: rgba(245, 158, 11, .05);
}

.returns-stat-accepted .returns-stat-icon {
    background: #eaf3ff;
    color: #3976c5;
}

.returns-stat-accepted::after {
    border-color: rgba(59, 130, 246, .045);
}


/* =========================================================
   RETURNS PREMIUM - MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .returns-hero {
        align-items: flex-start;
        gap: 12px;
        min-height: 0;
        margin-bottom: 12px;
        padding: 16px 14px;
        border-radius: 14px;
    }

    .returns-hero-icon {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        border-radius: 11px;
        font-size: 22px;
    }

    .returns-hero-eyebrow {
        margin-bottom: 3px;
        font-size: 7px;
    }

    .returns-hero h1 {
        font-size: 20px;
    }

    .returns-hero p {
        margin: 6px 0 10px;
        padding-right: 5px;
        font-size: 10px;
        line-height: 1.4;
    }

    .returns-hero-market {
        min-height: 25px;
        padding: 4px 9px;
        border-radius: 7px;
        font-size: 9px;
    }

    .returns-hero-decoration {
        right: -5px;
        font-size: 92px;
    }

    .returns-stat-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 9px;
        margin-bottom: 15px;
    }

    .returns-stat-card {
        min-height: 92px;
        padding: 13px 14px;
        border-radius: 13px;
    }

    .returns-stat-icon {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        border-radius: 11px;
        font-size: 20px;
    }

    .returns-stat-title {
        font-size: 10px;
    }

    .returns-stat-content strong {
        font-size: 23px;
    }

    .returns-stat-content small {
        margin-top: 2px;
        font-size: 9px;
    }

    .returns-stat-arrow {
        width: 31px;
        height: 31px;
        flex-basis: 31px;
        font-size: 21px;
    }

    .returns-stat-card::after {
        top: -55px;
        right: -55px;
        width: 135px;
        height: 135px;
    }
}



/* =========================================================
   RETURN DETAILS - PREMIUM
   ========================================================= */

.return-detail-top {
    margin-bottom: 18px;
}

.return-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 13px;
    color: #667085;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    transition: color .15s ease, transform .15s ease;
}

.return-detail-back:hover {
    color: #d96908;
    transform: translateX(-2px);
}

.return-detail-back > span {
    font-size: 17px;
}


/* HERO */

.return-detail-hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 21px;
    min-height: 170px;
    padding: 27px 31px;
    overflow: hidden;
    border: 1px solid #f4e1ce;
    border-radius: 20px;
    background:
        radial-gradient(
            circle at 92% 12%,
            rgba(249,115,22,.15) 0,
            rgba(249,115,22,.055) 27%,
            transparent 48%
        ),
        linear-gradient(135deg, #fffdfa 0%, #fff8ef 100%);
    box-shadow: 0 7px 22px rgba(16,24,40,.05);
}

.return-detail-hero-icon {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    border-radius: 17px;
    background: #ffead9;
    color: #d96908;
    font-size: 32px;
    font-weight: 800;
}

.return-detail-hero-content {
    position: relative;
    z-index: 2;
    flex: 1;
    min-width: 0;
}

.return-detail-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #8a94a6;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .09em;
}

.return-detail-hero h1 {
    margin: 0;
    color: #101828;
    font-size: 31px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.035em;
}

.return-detail-hero-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 16px;
}

.return-detail-order-number {
    color: #667085;
    font-size: 12px;
    font-weight: 650;
}

.return-detail-hero-status,
.return-detail-hero-channel {
    min-height: 29px;
    display: inline-flex !important;
    align-items: center;
    padding: 5px 10px !important;
    border-radius: 8px !important;
    font-size: 10px !important;
    font-weight: 750 !important;
}

.return-detail-hero-decoration {
    position: absolute;
    top: 50%;
    right: 23px;
    z-index: 1;
    color: rgba(249,115,22,.055);
    font-size: 135px;
    font-weight: 900;
    line-height: 1;
    transform: translateY(-50%);
    pointer-events: none;
}


/* =========================================================
   RETURN DETAILS - GRID
   ========================================================= */

.return-detail-grid {
    gap: 18px;
}

.return-detail-main,
.return-detail-side {
    gap: 18px;
}

.return-detail-grid .detail-card {
    overflow: hidden;
    border: 1px solid #e8edf2;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(16,24,40,.045);
}

.return-detail-grid .detail-card-header {
    padding: 19px 21px;
    border-bottom: 1px solid #f0f2f4;
    background: linear-gradient(180deg, #fff 0%, #fdfefe 100%);
}

.return-detail-grid .detail-card-header h2 {
    margin: 0;
    color: #101828;
    font-size: 16px;
    font-weight: 750;
}

.return-detail-grid .detail-card-header p {
    margin: 4px 0 0;
    color: #98a2b3;
    font-size: 10px;
}


/* =========================================================
   RETURN DETAILS - PRODUCT
   ========================================================= */

.return-detail-grid .return-product {
    align-items: center;
    gap: 22px;
    padding: 24px;
}

.return-detail-grid .return-product-image {
    width: 130px;
    height: 130px;
    flex: 0 0 130px;
    border: 1px solid #eaecf0;
    border-radius: 15px;
    background: #f8fafb;
    object-fit: cover;
    box-shadow: 0 3px 10px rgba(16,24,40,.05);
}

.return-detail-grid .return-product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.return-detail-grid .return-product-content {
    min-width: 0;
    flex: 1;
}

.return-detail-grid .return-product-content h3 {
    margin: 0 0 7px;
    color: #101828;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.45;
}

.return-detail-grid .return-product-content > .barcode {
    display: inline-block;
    margin-bottom: 17px;
    color: #98a2b3;
    font-size: 10px;
}


/* PRICE BOXES */

.return-detail-grid .return-product-prices {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.return-detail-grid .return-product-prices > div {
    padding: 11px 12px;
    border: 1px solid #edf0f2;
    border-radius: 10px;
    background: #f9fbfa;
}

.return-detail-grid .return-product-prices small {
    display: block;
    margin-bottom: 4px;
    color: #98a2b3;
    font-size: 9px;
}

.return-detail-grid .return-product-prices strong {
    color: #101828;
    font-size: 13px;
}


/* =========================================================
   RETURN DETAILS - INFO FIELDS
   ========================================================= */

.return-detail-grid .detail-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 19px 21px 21px;
}

.return-detail-grid .detail-field {
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid #edf0f2;
    border-radius: 11px;
    background: #fafbfc;
}

.return-detail-grid .detail-field > span:first-child {
    display: block;
    margin-bottom: 6px;
    color: #98a2b3;
    font-size: 9px;
    font-weight: 650;
}

.return-detail-grid .detail-field > strong {
    display: block;
    max-width: 100%;
    color: #344054;
    font-size: 11px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}


/* =========================================================
   RETURN DETAILS - SUMMARY
   ========================================================= */

.return-detail-side .detail-card {
    position: sticky;
    top: 18px;
}

.return-detail-grid .detail-summary-row {
    margin: 0 20px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f2f4;
}

.return-detail-grid .detail-summary-row span {
    color: #667085;
    font-size: 11px;
}

.return-detail-grid .detail-summary-row strong {
    color: #101828;
    font-size: 12px;
    font-weight: 750;
}

.return-detail-grid .detail-summary-row.total {
    margin-top: 4px;
    margin-bottom: 10px;
    padding: 16px 13px;
    border: 0;
    border-radius: 10px;
    background: #f0f9f5;
}

.return-detail-grid .stock-ok {
    color: #0f8f62 !important;
}


/* =========================================================
   RETURN DETAILS - MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .return-detail-top {
        margin-bottom: 12px;
    }

    .return-detail-back {
        margin-bottom: 9px;
        font-size: 10px;
    }

    .return-detail-hero {
        align-items: flex-start;
        gap: 12px;
        min-height: 0;
        padding: 15px 13px;
        border-radius: 14px;
    }

    .return-detail-hero-icon {
        width: 45px;
        height: 45px;
        flex-basis: 45px;
        border-radius: 11px;
        font-size: 21px;
    }

    .return-detail-eyebrow {
        margin-bottom: 3px;
        font-size: 7px;
    }

    .return-detail-hero h1 {
        font-size: 20px;
    }

    .return-detail-hero-meta {
        gap: 6px;
        margin-top: 9px;
    }

    .return-detail-order-number {
        width: 100%;
        font-size: 9px;
    }

    .return-detail-hero-status,
    .return-detail-hero-channel {
        min-height: 24px;
        padding: 4px 8px !important;
        font-size: 8px !important;
    }

    .return-detail-hero-decoration {
        right: -5px;
        font-size: 85px;
    }


    /* Tek kolon */
    .return-detail-grid {
        display: block !important;
        width: 100%;
    }

    .return-detail-main,
    .return-detail-side {
        width: 100% !important;
        min-width: 0 !important;
    }

    .return-detail-main .detail-card,
    .return-detail-side .detail-card {
        margin-bottom: 11px;
        border-radius: 13px;
    }

    .return-detail-side .detail-card {
        position: static;
    }

    .return-detail-grid .detail-card-header {
        padding: 14px;
    }

    .return-detail-grid .detail-card-header h2 {
        font-size: 13px;
    }

    .return-detail-grid .detail-card-header p {
        font-size: 8px;
    }


    /* Ürün */
    .return-detail-grid .return-product {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 14px;
    }

    .return-detail-grid .return-product-image {
        width: 82px;
        height: 82px;
        flex-basis: 82px;
        border-radius: 10px;
    }

    .return-detail-grid .return-product-content h3 {
        margin-bottom: 5px;
        font-size: 11px;
        line-height: 1.4;
    }

    .return-detail-grid .return-product-content > .barcode {
        margin-bottom: 9px;
        font-size: 8px;
        overflow-wrap: anywhere;
    }

    .return-detail-grid .return-product-prices {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }

    .return-detail-grid .return-product-prices > div {
        min-width: 0;
        padding: 7px 5px;
        border-radius: 7px;
    }

    .return-detail-grid .return-product-prices small {
        font-size: 7px;
    }

    .return-detail-grid .return-product-prices strong {
        display: block;
        font-size: 9px;
        white-space: nowrap;
    }


    /* Bilgiler */
    .return-detail-grid .detail-fields {
        grid-template-columns: 1fr;
        gap: 7px;
        padding: 12px;
    }

    .return-detail-grid .detail-field {
        padding: 10px 11px;
        border-radius: 9px;
    }

    .return-detail-grid .detail-field > span:first-child {
        margin-bottom: 4px;
        font-size: 8px;
    }

    .return-detail-grid .detail-field > strong {
        font-size: 9px;
    }


    /* Özet */
    .return-detail-grid .detail-summary-row {
        margin: 0 13px;
        padding: 11px 0;
    }

    .return-detail-grid .detail-summary-row span {
        font-size: 9px;
    }

    .return-detail-grid .detail-summary-row strong {
        font-size: 10px;
    }

    .return-detail-grid .detail-summary-row.total {
        margin: 4px 12px 12px;
        padding: 11px;
    }
}

@media (max-width: 420px) {

    .return-detail-grid .return-product {
        display: block;
    }

    .return-detail-grid .return-product-image {
        width: 100%;
        height: 155px;
        margin-bottom: 11px;
        object-fit: contain;
        background: #fff;
    }

    .return-detail-grid .return-product-prices {
        width: 100%;
    }
}



/* =========================================================
   STOCK MANAGEMENT - PREMIUM
   ========================================================= */

.stocks-hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 185px;
    margin-bottom: 18px;
    padding: 29px 32px;
    overflow: hidden;
    border: 1px solid #dceee7;
    border-radius: 20px;
    background:
        radial-gradient(
            circle at 92% 10%,
            rgba(15,143,98,.15) 0,
            rgba(15,143,98,.06) 25%,
            transparent 47%
        ),
        linear-gradient(135deg, #ffffff 0%, #f3fbf7 100%);
    box-shadow: 0 7px 22px rgba(16,24,40,.05);
}

.stocks-hero-icon {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    flex: 0 0 78px;
    border-radius: 18px;
    background: #e4f6ed;
    color: #0f8f62;
    font-size: 34px;
    font-weight: 800;
}

.stocks-hero-content {
    position: relative;
    z-index: 2;
    flex: 1;
    min-width: 0;
}

.stocks-hero-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #7b8ba5;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .09em;
}

.stocks-hero h1 {
    margin: 0;
    color: #101828;
    font-size: 31px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.035em;
}

.stocks-hero p {
    margin: 9px 0 14px;
    color: #74829a;
    font-size: 13px;
}

.stock-channel-tabs {
    display: flex;
    gap: 8px;
    margin: 0 0 16px;
}

.stock-channel-tabs a {
    padding: 8px 16px;
    border-radius: 999px;
    background: #fff;
    color: #667085;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.stock-channel-tabs a.active {
    background: #111827;
    color: #fff;
}

.stocks-hero-channel {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 9px;
    background: #e4f6ed;
    color: #0f8f62;
    font-size: 11px;
    font-weight: 750;
}

.stocks-hero-decoration {
    position: absolute;
    top: 50%;
    right: 25px;
    z-index: 1;
    color: rgba(15,143,98,.055);
    font-size: 145px;
    font-weight: 900;
    line-height: 1;
    transform: translateY(-50%);
    pointer-events: none;
}


/* =========================================================
   STOCK STATS
   ========================================================= */

.stocks-stat-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 13px;
    margin-bottom: 20px;
}

.stocks-stat-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    min-height: 112px;
    padding: 17px;
    overflow: hidden;
    border: 1px solid #e8edf2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(16,24,40,.04);
}

.stocks-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    border-radius: 12px;
    background: #eaf8f1;
    color: #0f8f62;
    font-size: 19px;
    font-weight: 800;
}

.stocks-stat-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.stocks-stat-content span {
    color: #718096;
    font-size: 10px;
    font-weight: 750;
}

.stocks-stat-content strong {
    margin-top: 2px;
    color: #101828;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
}

.stocks-stat-content small {
    margin-top: 4px;
    color: #98a2b3;
    font-size: 8px;
}

.stocks-stat-total .stocks-stat-icon {
    background: #eaf3ff;
    color: #3976c5;
}

.stocks-stat-low .stocks-stat-icon {
    background: #fff3d8;
    color: #d08700;
}

.stocks-stat-out .stocks-stat-icon {
    background: #fff0ef;
    color: #d64b45;
}


/* =========================================================
   STOCK PANEL
   ========================================================= */

.stocks-panel {
    overflow: hidden;
    border-radius: 17px;
    box-shadow: 0 5px 18px rgba(16,24,40,.04);
}


/* =========================================================
   STOCK MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .stocks-hero {
        align-items: flex-start;
        gap: 12px;
        min-height: 0;
        margin-bottom: 11px;
        padding: 15px 13px;
        border-radius: 14px;
    }

    .stocks-hero-icon {
        width: 45px;
        height: 45px;
        flex-basis: 45px;
        border-radius: 11px;
        font-size: 21px;
    }

    .stocks-hero-eyebrow {
        margin-bottom: 3px;
        font-size: 7px;
    }

    .stocks-hero h1 {
        font-size: 20px;
    }

    .stocks-hero p {
        margin: 5px 0 9px;
        font-size: 9px;
        line-height: 1.4;
    }

    .stocks-hero-channel {
        min-height: 24px;
        padding: 4px 8px;
        border-radius: 7px;
        font-size: 8px;
    }

    .stocks-hero-decoration {
        right: -8px;
        font-size: 88px;
    }


    /* Özetler: mobilde kompakt */
    .stocks-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 13px;
    }

    .stocks-stat-card {
        min-height: 78px;
        gap: 9px;
        padding: 10px;
        border-radius: 12px;
    }

    .stocks-stat-products {
        grid-column: 1 / -1;
    }

    .stocks-stat-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        border-radius: 9px;
        font-size: 16px;
    }

    .stocks-stat-content span {
        font-size: 8px;
    }

    .stocks-stat-content strong {
        font-size: 19px;
    }

    .stocks-stat-content small {
        margin-top: 2px;
        font-size: 7px;
    }


    /* Panel */
    .stocks-panel {
        width: 100%;
        min-width: 0;
        border-radius: 13px;
    }

    .stocks-panel .panel-header {
        display: block;
        padding: 14px 12px;
    }

    .stocks-panel .panel-header h2 {
        font-size: 13px;
    }

    .stocks-panel .panel-header p {
        margin-top: 2px;
        font-size: 8px;
    }


    /* Filtre */
    .stocks-panel .filters {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 105px;
        gap: 6px;
        width: 100%;
        margin-top: 10px;
    }

    .stocks-panel .filter-input {
        grid-column: 1 / -1;
        width: 100% !important;
        min-width: 0 !important;
    }

    .stocks-panel .filter-select {
        width: 100% !important;
        min-width: 0 !important;
    }

    .stocks-panel .filter-button {
        width: 100%;
        min-width: 0;
    }


    /* Tablo -> Kart */
    .stocks-panel .table-wrap {
        width: 100%;
        min-width: 0;
        padding: 0 10px 10px;
        overflow: visible !important;
        border: 0 !important;
    }

    .stocks-panel table,
    .stocks-panel tbody {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .stocks-panel thead {
        display: none !important;
    }

    .stocks-panel tbody tr {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100% !important;
        min-width: 0 !important;
        margin-bottom: 10px;
        padding: 12px;
        overflow: hidden;
        border: 1px solid #e9edf1;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 2px 7px rgba(16,24,40,.04);
    }

    .stocks-panel tbody td {
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
        min-width: 0 !important;
        width: auto !important;
        padding: 8px 4px !important;
        border: 0 !important;
        text-align: left !important;
        white-space: normal !important;
    }

    .stocks-panel tbody td::before {
        display: block;
        margin-bottom: 5px;
        color: #98a2b3;
        font-size: 7px;
        font-weight: 750;
        letter-spacing: .035em;
        text-transform: uppercase;
        content: attr(data-label);
    }


    /* Ürün */
    .stocks-panel .stock-product-cell {
        grid-column: 1 / -1;
        padding: 2px 3px 12px !important;
        margin-bottom: 2px;
        border-bottom: 1px solid #f0f2f4 !important;
    }

    .stocks-panel .stock-product {
        display: flex;
        align-items: center;
        gap: 11px;
        width: 100%;
        min-width: 0;
    }

    .stocks-panel .stock-product-image {
        width: 64px !important;
        height: 64px !important;
        min-width: 64px !important;
        flex: 0 0 64px !important;
        border: 1px solid #eaecf0;
        border-radius: 10px;
        object-fit: cover;
        background: #f8fafb;
    }

    .stocks-panel .stock-image-placeholder {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .stocks-panel .stock-product > div:last-child {
        min-width: 0;
    }

    .stocks-panel .stock-product-name {
        display: block;
        color: #344054;
        font-size: 10px;
        font-weight: 700;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }


    /* Alanlar */
    .stocks-panel .stock-barcode {
        color: #667085;
        font-size: 9px;
        overflow-wrap: anywhere;
        word-break: break-all;
    }

    .stocks-panel .stock-quantity {
        color: #101828;
        font-size: 15px;
        font-weight: 800;
    }

    .stocks-panel .stock-table-date {
        color: #667085;
        font-size: 9px;
    }

    .stocks-panel .channel-badge,
    .stocks-panel .status {
        white-space: nowrap;
    }


    /* Empty */
    .stocks-panel .empty {
        display: block !important;
        grid-column: 1 / -1;
        padding: 25px 10px !important;
        text-align: center !important;
    }

    .stocks-panel .empty::before {
        display: none !important;
    }


    /* Pagination */
    .stocks-panel .pagination {
        gap: 8px;
        padding: 12px;
    }

    .stocks-panel .pagination > span {
        font-size: 8px;
    }

    .stocks-panel .pagination a {
        font-size: 9px;
    }
}

@media (max-width: 420px) {

    .stocks-panel .stock-product-image {
        width: 58px !important;
        height: 58px !important;
        min-width: 58px !important;
        flex-basis: 58px !important;
    }
}



/* =========================================================
   MARKETPLACES - PREMIUM
   ========================================================= */

.marketplaces-hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 185px;
    margin-bottom: 18px;
    padding: 29px 32px;
    overflow: hidden;
    border: 1px solid #dceee7;
    border-radius: 20px;
    background:
        radial-gradient(
            circle at 92% 10%,
            rgba(15,143,98,.15) 0,
            rgba(15,143,98,.06) 25%,
            transparent 47%
        ),
        linear-gradient(135deg, #fff 0%, #f3fbf7 100%);
    box-shadow: 0 7px 22px rgba(16,24,40,.05);
}

.marketplaces-hero-icon {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    flex: 0 0 78px;
    border-radius: 18px;
    background: #e4f6ed;
    color: #0f8f62;
    font-size: 36px;
    font-weight: 800;
}

.marketplaces-hero-content {
    position: relative;
    z-index: 2;
    flex: 1;
    min-width: 0;
}

.marketplaces-hero-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #7b8ba5;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .09em;
}

.marketplaces-hero h1 {
    margin: 0;
    color: #101828;
    font-size: 31px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.035em;
}

.marketplaces-hero p {
    margin: 9px 0 14px;
    color: #74829a;
    font-size: 13px;
}

.marketplaces-hero-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.marketplaces-channel-badge,
.marketplaces-connection {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 11px;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 750;
}

.marketplaces-channel-badge {
    background: #fff0e5;
    color: #e76f00;
}

.marketplaces-connection.connected {
    background: #e5f7ef;
    color: #0f8f62;
}

.marketplaces-connection.disconnected {
    background: #fff0ef;
    color: #c84b45;
}

.marketplaces-connection i {
    width: 6px;
    height: 6px;
    margin-right: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 3px rgba(15,143,98,.10);
}

.marketplaces-hero-decoration {
    position: absolute;
    top: 50%;
    right: 24px;
    z-index: 1;
    color: rgba(15,143,98,.055);
    font-size: 150px;
    font-weight: 900;
    line-height: 1;
    transform: translateY(-50%);
    pointer-events: none;
}


/* =========================================================
   MARKETPLACE MAIN CARD
   ========================================================= */

.marketplace-premium-card {
    overflow: hidden;
    border: 1px solid #e7ecef;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(16,24,40,.05);
}

.marketplace-premium-card .marketplace-header {
    padding: 22px 24px;
    border-bottom: 1px solid #eef1f3;
    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #fffaf6 100%
        );
}

.marketplace-premium-card .marketplace-brand {
    align-items: center;
    gap: 14px;
}

.marketplace-premium-card .marketplace-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ff7a00, #ef6500);
    color: #fff;
    font-size: 22px;
    font-weight: 850;
    box-shadow: 0 6px 14px rgba(239,101,0,.18);
}

.marketplace-premium-card .marketplace-name-row {
    gap: 8px;
}

.marketplace-premium-card .marketplace-name-row h2 {
    color: #101828;
    font-size: 19px;
    font-weight: 800;
}

.marketplace-premium-card .marketplace-brand p {
    margin-top: 4px;
    color: #8a94a6;
    font-size: 10px;
}


/* =========================================================
   MARKETPLACE STATS
   ========================================================= */

.marketplace-premium-card .marketplace-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 0;
    border-bottom: 1px solid #eef1f3;
}

.marketplace-premium-card .marketplace-stat {
    position: relative;
    min-width: 0;
    padding: 21px 22px;
    border-right: 1px solid #eef1f3;
}

.marketplace-premium-card .marketplace-stat:last-child {
    border-right: 0;
}

.marketplace-premium-card .marketplace-stat > span {
    display: block;
    margin-bottom: 5px;
    color: #8490a3;
    font-size: 9px;
    font-weight: 750;
}

.marketplace-premium-card .marketplace-stat > strong {
    display: block;
    color: #101828;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
}

.marketplace-premium-card .marketplace-stat > small {
    display: block;
    margin-top: 5px;
    color: #98a2b3;
    font-size: 8px;
    line-height: 1.4;
}


/* =========================================================
   SYNC SECTION
   ========================================================= */

.marketplace-premium-card .marketplace-section-title {
    padding: 22px 24px 13px;
}

.marketplace-premium-card .marketplace-section-title h3 {
    margin: 0;
    color: #101828;
    font-size: 16px;
    font-weight: 800;
}

.marketplace-premium-card .marketplace-section-title p {
    margin: 4px 0 0;
    color: #98a2b3;
    font-size: 9px;
}

.marketplace-premium-card .marketplace-sync-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0 24px 24px;
}

.marketplace-premium-card .sync-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    min-height: 185px;
    padding: 17px;
    border: 1px solid #e9edf1;
    border-radius: 13px;
    background: #fbfcfd;
    box-shadow: none;
}

.marketplace-sync-title {
    display: flex;
    align-items: center;
    gap: 9px;
}

.marketplace-sync-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 9px;
    background: #e6f6ef;
    color: #0f8f62;
    font-size: 15px;
    font-weight: 800;
}

.marketplace-sync-icon.warning {
    background: #fff1dc;
    color: #d78300;
}

.marketplace-premium-card .sync-card h4 {
    margin: 0;
    color: #101828;
    font-size: 13px;
    font-weight: 750;
}

.marketplace-premium-card .sync-card > div > p {
    margin: 12px 0 0;
    color: #748096;
    font-size: 9px;
    line-height: 1.55;
}

.marketplace-premium-card .sync-card form {
    width: 100%;
    margin-top: 15px;
}

.marketplace-premium-card .sync-button {
    width: 100%;
    min-height: 38px;
    border: 0;
    border-radius: 9px;
    background: #0f8f62;
    color: #fff;
    font-size: 9px;
    font-weight: 750;
    cursor: pointer;
    transition:
        transform .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}

.marketplace-premium-card .sync-button:hover {
    background: #0b7d55;
    box-shadow: 0 5px 12px rgba(15,143,98,.16);
    transform: translateY(-1px);
}

.marketplace-premium-card .sync-card-warning {
    border-color: #f0dfbd;
    background: #fffcf6;
}

.marketplace-premium-card .sync-button-warning {
    background: #d88a0b;
}

.marketplace-premium-card .sync-button-warning:hover {
    background: #bd7605;
}

.marketplace-premium-card .sync-warning {
    margin-top: 10px;
    padding: 9px 10px;
    border: 1px solid #f3dfb9;
    border-radius: 8px;
    background: #fff8e9;
    color: #956600;
    font-size: 8px;
    line-height: 1.45;
}


/* =========================================================
   MARKETPLACES MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .marketplaces-hero {
        align-items: flex-start;
        gap: 12px;
        min-height: 0;
        margin-bottom: 11px;
        padding: 15px 13px;
        border-radius: 14px;
    }

    .marketplaces-hero-icon {
        width: 45px;
        height: 45px;
        flex-basis: 45px;
        border-radius: 11px;
        font-size: 22px;
    }

    .marketplaces-hero-eyebrow {
        margin-bottom: 3px;
        font-size: 7px;
    }

    .marketplaces-hero h1 {
        font-size: 20px;
    }

    .marketplaces-hero p {
        margin: 5px 0 9px;
        font-size: 9px;
        line-height: 1.4;
    }

    .marketplaces-channel-badge,
    .marketplaces-connection {
        min-height: 23px;
        padding: 4px 7px;
        border-radius: 7px;
        font-size: 7px;
    }

    .marketplaces-connection i {
        width: 5px;
        height: 5px;
        margin-right: 4px;
    }

    .marketplaces-hero-decoration {
        right: -8px;
        font-size: 88px;
    }


    /* Ana kart */
    .marketplace-premium-card {
        width: 100%;
        min-width: 0;
        border-radius: 13px;
    }

    .marketplace-premium-card .marketplace-header {
        padding: 14px 12px;
    }

    .marketplace-premium-card .marketplace-brand {
        gap: 10px;
    }

    .marketplace-premium-card .marketplace-logo {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        border-radius: 10px;
        font-size: 17px;
    }

    .marketplace-premium-card .marketplace-name-row {
        flex-wrap: wrap;
        gap: 5px;
    }

    .marketplace-premium-card .marketplace-name-row h2 {
        font-size: 14px;
    }

    .marketplace-premium-card .marketplace-brand p {
        margin-top: 2px;
        font-size: 8px;
        line-height: 1.4;
    }


    /* İstatistikler 2x2 */
    .marketplace-premium-card .marketplace-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .marketplace-premium-card .marketplace-stat {
        padding: 13px 12px;
        border-right: 1px solid #eef1f3;
        border-bottom: 1px solid #eef1f3;
    }

    .marketplace-premium-card .marketplace-stat:nth-child(2n) {
        border-right: 0;
    }

    .marketplace-premium-card .marketplace-stat:nth-last-child(-n+2) {
        border-bottom: 0;
    }

    .marketplace-premium-card .marketplace-stat > span {
        margin-bottom: 3px;
        font-size: 7px;
    }

    .marketplace-premium-card .marketplace-stat > strong {
        font-size: 18px;
    }

    .marketplace-premium-card .marketplace-stat > small {
        margin-top: 3px;
        font-size: 7px;
        overflow-wrap: anywhere;
    }


    /* Senkronizasyon */
    .marketplace-premium-card .marketplace-section-title {
        padding: 15px 12px 9px;
    }

    .marketplace-premium-card .marketplace-section-title h3 {
        font-size: 13px;
    }

    .marketplace-premium-card .marketplace-section-title p {
        font-size: 8px;
    }

    .marketplace-premium-card .marketplace-sync-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 0 10px 11px;
    }

    .marketplace-premium-card .sync-card {
        min-height: 0;
        padding: 12px;
        border-radius: 10px;
    }

    .marketplace-sync-icon {
        width: 29px;
        height: 29px;
        flex-basis: 29px;
        border-radius: 8px;
        font-size: 13px;
    }

    .marketplace-premium-card .sync-card h4 {
        font-size: 11px;
    }

    .marketplace-premium-card .sync-card > div > p {
        margin-top: 8px;
        font-size: 8px;
        line-height: 1.45;
    }

    .marketplace-premium-card .sync-card form {
        margin-top: 10px;
    }

    .marketplace-premium-card .sync-button {
        min-height: 35px;
        font-size: 8px;
        border-radius: 8px;
    }

    .marketplace-premium-card .sync-warning {
        margin-top: 8px;
        padding: 8px;
        font-size: 7px;
    }


    /* Modal telefonda taşmasın */
    .sync-modal-overlay,
    .confirm-modal-overlay {
        padding: 14px !important;
    }

    .sync-modal,
    .confirm-modal {
        width: min(100%, 380px) !important;
        max-width: 100% !important;
        max-height: calc(100vh - 28px);
        overflow-y: auto;
        border-radius: 14px !important;
    }
}

@media (max-width: 420px) {

    .marketplaces-hero {
        padding: 13px 11px;
    }

    .marketplace-premium-card .marketplace-stat {
        min-width: 0;
        padding: 11px 10px;
    }

    .marketplace-premium-card .marketplace-stat > strong {
        font-size: 17px;
    }
}



/* =========================================================
   PROFILE
   ========================================================= */

.profile-page {
    width: 100%;
    max-width: 1180px;
}

.profile-heading {
    gap: 16px;
}

.profile-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.profile-summary-card,
.profile-form-card,
.password-card {
    border: 1px solid #e8ebef;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(31, 41, 55, .04);
}

.profile-summary-card {
    padding: 30px 24px;
    text-align: center;
}

.profile-large-avatar {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    border-radius: 50%;
    color: #fff;
    background: #0f8f62;
    font-size: 27px;
    font-weight: 700;
}

.profile-summary-card h2 {
    margin: 0;
    color: #1f2937;
    font-size: 18px;
}

.profile-summary-card > p {
    margin: 5px 0 12px;
    color: #8993a2;
    font-size: 12px;
}

.profile-role {
    display: inline-flex;
    padding: 5px 11px;
    border-radius: 20px;
    color: #087451;
    background: #e8f7f1;
    font-size: 11px;
    font-weight: 700;
}

.profile-summary-info {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid #eef0f3;
    text-align: left;
}

.profile-summary-info > div + div {
    margin-top: 16px;
}

.profile-summary-info span,
.profile-summary-info strong {
    display: block;
}

.profile-summary-info span {
    margin-bottom: 4px;
    color: #9aa3b0;
    font-size: 10px;
}

.profile-summary-info strong {
    color: #46505f;
    font-size: 12px;
}

.profile-form-card {
    padding: 28px;
}

.profile-card-header {
    margin-bottom: 25px;
}

.profile-card-header h2 {
    margin: 0 0 5px;
    color: #1f2937;
    font-size: 18px;
}

.profile-card-header p {
    margin: 0;
    color: #8993a2;
    font-size: 12px;
}

.profile-field {
    margin-bottom: 19px;
}

.profile-field label {
    display: block;
    margin-bottom: 7px;
    color: #46505f;
    font-size: 12px;
    font-weight: 600;
}

.profile-input {
    width: 100%;
    height: 46px;
    box-sizing: border-box;
    padding: 0 13px;
    border: 1px solid #dfe3e8;
    border-radius: 9px;
    outline: none;
    color: #253041;
    background: #fff;
    font: inherit;
    font-size: 13px;
    transition: border-color .2s, box-shadow .2s;
}

.profile-input:focus {
    border-color: #0f8f62;
    box-shadow: 0 0 0 3px rgba(15, 143, 98, .09);
}

.profile-input-readonly {
    color: #7c8796;
    background: #f7f8fa;
    cursor: not-allowed;
}

.profile-field small {
    display: block;
    margin-top: 6px;
    color: #9aa3b0;
    font-size: 10px;
}

.profile-field > span.field-validation-error {
    display: block;
    margin-top: 5px;
    color: #dc3545;
    font-size: 11px;
}

.profile-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 8px;
}

.profile-primary-button,
.profile-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border-radius: 9px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.profile-primary-button {
    min-height: 43px;
    padding: 0 19px;
    border: 0;
    color: #fff;
    background: #0f8f62;
    font-size: 12px;
}

.profile-primary-button:hover {
    background: #0c7d56;
}

.profile-secondary-button {
    min-height: 40px;
    padding: 0 15px;
    border: 1px solid #dfe3e8;
    color: #536071;
    background: #fff;
    font-size: 11px;
}

.profile-secondary-button:hover {
    border-color: #cbd2da;
    background: #f8f9fa;
}

.profile-alert {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    padding: 12px 15px;
    border-radius: 9px;
    font-size: 12px;
}

.profile-alert-success {
    border: 1px solid #bfe7d8;
    color: #087451;
    background: #edf9f4;
}

.profile-validation {
    margin-bottom: 16px;
    padding: 11px 13px;
    border-radius: 8px;
    color: #b42318;
    background: #fff1f0;
    font-size: 11px;
}

.profile-validation.validation-summary-valid {
    display: none;
}

.password-card {
    width: 100%;
    max-width: 600px;
    padding: 30px;
}

.password-card-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 12px;
    color: #0f8f62;
    background: #eaf7f2;
    font-size: 22px;
}

@media (max-width: 800px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-summary-card {
        padding: 23px 20px;
    }

    .profile-form-card,
    .password-card {
        padding: 22px 18px;
    }

    .password-card {
        max-width: none;
    }

    .profile-heading .profile-secondary-button {
        align-self: flex-start;
    }
}

@media (max-width: 600px) {
    .profile-actions {
        display: block;
    }

    .profile-primary-button {
        width: 100%;
    }
}


/* =========================================================
   SIDEBAR USER MENU
   ========================================================= */

.sidebar-user {
    position: relative;
    margin-top: auto;
}

.sidebar-user-button {
    width: 100%;
    border: 0;
    border-top: 1px solid #283243;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.sidebar-user-button:hover {
    background: rgba(255, 255, 255, .035);
}

.sidebar-user-info {
    min-width: 0;
    flex: 1;
}

.sidebar-user-info strong,
.sidebar-user-info span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user-chevron {
    margin-left: auto !important;
    color: #7f8b9e !important;
    font-size: 12px !important;
    transition: transform .2s ease;
}

.sidebar-user-button[aria-expanded="true"] .sidebar-user-chevron {
    transform: rotate(180deg);
}

.sidebar-user-menu {
    position: absolute;
    z-index: 100;
    left: 6px;
    right: 6px;
    bottom: calc(100% + 8px);
    display: none;
    overflow: hidden;
    padding: 6px;
    border: 1px solid #303b4c;
    border-radius: 11px;
    background: #202a39;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .24);
}

.sidebar-user-menu.open {
    display: block;
}

.sidebar-user-menu-header {
    padding: 9px 10px 10px;
}

.sidebar-user-menu-header strong,
.sidebar-user-menu-header span {
    display: block;
}

.sidebar-user-menu-header strong {
    color: #fff;
    font-size: 12px;
}

.sidebar-user-menu-header span {
    margin-top: 3px;
    color: #8390a3;
    font-size: 10px;
}

.sidebar-user-menu-item {
    width: 100%;
    min-height: 36px;
    display: flex;
    align-items: center;
    gap: 9px;
    box-sizing: border-box;
    padding: 0 10px;
    border: 0;
    border-radius: 7px;
    color: #cbd2dc;
    background: transparent;
    text-decoration: none;
    font-family: inherit;
    font-size: 11px;
    text-align: left;
    cursor: pointer;
}

.sidebar-user-menu-item:hover {
    color: #fff;
    background: #2b3647;
}

.sidebar-user-menu-item > span {
    width: 17px;
    margin: 0;
    color: #8d99aa;
    font-size: 14px;
    text-align: center;
}

.sidebar-user-menu-separator {
    height: 1px;
    margin: 5px 6px;
    background: #313c4d;
}

.sidebar-logout-form {
    margin: 0;
}

.sidebar-logout-button {
    color: #f4a5a5;
}

.sidebar-logout-button:hover {
    color: #fff;
    background: #713737;
}

@media (max-width: 1024px) {
    .sidebar:not(.mobile-open) .sidebar-user-info,
    .sidebar:not(.mobile-open) .sidebar-user-chevron {
        display: none !important;
    }

    .sidebar:not(.mobile-open) .sidebar-user-menu {
        display: none !important;
    }

    .sidebar.mobile-open .sidebar-user {
        width: 100%;
    }

    .sidebar.mobile-open .sidebar-user-button {
        padding: 14px 8px !important;
    }
}


/* =========================================================
   USER MANAGEMENT
   ========================================================= */

.users-page {
    width: 100%;
}

.users-heading {
    gap: 16px;
}

.users-primary-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 16px;
    border-radius: 9px;
    color: #fff;
    background: #0f8f62;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.users-primary-button:hover {
    background: #0c7d56;
}

.users-primary-button span {
    font-size: 17px;
    font-weight: 400;
}

.users-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.users-summary-card {
    padding: 18px 20px;
    border: 1px solid #e8ebef;
    border-radius: 12px;
    background: #fff;
}

.users-summary-card span,
.users-summary-card strong {
    display: block;
}

.users-summary-card span {
    color: #8d97a5;
    font-size: 11px;
}

.users-summary-card strong {
    margin-top: 7px;
    color: #253041;
    font-size: 23px;
}

.users-card {
    overflow: hidden;
    border: 1px solid #e8ebef;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(31, 41, 55, .035);
}

.users-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px;
    border-bottom: 1px solid #eef0f3;
}

.users-card-header h2 {
    margin: 0;
    color: #253041;
    font-size: 15px;
}

.users-card-header p {
    margin: 4px 0 0;
    color: #929baa;
    font-size: 10px;
}

.users-table-wrap {
    overflow-x: auto;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
}

.users-table th {
    padding: 12px 18px;
    color: #929baa;
    background: #fafbfc;
    font-size: 10px;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
}

.users-table td {
    padding: 14px 18px;
    border-top: 1px solid #f0f2f4;
    color: #566171;
    font-size: 11px;
    vertical-align: middle;
}

.users-table tbody tr:hover {
    background: #fcfdfd;
}

.users-person {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 220px;
}

.users-avatar {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    color: #087451;
    background: #e7f6f0;
    font-size: 12px;
    font-weight: 700;
}

.users-person strong,
.users-person span {
    display: block;
}

.users-person strong {
    color: #303a49;
    font-size: 12px;
}

.users-person span {
    max-width: 310px;
    margin-top: 3px;
    overflow: hidden;
    color: #929baa;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.users-role,
.users-status {
    display: inline-flex;
    align-items: center;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
}

.users-role {
    padding: 5px 9px;
    color: #536071;
    background: #f0f2f5;
}

.users-role.admin {
    color: #087451;
    background: #e7f6f0;
}

.users-status {
    gap: 6px;
}

.users-status i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.users-status.active {
    color: #087451;
}

.users-status.active i {
    background: #13a673;
}

.users-status.passive {
    color: #a1a8b2;
}

.users-status.passive i {
    background: #aeb5bf;
}

.users-last-login {
    color: #7e8897;
    white-space: nowrap;
}

.users-row-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

.users-action-button {
    min-height: 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid #e0e4e9;
    border-radius: 7px;
    color: #596576;
    background: #fff;
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
}

.users-action-button:hover {
    border-color: #bcded1;
    color: #087451;
    background: #f5fbf8;
}

.users-actions-cell {
    text-align: right;
}

.users-empty {
    padding: 50px 20px;
    color: #929baa;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 760px) {
    .users-summary-grid {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .users-heading .users-primary-button {
        align-self: flex-start;
    }

    .users-table-wrap {
        overflow: visible;
    }

    .users-table,
    .users-table tbody,
    .users-table tr,
    .users-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .users-table thead {
        display: none;
    }

    .users-table tbody {
        padding: 10px;
    }

    .users-table tbody tr {
        margin-bottom: 10px;
        padding: 14px;
        border: 1px solid #edf0f2;
        border-radius: 11px;
    }

    .users-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 8px 0;
        border: 0;
        border-bottom: 1px solid #f1f3f5;
    }

    .users-table td::before {
        content: attr(data-label);
        color: #9aa3b0;
        font-size: 10px;
    }

    .users-table td:first-child {
        display: block;
        padding-top: 0;
    }

    .users-table td:first-child::before,
    .users-actions-cell::before {
        display: none;
    }

    .users-table td:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .users-row-actions {
        width: 100%;
    }

    .users-action-button {
        flex: 1;
    }
}


/* CREATE USER MODAL V2 */

body.modal-open {
    overflow: hidden;
}

.users-primary-button {
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.user-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, .48);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity .18s ease,
        visibility .18s ease;
}

.user-modal-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.user-modal {
    width: min(620px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 25px 80px rgba(15, 23, 42, .25);
    transform: translateY(14px) scale(.985);
    transition: transform .18s ease;
}

.user-modal-backdrop.open .user-modal {
    transform: translateY(0) scale(1);
}

.user-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px 18px;
    border-bottom: 1px solid #edf0f2;
}

.user-modal-title {
    display: flex;
    align-items: center;
    gap: 13px;
}

.user-modal-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 12px;
    color: #087451;
    background: #e7f6f0;
    font-size: 25px;
    font-weight: 300;
}

.user-modal-title h2 {
    margin: 0;
    color: #273142;
    font-size: 17px;
    font-weight: 700;
}

.user-modal-title p {
    margin: 4px 0 0;
    color: #929baa;
    font-size: 10px;
}

.user-modal-close {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    border-radius: 8px;
    color: #8b95a3;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: 23px;
    line-height: 1;
}

.user-modal-close:hover {
    color: #384252;
    background: #f3f5f7;
}

.user-modal-body {
    padding: 22px 24px;
}

.user-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.user-form-full {
    margin-bottom: 16px;
}

.user-form-group {
    min-width: 0;
}

.user-form-group label {
    display: block;
    margin-bottom: 7px;
    color: #596576;
    font-size: 10px;
    font-weight: 700;
}

.user-form-group input,
.user-form-group select {
    width: 100%;
    height: 42px;
    box-sizing: border-box;
    padding: 0 12px;
    border: 1px solid #dfe4e9;
    border-radius: 9px;
    outline: none;
    color: #303a49;
    background: #fff;
    font-family: inherit;
    font-size: 11px;
    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.user-form-group input::placeholder {
    color: #b2b9c2;
}

.user-form-group input:focus,
.user-form-group select:focus {
    border-color: #59b696;
    box-shadow: 0 0 0 3px rgba(15, 143, 98, .09);
}

.user-password-wrap {
    position: relative;
}

.user-password-wrap input {
    padding-right: 62px;
}

.user-password-toggle {
    position: absolute;
    top: 50%;
    right: 7px;
    padding: 5px 7px;
    border: 0;
    border-radius: 6px;
    color: #0f8f62;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
    font-family: inherit;
    font-size: 9px;
    font-weight: 700;
}

.user-password-toggle:hover {
    background: #eef8f4;
}

.user-modal-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 19px;
    padding: 11px 13px;
    border: 1px solid #dcefe7;
    border-radius: 9px;
    color: #657164;
    background: #f6fbf9;
    font-size: 9px;
    line-height: 1.5;
}

.user-modal-note strong {
    flex: 0 0 auto;
    color: #087451;
}

.user-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    padding: 16px 24px;
    border-top: 1px solid #edf0f2;
    border-radius: 0 0 18px 18px;
    background: #fbfcfc;
}

.user-modal-cancel,
.user-modal-submit {
    min-height: 39px;
    padding: 0 16px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
}

.user-modal-cancel {
    border: 1px solid #dfe4e9;
    color: #657080;
    background: #fff;
}

.user-modal-cancel:hover {
    background: #f5f6f7;
}

.user-modal-submit {
    border: 1px solid #0f8f62;
    color: #fff;
    background: #0f8f62;
    box-shadow: 0 4px 10px rgba(15, 143, 98, .14);
}

.user-modal-submit:hover {
    background: #0c7d56;
}

@media (max-width: 640px) {
    .user-modal-backdrop {
        align-items: flex-end;
        padding: 10px;
    }

    .user-modal {
        width: 100%;
        max-height: calc(100vh - 20px);
        border-radius: 16px;
    }

    .user-modal-header,
    .user-modal-body {
        padding-left: 18px;
        padding-right: 18px;
    }

    .user-form-grid {
        grid-template-columns: 1fr;
    }

    .user-modal-footer {
        padding: 14px 18px;
    }

    .user-modal-cancel,
    .user-modal-submit {
        flex: 1;
    }
}

.sale-modal {
    width: min(720px, calc(100vw - 32px));
}

.sale-product-list {
    max-height: 220px;
    margin-top: 8px;
    overflow: auto;
    border: 1px solid #e6e8ee;
    border-radius: 10px;
    background: #fff;
}

.sale-product-item {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 10px 12px;
    border: 0;
    border-bottom: 1px solid #f0f2f5;
    background: #fff;
    text-align: left;
    cursor: pointer;
}

.sale-product-item span {
    color: #8b95a5;
    font-size: 12px;
}

.sale-product-item.selected {
    background: #e8f7f1;
}

.sale-product-item.is-hidden,
.sale-product-empty[hidden] {
    display: none !important;
}

.sale-product-empty {
    margin: 0;
    padding: 14px 12px;
    color: #8b95a5;
    font-size: 13px;
}

.heading-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.finance-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0 20px 18px;
    padding: 14px;
    border: 1px solid #e7eaf0;
    border-radius: 12px;
    background: #f8fafc;
}

.finance-strip span,
.finance-strip p {
    display: block;
    color: #667085;
    font-size: 12px;
}

.finance-strip strong {
    display: block;
    margin-top: 4px;
    font-size: 18px;
}

.finance-strip p {
    grid-column: 1 / -1;
    margin: 0;
}

.report-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.settings-card {
    padding: 18px;
    border: 1px solid #e7eaf0;
    border-radius: 14px;
    background: #fff;
}

.settings-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.settings-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #111827;
    color: #fff;
    font-weight: 800;
}

.settings-card h2 {
    margin: 0 0 6px;
    font-size: 18px;
}

.settings-card p {
    margin: 0;
    color: #667085;
    font-size: 14px;
}

button.website-detail {
    padding: 0;
    border: 0;
    background: none;
    text-align: left;
    cursor: pointer;
}

@media (max-width: 900px) {
    .report-grid,
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

.settings-list {
    display: grid;
    gap: 10px;
    padding: 4px 20px 18px;
}

.settings-list p {
    margin: 0;
    color: #344054;
    font-size: 14px;
}

a.returns-stat-card {
    color: inherit;
    text-decoration: none;
}

@media (max-width: 800px) {
    .finance-strip {
        grid-template-columns: 1fr;
    }
}

.stock-product-image,
.order-product-image,
.product-image {
    object-fit: cover;
    background: #f3f5f8;
}

@media (max-width: 1100px) {
    .summary-grid,
    .returns-stat-grid {
        grid-template-columns: 1fr;
    }

    .panel-header,
    .page-heading,
    .filters {
        align-items: stretch;
    }

    .filters,
    .filters .filter-input,
    .filters select,
    .filter-button {
        width: 100%;
    }
}
