body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.mz-chart-tooltip {
    min-width: 190px;
    max-width: min(360px, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
    overflow: auto;
    color: #172033;
    font-family: "Inter", "Noto Sans", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
}

.mz-chart-tooltip__title {
    margin-bottom: 9px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e7ebf0;
    color: #101828;
    font-size: 13px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.mz-chart-tooltip__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
    color: #667085;
    font-size: 12px;
}

.mz-chart-tooltip__row span { min-width: 0; overflow-wrap: anywhere; }
.mz-chart-tooltip__row strong { flex: 0 0 auto; color: #172033; font-size: 13px; text-align: right; }
.mz-chart-tooltip__dot { width: 8px; height: 8px; display: inline-block; margin-right: 7px; border-radius: 50%; }
.mz-chart-tooltip__note { margin-top: 9px; color: #7a8494; font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }

/* User-entered textarea content must keep its original line breaks and spacing. */
.app-user-text {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    tab-size: 4;
}

.card {
    border-radius: 12px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.08);
}

.btn-primary {
    border-radius: 8px;
    padding: 6px 14px;
}

.table th {
    font-weight: 600;
}

.btn-check[type="radio"] + .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.btn-check[type="radio"] + .btn::before {
    content: "";
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin-right: 5px;
    border: 2px solid #111827;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 6px #fff;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.btn-check[type="radio"]:checked + .btn::before {
    border-color: #111827;
    background: #22c55e;
    box-shadow:
        inset 0 0 0 4px #fff,
        0 0 0 3px rgba(34, 197, 94, .18);
    transform: scale(1.04);
}

.btn-check[type="radio"]:checked + .btn {
    border-color: #111827;
    box-shadow: 0 0 0 .18rem rgba(34, 197, 94, .2);
}

@media (max-width: 575.98px) {
    .btn-check[type="radio"] + .btn {
        width: 100%;
        justify-content: flex-start;
        text-align: left;
        white-space: normal;
    }
}

.ready-product-nav {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 1.5rem;
    padding: 7px;
    border: 1px solid #e1e6ec;
    border-radius: 15px;
    background: linear-gradient(135deg, #f7f9fb, #fff);
    box-shadow: 0 8px 24px rgba(16, 24, 40, .055);
}

.ready-product-nav-item {
    --ready-nav-accent: #475467;
    --ready-nav-soft: #eef1f4;
    position: relative;
    min-width: 0;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 7px 9px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #536071;
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: color .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.ready-product-nav-icon {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    flex: 0 0 31px;
    border-radius: 8px;
    background: var(--ready-nav-soft);
    color: var(--ready-nav-accent);
    font-size: 1rem;
    transition: background .16s ease, color .16s ease;
}

.ready-product-nav-item:hover,
.ready-product-nav-item:focus-visible {
    border-color: #dce2e8;
    background: #fff;
    color: #172033;
    box-shadow: 0 6px 14px rgba(16, 24, 40, .07);
    transform: translateY(-1px);
    outline: none;
}

.ready-product-nav-item.is-active {
    border-color: color-mix(in srgb, var(--ready-nav-accent) 34%, #dce2e8);
    background: #fff;
    color: #172033;
    box-shadow: 0 6px 16px rgba(16, 24, 40, .09), inset 0 -3px 0 var(--ready-nav-accent);
}

.ready-product-nav-item.is-active .ready-product-nav-icon {
    background: var(--ready-nav-accent);
    color: #fff;
}

.ready-product-nav-item--panel { --ready-nav-accent: #475467; --ready-nav-soft: #e9edf2; }
.ready-product-nav-item--entry { --ready-nav-accent: #247450; --ready-nav-soft: #e5f3eb; }
.ready-product-nav-item--shipment { --ready-nav-accent: #2457a6; --ready-nav-soft: #e6eef9; }
.ready-product-nav-item--stock { --ready-nav-accent: #b66a16; --ready-nav-soft: #fff0dc; }
.ready-product-nav-item--movements { --ready-nav-accent: #7045a4; --ready-nav-soft: #f0e8f8; }
.ready-product-nav-item--customers { --ready-nav-accent: #087ca6; --ready-nav-soft: #e2f2f7; }

@media (max-width: 991.98px) {
    .ready-product-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
    .ready-product-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 6px; }
    .ready-product-nav-item { min-height: 48px; justify-content: flex-start; padding-inline: 8px; text-align: left; }
}

@media (max-width: 359.98px) {
    .ready-product-nav { grid-template-columns: 1fr; }
}

.ready-product-advanced-filter {
    margin-top: 1.1rem;
    padding: 15px;
    border: 1px solid #dfe5eb;
    border-radius: 15px;
    background: linear-gradient(135deg, #f8fafc, #fff);
    box-shadow: inset 0 1px 0 #fff, 0 8px 22px rgba(16, 24, 40, .045);
}

.ready-product-advanced-filter-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 13px;
}

.ready-product-advanced-filter-heading > span {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    border-radius: 10px;
    background: #e7f0fb;
    color: #2457a6;
}

.ready-product-advanced-filter-heading strong,
.ready-product-advanced-filter-heading small { display: block; }
.ready-product-advanced-filter-heading strong { color: #172033; font-size: 1.125rem; }
.ready-product-advanced-filter-heading small { margin-top: 2px; color: #596579; font-size: .9375rem; }

.ready-product-advanced-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 11px;
}

.ready-product-filter-attributes { display: contents; }
.ready-product-filter-attributes.is-empty { display: none; }

.ready-product-filter-field {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ready-product-filter-field > span {
    color: #465368;
    font-size: .9375rem;
    font-weight: 800;
    letter-spacing: .025em;
}

.ready-product-filter-field > div {
    position: relative;
}

.ready-product-filter-field > div > i {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 12px;
    color: #8792a2;
    transform: translateY(-50%);
    pointer-events: none;
}

.ready-product-filter-field input,
.ready-product-filter-field select {
    width: 100%;
    min-height: 43px;
    padding: 8px 11px;
    border: 1px solid #d9e0e7;
    border-radius: 10px;
    background-color: #fff;
    color: #263142;
    font-size: 1rem;
    outline: none;
}

.ready-product-filter-field > div input { padding-left: 36px; }
.ready-product-filter-field input:focus,
.ready-product-filter-field select:focus {
    border-color: #6489bd;
    box-shadow: 0 0 0 3px rgba(36, 87, 166, .10);
}

.ready-product-filter-field .select2-container { width: 100% !important; min-width: 0; }
.ready-product-filter-field .select2-container--default .select2-selection--single { min-height: 43px; border-color: #d9e0e7; border-radius: 10px; background: #fff; font-size: 1rem; }
.ready-product-filter-field .select2-container--default .select2-selection--single .select2-selection__rendered { color: #263142; }
.ready-product-filter-field .select2-container--default.select2-container--focus .select2-selection--single,
.ready-product-filter-field .select2-container--default.select2-container--open .select2-selection--single { border-color: #6489bd; box-shadow: 0 0 0 3px rgba(36,87,166,.10); }

.ready-product-advanced-filter-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 13px;
    padding-top: 12px;
    border-top: 1px solid #e9edf1;
}

.ready-product-advanced-filter-actions > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #596579;
    font-size: .9375rem;
}

.ready-product-advanced-filter-actions > span.is-hidden { visibility: hidden; }
.ready-product-advanced-filter-actions > div { display: flex; align-items: center; gap: 8px; }

.ready-product-filter-reset,
.ready-product-filter-submit {
    min-height: 39px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 11px;
    border-radius: 9px;
    font-size: .9375rem;
    font-weight: 750;
    text-decoration: none;
}

.ready-product-filter-reset { border: 1px solid #dce2e8; background: #fff; color: #667085; }
.ready-product-filter-submit { border: 1px solid #2457a6; background: #2457a6; color: #fff; box-shadow: 0 6px 14px rgba(36, 87, 166, .17); }
.ready-product-filter-reset:hover,
.ready-product-filter-reset:focus-visible { border-color: #b8c1cc; color: #172033; outline: none; }
.ready-product-filter-submit:hover,
.ready-product-filter-submit:focus-visible { border-color: #1c4687; background: #1c4687; color: #fff; outline: none; }

@media (max-width: 767.98px) {
    .ready-product-advanced-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ready-product-advanced-filter-actions { align-items: stretch; flex-direction: column; }
    .ready-product-advanced-filter-actions > span.is-hidden { display: none; }
    .ready-product-advanced-filter-actions > div { justify-content: flex-end; }
}

@media (max-width: 479.98px) {
    .ready-product-advanced-filter { padding: 13px; }
    .ready-product-advanced-filter-grid { grid-template-columns: 1fr; }
    .ready-product-advanced-filter-actions > div { display: grid; grid-template-columns: 1fr 1fr; }
}

.ready-product-dashboard {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ready-product-insight-widget {
    position: relative;
    overflow: hidden;
    min-height: 340px;
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid #dfe5ec;
    border-top: 3px solid #e87528;
    border-radius: 15px;
    background: radial-gradient(circle at 100% 0, rgba(232, 117, 40, .075), transparent 25%), #fff;
    box-shadow: 0 14px 38px rgba(16, 24, 40, .07);
}

.ready-product-insight-heading { position: relative; z-index: 1; min-width: 0; margin-bottom: .5rem; }
.ready-product-insight-heading h2,
.ready-product-insight-heading h3 { margin: 0; color: #172033; font-size: clamp(1.05rem, 3.5vw, 1.22rem); font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.ready-product-insight-heading p { margin: .3rem 0 0; color: #667085; font-size: .82rem; line-height: 1.45; overflow-wrap: anywhere; }

.ready-product-insight-chart {
    width: 100%;
    height: 305px;
}

.ready-product-insight-widget[data-ready-customer-history-widget] {
    min-height: 395px;
}

.ready-product-insight-widget[data-ready-customer-history-widget] .ready-product-insight-chart {
    height: 355px;
}

@media (max-width: 575.98px) {
    .ready-product-insight-widget { min-height: 325px; padding: .75rem; }
    .ready-product-insight-chart { height: 290px; }
    .ready-product-insight-widget[data-ready-customer-history-widget] { min-height: 385px; }
    .ready-product-insight-widget[data-ready-customer-history-widget] .ready-product-insight-chart { height: 345px; }
    .mz-chart-tooltip { min-width: 0; max-width: min(320px, calc(100vw - 24px)); }
}

.ready-product-dashboard-hero,
.ready-product-dashboard-stat {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(17, 24, 39, .06);
}

.ready-product-dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem;
}

.ready-product-dashboard-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.ready-product-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .85rem;
}

.ready-product-dashboard-stat {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 176px;
    padding: 1rem;
    overflow: hidden;
    color: #111827;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.ready-product-dashboard-stat::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: #111827;
}

.ready-product-dashboard-stat--stock::before {
    background: #f59e0b;
}

.ready-product-dashboard-stat--customer::before {
    background: #0ea5e9;
}

.ready-product-dashboard-stat--shipment::before {
    background: #2563eb;
}

.ready-product-dashboard-stat--month::before {
    background: #16a34a;
}

.ready-product-dashboard-stat:hover,
.ready-product-dashboard-stat:focus {
    color: #111827;
    border-color: #cbd5e1;
    box-shadow: 0 18px 48px rgba(17, 24, 39, .12);
    transform: translateY(-2px);
}

.ready-product-dashboard-stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: 1rem;
}

.ready-product-dashboard-stat-icon,
.ready-product-dashboard-stat-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ready-product-dashboard-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #f8fafc;
    color: #111827;
    font-size: 1.2rem;
}

.ready-product-dashboard-stat-arrow {
    width: 30px;
    height: 30px;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    color: #64748b;
    transition: color .18s ease, border-color .18s ease, transform .18s ease;
}

.ready-product-dashboard-stat:hover .ready-product-dashboard-stat-arrow,
.ready-product-dashboard-stat:focus .ready-product-dashboard-stat-arrow {
    color: #111827;
    border-color: #111827;
    transform: translate(2px, -2px);
}

.ready-product-dashboard-stat-label {
    color: #64748b;
    font-size: .95rem;
    font-weight: 800;
    text-transform: uppercase;
}

.ready-product-dashboard-stat strong {
    margin-top: .35rem;
    font-size: 2.55rem;
    line-height: 1;
    letter-spacing: 0;
}

.ready-product-dashboard-stat-note {
    margin-top: auto;
    padding-top: 1rem;
    color: #64748b;
    font-size: .96rem;
    font-weight: 600;
}

.ready-product-form {
    max-width: 1120px;
    margin: 0 auto;
    box-shadow: 0 18px 55px rgba(15, 23, 42, .08);
}

.ready-product-form-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: .45rem .8rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: rgba(255, 255, 255, .8);
    font-weight: 800;
}

.ready-product-step {
    position: relative;
    margin-top: 1rem;
    padding: 1.1rem;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(248, 250, 252, .92), rgba(255, 255, 255, .98)),
        #fff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, .055);
}

.ready-product-step:first-of-type {
    margin-top: 0;
}

.ready-product-step::after {
    content: "";
    position: absolute;
    left: 2rem;
    top: 100%;
    width: 2px;
    height: 1rem;
    background: linear-gradient(180deg, #cbd5e1, rgba(203, 213, 225, 0));
}

.ready-product-step::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    border-radius: 14px 0 0 14px;
    background: #111827;
}

.ready-product-step-last::after {
    display: none;
}

.ready-product-step-heading {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    margin-bottom: 1rem;
    padding-bottom: .9rem;
    border-bottom: 1px solid #e5e7eb;
}

.ready-product-step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(17, 24, 39, .12);
    border-radius: 14px;
    background: #111827;
    color: #fff;
    box-shadow: 0 10px 20px rgba(17, 24, 39, .16);
    font-size: 1.1rem;
}

.ready-product-step-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 1.08rem;
    font-weight: 800;
    color: #111827;
}

.ready-product-step-text {
    color: #6b7280;
    font-size: .92rem;
    font-weight: 600;
}

.ready-product-serials {
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
}

.ready-product-shipment-lines {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ready-product-shipment-line {
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #f8fafc;
}

.ready-product-shipment-line-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ready-product-shipment-line-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: end;
}

.ready-product-shipment-line-field {
    min-width: 0;
}

.ready-product-shipment-line-field .form-select,
.ready-product-shipment-line-field .form-control,
.ready-product-shipment-line-field .select2-container--default .select2-selection--single {
    min-height: 48px;
}

.ready-product-shipment-line-field .form-select,
.ready-product-shipment-line-field .form-control {
    padding-top: .55rem;
    padding-bottom: .55rem;
}

.ready-product-shipment-line-field .ready-product-variant-selection {
    overflow: hidden;
    white-space: nowrap;
}

.ready-product-shipment-line-field .ready-product-variant-selection-name {
    white-space: nowrap;
}

.ready-product-line-serials {
    padding: .85rem;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #fff;
}

.ready-product-line-serial-title {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .65rem;
    color: #374151;
    font-size: .85rem;
    font-weight: 800;
    text-transform: uppercase;
}

.ready-product-confirm-modal {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
}

.ready-product-confirm-kicker {
    color: #0d6efd;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ready-product-confirm-alert {
    padding: .9rem 1rem;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    background: #eff6ff;
    color: #1e3a8a;
    font-size: .92rem;
    font-weight: 600;
}

.ready-product-confirm-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin-top: 1rem;
}

.ready-product-confirm-meta div,
.ready-product-confirm-line {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
}

.ready-product-confirm-meta div {
    padding: .8rem .9rem;
}

.ready-product-confirm-meta span,
.ready-product-confirm-line-label {
    display: block;
    color: #6b7280;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.ready-product-confirm-meta strong {
    display: block;
    margin-top: .2rem;
    color: #111827;
}

.ready-product-confirm-lines {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    margin-top: 1rem;
}

.ready-product-confirm-line {
    display: grid;
    grid-template-columns: minmax(180px, .9fr) minmax(0, 1.4fr);
    gap: .75rem;
    align-items: start;
    padding: .6rem .7rem;
}

.ready-product-confirm-line-title {
    color: #111827;
    font-size: .92rem;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.ready-product-confirm-line-meta {
    margin-top: .15rem;
    color: #198754;
    font-size: .84rem;
    font-weight: 800;
}

.ready-product-confirm-serials {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    margin-top: .25rem;
}

.ready-product-confirm-serial {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: .12rem .45rem;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #f8fafc;
    color: #374151;
    font-size: .78rem;
    font-weight: 700;
}

.ready-product-form-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 1.25rem;
    border-top: 1px solid #e5e7eb;
}

.ready-product-form-actions [data-shipment-submit] {
    min-width: 190px;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.ready-product-form-actions [data-shipment-submit].is-processing {
    border-color: #1e293b;
    background: #1e293b;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .2);
    opacity: 1;
}

.ready-product-submit-idle,
.ready-product-submit-busy {
    align-items: center;
    justify-content: center;
    gap: .55rem;
}

.ready-product-submit-idle:not([hidden]),
.ready-product-submit-busy:not([hidden]) {
    display: inline-flex;
}

.ready-product-inline-spinner {
    display: inline-block;
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ready-product-spin .7s linear infinite;
}

body.ready-product-is-processing {
    overflow: hidden;
}

.ready-product-processing {
    position: fixed;
    z-index: 2100;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background: rgba(15, 23, 42, .72);
    opacity: 0;
    outline: none;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: opacity .2s ease;
}

.ready-product-processing[hidden] {
    display: none;
}

.ready-product-processing.is-visible {
    opacity: 1;
}

.ready-product-processing-card {
    width: min(440px, 100%);
    padding: 2.1rem 2rem 1.8rem;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 24px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 32px 90px rgba(0, 0, 0, .34);
    text-align: center;
    transform: translateY(10px) scale(.985);
    transition: transform .24s cubic-bezier(.2, .75, .25, 1);
}

.ready-product-processing.is-visible .ready-product-processing-card {
    transform: translateY(0) scale(1);
}

.ready-product-processing-spinner {
    display: block;
    width: 54px;
    height: 54px;
    margin: 0 auto 1.35rem;
    border-radius: 50%;
    background: repeating-conic-gradient(from 0deg, #111827 0deg 9deg, rgba(17, 24, 39, .13) 9deg 27deg);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 0);
    mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 0);
    animation: ready-product-spin .9s steps(12) infinite;
}

.ready-product-processing-kicker {
    margin-bottom: .5rem;
    color: #2563eb;
    font-size: .76rem;
    font-weight: 850;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.ready-product-processing-card > strong {
    display: block;
    color: #111827;
    font-size: 1.32rem;
    line-height: 1.3;
}

.ready-product-processing-card > p {
    max-width: 350px;
    margin: .75rem auto 1.25rem;
    color: #64748b;
    font-size: .94rem;
    line-height: 1.65;
}

.ready-product-processing-progress {
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}

.ready-product-processing-progress span {
    display: block;
    width: 38%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    animation: ready-product-progress 1.25s ease-in-out infinite;
}

@keyframes ready-product-spin {
    to { transform: rotate(360deg); }
}

@keyframes ready-product-progress {
    0% { transform: translateX(-110%); }
    100% { transform: translateX(270%); }
}

@media (prefers-reduced-motion: reduce) {
    .ready-product-processing,
    .ready-product-processing-card {
        transition: none;
    }

    .ready-product-processing-spinner,
    .ready-product-inline-spinner,
    .ready-product-processing-progress span {
        animation-duration: 1.8s;
    }
}

.ready-product-movements {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ready-product-movements-hero,
.ready-product-movement-table-wrap {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(17, 24, 39, .06);
}

.ready-product-movements-hero {
    padding: 1.25rem;
}

.ready-product-kicker {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .35rem;
    color: #198754;
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.ready-product-movement-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .8rem;
    margin-top: 1.15rem;
}

.ready-product-movement-stat {
    display: flex;
    align-items: center;
    gap: .8rem;
    min-width: 0;
    padding: .9rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
}

.ready-product-movement-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 12px;
}

.ready-product-movement-stat-label {
    display: block;
    color: #6b7280;
    font-size: .78rem;
    font-weight: 700;
}

.ready-product-movement-stat strong {
    display: block;
    font-size: 1.45rem;
    line-height: 1;
}

.ready-product-quick-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    padding: 10px 12px;
    border: 1px solid #dfe5eb;
    border-radius: 12px;
    background: #fff;
}

.ready-product-quick-group {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    min-width: 0;
    padding: 3px;
    border-radius: 10px;
    background: #f1f4f8;
}

.ready-product-quick-period { margin-left: auto; }
.ready-product-quick-group .btn {
    min-height: 40px;
    padding: 7px 12px;
    border: 0;
    border-radius: 7px;
    font-size: .9375rem;
    font-weight: 600;
    white-space: nowrap;
}
.ready-product-quick-group .btn.active { box-shadow: 0 2px 5px rgba(16,24,40,.12); }
.ready-product-quick-group .btn:focus-visible { outline: 3px solid #83a9df; outline-offset: 2px; }
.ready-product-quick-range { display: none; align-items: center; gap: 8px; min-width: 0; }
.ready-product-quick-range.is-active { display: flex; }
.ready-product-quick-range .form-control { width: 155px; min-width: 0; min-height: 40px; font-size: 1rem; }

@media (max-width: 767.98px) {
    .ready-product-quick-group { width: 100%; }
    .ready-product-quick-group .btn { flex: 1 1 auto; min-height: 44px; }
    .ready-product-quick-period { margin-left: 0; }
    .ready-product-quick-range { width: 100%; }
    .ready-product-quick-range .form-control { flex: 1; width: 0; }
}

.ready-product-movement-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

.ready-product-movement-datebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

.ready-product-movement-date-range {
    display: flex;
    align-items: center;
    gap: .45rem;
    opacity: .55;
}

.ready-product-movement-date-range.is-active {
    opacity: 1;
}

.ready-product-movement-date-range .form-control {
    width: 150px;
}

.ready-product-movement-table-wrap {
    padding: .75rem;
    overflow-x: auto;
}

.ready-product-movement-table-wrap table.dataTable {
    margin: 0 !important;
}

#readyProductMovementsTable thead th {
    border-bottom: 0;
    color: #6b7280;
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
}

#readyProductMovementsTable tbody tr {
    border-top: 1px solid #eef2f7;
}

#readyProductMovementsTable tbody td {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.ready-product-movement-type {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-width: 96px;
    padding: .45rem .6rem;
    border-radius: 999px;
    font-size: .86rem;
}

.ready-product-movement-type span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.ready-product-movement-type small {
    color: inherit;
    opacity: .68;
    font-weight: 700;
}

.ready-product-movement-type--in {
    background: #ecfdf3;
    color: #166534;
}

.ready-product-movement-type--in span {
    background: #16a34a;
    color: #fff;
}

.ready-product-movement-type--out {
    background: #fef2f2;
    color: #991b1b;
}

.ready-product-movement-type--out span {
    background: #dc2626;
    color: #fff;
}

.ready-product-movement-product {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    min-width: 260px;
}

.ready-product-movement-product-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #f0fdf4;
    color: #198754;
}

.ready-product-movement-product-body,
.ready-product-movement-party,
.ready-product-movement-date {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: .12rem;
}

.ready-product-movement-product-name {
    color: #111827;
    font-weight: 850;
    line-height: 1.2;
}

.ready-product-movement-product-meta,
.ready-product-movement-party span,
.ready-product-movement-date span {
    color: #6b7280;
    font-size: .84rem;
}

.ready-product-movement-chipline {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    margin-top: .2rem;
}

.ready-product-mini-chip {
    display: inline-flex;
    padding: .14rem .45rem;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #f8fafc;
    color: #374151;
    font-size: .74rem;
    font-weight: 700;
}

.ready-product-movement-party strong,
.ready-product-movement-date strong {
    color: #111827;
    font-size: .92rem;
}

.ready-product-movement-qty {
    color: #111827;
    font-size: 1.05rem;
}

.ready-product-movement-actions {
    display: flex;
    justify-content: flex-end;
    gap: .35rem;
    white-space: nowrap;
}

.ready-product-movement-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 8px;
}

.ready-product-detail-btn {
    border-color: #111827;
    background: #111827;
    color: #fff;
}

.ready-product-detail-btn:hover,
.ready-product-detail-btn:focus {
    border-color: #374151;
    background: #374151;
    color: #fff;
}

.ready-product-stock,
.ready-product-stock-show {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ready-product-stock-hero,
.ready-product-stock-list,
.ready-product-stock-show .ready-product-customer-history {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(17, 24, 39, .06);
}

.ready-product-stock-hero,
.ready-product-stock-show .ready-product-customer-history {
    padding: 1.25rem;
}

.ready-product-stock-filter {
    display: flex;
    gap: .5rem;
    min-width: min(100%, 420px);
}

.ready-product-stock-filter .form-select {
    min-width: 220px;
}

.ready-product-stock-stat {
    width: 100%;
    border: 1px solid #e5e7eb;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.ready-product-stock-stat.active {
    border-color: #111827;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .12);
}

.ready-product-stock-stat:focus-visible {
    outline: 3px solid rgba(13, 110, 253, .22);
    outline-offset: 2px;
}

.ready-product-stock-list,
.ready-product-customer-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding: .75rem;
    overflow: visible;
    background: #f1f5f9;
}

.ready-product-stock-table-wrap {
    display: block;
    padding: 1rem;
    overflow-x: auto;
}

.ready-product-stock-table-wrap table.dataTable {
    margin: 0 !important;
}

.ready-product-stock-table-wrap thead th {
    color: #475569;
    font-size: .76rem;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

.ready-product-stock-table-wrap tbody td {
    vertical-align: middle;
}

.ready-product-stock-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 34px;
    padding: .3rem .55rem;
    border-radius: 10px;
    background: #eef2ff;
    color: #3730a3;
    font-weight: 900;
}

.ready-product-stock-podium--table {
    min-width: 240px;
}

.ready-product-stock-row {
    display: grid;
    grid-template-columns: minmax(320px, 1.35fr) minmax(300px, 1fr) minmax(180px, .7fr) minmax(260px, .95fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .045);
    color: inherit;
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.ready-product-stock-row:hover,
.ready-product-stock-row:focus {
    color: inherit;
    border-color: #cbd5e1;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .075);
    transform: translateX(2px);
}

.ready-product-stock-main {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    min-width: 0;
}

.ready-product-stock-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 1.2rem;
}

.ready-product-stock-body,
.ready-product-stock-insight,
.ready-product-stock-top-customers {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: .22rem;
}

.ready-product-stock-title {
    color: #111827;
    font-weight: 850;
    line-height: 1.2;
}

.ready-product-stock-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .85rem;
    color: #6b7280;
    font-size: .84rem;
}

.ready-product-stock-meta .badge,
.ready-product-stock-show .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: .32rem .55rem;
    line-height: 1;
}

.ready-product-stock-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .45rem;
}

.ready-product-stock-metrics span {
    padding: .55rem .65rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f8fafc;
}

.ready-product-stock-metrics small,
.ready-product-stock-insight small,
.ready-product-stock-top-customers > small {
    display: block;
    color: #6b7280;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.ready-product-stock-metrics strong,
.ready-product-stock-insight strong {
    color: #111827;
    font-weight: 850;
}

.ready-product-stock-insight strong {
    font-size: .92rem;
    line-height: 1.25;
}

.ready-product-stock-podium {
    display: grid;
    grid-template-columns: 1fr;
    gap: .28rem;
}

.ready-product-stock-podium-item {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: .45rem;
    min-width: 0;
    padding: .34rem .45rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
}

.ready-product-stock-podium-item--1 {
    border-color: #fde68a;
    background: #fffbeb;
}

.ready-product-stock-podium-item--2 {
    border-color: #e5e7eb;
    background: #f8fafc;
}

.ready-product-stock-podium-item--3 {
    border-color: #fed7aa;
    background: #fff7ed;
}

.ready-product-stock-podium-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: #111827;
    color: #fff;
    font-size: .82rem;
    font-weight: 900;
}

.ready-product-stock-podium-item--1 .ready-product-stock-podium-rank {
    background: #f59e0b;
}

.ready-product-stock-podium-item--2 .ready-product-stock-podium-rank {
    background: #64748b;
}

.ready-product-stock-podium-item--3 .ready-product-stock-podium-rank {
    background: #c2410c;
}

.ready-product-stock-podium-body {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    min-width: 0;
    gap: .45rem;
}

.ready-product-stock-podium-body strong {
    min-width: 0;
    overflow: hidden;
    color: #111827;
    font-size: .86rem;
    font-weight: 850;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ready-product-stock-podium-body span {
    flex: 0 0 auto;
    color: #198754;
    font-size: .78rem;
    font-weight: 850;
    white-space: nowrap;
}

.ready-product-stock-podium-empty {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 38px;
    padding: .45rem .6rem;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    color: #64748b;
    font-size: .86rem;
    font-weight: 800;
}

.ready-product-stock-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    color: #64748b;
}

.ready-product-stock-row:hover .ready-product-stock-arrow,
.ready-product-stock-row:focus .ready-product-stock-arrow {
    border-color: #111827;
    color: #111827;
}

.ready-product-stock-show-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.ready-product-stock-movement {
    position: relative;
    display: flex;
    gap: .75rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(17, 24, 39, .05);
}

.ready-product-stock-movement--in .ready-product-customer-movement-rail {
    background: linear-gradient(180deg, #16a34a, #0ea5e9);
}

.ready-product-stock-movement--out .ready-product-customer-movement-rail {
    background: linear-gradient(180deg, #dc2626, #f59e0b);
}

.ready-product-stock-movement--in .ready-product-customer-movement-icon {
    background: #ecfdf3;
    color: #16a34a;
}

.ready-product-stock-movement--out .ready-product-customer-movement-icon {
    background: #fef2f2;
    color: #dc2626;
}

.ready-product-customers {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ready-product-customers-hero {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(17, 24, 39, .06);
}

.ready-product-customer-list {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 14px 40px rgba(17, 24, 39, .06);
}

.ready-product-customers-hero {
    padding: 1.25rem;
}

.ready-product-scope-filter .btn {
    min-width: 92px;
}

.ready-product-scope-filter .ready-product-tr-filter {
    border-color: #dc2626;
    background: #fff;
    color: #dc2626;
    font-weight: 800;
}

.ready-product-scope-filter .ready-product-tr-filter:hover,
.ready-product-scope-filter .ready-product-tr-filter:focus,
.ready-product-scope-filter .ready-product-tr-filter.active {
    border-color: #dc2626;
    background: #dc2626;
    color: #fff;
}

.ready-product-customer-row {
    display: grid;
    grid-template-columns: minmax(280px, 1.45fr) minmax(280px, 1.1fr) minmax(260px, .95fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .045);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.ready-product-customer-row {
    cursor: pointer;
}

.ready-product-customer-row:hover {
    border-color: #cbd5e1;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .075);
    transform: translateX(2px);
}

.ready-product-customer-main {
    display: flex;
    align-items: center;
    gap: .8rem;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    color: inherit;
    text-decoration: none;
}

.ready-product-customer-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #111827;
    color: #fff;
    font-weight: 850;
}

.ready-product-customer-body,
.ready-product-customer-meta,
.ready-product-customer-top-model,
.ready-product-customer-detail-head {
    min-width: 0;
}

.ready-product-customer-model-podium {
    margin-top: .2rem;
}

.ready-product-customer-body {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.ready-product-customer-title {
    color: #111827;
    font-weight: 850;
}

.ready-product-customer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .85rem;
    color: #6b7280;
    font-size: .84rem;
}

.ready-product-customer-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .45rem;
}

.ready-product-customer-metrics span,
.ready-product-customer-detail-stat {
    padding: .55rem .65rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f8fafc;
}

.ready-product-customer-metrics small,
.ready-product-customer-detail-stat small,
.ready-product-customer-top-model small {
    display: block;
    color: #6b7280;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.ready-product-customer-metrics strong,
.ready-product-customer-detail-stat strong,
.ready-product-customer-top-model strong {
    color: #111827;
    font-weight: 850;
}

.ready-product-customer-actions {
    display: flex;
    justify-content: flex-end;
    gap: .35rem;
}

.ready-product-customer-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 8px;
}

.ready-product-customer-detail-head {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.ready-product-customer-movement-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ready-product-customer-movement {
    padding: .9rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

.ready-product-customer-movement-premium {
    position: relative;
    display: flex;
    gap: .75rem;
    padding: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(17, 24, 39, .05);
}

.ready-product-customer-movement-rail {
    flex: 0 0 5px;
    background: linear-gradient(180deg, #dc2626, #7c3aed);
}

.ready-product-customer-movement-content {
    flex: 1 1 auto;
    min-width: 0;
    padding: .75rem .85rem;
}

.ready-product-customer-movement-product {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    min-width: 0;
}

.ready-product-customer-movement-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #fef2f2;
    color: #dc2626;
}

.ready-product-customer-movement-title,
.ready-product-customer-movement-subtitle {
    display: block;
}

.ready-product-customer-movement-title {
    color: #111827;
    font-size: .95rem;
    font-weight: 850;
    line-height: 1.2;
}

.ready-product-customer-movement-subtitle {
    margin-top: .15rem;
    color: #6b7280;
    font-size: .8rem;
}

.ready-product-customer-movement-side {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: .3rem;
    white-space: nowrap;
}

.ready-product-customer-movement-qty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    padding: .18rem .5rem;
    border-radius: 999px;
    background: #fef2f2;
    color: #dc2626;
    font-size: 1rem;
    font-weight: 900;
}

.ready-product-customer-movement-attrs {
    display: flex;
    flex-wrap: wrap;
    gap: .28rem;
    margin-top: .55rem;
}

.ready-product-customer-serial-box {
    margin-top: .65rem;
    padding: .6rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f8fafc;
}

.ready-product-customer-serial-title {
    margin-bottom: .35rem;
    color: #111827;
    font-size: .78rem;
    font-weight: 850;
}

.ready-product-serial-pill {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: .14rem .45rem;
    border-radius: 999px;
    background: #ecfdf3;
    color: #166534;
    font-size: .74rem;
    font-weight: 850;
}

.ready-product-customer-show {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ready-product-customer-detail-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 14px 40px rgba(17, 24, 39, .06);
}

.ready-product-customer-detail-headline,
.ready-product-customer-detail-actions {
    display: flex;
    align-items: center;
    gap: .8rem;
}

.ready-product-customer-detail-titleblock {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ready-product-customer-detail-title {
    overflow: hidden;
    color: #111827;
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1.1;
    text-overflow: ellipsis;
}

.ready-product-customer-detail-meta {
    color: #6b7280;
    font-size: .9rem;
    font-weight: 700;
}

.ready-product-customer-answer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .8rem;
}

.ready-product-customer-answer-card {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
    padding: .85rem;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(17, 24, 39, .05);
}

.ready-product-customer-answer-card--primary {
    border-color: #bbf7d0;
    background: linear-gradient(135deg, #f0fdf4, #ffffff);
}

.ready-product-customer-answer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: #111827;
    color: #fff;
    font-size: 1.1rem;
}

.ready-product-customer-answer-card--primary .ready-product-customer-answer-icon {
    background: #198754;
}

.ready-product-customer-answer-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ready-product-customer-answer-body small {
    color: #6b7280;
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.ready-product-customer-answer-body strong {
    color: #111827;
    font-size: 1.55rem;
    font-weight: 950;
    line-height: 1.05;
}

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

.ready-product-customer-insight-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ready-product-customer-top-model-panel {
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #f8fafc;
    box-shadow: 0 14px 40px rgba(17, 24, 39, .06);
}

.ready-product-customer-info-card,
.ready-product-customer-history {
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(17, 24, 39, .06);
}

.ready-product-customer-info-card {
    align-self: flex-start;
    height: auto;
    width: 100%;
    background: #f8fafc;
}

.ready-product-customer-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .85rem;
}

.ready-product-customer-section-head h2 {
    margin: 0;
    color: #111827;
    font-size: .98rem;
    font-weight: 900;
}

.ready-product-customer-section-head span {
    color: #6b7280;
    font-size: .8rem;
    font-weight: 700;
}

.ready-product-customer-detail-podium .ready-product-stock-podium-item {
    background: #fff;
}

.ready-product-info-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem 0;
    border-top: 1px solid #eef2f7;
}

.ready-product-info-row:first-of-type {
    border-top: 0;
}

.ready-product-info-row span {
    color: #6b7280;
    font-size: .84rem;
    font-weight: 700;
}

.ready-product-info-row strong {
    color: #111827;
    text-align: right;
}

.ready-product-customer-movement-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem .75rem;
    margin-top: .5rem;
    color: #6b7280;
    font-size: .78rem;
}

.ready-product-customer-movement-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.ready-product-customer-note {
    margin-top: .65rem;
    padding: .55rem .65rem;
    border-left: 3px solid #111827;
    border-radius: 8px;
    background: #f8fafc;
    font-size: .8rem;
}

.ready-product-empty {
    padding: 1.25rem;
    color: #6b7280;
    text-align: center;
}

.ready-product-history-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(15, 23, 42, .08);
    color: #64748b;
    font-size: .86rem;
    font-weight: 700;
}

.ready-product-pdf-btn {
    border-color: #7c3aed;
    background: #f5f3ff;
    color: #6d28d9;
}

.ready-product-pdf-btn:hover,
.ready-product-pdf-btn:focus {
    border-color: #6d28d9;
    background: #6d28d9;
    color: #fff;
}

.ready-product-detail-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 14px;
    color: #fff;
}

.ready-product-detail-hero--in {
    background: linear-gradient(135deg, #166534, #16a34a);
}

.ready-product-detail-hero--out {
    background: linear-gradient(135deg, #991b1b, #7c3aed);
}

.ready-product-detail-kicker {
    margin-bottom: .25rem;
    font-size: .75rem;
    font-weight: 850;
    opacity: .82;
    text-transform: uppercase;
}

.ready-product-detail-title {
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.2;
}

.ready-product-detail-subtitle {
    margin-top: .25rem;
    font-size: .82rem;
    opacity: .85;
}

.ready-product-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .55rem;
}

.ready-product-detail-stat {
    padding: .75rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

.ready-product-detail-stat span {
    display: block;
    color: #6b7280;
    font-size: .72rem;
    font-weight: 850;
    text-transform: uppercase;
}

.ready-product-detail-stat strong {
    display: block;
    margin-top: .25rem;
    color: #111827;
    font-size: 1.25rem;
    line-height: 1;
}

.ready-product-detail-insight {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    padding: .8rem;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: #eff6ff;
    color: #1e3a8a;
    font-size: .88rem;
    font-weight: 700;
}

.ready-product-detail-section {
    margin-bottom: .85rem;
    padding: .9rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

.ready-product-detail-section-title {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .6rem;
    color: #111827;
    font-weight: 850;
}

.ready-product-detail-line {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .42rem 0;
    border-top: 1px solid #eef2f7;
}

.ready-product-detail-line:first-of-type {
    border-top: 0;
}

.ready-product-detail-line span {
    color: #6b7280;
    font-size: .84rem;
    font-weight: 700;
}

.ready-product-detail-line strong {
    color: #111827;
    text-align: right;
}

.ready-product-form .select2-container {
    width: 100% !important;
}

.ready-product-form .select2-container--default .select2-selection--single {
    min-height: 48px;
    height: auto;
    padding: .55rem 2.5rem .55rem .95rem;
    border: 1px solid #ced4da;
    border-radius: .5rem;
    background: #fff;
    display: flex;
    align-items: center;
}

.ready-product-form .select2-container--default .select2-selection--single .select2-selection__rendered {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 0;
    color: #212529;
    line-height: 1.25;
}

.ready-product-form .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #6c757d;
}

.ready-product-form .select2-container--default .select2-selection--single .select2-selection__arrow {
    width: 2.25rem;
    height: 100%;
    right: .35rem;
}

.ready-product-form .select2-container--default.select2-container--focus .select2-selection--single,
.ready-product-form .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #86b7fe;
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .14);
}

.ready-product-form .select2-container--default.select2-container--disabled .select2-selection--single {
    border-color: #dee2e6;
    background: #e9ecef;
    box-shadow: none;
    cursor: not-allowed;
}

.ready-product-form .select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__rendered,
.ready-product-form .select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__placeholder {
    color: #6c757d;
}

.ready-product-customer-option {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .35rem .15rem;
}

.ready-product-customer-option-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #eef6ff;
    color: #0d6efd;
}

.ready-product-customer-option-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: .2rem;
}

.ready-product-customer-option-title {
    color: #111827;
    font-weight: 800;
    line-height: 1.2;
}

.ready-product-customer-option-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem .85rem;
    color: #6b7280;
    font-size: .86rem;
    line-height: 1.25;
}

.select2-results__option--highlighted .ready-product-customer-option-title,
.select2-results__option--highlighted .ready-product-customer-option-meta {
    color: #fff;
}

.select2-results__option--highlighted .ready-product-customer-option-icon {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

.ready-product-customer-selection {
    display: inline-flex;
    align-items: baseline;
    max-width: 100%;
    gap: .25rem;
    min-width: 0;
}

.ready-product-customer-selection-name {
    min-width: 0;
    overflow: hidden;
    color: #111827;
    font-weight: 700;
    text-overflow: ellipsis;
}

.ready-product-customer-selection-meta {
    min-width: 0;
    overflow: hidden;
    color: #6b7280;
    font-size: .9em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ready-product-variant-option {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .4rem .15rem;
}

.ready-product-variant-option-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f0fdf4;
    color: #198754;
}

.ready-product-variant-option-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: .28rem;
}

.ready-product-variant-option-title {
    color: #111827;
    font-weight: 850;
    line-height: 1.2;
}

.ready-product-variant-option-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem .85rem;
    color: #6b7280;
    font-size: .86rem;
    line-height: 1.25;
}

.ready-product-variant-stock {
    color: #198754;
    font-weight: 800;
}

.ready-product-variant-option-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.ready-product-variant-chip {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: .12rem .45rem;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #f8fafc;
    color: #374151;
    font-size: .78rem;
    font-weight: 700;
}

.select2-results__option--highlighted .ready-product-variant-option-title,
.select2-results__option--highlighted .ready-product-variant-option-meta,
.select2-results__option--highlighted .ready-product-variant-stock {
    color: #fff;
}

.select2-results__option--highlighted .ready-product-variant-option-icon,
.select2-results__option--highlighted .ready-product-variant-chip {
    border-color: rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

.ready-product-variant-selection {
    display: inline-flex;
    align-items: baseline;
    max-width: 100%;
    gap: .25rem;
    min-width: 0;
}

.ready-product-variant-selection-name {
    min-width: 0;
    overflow: hidden;
    color: #111827;
    font-weight: 700;
    text-overflow: ellipsis;
}

.ready-product-variant-selection-meta {
    min-width: 0;
    overflow: hidden;
    color: #198754;
    font-size: .9em;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .ready-product-dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .ready-product-dashboard-stats {
        grid-template-columns: 1fr 1fr;
    }

    .ready-product-stock-row {
        grid-template-columns: 1fr;
        gap: .85rem;
    }

    .ready-product-stock-row:hover,
    .ready-product-stock-row:focus,
    .ready-product-customer-row:hover {
        transform: none;
    }

    .ready-product-stock-show-grid {
        grid-template-columns: 1fr;
    }

    .ready-product-customer-answer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .ready-product-stock-arrow {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .ready-product-dashboard-stats {
        grid-template-columns: 1fr;
    }

    .ready-product-dashboard-hero-actions,
    .ready-product-dashboard-hero-actions .btn {
        width: 100%;
    }

    .ready-product-stock-hero {
        padding: 1rem;
    }

    .ready-product-stock-filter {
        flex-direction: column;
        width: 100%;
    }

    .ready-product-stock-filter .form-select,
    .ready-product-stock-filter .btn {
        width: 100%;
    }

    .ready-product-stock-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ready-product-form {
        padding: 1rem !important;
    }

    .ready-product-movements-hero {
        padding: 1rem;
    }

    .ready-product-movement-stats {
        grid-template-columns: 1fr 1fr;
    }

    .ready-product-movement-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .ready-product-movement-datebar {
        align-items: stretch;
        flex-direction: column;
    }

    .ready-product-movement-toolbar .btn-group {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .ready-product-movement-datebar .btn-group {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .ready-product-movement-toolbar .btn {
        white-space: nowrap;
    }

    .ready-product-movement-date-range {
        align-items: stretch;
        flex-direction: column;
    }

    .ready-product-movement-date-range .form-control {
        width: 100%;
    }

    .ready-product-movement-product {
        min-width: 220px;
    }

    .ready-product-customers-hero {
        padding: 1rem;
    }

    .ready-product-customer-detail-hero {
        align-items: stretch;
        flex-direction: column;
        padding: 1rem;
    }

    .ready-product-customer-detail-headline {
        align-items: flex-start;
    }

    .ready-product-customer-detail-actions {
        flex-wrap: wrap;
    }

    .ready-product-customer-answer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .ready-product-customer-row {
        grid-template-columns: 1fr;
        gap: .85rem;
    }

    .ready-product-customer-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ready-product-customer-actions {
        justify-content: flex-start;
    }

    .ready-product-customer-movement-top {
        flex-direction: column;
    }

    .ready-product-customer-movement-side {
        align-items: flex-start;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }

    .ready-product-detail-hero {
        flex-direction: column;
    }

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

    .ready-product-step {
        padding: 1rem;
    }

    .ready-product-step::before,
    .ready-product-step::after {
        display: none;
    }

    .ready-product-step-heading {
        align-items: flex-start;
        gap: .75rem;
    }

    .ready-product-shipment-line-fields {
        grid-template-columns: 1fr;
    }

    .ready-product-shipment-line-field .form-select,
    .ready-product-shipment-line-field .form-control,
    .ready-product-shipment-line-field .select2-container--default .select2-selection--single {
        min-height: 58px;
    }

    .ready-product-confirm-meta,
    .ready-product-confirm-line {
        grid-template-columns: 1fr;
    }

    .ready-product-step-icon {
        position: static;
        flex: 0 0 auto;
        width: 40px;
        height: 40px;
        border-radius: 12px;
        box-shadow: 0 8px 18px rgba(17, 24, 39, .14);
    }

    .ready-product-form-actions .btn {
        width: 100%;
    }

    .ready-product-form .select2-container--default .select2-selection--single {
        min-height: 58px;
        padding: .65rem 2.5rem .65rem .9rem;
    }

    .ready-product-customer-selection {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        line-height: 1.2;
        white-space: normal;
    }

    .ready-product-customer-selection-meta {
        white-space: normal;
    }

    .ready-product-variant-selection {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        line-height: 1.2;
        white-space: normal;
    }

    .ready-product-variant-selection-meta {
        white-space: normal;
    }
}

@media (max-width: 767.98px) {
    .ready-product-movement-toolbar,
    .ready-product-movement-datebar {
        align-items: stretch;
        flex-direction: column;
    }

    .ready-product-movement-toolbar .btn-group,
    .ready-product-movement-datebar .btn-group {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ready-product-movement-toolbar .btn-group .btn,
    .ready-product-movement-datebar .btn-group .btn {
        min-width: 0;
        border-radius: 0;
        white-space: normal;
    }

    .ready-product-movement-toolbar .btn-group .btn:first-child,
    .ready-product-movement-datebar .btn-group .btn:first-child {
        border-top-left-radius: 8px;
    }

    .ready-product-movement-toolbar .btn-group .btn:nth-child(2),
    .ready-product-movement-datebar .btn-group .btn:nth-child(2) {
        border-top-right-radius: 8px;
    }

    .ready-product-movement-toolbar .btn-group .btn:nth-last-child(2),
    .ready-product-movement-datebar .btn-group .btn:nth-last-child(2) {
        border-bottom-left-radius: 8px;
    }

    .ready-product-movement-toolbar .btn-group .btn:last-child,
    .ready-product-movement-datebar .btn-group .btn:last-child {
        border-bottom-right-radius: 8px;
    }

    .ready-product-movement-date-range {
        display: grid;
        width: 100%;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    }

    .ready-product-movement-date-range .form-control {
        width: 100%;
        min-width: 0;
    }

    .ready-product-movement-table-wrap {
        padding: .65rem;
        overflow-x: visible;
    }

    #readyProductMovementsTable,
    #readyProductMovementsTable tbody,
    #readyProductMovementsTable tr,
    #readyProductMovementsTable td {
        display: block;
        width: 100% !important;
    }

    #readyProductMovementsTable thead {
        display: none;
    }

    #readyProductMovementsTable tbody tr {
        margin-bottom: .75rem;
        padding: .85rem;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 8px 22px rgba(15, 23, 42, .045);
    }

    #readyProductMovementsTable tbody td {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: .85rem;
        min-width: 0;
        padding: .6rem 0;
        border: 0;
    }

    #readyProductMovementsTable tbody td + td {
        border-top: 1px solid #eef2f7;
    }

    #readyProductMovementsTable tbody td::before {
        content: attr(data-label);
        flex: 0 0 96px;
        color: #64748b;
        font-size: .72rem;
        font-weight: 900;
        text-transform: uppercase;
    }

    #readyProductMovementsTable tbody td:last-child::before {
        content: "";
        flex-basis: 0;
    }

    #readyProductMovementsTable .ready-product-movement-product,
    #readyProductMovementsTable .ready-product-movement-party,
    #readyProductMovementsTable .ready-product-movement-date {
        min-width: 0;
        max-width: 100%;
    }

    #readyProductMovementsTable .ready-product-movement-product {
        flex: 1 1 auto;
    }

    #readyProductMovementsTable .ready-product-movement-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .ready-product-stock-table-wrap {
        padding: .65rem;
        overflow-x: visible;
    }

    #readyProductStockTable,
    #readyProductStockTable tbody,
    #readyProductStockTable tr,
    #readyProductStockTable td {
        display: block;
        width: 100% !important;
    }

    #readyProductStockTable thead {
        display: none;
    }

    #readyProductStockTable tbody tr {
        margin-bottom: .75rem;
        padding: .85rem;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 8px 22px rgba(15, 23, 42, .045);
    }

    #readyProductStockTable tbody td {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: .85rem;
        min-width: 0;
        padding: .6rem 0;
        border: 0;
    }

    #readyProductStockTable tbody td + td {
        border-top: 1px solid #eef2f7;
    }

    #readyProductStockTable tbody td::before {
        content: attr(data-label);
        flex: 0 0 96px;
        color: #64748b;
        font-size: .72rem;
        font-weight: 900;
        text-transform: uppercase;
    }

    #readyProductStockTable tbody td:last-child::before {
        content: "";
        flex-basis: 0;
    }

    #readyProductStockTable .ready-product-movement-product {
        flex: 1 1 auto;
        min-width: 0;
        max-width: 100%;
    }

    #readyProductStockTable .ready-product-stock-podium--table {
        min-width: 0;
        width: 100%;
    }
}

/* ========================
   NAVBAR PREMIUM
======================== */

.navbar {
    background: rgba(17, 20, 24, .96) !important;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}

.navbar .container-fluid {
    min-height: 62px;
    gap: 12px;
}

.navbar-brand {
    min-width: 0;
    margin-right: 0;
}

.navbar-brand img {
    display: block;
    height: 44px !important;
    max-width: 190px;
    object-fit: contain;
}

.navbar-app-title {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.navbar-brand small {
    font-size: .78rem;
}

/* Desktop navigation */

.navbar-main-links {
    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .08);
}

.navbar-main-links .btn {
    border: 0 !important;
    border-radius: 12px !important;
    padding: .48rem .85rem !important;
    color: rgba(255, 255, 255, .72) !important;
    background: transparent !important;
    font-size: .9rem;
    font-weight: 700;
    white-space: nowrap;
}

.navbar-main-links .btn:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, .08) !important;
}

.navbar-main-links .navbar-btn-active {
    color: #111827 !important;
    background: #fff !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .16);
}

/* Right block */

.navbar-right-block {
    flex: 0 0 auto;
}

.navbar-user-badge,
.navbar-status-badge {
    min-height: 34px;
    padding: .42rem .75rem;
    border-radius: 999px;
}

.navbar-user-badge {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
}

.navbar-user-dot,
.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px #22c55e;
    display: inline-block;
}

.navbar-status-badge {
    background: rgba(34, 197, 94, .12);
    border: 1px solid rgba(34, 197, 94, .22);
    cursor: pointer;
    transition: all .15s ease;
}

.navbar-status-badge:hover {
    transform: translateY(-1px);
}

.navbar .btn-warning {
    background: #facc15;
    color: #111827;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
}

.navbar .btn-light {
    background: rgba(255,255,255,.92);
    color: #111827;
    border: 0;
    border-radius: 999px;
    font-weight: 700;
}

/* Toggler */

.navbar-toggler {
    border-radius: 14px;
    background: rgba(255, 255, 255, .06);
    position: relative;
    z-index: 1060;
}

/* ========================
   IOS STYLE MOBILE PANEL
======================== */

@media (max-width: 1199.98px) {
    .navbar > .container-fluid {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .navbar-brand {
        flex: 1 1 auto;
        max-width: calc(100% - 56px);
    }

    .navbar-brand img {
        height: 40px !important;
        max-width: 170px;
    }

    .navbar-app-title {
        font-size: 1rem;
        line-height: 1.1;
        white-space: nowrap;
    }

    .navbar-brand small {
        font-size: .74rem;
        white-space: nowrap;
    }

    .navbar-toggler {
        width: 44px;
        height: 44px;
        margin-left: auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .navbar:has(#mainNavbar.show)::after {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(2, 6, 23, .42);
        backdrop-filter: blur(3px);
        z-index: 1030;
    }

    #mainNavbar {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        width: min(88vw, 360px);
        height: 100dvh;
        padding: 78px 16px 18px;
        background: rgba(20, 24, 30, .96);
        border-left: 1px solid rgba(255, 255, 255, .10);
        box-shadow: -24px 0 60px rgba(0, 0, 0, .34);
        backdrop-filter: blur(18px);
        z-index: 1040;
        overflow-y: auto;
        transform: translateX(105%);
        visibility: hidden;
        pointer-events: none;
        transition:
            transform .28s cubic-bezier(.22, .61, .36, 1),
            visibility .28s ease;
    }

    #mainNavbar.show {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    #mainNavbar .w-100 {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 14px !important;
    }

    .navbar-main-links {
        width: 100%;
        display: flex !important;
        flex-direction: column;
        gap: 6px;
        padding: 8px;
        border-radius: 22px;
        background: rgba(255, 255, 255, .055);
        border: 1px solid rgba(255, 255, 255, .10);
    }

    .navbar-main-links .btn {
        width: 100%;
        min-height: 40px;
        justify-content: flex-start;
        padding: .55rem .75rem !important;
        border-radius: 14px !important;
        font-size: .9rem;
    }

    .navbar-main-links .btn i {
        width: 22px;
        text-align: center;
    }

    .navbar-right-block {
        width: 100%;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    .navbar-right-block > a,
    .navbar-right-block > div {
        width: 100% !important;
    }

    .navbar-status-badge,
    .navbar-user-badge,
    .navbar-right-block .btn {
        width: 100% !important;
        min-height: 40px !important;
        justify-content: center !important;
        border-radius: 16px !important;
    }

    .navbar-user-badge {
        opacity: .86;
    }
}

@media (max-width: 420px) {
    .navbar-brand img {
        height: 36px !important;
        max-width: 150px;
    }

    .navbar-app-title {
        font-size: .95rem;
    }

    .navbar-brand small {
        font-size: .72rem;
    }

    #mainNavbar {
        width: min(90vw, 340px);
        padding-left: 14px;
        padding-right: 14px;
    }
}

/* Compact navbar for desktop widths where the full labels do not fit.
   Large desktop stays full label, drawer navigation is used below 1200px. */
@media (min-width: 1200px) and (max-width: 1919.98px) {
    #mainNavbar,
    #mainNavbar > .w-100 {
        min-width: 0;
    }

    #mainNavbar > .w-100 {
        flex-direction: row !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 10px !important;
    }

    .navbar-main-links {
        flex: 0 1 auto;
        flex-wrap: nowrap !important;
        gap: 4px !important;
        min-width: 0;
        overflow: visible;
    }

    .navbar-main-links .btn {
        width: 38px;
        min-width: 38px;
        max-width: 38px;
        height: 38px;
        justify-content: center;
        gap: 0 !important;
        overflow: hidden;
        padding: .48rem 0 !important;
        transition:
            width .18s ease,
            max-width .18s ease,
            padding .18s ease,
            background-color .15s ease,
            color .15s ease;
    }

    .navbar-main-links .btn i {
        flex: 0 0 20px;
        width: 20px;
        text-align: center;
    }

    .navbar-main-links .btn span {
        display: inline-block;
        max-width: 0;
        opacity: 0;
        overflow: hidden;
        white-space: nowrap;
        transition:
            max-width .18s ease,
            opacity .12s ease;
    }

    .navbar-main-links .btn:hover,
    .navbar-main-links .btn:focus-visible,
    .navbar-main-links .dropdown:hover > .btn,
    .navbar-main-links .dropdown > .btn:focus-visible,
    .navbar-main-links .dropdown > .btn[aria-expanded="true"] {
        width: auto;
        min-width: 38px;
        max-width: 190px;
        justify-content: flex-start;
        gap: .5rem !important;
        padding-left: .65rem !important;
        padding-right: .8rem !important;
    }

    .navbar-main-links .btn:hover span,
    .navbar-main-links .btn:focus-visible span,
    .navbar-main-links .dropdown:hover > .btn span,
    .navbar-main-links .dropdown > .btn:focus-visible span,
    .navbar-main-links .dropdown > .btn[aria-expanded="true"] span {
        max-width: 145px;
        opacity: 1;
    }

    .navbar-main-links .dropdown-toggle::after {
        display: none;
    }

    .navbar-main-links .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }

    .navbar-right-block {
        margin-left: auto !important;
        min-width: 0;
    }
}

/* ========================
   STOCK / PAGE ACTIONS
======================== */

.stock-actions .btn,
.stock-filter-group .btn {
    border-radius: 10px;
    white-space: nowrap;
}

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

.stock-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    flex: 0 0 auto;
}

.stock-filter-group .btn {
    min-width: 96px;
}

@media (max-width: 1199.98px) {
    .stock-actions {
        justify-content: flex-start;
    }

    .stock-actions .btn {
        flex: 0 0 auto;
        width: auto;
    }
}

@media (max-width: 767.98px) {
    .stock-actions {
        flex-direction: column;
        width: 100%;
    }

    .stock-actions .btn {
        width: 100%;
    }

    .stock-filter-group {
        width: 100%;
        display: flex;
    }

    .stock-filter-group .btn {
        flex: 1 1 0;
        min-width: 0;
    }
}

/* Home header */

.home-header-actions {
    justify-content: flex-end;
}

.home-header-actions .btn {
    white-space: nowrap;
    flex: 0 0 auto;
}

@media (max-width: 991.98px) {
    .home-header-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .home-header-actions {
        width: 100%;
        flex-direction: column;
    }

    .home-header-actions .btn {
        width: 100%;
    }
}

/* Today actions */

.today-stock-actions {
    justify-content: flex-end;
}

.today-stock-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex: 0 0 auto;
}

@media (max-width: 991.98px) {
    .today-stock-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .today-stock-actions {
        width: 100%;
        flex-direction: column;
    }

    .today-stock-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* NAVBAR LOGO + TITLE UPGRADE */
.navbar-brand img {
    height: 50px !important;   /* önce 44'tü → büyüttük */
    max-width: 220px;
}

.navbar-app-title {
    font-size: 1.2rem;         /* biraz daha premium */
    font-weight: 800;
    line-height: 1.1;
}

.navbar-brand small {
    font-size: .85rem;         /* alt yazı da büyüsün */
}

@media (max-width: 991.98px) {
    .navbar-brand img {
        height: 44px !important;
        max-width: 190px;
    }

    .navbar-app-title {
        font-size: 1.05rem;
    }

    .navbar-brand small {
        font-size: .8rem;
    }
    #mainNavbar:not(.show) {
        transform: translateX(105%) !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    #mainNavbar.show {
        transform: translateX(0) !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
}
