* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: #1f2933;
    background: #f6f7f9;
    font-family: "Segoe UI", "Noto Sans TC", Arial, sans-serif;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 24px;
    background: #17324d;
    color: #fff;
    box-shadow: 0 2px 10px rgba(23, 50, 77, 0.16);
}

.brand,
.topbar a {
    color: #fff;
    text-decoration: none;
}

.topbar nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cart-badge {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    color: #17324d;
    background: #fff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.cart-badge.is-empty {
    color: #dbe8f5;
    background: rgba(255, 255, 255, 0.2);
}

.cart-badge-pop {
    animation: cart-badge-pop 520ms ease-out;
}

.user-name {
    color: #dbe8f5;
}

.logout-form {
    margin: 0;
}

.link-button {
    padding: 0;
    color: #fff;
    background: transparent;
    border-radius: 0;
    font: inherit;
}

.page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px;
}

.admin-page {
    width: 100%;
    max-width: 1480px;
    padding-inline: 20px;
}

.panel,
.toolbar {
    background: #fff;
    border: 1px solid #d9e0e8;
    border-radius: 8px;
    padding: 20px;
}

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

button,
.button {
    border: 0;
    border-radius: 6px;
    padding: 10px 14px;
    color: #fff;
    background: #2563eb;
    text-decoration: none;
    cursor: pointer;
}

button:disabled,
input:disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

button:disabled {
    background: #9aa8b6;
}

.button.secondary {
    background: #52616f;
}

.button.danger,
button.danger {
    color: #991b1b;
    background: #fee2e2;
}

.icon-action-button {
    display: inline-grid;
    place-items: center;
    width: 48px;
    min-width: 48px;
    height: 48px;
    padding: 0;
    line-height: 1;
}

.icon-action-button.secondary {
    background: #52616f;
}

.action-icon {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cart-add-icon-button {
    width: 58px;
    min-width: 58px;
}

.cart-add-icon-button.is-loading .action-icon {
    animation: button-icon-pulse 700ms ease-in-out infinite;
}

button.is-loading,
.button.is-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.82;
}

button.is-loading:disabled:not(.secondary),
.button.is-loading:not(.secondary) {
    background: #2563eb;
}

button.is-loading.secondary,
.button.secondary.is-loading {
    background: #52616f;
}

button.is-loading .action-icon,
.button.is-loading .action-icon {
    opacity: 0.18;
}

button.is-loading::after,
.button.is-loading::after {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255, 255, 255, 0.38);
    border-top-color: #fff;
    border-radius: 999px;
    animation: shared-loading-spin 720ms linear infinite;
}

a.is-loading {
    pointer-events: none;
    opacity: 0.72;
    transform: translateY(1px);
}

.sort-tab,
.view-tab,
.quick-filter-link,
.category-link,
.filter-chip,
.pager a {
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.danger-button {
    background: #b42318;
}

.search-form {
    display: flex;
    gap: 8px;
}

.search-form input,
.search-form select {
    min-width: 280px;
    padding: 10px 12px;
    border: 1px solid #c9d3df;
    border-radius: 6px;
    font: inherit;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 16px;
    transition: opacity 180ms ease, transform 180ms ease, filter 180ms ease;
}

.product-card {
    display: grid;
    gap: 12px;
    background: #fff;
    border: 1px solid #d9e0e8;
    border-radius: 8px;
    padding: 14px;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.product-card:hover {
    border-color: #a9bbce;
    box-shadow: 0 12px 24px rgba(23, 50, 77, 0.12);
    transform: translateY(-2px);
}

.product-card.cart-item-added-flash {
    animation: cart-item-card-added 900ms ease-out;
}

.product-card.is-unavailable {
    background: #fbfcfd;
    border-color: #e8c8c8;
    box-shadow: none;
}

.product-card.is-unavailable:hover {
    border-color: #d8a7a7;
    box-shadow: none;
    transform: none;
}

.product-card.is-unavailable img {
    opacity: 0.45;
    filter: grayscale(0.2);
}

.product-card.is-unavailable:hover img {
    transform: none;
}

.product-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #f1f4f7;
    border-radius: 6px;
    transition: transform 180ms ease;
}

.product-card:hover img {
    transform: scale(1.035);
}

.product-list-panel {
    margin-top: 16px;
    transition: opacity 180ms ease, transform 180ms ease, filter 180ms ease;
}

.empty-state,
[data-loading-region] {
    transition: opacity 180ms ease, transform 180ms ease, filter 180ms ease;
}

body.is-product-page-transitioning .product-grid,
body.is-product-page-transitioning .product-list-panel,
body.is-page-transitioning .product-grid,
body.is-page-transitioning .product-list-panel,
body.is-page-transitioning .empty-state,
body.is-page-transitioning [data-loading-region] {
    opacity: 0.35;
    filter: blur(1px);
    transform: translateY(10px);
    pointer-events: none;
}

body.is-product-page-arriving .product-grid,
body.is-product-page-arriving .product-list-panel,
body.is-page-arriving .product-grid,
body.is-page-arriving .product-list-panel,
body.is-page-arriving .empty-state,
body.is-page-arriving [data-loading-region] {
    animation: product-page-arrive 220ms ease-out;
}

body.is-product-page-transitioning::before,
body.is-page-transitioning::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 42%;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    box-shadow: 0 0 18px rgba(37, 99, 235, 0.42);
    animation: product-page-progress 720ms ease-in-out infinite;
}

.product-list-table {
    table-layout: fixed;
}

.product-list-table th:first-child,
.product-list-table td:first-child {
    width: 124px;
    text-align: center;
}

.product-list-table th:nth-child(2),
.product-list-table td:nth-child(2) {
    width: auto;
}

.product-list-table th:nth-child(3),
.product-list-table td:nth-child(3) {
    width: 120px;
}

.product-list-table th:nth-child(4),
.product-list-table td:nth-child(4) {
    width: 120px;
}

.product-list-table th:nth-child(5),
.product-list-table td:nth-child(5) {
    width: 210px;
}

.product-list-table a {
    color: inherit;
    text-decoration: none;
}

.product-list-table a:hover {
    color: #2563eb;
}

.product-list-table tr.is-unavailable {
    background: #fbfcfd;
}

.product-list-table tr.cart-item-added-flash td {
    animation: cart-item-row-added 900ms ease-out;
}

.product-list-image {
    display: grid;
    place-items: center;
    width: 88px;
    height: 118px;
    margin: 0 auto;
    background: #f1f4f7;
    border-radius: 6px;
    overflow: hidden;
}

.product-list-image img {
    width: auto;
    height: auto;
    max-width: 82%;
    max-height: 88%;
    object-fit: contain;
    object-position: center;
}

.list-add-form {
    display: grid;
    grid-template-columns: minmax(118px, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.list-add-form input {
    width: 100%;
    min-width: 72px;
    padding: 9px 10px;
    border: 1px solid #c9d3df;
    border-radius: 6px;
    font: inherit;
}

.product-image-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #f1f4f7;
    border-radius: 6px;
}

.unavailable-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(17, 24, 39, 0.48);
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0;
}

.product-card h2 {
    margin: 0;
    font-size: 18px;
}

.product-card h2 a {
    color: inherit;
    text-decoration: none;
}

.product-card h2 a:hover {
    color: #2563eb;
}

.product-title-row {
    display: grid;
    gap: 8px;
}

.availability-pill {
    display: inline-grid;
    place-items: center;
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.availability-pill.unavailable {
    color: #991b1b;
    background: #fee2e2;
}

.product-name {
    line-height: 1.35;
}

.product-spec {
    color: #52616f;
    font-size: 14px;
}

.product-no {
    color: #7b8794;
    font-size: 13px;
}

.add-cart-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: end;
}

.add-cart-form label {
    display: grid;
    gap: 4px;
    color: #52616f;
    font-size: 14px;
    font-weight: 600;
}

.add-cart-form input,
.inline-quantity-form input {
    width: 100%;
    min-width: 72px;
    padding: 9px 10px;
    border: 1px solid #c9d3df;
    border-radius: 6px;
    font: inherit;
}

.quantity-stepper {
    display: grid;
    grid-template-columns: 36px minmax(46px, 1fr) 36px;
    align-items: stretch;
    width: 100%;
    min-width: 118px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #c9d3df;
    border-radius: 6px;
}

.add-cart-form .quantity-stepper input,
.list-add-form .quantity-stepper input,
.inline-quantity-form .quantity-stepper input {
    width: 100%;
    min-width: 0;
    padding: 9px 4px;
    border: 0;
    border-radius: 0;
    text-align: center;
    font: inherit;
    appearance: textfield;
    -moz-appearance: textfield;
}

.quantity-stepper input::-webkit-outer-spin-button,
.quantity-stepper input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.quantity-stepper-button {
    display: grid;
    place-items: center;
    min-height: 40px;
    padding: 0;
    color: #17324d;
    background: #f1f5f9;
    border: 0;
    border-radius: 0;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}

.quantity-stepper-button:hover:not(:disabled) {
    color: #1d4ed8;
    background: #dbeafe;
}

.quantity-stepper-button:focus-visible,
.quantity-stepper input:focus-visible {
    position: relative;
    z-index: 1;
    outline: 2px solid #2563eb;
    outline-offset: -2px;
}

.quantity-stepper-button:disabled {
    color: #94a3b8;
    background: #eef2f6;
    cursor: not-allowed;
}

.quantity-stepper.is-disabled {
    background: #f8fafc;
}

.muted {
    color: #697586;
}

.price {
    font-weight: 700;
}

.notice {
    padding: 10px 12px;
    background: #ecfdf3;
    border: 1px solid #b7ebc6;
    border-radius: 6px;
}

.notice.warning {
    color: #854d0e;
    background: #fffbeb;
    border-color: #facc15;
}

.cart-review-notice {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin: 12px 0;
}

.cart-difference-summary {
    background: #fff7ed;
    border-color: #fed7aa;
}

.summary-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.summary-badge.is-warning {
    color: #92400e;
    background: #fef3c7;
}

.summary-badge.is-danger {
    color: #991b1b;
    background: #fee2e2;
}

.summary-badge.is-info {
    color: #075985;
    background: #e0f2fe;
}

.data-table tr.is-unavailable {
    background: #fff7f7;
}

.data-table tr.has-cart-difference td {
    background: #fffbeb;
}

.data-table tr.has-inventory-issue td {
    background: #fff7f7;
}

.value-changed {
    display: inline-grid;
    gap: 2px;
    line-height: 1.25;
}

.old-value {
    color: inherit;
    text-decoration-line: line-through;
    text-decoration-color: #dc2626;
    text-decoration-thickness: 2px;
}

.value-changed strong {
    color: #17324d;
}

.value-changed small {
    color: #92400e;
    font-size: 12px;
    font-weight: 800;
}

.quick-add-panel {
    display: grid;
    gap: 12px;
    margin: 16px 0;
}

.quick-add-panel h2 {
    margin: 0;
}

.stack {
    display: grid;
    gap: 16px;
}

.stack h1 {
    margin: 0 0 4px;
}

.result-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: #697586;
}

.summary-pager {
    margin-left: auto;
}

.result-summary strong {
    color: #17324d;
}

.page-size-form {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.page-size-form label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 3px 8px;
    color: #52616f;
    background: #f8fafc;
    border: 1px solid #d8e2ee;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.page-size-form select {
    min-width: 70px;
    height: 26px;
    padding: 2px 24px 2px 8px;
    color: #0b1f33;
    background-color: #fff;
    border: 1px solid #cbd7e3;
    border-radius: 7px;
    font-weight: 800;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 320px;
    min-height: 32px;
    padding: 5px 6px 5px 10px;
    color: #17324d;
    background: #eef6ff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.filter-chip span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.filter-chip:hover {
    color: #1d4ed8;
    background: #dbeafe;
    border-color: #93c5fd;
}

.filter-chip-remove {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    color: #fff;
    background: #52616f;
    border-radius: 999px;
    font-size: 16px;
    line-height: 1;
}

.filter-chip:hover .filter-chip-remove {
    background: #2563eb;
}

.clear-filter-link {
    color: #52616f;
    font-weight: 800;
    text-decoration: none;
}

.clear-filter-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

.product-search-sticky {
    position: sticky;
    top: 68px;
    z-index: 60;
    padding: 12px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 24px rgba(23, 50, 77, 0.12);
    backdrop-filter: blur(6px);
}

.product-browser-panel {
    gap: 10px;
    padding: 12px 14px;
}

.product-top-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
}

.product-search-form {
    min-width: 0;
}

.product-search-form .availability-select {
    min-width: 0;
    width: 118px;
}

.product-toolbar-actions {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.category-browser {
    display: grid;
    gap: 6px;
    padding: 8px 10px;
    background: #fbfcfe;
    border: 1px solid #edf1f5;
    border-radius: 7px;
}

.category-all-link,
.category-link {
    color: #17324d;
    text-decoration: none;
}

.category-all-link {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: 5px 10px;
    background: #fff;
    border: 1px solid #d9e0e8;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
}

.category-all-link:hover,
.category-link:hover {
    border-color: #93b4de;
    background: #f8fbff;
}

.category-all-link.is-active,
.category-link.is-active {
    color: #fff;
    background: #2563eb;
    border-color: #2563eb;
    box-shadow: none;
}

.category-browser-group {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    padding-top: 6px;
    border-top: 1px solid #e4e9ef;
}

.category-browser-group h2 {
    margin: 0;
    color: #52616f;
    font-size: 14px;
    font-weight: 600;
}

.category-browser-links {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 5px 9px;
    background: #fff;
    border: 1px solid #d9e0e8;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
}

.category-link small {
    color: #697586;
    font-size: 11px;
    font-weight: 500;
}

.category-link.is-active small {
    color: rgba(255, 255, 255, 0.86);
}

.sort-tabs {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    width: fit-content;
    max-width: 100%;
    padding: 3px;
    background: #f1f5f9;
    border: 1px solid #d9e0e8;
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.status-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding: 4px;
    background: #f8fafc;
    border: 1px solid #e4e9ef;
    border-radius: 8px;
}

.status-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 5px 10px;
    color: #17324d;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

.status-tab:hover {
    background: #eff6ff;
}

.status-tab.is-active {
    color: #fff;
    background: #2563eb;
}

.status-tab span {
    min-width: 22px;
    padding: 1px 6px;
    text-align: center;
    background: rgba(23, 50, 77, 0.08);
    border-radius: 999px;
    font-size: 12px;
}

.status-tab.is-active span {
    color: #1d4ed8;
    background: #fff;
}

.order-filter-form {
    display: grid;
    grid-template-columns: minmax(240px, 1.3fr) minmax(220px, 1fr) repeat(2, minmax(150px, 0.7fr)) auto auto;
    align-items: end;
    gap: 10px;
}

.order-filter-form label {
    display: grid;
    gap: 4px;
    color: #52616f;
    font-size: 13px;
    font-weight: 700;
}

.order-filter-form input[type="date"] {
    min-width: 150px;
}

.admin-order-table {
    table-layout: fixed;
}

.admin-order-table th,
.admin-order-table td {
    vertical-align: middle;
}

.admin-order-table th:nth-child(1),
.admin-order-table td:nth-child(1) {
    width: 20%;
}

.admin-order-table th:nth-child(2),
.admin-order-table td:nth-child(2) {
    width: 15%;
}

.admin-order-table th:nth-child(3),
.admin-order-table td:nth-child(3) {
    width: 13%;
}

.admin-order-table th:nth-child(4),
.admin-order-table td:nth-child(4) {
    width: 18%;
}

.admin-order-table th:nth-child(5),
.admin-order-table td:nth-child(5) {
    width: 11%;
}

.admin-order-table th:nth-child(6),
.admin-order-table td:nth-child(6),
.admin-order-table th:nth-child(7),
.admin-order-table td:nth-child(7) {
    width: 10%;
}

.admin-order-table th:nth-child(8),
.admin-order-table td:nth-child(8) {
    width: 13%;
}

.order-source-cell span,
.order-source-cell small {
    display: block;
}

.order-source-cell span {
    color: #0f2537;
    font-weight: 700;
}

.order-source-cell small {
    overflow: hidden;
    max-width: 100%;
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    color: #697586;
}

.order-summary-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin: 12px 0;
}

.order-summary-card {
    display: grid;
    gap: 5px;
    padding: 13px 14px;
    background: #fff;
    border: 1px solid #dce4ed;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.order-summary-card span {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.order-summary-card strong {
    color: #0f2740;
    font-size: 22px;
    line-height: 1.1;
}

.order-summary-card.is-positive strong {
    color: #b45309;
}

.order-summary-card.is-negative strong {
    color: #047857;
}

.admin-order-filter-form {
    grid-template-columns: minmax(280px, 1.4fr) repeat(2, minmax(148px, 0.55fr)) auto;
}

.admin-order-quick-filters,
.applied-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
}

.admin-order-quick-filters .filter-chip {
    min-height: 30px;
    background: #fff;
    border-color: #d7e0ea;
    font-size: 13px;
    font-weight: 700;
}

.admin-order-kpi-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
}

.admin-order-kpi-card {
    min-height: 74px;
    color: inherit;
    text-decoration: none;
}

a.admin-order-kpi-card:hover {
    border-color: #b8c9db;
    background: #fbfdff;
}

.admin-order-kpi-card strong {
    font-size: 20px;
    font-variant-numeric: tabular-nums;
}

.admin-order-kpi-card.is-overdue {
    border-color: #fed7aa;
    background: #fff7ed;
}

.admin-order-kpi-card.is-overdue strong {
    color: #c2410c;
}

.admin-order-kpi-card.is-follow-up-due {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.admin-order-kpi-card.is-follow-up-due strong {
    color: #1d4ed8;
}

.admin-order-result-summary {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.admin-order-result-summary .admin-order-kpi-card {
    min-height: 62px;
    padding: 10px 12px;
}

.admin-order-empty-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    margin-top: 12px;
    padding: 10px 14px;
    border: 1px solid #d9e0e8;
    border-radius: 8px;
    background: #fff;
    color: #64748b;
    font-size: 14px;
}

.admin-order-empty-summary strong {
    color: #0f2537;
}

.admin-order-empty-summary span {
    padding-left: 10px;
    border-left: 1px solid #e5ecf4;
}

.admin-product-kpi-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.admin-product-filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.admin-product-panel {
    overflow-x: auto;
}

.admin-product-table {
    min-width: 1260px;
    table-layout: fixed;
}

.admin-product-table th,
.admin-product-table td {
    padding: 10px 11px;
    vertical-align: middle;
}

.admin-product-table th:nth-child(1),
.admin-product-table td:nth-child(1) {
    width: 116px;
}

.admin-product-table th:nth-child(2),
.admin-product-table td:nth-child(2) {
    width: 390px;
}

.admin-product-table th:nth-child(3),
.admin-product-table td:nth-child(3) {
    width: 150px;
}

.admin-product-table th:nth-child(4),
.admin-product-table td:nth-child(4) {
    width: 138px;
}

.admin-product-table th:nth-child(5),
.admin-product-table td:nth-child(5) {
    width: 112px;
}

.admin-product-table th:nth-child(6),
.admin-product-table td:nth-child(6) {
    width: 156px;
}

.admin-product-table th:nth-child(7),
.admin-product-table td:nth-child(7) {
    width: 126px;
}

.admin-product-table td > strong,
.admin-product-table td > span {
    display: block;
}

.admin-product-info {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.admin-product-info strong,
.admin-product-info span {
    display: block;
}

.admin-product-thumb {
    display: grid;
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    place-items: center;
    overflow: visible;
    border: 1px solid #dbe3ec;
    border-radius: 8px;
    background: #f8fafc;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.admin-product-thumb img {
    width: auto;
    height: auto;
    max-width: calc(100% - 8px);
    max-height: calc(100% - 8px);
    padding: 0;
    box-sizing: border-box;
    object-fit: contain;
    object-position: center;
}

.admin-product-row.is-muted {
    background: #fbfcfe;
}

.admin-product-reasons {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 5px;
}

.admin-product-substatus {
    display: inline-flex !important;
    width: fit-content;
    padding: 2px 7px;
    border-radius: 999px;
    color: #475569;
    background: #eef2f6;
    font-size: 12px;
    font-weight: 800;
}

.admin-product-substatus.is-danger {
    color: #b42318;
    background: #fee4e2;
}

.admin-product-substatus.is-warning {
    color: #b54708;
    background: #fef0c7;
}

.admin-product-price-cell strong {
    font-variant-numeric: tabular-nums;
}

.admin-product-action {
    min-height: 34px;
    padding: 7px 10px;
    white-space: nowrap;
}

.admin-product-actions {
    display: grid;
    gap: 6px;
    justify-items: start;
}

.admin-product-disabled-action {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 5px 9px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #64748b;
    background: #f8fafc;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.admin-product-detail-hero {
    gap: 14px;
}

.admin-product-detail-summary {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-product-detail-alert {
    margin-bottom: 12px;
}

.admin-product-detail-grid {
    align-items: start;
}

.source-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    color: #475569;
    background: #eef2f6;
    font-size: 12px;
    font-weight: 800;
}

.admin-product-detail-image {
    display: grid;
    min-height: 220px;
    place-items: center;
    padding: 16px;
    color: #94a3b8;
    font-weight: 900;
}

.admin-product-detail-image img {
    max-width: 100%;
    max-height: 260px;
    object-fit: contain;
}

.admin-product-detail-text p {
    min-height: 120px;
    margin: 0;
    padding: 14px;
    color: #334155;
    line-height: 1.6;
    white-space: pre-wrap;
}

.admin-order-table th,
.admin-order-table td {
    padding: 10px 12px;
}

.admin-order-table th:nth-child(1),
.admin-order-table td:nth-child(1) {
    width: 98px;
}

.admin-order-table th:nth-child(2),
.admin-order-table td:nth-child(2) {
    width: 190px;
}

.admin-order-table th:nth-child(3),
.admin-order-table td:nth-child(3) {
    width: 210px;
}

.admin-order-table th:nth-child(4),
.admin-order-table td:nth-child(4) {
    width: 280px;
}

.admin-order-table th:nth-child(5),
.admin-order-table td:nth-child(5) {
    width: 140px;
    text-align: right;
}

.admin-order-table th:nth-child(6),
.admin-order-table td:nth-child(6) {
    width: 132px;
}

.admin-order-table th:nth-child(7),
.admin-order-table td:nth-child(7) {
    width: 112px;
    text-align: right;
}

.admin-order-table th:last-child,
.admin-order-table td:last-child {
    position: sticky;
    right: 0;
    z-index: 2;
    background: #fff;
    box-shadow: -10px 0 14px -14px rgba(15, 23, 42, 0.55);
}

.admin-order-table thead th:last-child {
    z-index: 3;
    background: #f8fafc;
}

.admin-order-panel {
    padding: 0;
}

.admin-order-panel .table-summary {
    margin: 0;
    padding: 14px 16px;
    border-bottom: 1px solid #e4e9ef;
}

.admin-order-panel .admin-order-table {
    min-width: 1160px;
}

.admin-order-row td {
    border-bottom-color: #e8eef5;
}

.admin-order-row:hover td {
    background: #fbfdff;
}

.admin-order-row.is-work td:first-child {
    box-shadow: inset 4px 0 0 #2563eb;
}

.admin-order-row.is-warning td:first-child {
    box-shadow: inset 4px 0 0 #f59e0b;
}

.admin-order-row.is-exception td:first-child {
    box-shadow: inset 4px 0 0 #dc2626;
}

.admin-order-no {
    color: #0f2537;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.admin-order-table td > .muted {
    margin-top: 2px;
    font-size: 12px;
}

.admin-order-item-preview {
    display: grid;
    gap: 3px;
    margin-top: 6px;
}

.admin-order-item-preview div {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 4px;
    color: #475569;
    font-size: 12px;
    line-height: 1.25;
}

.admin-order-item-preview div > span:first-child {
    overflow: hidden;
    min-width: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-order-item-preview small {
    flex: 0 0 auto;
    padding: 1px 5px;
    border-radius: 999px;
    color: #b54708;
    background: #fef0c7;
    font-size: 11px;
    font-weight: 800;
}

.admin-order-table .status-pill {
    min-width: 78px;
    justify-content: center;
    padding: 5px 8px;
    font-size: 12px;
}

.pending-confirm-badge {
    display: inline-flex;
    width: fit-content;
    margin-top: 6px;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.pending-confirm-badge.is-normal {
    color: #1d4ed8;
    background: #dbeafe;
}

.pending-confirm-badge.is-warning {
    color: #b45309;
    background: #fef3c7;
}

.pending-confirm-badge.is-danger {
    color: #b91c1c;
    background: #fee2e2;
}

.order-follow-up-badge {
    display: inline-flex;
    width: fit-content;
    margin-top: 5px;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.order-follow-up-badge.is-done {
    color: #047857;
    background: #d1fae5;
}

.order-follow-up-badge.is-missing {
    color: #475569;
    background: #eef2f7;
}

.order-follow-up-badge.is-missing.is-warning,
.order-follow-up-badge.is-due {
    color: #b45309;
    background: #fef3c7;
}

.admin-order-money-cell {
    font-variant-numeric: tabular-nums;
}

.admin-order-money-cell strong {
    display: block;
    color: #0f2537;
}

.amount-difference {
    display: inline-flex;
    justify-content: flex-end;
    min-width: 64px;
    margin-top: 3px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #eef2f7;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
}

.amount-difference.is-positive {
    color: #b45309;
    background: #fef3c7;
}

.amount-difference.is-negative {
    color: #047857;
    background: #d1fae5;
}

.admin-order-action {
    min-height: 32px;
    padding: 7px 10px;
    border-radius: 7px;
    font-size: 13px;
    white-space: nowrap;
}

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

    .admin-order-kpi-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .admin-product-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

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

    .admin-order-filter-form {
        grid-template-columns: 1fr;
    }

    .admin-order-result-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-order-table {
        min-width: 1060px;
    }
}

.sort-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 12px;
    color: #334155;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.sort-tab:hover {
    color: #17324d;
    background: #fff;
}

.sort-tab.is-active {
    color: #fff;
    background: #2563eb;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.22);
}

.view-tabs {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    width: fit-content;
    max-width: 100%;
    padding: 3px;
    background: #fff;
    border: 1px solid #d9e0e8;
    border-radius: 8px;
}

.view-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    min-height: 36px;
    padding: 8px;
    color: #334155;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.view-tab:hover {
    color: #17324d;
    background: #f8fafc;
}

.view-tab.is-active {
    color: #fff;
    background: #17324d;
}

.view-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.table-panel {
    overflow-x: auto;
}

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

.data-table th,
.data-table td {
    padding: 12px;
    border-bottom: 1px solid #e4e9ef;
    text-align: left;
    vertical-align: middle;
}

.data-table th {
    color: #52616f;
    font-size: 14px;
    font-weight: 700;
    background: #f8fafc;
}

.data-table td > span,
.data-table td > strong {
    display: block;
}

.actions-column {
    width: 260px;
}

.row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.row-actions form {
    margin: 0;
}

.row-actions .button,
.row-actions button {
    padding: 8px 10px;
    font-size: 14px;
}

.customer-account-table .actions-column {
    width: 132px;
}

.customer-account-filter-form {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 160px 180px auto auto;
    align-items: center;
    max-width: 900px;
}

.customer-account-filter-form input,
.customer-account-filter-form select {
    min-width: 0;
}

.customer-account-filter-form .button {
    padding: 10px 12px;
}

.customer-account-table th:nth-child(4),
.customer-account-table td:nth-child(4) {
    width: 430px;
}

.customer-account-stack {
    display: grid;
    max-width: 520px;
    gap: 6px;
}

.customer-account-count {
    color: #697586;
    font-size: 13px;
}

.customer-account-line {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 7px 10px;
    border: 1px solid #e4e9ef;
    border-radius: 6px;
    background: #fff;
}

.customer-account-main {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 8px;
}

.customer-account-main strong {
    display: inline;
    min-width: 72px;
}

.customer-account-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-top: 3px;
    color: #697586;
    font-size: 12px;
}

.customer-account-inline-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.customer-account-inline-actions form,
.customer-account-inline-actions button {
    margin: 0;
}

.text-action {
    padding: 0;
    border: 0;
    color: #2563eb;
    background: transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.text-action:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.danger-text {
    color: #b91c1c;
}

.customer-account-actions {
    align-items: flex-start;
}

.customer-account-hero {
    gap: 14px;
}

.customer-account-kpis {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.customer-account-kpi {
    display: grid;
    gap: 5px;
    min-height: 72px;
    padding: 11px 13px;
    color: inherit;
    background: #fff;
    border: 1px solid #dce4ed;
    border-radius: 8px;
    text-decoration: none;
}

a.customer-account-kpi:hover {
    border-color: #b8c9db;
    background: #fbfdff;
}

.customer-account-kpi span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.customer-account-kpi strong {
    color: #0f2537;
    font-size: 22px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.customer-account-kpi.is-warning {
    border-color: #fde68a;
    background: #fffbeb;
}

.customer-account-kpi.is-warning strong {
    color: #b45309;
}

.customer-account-kpi.is-danger {
    border-color: #fecaca;
    background: #fff7f7;
}

.customer-account-kpi.is-danger strong {
    color: #b91c1c;
}

.customer-account-kpi.is-muted {
    border-color: #d7dee8;
    background: #f8fafc;
}

.customer-account-panel {
    padding: 18px 20px 20px;
}

.customer-account-table {
    table-layout: fixed;
}

.customer-account-table th,
.customer-account-table td {
    padding: 12px 13px;
    vertical-align: top;
}

.customer-account-table th:nth-child(1),
.customer-account-table td:nth-child(1) {
    width: 190px;
}

.customer-account-table th:nth-child(2),
.customer-account-table td:nth-child(2) {
    width: 150px;
}

.customer-account-table th:nth-child(3),
.customer-account-table td:nth-child(3) {
    width: 154px;
}

.customer-account-table th:nth-child(4),
.customer-account-table td:nth-child(4) {
    width: auto;
}

.customer-account-table th:nth-child(5),
.customer-account-table td:nth-child(5) {
    width: 104px;
}

.customer-account-row.has-locked td:first-child {
    box-shadow: inset 4px 0 0 #f59e0b;
}

.customer-account-status-stack {
    display: grid;
    gap: 5px;
    color: #475569;
    font-size: 13px;
}

.customer-account-warning {
    color: #b45309;
    font-weight: 800;
}

.customer-account-danger {
    color: #b91c1c;
    font-weight: 800;
}

.customer-account-table td > small {
    display: block;
    margin-top: 3px;
}

.customer-account-stack {
    max-width: none;
}

.customer-account-line {
    grid-template-columns: minmax(0, 1fr) auto;
    border-radius: 8px;
}

.customer-account-line.is-locked {
    border-color: #fde68a;
    background: #fffbeb;
}

.customer-account-main {
    flex-wrap: wrap;
}

.customer-account-main strong {
    min-width: 86px;
    color: #0f2537;
}

.customer-account-name {
    min-width: 86px;
    color: #0f2537;
    font-weight: 900;
    text-decoration: none;
}

.customer-account-name:hover {
    color: #2563eb;
    text-decoration: underline;
}

.customer-account-meta {
    line-height: 1.4;
}

.customer-account-inline-actions {
    gap: 8px;
}

.customer-account-inline-actions .text-action {
    font-size: 13px;
}

.customer-account-actions .button {
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 13px;
    white-space: nowrap;
}

.customer-account-detail-hero .actions {
    flex-wrap: wrap;
}

.customer-account-detail-hero form {
    margin: 0;
}

.customer-account-detail-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin: 12px 0;
}

.admin-summary-card {
    display: grid;
    gap: 5px;
    min-height: 72px;
    padding: 11px 13px;
    border: 1px solid #dce4ed;
    border-radius: 8px;
    background: #fff;
}

.admin-summary-card span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.admin-summary-card strong {
    color: #0f2537;
    font-size: 21px;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.admin-summary-card.is-warning {
    border-color: #fde68a;
    background: #fffbeb;
}

.admin-summary-card.is-warning strong {
    color: #b45309;
}

.customer-account-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.customer-account-detail-panel {
    padding: 0;
}

.customer-account-detail-panel .table-summary {
    padding: 12px 14px;
    border-bottom: 1px solid #e5ecf4;
}

.detail-list {
    display: grid;
    margin: 0;
    padding: 4px 14px 12px;
}

.detail-list div {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #edf2f7;
}

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

.detail-list dt {
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.detail-list dd {
    margin: 0;
    color: #0f2537;
    font-size: 14px;
    font-weight: 700;
}

.break-text {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.customer-account-detail-table {
    padding: 0;
    margin-top: 12px;
}

.customer-account-detail-table .table-summary {
    padding: 12px 14px;
    border-bottom: 1px solid #e5ecf4;
}

.customer-account-detail-table .data-table th,
.customer-account-detail-table .data-table td {
    padding: 10px 12px;
    vertical-align: middle;
}

.empty-cell {
    color: #697586;
    text-align: center;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.status-on {
    color: #166534;
    background: #dcfce7;
}

.status-off {
    color: #991b1b;
    background: #fee2e2;
}

.status-warning {
    color: #92400e;
    background: #fef3c7;
}

.status-waiting {
    color: #1d4ed8;
    background: #dbeafe;
}

.order-difference-table tr.has-difference td {
    background: #fffafb;
}

.data-table td > .diff-value,
.diff-value {
    display: grid;
    gap: 3px;
    width: fit-content;
}

.diff-old {
    color: inherit;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: #dc2626;
}

.diff-new {
    display: block;
    color: #17324d;
    font-weight: 800;
}

.form-panel {
    max-width: 640px;
}

.form-grid {
    display: grid;
    gap: 16px;
}

.check-list {
    display: grid;
    gap: 8px;
}

.inline-quantity-form {
    display: grid;
    grid-template-columns: 132px 34px 48px;
    align-items: center;
    gap: 6px;
}

.inline-quantity-form button {
    padding: 8px 10px;
}

.cart-header {
    padding: 22px 24px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.cart-header h1 {
    margin: 0;
    font-size: 30px;
    letter-spacing: 0;
}

.cart-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
}

.cart-title-block {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.cart-header-count {
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
}

.cart-header .actions .button,
.cart-header .actions button {
    min-height: 42px;
    padding: 9px 16px;
    font-weight: 700;
}

.cart-status-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 12px 0;
}

.cart-status-card {
    display: grid;
    gap: 4px;
    min-height: 72px;
    padding: 12px 14px;
    border: 1px solid #dbe3ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.035);
}

.cart-status-card span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.cart-status-card strong {
    color: #0f2537;
    font-size: 22px;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.cart-status-card.is-ready {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.cart-status-card.is-blocked,
.cart-status-card.is-warning {
    border-color: #fed7aa;
    background: #fff7ed;
}

.cart-status-card.is-blocked strong,
.cart-status-card.is-warning strong {
    color: #b45309;
}

.cart-readiness-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 12px 0;
    padding: 14px 16px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #f8fbff;
}

.cart-readiness-panel.is-ready {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.cart-readiness-panel.is-blocked {
    border-color: #fecaca;
    background: #fff7f7;
}

.cart-readiness-panel > div:first-child {
    display: grid;
    gap: 3px;
}

.cart-readiness-panel strong {
    color: #0f2537;
    font-size: 16px;
}

.cart-readiness-panel span {
    color: #64748b;
    font-size: 13px;
}

.cart-readiness-metrics {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.cart-difference-heading {
    display: grid;
    gap: 3px;
    min-width: 220px;
}

.cart-difference-heading strong {
    color: #7c2d12;
}

.cart-difference-heading span {
    color: #9a3412;
    font-size: 13px;
}

.cart-difference-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

.cart-difference-card {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #fff;
}

.cart-difference-card.is-warning {
    border-color: #fde68a;
    background: #fffbeb;
}

.cart-difference-card.is-danger {
    border-color: #fecaca;
    background: #fef2f2;
}

.cart-difference-card.is-info {
    border-color: #bae6fd;
    background: #f0f9ff;
}

.cart-difference-card span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.cart-difference-card strong {
    color: #0f2537;
    font-size: 20px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.cart-difference-card small {
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

.cart-panel {
    padding: 14px 18px 16px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.035);
}

.cart-table {
    min-width: 860px;
    table-layout: fixed;
}

.cart-table th,
.cart-table td {
    white-space: nowrap;
}

.cart-table th {
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 13px;
    letter-spacing: 0;
    background: #f8fafc;
    border-bottom-color: #dce5ef;
}

.cart-table td {
    padding-top: 9px;
    padding-bottom: 9px;
}

.cart-table tbody tr {
    transition: background 160ms ease;
}

.cart-table tbody tr:hover td {
    background: #fbfdff;
}

.cart-table th:nth-child(1),
.cart-table td:nth-child(1) {
    width: 38%;
    white-space: normal;
}

.cart-table th:nth-child(2),
.cart-table td:nth-child(2) {
    width: 250px;
}

.cart-table th:nth-child(3),
.cart-table td:nth-child(3) {
    width: 96px;
}

.cart-table th:nth-child(4),
.cart-table td:nth-child(4) {
    width: 110px;
}

.cart-table th:nth-child(5),
.cart-table td:nth-child(5) {
    width: 92px;
}

.cart-product-cell {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.cart-product-thumb {
    display: grid;
    place-items: center;
    width: 48px;
    height: 60px;
    overflow: hidden;
    border-radius: 8px;
    background: #f1f5f9;
    box-shadow: inset 0 0 0 1px #e2e8f0;
}

.cart-product-thumb img {
    display: block;
    max-width: calc(100% - 6px);
    max-height: calc(100% - 6px);
    object-fit: contain;
}

.cart-product-thumb-placeholder {
    width: 24px;
    height: 24px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
}

.cart-product-info {
    min-width: 0;
}

.cart-product-info > span,
.cart-product-info > strong {
    display: block;
}

.cart-product-name {
    color: #0f2537;
    line-height: 1.35;
    font-weight: 500;
}

.cart-line-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.cart-line-flags .summary-badge {
    min-height: 22px;
    padding: 2px 7px;
    font-size: 12px;
}

.cart-line-diff {
    display: grid;
    gap: 2px;
    margin-top: 5px;
    color: #92400e;
    font-size: 12px;
    line-height: 1.4;
}

.cart-stock-line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-top: 6px;
    color: #475569;
    font-size: 12px;
    line-height: 1.35;
}

.cart-stock-line span,
.cart-stock-line strong {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #f1f5f9;
    font-weight: 800;
}

.cart-stock-line.is-short span,
.cart-stock-line.is-short strong {
    color: #991b1b;
    background: #fee2e2;
}

.cart-table .inline-quantity-form > input[type="number"] {
    height: 42px;
    border-radius: 8px;
}

.cart-quantity-stepper {
    min-width: 132px;
    border-radius: 8px;
}

.cart-table .inline-quantity-form .button,
.cart-table .row-actions .button,
.cart-table .inline-quantity-form button,
.cart-table .row-actions button {
    min-height: 40px;
    padding: 8px 12px;
    font-weight: 700;
}

.cart-remove-button {
    color: #334155;
    background: transparent;
    width: 42px;
    min-width: 42px;
    height: 42px;
    border: 0;
    box-shadow: none;
}

.cart-remove-button:hover {
    color: #b91c1c;
    background: #fff1f2;
    border-color: #fecdd3;
}

.cart-money {
    color: #0f2537;
    font-weight: 500;
}

.cart-table tfoot td {
    padding-top: 16px;
    padding-bottom: 16px;
    background: #fbfcfe;
    border-top: 1px solid #d9e0e8;
}

.cart-total {
    font-size: 18px;
    font-weight: 800;
}

.cart-quantity-total {
    font-size: 16px;
}

.cart-summary-strip {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.cart-summary-item {
    display: grid;
    gap: 4px;
    min-width: 150px;
    padding: 0 10px;
}

.cart-summary-item span {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.cart-summary-item strong {
    color: #0f2537;
    font-size: 20px;
    font-weight: 900;
}

.cart-summary-amount {
    min-width: 190px;
}

.amount-up {
    color: #b45309 !important;
}

.amount-down {
    color: #075985 !important;
}

.checkout-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 16px;
}

.cart-checkout {
    max-width: none;
    padding: 18px 20px;
    border: 1px solid #d9e0e8;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.035);
}

.cart-checkout-panel {
    position: sticky;
    bottom: 12px;
    z-index: 30;
    margin-top: 12px;
    padding: 12px 16px;
    border: 1px solid #d9e0e8;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
}

.cart-checkout-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr)) minmax(190px, 0.8fr) auto;
    align-items: stretch;
    gap: 10px;
}

.cart-note-field {
    min-width: 0;
    margin: 0;
    padding: 9px 10px;
    border: 1px solid #dce5ef;
    border-radius: 7px;
    background: #f8fafc;
}

.cart-checkout-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.cart-checkout-actions button {
    min-height: 40px;
    padding: 0 16px;
    font-weight: 800;
}

.cart-confirm-hero {
    padding: 18px 22px;
}

.cart-confirm-hero h1 {
    margin: 0;
}

.cart-confirm-panel {
    padding: 14px 18px 16px;
}

.cart-confirm-table th:nth-child(1),
.cart-confirm-table td:nth-child(1) {
    width: 48%;
    white-space: normal;
}

.cart-confirm-table th:nth-child(2),
.cart-confirm-table td:nth-child(2) {
    width: 150px;
}

.cart-confirm-table th:nth-child(3),
.cart-confirm-table td:nth-child(3),
.cart-confirm-table th:nth-child(4),
.cart-confirm-table td:nth-child(4) {
    width: 150px;
}

.cart-confirm-submit-panel {
    position: sticky;
    bottom: 12px;
    z-index: 30;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 16px;
    align-items: center;
    margin-top: 12px;
    padding: 12px 16px;
    border-color: #dbe3ec;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
}

.cart-confirm-remark {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.cart-confirm-remark span {
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.cart-confirm-remark strong {
    overflow: hidden;
    color: #0f2537;
    font-size: 15px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-confirm-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.cart-confirm-actions button,
.cart-confirm-actions .button {
    min-height: 44px;
    padding: 10px 18px;
    font-weight: 800;
}

.checkout-form {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.checkout-bar button:disabled {
    cursor: not-allowed;
    background: #9aa8b6;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.summary-item {
    display: grid;
    gap: 6px;
    padding: 16px;
    background: #fff;
    border: 1px solid #d9e0e8;
    border-radius: 8px;
}

.summary-item span {
    color: #697586;
    font-size: 14px;
}

.summary-item strong {
    font-size: 20px;
}

.pager {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.summary-pager .pager,
.pager.is-compact {
    gap: 6px;
    margin-top: 0;
    justify-content: flex-end;
}

.pager.is-compact .button {
    min-height: 32px;
    padding: 6px 9px;
    font-size: 13px;
}

.pager.is-compact .pager-page,
.pager.is-compact .pager-ellipsis {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 13px;
}

.pager-jump-form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.pager-jump-form input {
    width: 64px;
    height: 40px;
    padding: 0 8px;
    border: 1px solid #c9d3df;
    border-radius: 6px;
    text-align: center;
    font: inherit;
    font-weight: 800;
}

.pager-jump-form button {
    height: 40px;
    padding: 0 10px;
    background: #52616f;
    font-size: 14px;
}

.pager.is-compact .pager-jump-form input {
    width: 54px;
    height: 32px;
    font-size: 13px;
}

.pager.is-compact .pager-jump-form button {
    height: 32px;
    padding: 0 8px;
    font-size: 13px;
}

.pager-page,
.pager-ellipsis {
    display: inline-grid;
    place-items: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 6px;
    font-weight: 700;
}

.pager-page {
    color: #17324d;
    background: #fff;
    border: 1px solid #c9d3df;
    text-decoration: none;
}

.pager-page:hover {
    border-color: #2563eb;
}

.pager-page.is-current {
    color: #fff;
    background: #2563eb;
    border-color: #2563eb;
}

.pager-ellipsis {
    color: #697586;
}

.review-form {
    display: grid;
    gap: 16px;
}

.admin-review-hero {
    gap: 8px;
    padding: 14px 16px;
}

.admin-review-hero .toolbar-heading h1 {
    font-size: 24px;
}

.admin-review-hero .toolbar-heading p {
    margin-top: 3px;
    font-size: 13px;
}

.admin-review-meta-strip {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(150px, 1fr));
    gap: 10px;
}

.admin-review-meta-strip div {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid #dce5ef;
    border-radius: 8px;
    background: #f8fafc;
}

.admin-review-meta-strip span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.admin-review-meta-strip strong {
    overflow: hidden;
    color: #0f2537;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-review-summary {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin: 10px 0;
}

.admin-review-summary-card {
    display: grid;
    gap: 5px;
    padding: 8px 10px;
    border: 1px solid #dce5ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.035);
}

.admin-review-summary-card span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.admin-review-summary-card strong {
    color: #0f2537;
    font-size: 17px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.admin-review-summary-card.is-warning {
    border-color: #fde68a;
    background: #fffbeb;
}

.admin-review-summary-card.is-warning strong {
    color: #b45309;
}

.admin-review-summary-card.is-danger {
    border-color: #fecaca;
    background: #fef2f2;
}

.admin-review-summary-card.is-danger strong {
    color: #b91c1c;
}

.admin-review-summary-card.is-ready {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.review-outcome-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 10px 0;
    padding: 10px 12px;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    background: #f0fdf4;
}

.review-outcome-panel.has-difference {
    border-color: #fed7aa;
    background: #fff7ed;
}

.review-outcome-panel > div:first-child {
    display: grid;
    gap: 3px;
}

.review-outcome-panel strong {
    color: #0f2537;
}

.review-outcome-panel span {
    color: #64748b;
    font-size: 13px;
}

.review-outcome-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.review-pending-confirm-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 12px 0;
    padding: 13px 15px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
}

.review-pending-confirm-alert strong {
    color: #0f2537;
}

.review-pending-confirm-alert span {
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.review-pending-confirm-alert.is-warning {
    border-color: #fed7aa;
    background: #fff7ed;
}

.review-pending-confirm-alert.is-warning strong {
    color: #c2410c;
}

.review-pending-confirm-alert.is-danger {
    border-color: #fecaca;
    background: #fef2f2;
}

.review-pending-confirm-alert.is-danger strong {
    color: #b91c1c;
}

.review-side-action-panel {
    border-color: #fed7aa;
    background: #fff7ed;
}

.review-side-action-panel h2 {
    color: #9a3412;
}

.review-customer-confirm-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(140px, 0.45fr)) minmax(260px, 1fr);
    align-items: stretch;
    gap: 10px;
    margin: 12px 0;
    padding: 12px;
    border: 1px solid #dbe5ef;
    border-radius: 8px;
    background: #fff;
}

.review-customer-confirm-summary > div {
    display: grid;
    gap: 4px;
    min-height: 54px;
    padding: 9px 11px;
    border: 1px solid #e5ecf4;
    border-radius: 6px;
    background: #f8fafc;
}

.review-customer-confirm-summary span {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.review-customer-confirm-summary strong {
    color: #0f2537;
    font-size: 16px;
}

.review-customer-confirm-summary p {
    align-self: stretch;
    margin: 0;
    padding: 9px 11px;
    border: 1px solid #e5ecf4;
    border-radius: 6px;
    color: #334155;
    background: #f8fafc;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

.review-customer-confirm-summary.is-warning {
    border-color: #fed7aa;
    background: #fff7ed;
}

.review-customer-confirm-summary.is-danger {
    border-color: #fecaca;
    background: #fef2f2;
}

.review-customer-confirm-summary.is-danger strong {
    color: #b91c1c;
}

.admin-review-panel {
    padding: 0;
}

.admin-review-table-heading {
    margin: 0;
    padding: 14px 16px;
    border-bottom: 1px solid #e4e9ef;
    background: #fff;
}

.admin-review-table-heading > div:first-child {
    display: grid;
    gap: 3px;
}

.admin-review-table-heading strong {
    color: #0f2537;
}

.review-filter-tabs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px;
    border: 1px solid #d7e0ea;
    border-radius: 8px;
    background: #f8fafc;
}

.review-filter-tab {
    min-height: 30px;
    padding: 5px 9px;
    color: #334155;
    background: transparent;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.review-filter-tab:hover {
    color: #17324d;
    background: #eef4fb;
}

.review-filter-tab.is-active {
    color: #fff;
    background: #2563eb;
}

.review-filter-tab-risk:not(.is-active) {
    color: #b45309;
}

.review-filter-tab-risk span {
    display: inline-grid;
    min-width: 18px;
    height: 18px;
    place-items: center;
    margin-left: 3px;
    border-radius: 999px;
    color: inherit;
    background: #fef3c7;
    font-size: 11px;
}

.review-filter-tab-risk.is-active span {
    color: #1d4ed8;
    background: #dbeafe;
}

.review-table {
    min-width: 1320px;
    table-layout: fixed;
}

.review-table th,
.review-table td {
    padding: 10px 12px;
    vertical-align: middle;
}

.review-table thead th {
    position: static;
    background: #eef4fb;
}

.review-table th:nth-child(1),
.review-table td:nth-child(1) {
    width: 360px;
}

.review-table th:nth-child(2),
.review-table td:nth-child(2) {
    width: 170px;
}

.review-table th:nth-child(3),
.review-table td:nth-child(3) {
    width: 150px;
}

.review-table th:nth-child(4),
.review-table td:nth-child(4) {
    width: 160px;
}

.review-table th:nth-child(5),
.review-table td:nth-child(5) {
    width: 150px;
}

.review-table th:nth-child(6),
.review-table td:nth-child(6) {
    width: 270px;
}

.review-table input {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #c9d3df;
    border-radius: 6px;
    font: inherit;
}

.review-table input:focus {
    border-color: #2563eb;
    outline: 3px solid rgba(37, 99, 235, 0.14);
}

.review-number {
    min-width: 0;
    max-width: 138px;
    text-align: right;
    font-size: 16px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.review-product-cell,
.review-original-stack,
.review-line-amount {
    display: grid;
    gap: 4px;
}

.review-product-with-thumb {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.review-product-thumb {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    overflow: hidden;
    border: 1px solid #dbe5ef;
    border-radius: 6px;
    background: #f4f7fa;
}

.review-product-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.review-product-thumb span {
    color: #94a3b8;
    font-size: 9px;
    font-weight: 800;
    text-align: center;
}

.review-product-cell strong {
    color: #0f2537;
    line-height: 1.35;
}

.review-product-cell .muted {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-change-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    min-height: 0;
    margin-top: 4px;
}

.review-change-badges .summary-badge {
    min-height: 22px;
    padding: 2px 7px;
    font-size: 12px;
}

.is-hidden {
    display: none !important;
}

.review-original-stack span {
    color: #64748b;
    font-size: 12px;
}

.review-availability-details {
    margin-bottom: 4px;
}

.review-availability-details summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #526b84;
    font-size: 12px;
    font-weight: 700;
    list-style: none;
}

.review-availability-details summary::-webkit-details-marker {
    display: none;
}

.review-availability-details summary::after {
    content: "+";
    color: #2563eb;
    font-size: 15px;
    font-weight: 500;
}

.review-availability-details[open] summary::after {
    content: "−";
}

.review-availability-details summary strong {
    color: #0f2537;
    font-variant-numeric: tabular-nums;
}

.review-availability-details strong.is-negative,
.review-inventory-assist strong.is-negative {
    color: #dc2626;
}

.review-availability-details .review-inventory-assist {
    margin-top: 6px;
}

.review-reset-line {
    width: fit-content;
    min-height: 28px;
    margin-top: 4px;
    padding: 4px 8px;
    color: #17324d;
    background: #eef4fb;
    border: 1px solid #d7e0ea;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
}

.review-reset-line:hover {
    background: #e1ecf8;
}

.review-delta,
.review-line-amount small {
    display: block;
    min-height: 0;
    margin-top: 4px;
    color: #92400e;
    font-size: 12px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.review-table tr.has-review-difference td {
    background: #fffbeb;
}

.review-table tr.has-review-difference td:first-child {
    box-shadow: inset 3px 0 0 #f59e0b;
}

.review-table tr.is-filtered-out {
    display: none;
}

.review-filter-empty-row td {
    padding: 28px 14px;
    color: #64748b;
    text-align: center;
}

.review-text {
    min-width: 0;
}

.review-no-change {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
}

.review-change-reason {
    display: grid;
    gap: 6px;
}

.review-reason-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 6px;
}

.review-reason-chips button {
    min-height: 24px;
    padding: 3px 7px;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #d7e0ea;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.review-reason-chips button:hover {
    color: #17324d;
    background: #eef4fb;
    border-color: #bfd0e2;
}

.review-remark {
    position: sticky;
    bottom: 0;
    z-index: 20;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    margin-top: 0;
    border-color: #cbd5e1;
    box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.08);
}

.review-remark-hint {
    display: block;
    margin-top: 6px;
    font-size: 13px;
}

.review-submit-actions {
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
}

.review-submit-actions button,
.review-submit-actions .button {
    min-height: 42px;
    white-space: nowrap;
}

.admin-order-timeline-panel {
    display: grid;
    gap: 0;
    margin-bottom: 24px;
    padding: 0;
}

.admin-order-timeline-heading {
    margin: 0;
    padding: 14px 16px;
    border-bottom: 1px solid #e4e9ef;
}

.admin-order-timeline-heading strong {
    color: #0f2537;
}

.admin-order-timeline {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 10px 18px 16px;
    list-style: none;
}

.admin-order-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 12px;
    padding: 9px 0;
}

.admin-order-timeline-item::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 9px;
    width: 2px;
    background: #e2e8f0;
}

.admin-order-timeline-item:first-child::before {
    top: 18px;
}

.admin-order-timeline-item:last-child::before {
    bottom: calc(100% - 18px);
}

.admin-order-timeline-marker {
    position: relative;
    z-index: 1;
    width: 12px;
    height: 12px;
    margin: 8px auto 0;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #64748b;
    box-shadow: 0 0 0 2px #cbd5e1;
}

.admin-order-timeline-content {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

.admin-order-timeline-main {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.admin-order-timeline-main strong {
    color: #0f2537;
}

.admin-order-timeline-main time,
.admin-order-timeline-actor,
.admin-order-timeline-content small {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.admin-order-timeline-content p {
    margin: 0;
    color: #334155;
    font-size: 13px;
    line-height: 1.45;
}

.admin-order-timeline-item.is-created .admin-order-timeline-marker {
    background: #2563eb;
    box-shadow: 0 0 0 2px #bfdbfe;
}

.admin-order-timeline-item.is-approved .admin-order-timeline-marker,
.admin-order-timeline-item.is-confirmed .admin-order-timeline-marker {
    background: #059669;
    box-shadow: 0 0 0 2px #bbf7d0;
}

.admin-order-timeline-item.is-warning .admin-order-timeline-marker {
    background: #f59e0b;
    box-shadow: 0 0 0 2px #fde68a;
}

.admin-order-timeline-item.is-shipment .admin-order-timeline-marker,
.admin-order-timeline-item.is-shipped .admin-order-timeline-marker {
    background: #0f766e;
    box-shadow: 0 0 0 2px #99f6e4;
}

.admin-order-timeline-item.is-audit .admin-order-timeline-marker {
    background: #64748b;
    box-shadow: 0 0 0 2px #cbd5e1;
}

.order-source-panel {
    display: grid;
    gap: 0;
}

.review-support-details {
    padding: 0;
    overflow: hidden;
}

.review-support-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 42px;
    padding: 10px 14px;
    cursor: pointer;
    color: #0f2537;
    font-weight: 800;
    list-style: none;
}

.review-support-details summary::-webkit-details-marker {
    display: none;
}

.review-support-details summary::after {
    content: "+";
    flex: 0 0 auto;
    color: #2563eb;
    font-size: 18px;
    font-weight: 500;
}

.review-support-details[open] summary {
    border-bottom: 1px solid #e4e9ef;
    background: #f8fafc;
}

.review-support-details[open] summary::after {
    content: "−";
}

.review-support-details summary small {
    overflow: hidden;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-support-content {
    padding: 12px 14px;
}

.order-source-panel h2 {
    margin: 0;
}

.order-source-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.order-source-grid div {
    padding: 12px;
    border: 1px solid #e4e9ef;
    border-radius: 6px;
    background: #f8fafc;
}

.order-source-grid span {
    display: block;
    margin-bottom: 4px;
    color: #697586;
    font-size: 13px;
}

.order-source-grid strong {
    word-break: break-word;
}

.order-source-user-agent {
    margin: 0;
    word-break: break-all;
}

.admin-order-inventory-panel {
    display: grid;
    gap: 14px;
}

.admin-order-inventory-heading {
    align-items: center;
}

.admin-order-inventory-heading > div:first-child {
    display: grid;
    gap: 3px;
}

.admin-order-inventory-heading strong {
    color: #0f2537;
    font-size: 18px;
}

.admin-order-inventory-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.admin-order-inventory-summary div {
    padding: 12px;
    border: 1px solid #dbeafe;
    border-radius: 6px;
    background: #f8fbff;
}

.admin-order-inventory-summary span {
    display: block;
    margin-bottom: 4px;
    color: #52647a;
    font-size: 12px;
    font-weight: 800;
}

.admin-order-inventory-summary strong {
    color: #0f2537;
    font-size: 20px;
    font-variant-numeric: tabular-nums;
}

.admin-order-inventory-table {
    min-width: 980px;
}

.admin-order-inventory-table td {
    vertical-align: top;
}

.admin-order-inventory-table td:nth-child(3) strong,
.admin-order-inventory-table td:nth-child(6) span {
    display: block;
}

.admin-order-inventory-table small {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
}

.admin-order-inventory-table tr.is-negative td {
    background: #fff7f7;
}

.admin-order-inventory-table tr.is-positive td {
    background: #f7fffb;
}

.inventory-activity-type {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    color: #075985;
    background: #e0f2fe;
    font-size: 12px;
    font-weight: 800;
}

.confirm-panel {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

.confirm-panel h2 {
    margin: 0;
}

.confirm-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 720px) {
    .search-form,
    .add-cart-form,
    .inline-quantity-form,
    .checkout-bar,
    .checkout-form {
        grid-template-columns: 1fr;
    }

    .checkout-bar {
        display: grid;
        justify-content: stretch;
    }

    .confirm-actions {
        grid-template-columns: 1fr;
    }
}

.auth-shell {
    min-height: calc(100vh - 104px);
    display: grid;
    place-items: center;
}

.auth-panel,
.narrow-panel {
    width: min(100%, 420px);
}

.auth-panel {
    display: grid;
    gap: 16px;
}

.auth-page {
    background: #07131e;
}

.auth-page .topbar {
    position: fixed;
    width: 100%;
    background: rgba(5, 17, 28, 0.88);
    box-shadow: none;
    backdrop-filter: blur(10px);
}

.auth-page .topbar nav {
    display: none;
}

.auth-page .page {
    max-width: none;
    min-height: 100vh;
    margin: 0;
    padding: 56px 0 0;
}

.auth-page .auth-shell {
    position: relative;
    min-height: calc(100vh - 56px);
    padding: 32px 20px;
    overflow: hidden;
    background: #07131e url("/images/login/gaming-store-login-bg.png") center / cover no-repeat;
}

.auth-page .auth-shell::before {
    position: absolute;
    inset: 0;
    content: "";
    background: rgba(3, 13, 22, 0.54);
}

.auth-page .auth-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 408px);
    padding: 28px;
    color: #f8fafc;
    background: rgba(10, 24, 38, 0.82);
    border-color: rgba(191, 219, 254, 0.44);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(16px);
}

.auth-branding {
    display: grid;
    gap: 4px;
    text-align: center;
}

.auth-eyebrow {
    margin: 0;
    color: #93c5fd;
    font-size: 16px;
    font-weight: 800;
}

.auth-page .auth-panel h1 {
    font-size: 28px;
}

.auth-page .auth-panel .muted {
    margin: 0;
    color: #dbeafe;
}

.auth-page .auth-panel .field,
.auth-page .auth-panel .check-field {
    color: #e2e8f0;
}

.auth-page .auth-panel .field input {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(191, 219, 254, 0.46);
}

.auth-page .auth-panel .field input:focus {
    border-color: #93c5fd;
    outline: 2px solid rgba(147, 197, 253, 0.28);
    outline-offset: 1px;
}

.auth-page .auth-panel button[type="submit"] {
    min-height: 46px;
    font-weight: 800;
}

.auth-panel h1,
.narrow-panel h1 {
    margin: 0;
}

.field {
    display: grid;
    gap: 6px;
    font-weight: 600;
}

.field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #c9d3df;
    border-radius: 6px;
    font: inherit;
}

.date-input,
input[type="date"].date-input {
    min-width: 160px;
    height: 42px;
    padding: 9px 12px;
    border: 1px solid #c9d3df;
    border-radius: 6px;
    color: #0f2537;
    background: #fff;
    font: inherit;
    font-weight: 700;
    letter-spacing: 0;
}

.date-input:focus {
    border-color: #2563eb;
    outline: 2px solid rgba(37, 99, 235, 0.16);
    outline-offset: 1px;
}

.date-input:invalid,
.date-input.is-invalid {
    border-color: #dc2626;
    background: #fff7f7;
}

.readonly-input,
.field input[readonly] {
    color: #475569;
    background: #f8fafc;
    border-color: #d8e0ea;
    cursor: default;
}

.check-field {
    display: flex;
    align-items: center;
    gap: 8px;
}

.segmented {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
}

.segmented legend {
    grid-column: 1 / -1;
    margin-bottom: 6px;
    font-weight: 600;
}

.segmented label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #c9d3df;
    border-radius: 6px;
    background: #f8fafc;
}

.field-error,
.validation-summary {
    color: #b42318;
}

.hero-panel {
    display: grid;
    gap: 18px;
    padding: 24px;
    background: #fff;
    border: 1px solid #d9e0e8;
    border-left: 5px solid #2563eb;
    border-radius: 8px;
}

.hero-panel h1 {
    margin: 0;
    font-size: 34px;
}

.eyebrow {
    margin: 0 0 8px;
    color: #52616f;
    font-weight: 700;
}

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

.shortcut-card {
    display: grid;
    gap: 8px;
    padding: 18px;
    color: inherit;
    text-decoration: none;
    background: #fff;
    border: 1px solid #d9e0e8;
    border-radius: 8px;
}

.shortcut-card strong {
    font-size: 18px;
}

.shortcut-card span {
    color: #697586;
}

.toolbar-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.actions {
    align-items: center;
}

.search-form {
    flex-wrap: wrap;
}

.product-body {
    display: grid;
    gap: 6px;
}

.product-body p {
    margin: 0;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.low-stock-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 6px;
    padding: 3px 8px;
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

.low-stock-pill.warning {
    color: #92400e;
    background: #fef3c7;
    border-color: #fde68a;
}

.low-stock-pill.danger {
    color: #991b1b;
    background: #fee2e2;
    border-color: #fecaca;
}

.low-stock-pill.soft {
    color: #166534;
    background: #dcfce7;
    border-color: #bbf7d0;
}

.low-stock-pill.text {
    padding: 0;
    color: #92400e;
    background: transparent;
    border-color: transparent;
    border-radius: 0;
}

.product-list-table .low-stock-pill {
    display: flex;
}

.price-label {
    color: #52616f;
    font-size: 13px;
    font-weight: 700;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: minmax(280px, 440px) minmax(0, 1fr);
    gap: 18px;
    margin-top: 16px;
}

.product-detail-image {
    display: grid;
    place-items: center;
}

.product-detail-image img {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
}

.empty-image {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 320px;
    color: #697586;
    background: #f1f4f7;
    border-radius: 6px;
}

.product-detail-info {
    display: grid;
    align-content: start;
    gap: 16px;
}

.product-detail-info h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.35;
}

.product-detail-spec {
    margin: 0;
    color: #52616f;
}

.product-detail-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 14px 0;
    border-top: 1px solid #e4e9ef;
    border-bottom: 1px solid #e4e9ef;
}

.product-detail-price span {
    color: #52616f;
    font-weight: 700;
}

.product-detail-price strong {
    font-size: 30px;
}

.product-meta-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.product-meta-row span {
    padding: 5px 8px;
    color: #52616f;
    background: #f1f4f7;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
}

.product-description h3 {
    margin: 0 0 6px;
    font-size: 16px;
}

.product-description p {
    margin: 0;
    color: #52616f;
}

.detail-add-cart-form {
    display: grid;
    margin-top: 4px;
}

.detail-order-panel {
    display: grid;
    grid-template-columns: minmax(150px, 190px) minmax(120px, 1fr) auto;
    align-items: end;
    gap: 10px;
    padding: 12px;
    border: 1px solid #dbe5f0;
    border-radius: 8px;
    background: #f8fafc;
}

.detail-add-cart-form label,
.detail-quantity-field {
    display: grid;
    gap: 4px;
    color: #52616f;
    font-size: 14px;
    font-weight: 700;
}

.detail-add-cart-form input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #c9d3df;
    border-radius: 6px;
    font: inherit;
}

.detail-quantity-stepper input {
    border-radius: 0;
    text-align: center;
}

.detail-subtotal {
    display: grid;
    gap: 4px;
    min-height: 42px;
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

.detail-subtotal span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.detail-subtotal strong {
    color: #0f2537;
    font-size: 18px;
    font-variant-numeric: tabular-nums;
}

.detail-add-cart-form button[type="submit"],
.detail-order-panel > button {
    min-height: 42px;
    padding: 9px 16px;
    border-radius: 8px;
    font-weight: 800;
    white-space: nowrap;
}

.youtube-panel {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.youtube-panel h2 {
    margin: 0 0 4px;
}

.youtube-frame {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #111827;
    border-radius: 8px;
}

.youtube-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.button-success-pop {
    background: #16a34a;
    animation: button-success-pop 520ms ease-out;
}

.cart-fly-dot {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    color: #16a34a;
    background: #fff;
    border: 2px solid #bbf7d0;
    border-radius: 999px;
    box-shadow: 0 14px 30px rgba(22, 163, 74, 0.38), 0 2px 8px rgba(23, 50, 77, 0.18);
    pointer-events: none;
    transform: translate(calc(var(--cart-fly-start-x) - 15px), calc(var(--cart-fly-start-y) - 15px)) scale(1);
    animation: cart-fly-to-badge 920ms cubic-bezier(0.22, 0.74, 0.18, 1) forwards;
}

.cart-fly-dot svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@keyframes toast-slide-in {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }

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

@keyframes toast-breathe {
    0% {
        box-shadow: 0 12px 24px rgba(23, 50, 77, 0.12);
    }

    45% {
        box-shadow: 0 0 0 5px rgba(22, 163, 74, 0.16), 0 12px 24px rgba(23, 50, 77, 0.12);
    }

    100% {
        box-shadow: 0 12px 24px rgba(23, 50, 77, 0.12);
    }
}

@keyframes cart-link-pop {
    0% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes cart-badge-pop {
    0% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.28);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes cart-item-card-added {
    0% {
        border-color: #16a34a;
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
        transform: translateY(0);
    }

    28% {
        border-color: #16a34a;
        box-shadow: 0 0 0 5px rgba(22, 163, 74, 0.16), 0 14px 26px rgba(23, 50, 77, 0.14);
        transform: translateY(-2px);
    }

    100% {
        border-color: #d9e0e8;
        box-shadow: none;
        transform: translateY(0);
    }
}

@keyframes cart-item-row-added {
    0% {
        background: #ecfdf3;
    }

    55% {
        background: #ecfdf3;
    }

    100% {
        background: transparent;
    }
}

@keyframes cart-fly-to-badge {
    0% {
        opacity: 0;
        transform: translate(calc(var(--cart-fly-start-x) - 15px), calc(var(--cart-fly-start-y) - 15px)) scale(0.72) rotate(-5deg);
    }

    14% {
        opacity: 1;
        transform: translate(calc(var(--cart-fly-start-x) - 15px), calc(var(--cart-fly-start-y) - 42px)) scale(1.08) rotate(-4deg);
    }

    86% {
        opacity: 1;
        transform: translate(calc(var(--cart-fly-end-x) - 15px), calc(var(--cart-fly-end-y) - 18px)) scale(0.86) rotate(0deg);
    }

    100% {
        opacity: 0;
        transform: translate(calc(var(--cart-fly-end-x) - 15px), calc(var(--cart-fly-end-y) - 15px)) scale(0.28) rotate(0deg);
    }
}

@keyframes button-success-pop {
    0% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.04);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes button-icon-pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.58;
        transform: scale(0.92);
    }
}

@keyframes shared-loading-spin {
    to {
        transform: rotate(360deg);
    }
}

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

    100% {
        transform: translateX(260%);
    }
}

@keyframes product-page-arrive {
    from {
        opacity: 0.35;
        filter: blur(1px);
        transform: translateY(10px);
    }

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

.empty-state {
    display: grid;
    justify-items: start;
    gap: 10px;
    margin-top: 16px;
}

.empty-state h2 {
    margin: 0;
}

.field textarea {
    width: 100%;
    min-height: 88px;
    padding: 10px 12px;
    border: 1px solid #c9d3df;
    border-radius: 6px;
    font: inherit;
}

.account-profile-hero {
    gap: 8px;
    padding-block: 18px;
}

.account-profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
    gap: 12px;
    align-items: start;
}

.account-profile-panel {
    display: grid;
    gap: 10px;
    padding: 14px;
}

.account-profile-panel .compact-heading h2 {
    margin-bottom: 2px;
    font-size: 20px;
}

.account-profile-panel .compact-heading .muted {
    font-size: 14px;
    line-height: 1.45;
}

.account-profile-panel .field {
    gap: 5px;
    font-size: 14px;
}

.account-profile-panel .field input {
    height: 38px;
    padding: 8px 10px;
    font-size: 14px;
}

.account-profile-panel .field textarea {
    min-height: 76px;
    padding: 8px 10px;
    font-size: 14px;
}

.account-profile-panel .form-actions .button,
.account-profile-panel .form-actions button {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 14px;
}

.account-profile-tabs {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 10px 0;
    padding: 5px;
    border: 1px solid #dbe5f0;
    border-radius: 10px;
    background: #f8fafc;
    width: fit-content;
    max-width: 100%;
    overflow-x: auto;
}

.account-profile-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 8px;
    color: #0f2537;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.account-profile-tabs a.is-active {
    color: #fff;
    background: #2563eb;
}

.account-profile-tabs + .notice {
    padding: 8px 10px;
    font-size: 14px;
}

.compact-heading {
    margin-bottom: 0;
}

.compact-heading h2 {
    margin: 0 0 4px;
    font-size: 22px;
}

.readonly-field {
    display: grid;
    gap: 3px;
    padding: 9px 11px;
    border: 1px solid #dbe5f0;
    border-radius: 8px;
    background: #f8fafc;
}

.readonly-field span {
    color: #5f7083;
    font-size: 12px;
    font-weight: 750;
}

.readonly-field strong {
    color: #0f2537;
    font-size: 15px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.customer-book-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.34fr);
    gap: 12px;
    align-items: start;
}

.customer-book-panel,
.customer-book-form {
    display: grid;
    gap: 10px;
    padding: 14px;
}

.customer-book-form {
    position: sticky;
    top: 78px;
}

.customer-book-panel .compact-heading h2,
.customer-book-form .compact-heading h2 {
    margin-bottom: 2px;
    font-size: 20px;
}

.customer-book-panel .compact-heading .muted,
.customer-book-form .compact-heading .muted {
    font-size: 14px;
    line-height: 1.45;
}

.customer-book-table th,
.customer-book-table td {
    padding: 8px 10px;
    font-size: 14px;
    line-height: 1.35;
}

.customer-book-table td {
    vertical-align: top;
}

.customer-book-table strong {
    font-size: 14px;
}

.customer-book-table .row-actions {
    gap: 6px;
}

.customer-book-table .row-actions .button,
.customer-book-table .row-actions button {
    min-height: 32px;
    padding: 7px 10px;
    font-size: 13px;
}

.default-pill {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    margin-top: 4px;
    padding: 2px 7px;
    border-radius: 999px;
    color: #047857;
    background: #d1fae5;
    font-size: 11px;
    font-weight: 850;
}

.removed-pill {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    margin-top: 4px;
    padding: 2px 7px;
    border-radius: 999px;
    color: #64748b;
    background: #e2e8f0;
    font-size: 11px;
    font-weight: 850;
}

.customer-book-removed {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e4e9ef;
}

.customer-book-table.is-muted td {
    color: #64748b;
    background: #fbfdff;
}

.customer-book-table.is-muted strong {
    color: #334155;
}

.customer-book-inline-fields {
    display: grid;
    grid-template-columns: 0.72fr 1fr 1fr;
    gap: 8px;
}

.customer-book-form .field {
    gap: 5px;
    font-size: 14px;
}

.customer-book-form .field input {
    height: 38px;
    padding: 8px 10px;
    font-size: 14px;
}

.customer-book-form .field textarea {
    min-height: 70px;
    padding: 8px 10px;
    font-size: 14px;
}

.customer-book-form .checkbox-line {
    font-size: 14px;
}

.customer-book-form .form-actions .button,
.customer-book-form .form-actions button {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 14px;
}

.checkbox-line {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0f2537;
    font-weight: 750;
}

.checkbox-line input {
    width: 18px;
    height: 18px;
}

.customer-book-empty {
    min-height: 180px;
    align-content: center;
    justify-items: center;
    text-align: center;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
}

.category-admin-layout {
    display: grid;
    grid-template-columns: minmax(520px, 0.95fr) minmax(480px, 1.05fr);
    gap: 14px;
    margin-top: 12px;
    align-items: start;
}

.category-page-header {
    padding-top: 14px;
    padding-bottom: 14px;
}

.category-page-header h1 {
    margin-bottom: 0;
}

.category-admin-column,
.category-mapping-column,
.category-group-box,
.category-list,
.mapping-form,
.category-tree {
    display: grid;
    gap: 8px;
}

.category-admin-column h2,
.category-mapping-column h2 {
    margin: 0;
    font-size: 22px;
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.compact-summary {
    min-width: 110px;
    padding: 8px 10px;
}

.compact-summary strong {
    font-size: 18px;
}

.category-create-form,
.category-edit-form {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto;
    gap: 6px;
    align-items: center;
}

.category-edit-form {
    grid-template-columns: minmax(150px, 1fr) auto 54px;
}

.category-create-form input[type="text"],
.category-create-form input:not([type]),
.category-edit-form input[type="text"],
.category-edit-form input:not([type]) {
    min-width: 0;
}

.category-create-form input,
.category-edit-form input {
    height: 34px;
    padding: 6px 9px;
    border: 1px solid #c9d3df;
    border-radius: 6px;
    font: inherit;
    font-size: 14px;
}

.sort-input {
    text-align: center;
}

.switch-field {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #52616f;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.child-form {
    padding: 7px 9px;
    background: #fff;
    border: 1px dashed #c9d3df;
    border-radius: 8px;
}

.drag-row {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 6px;
    align-items: center;
}

.drag-handle {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 34px;
    padding: 0;
    color: #52616f;
    background: #eef2f6;
    border: 1px solid #d9e0e8;
    border-radius: 6px;
    cursor: grab;
    font-size: 16px;
    line-height: 1;
}

.drag-handle:active {
    cursor: grabbing;
}

.is-dragging {
    opacity: 0.55;
    outline: 2px dashed #2563eb;
    outline-offset: 2px;
}

.drag-order-form {
    display: flex;
    justify-content: flex-end;
}

.drag-order-form button,
.category-edit-form button,
.category-create-form button {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 13px;
    white-space: nowrap;
}

.child-order-form {
    margin-top: -6px;
}

.category-group-box {
    padding: 9px;
    background: #f8fafc;
    border: 1px solid #e4e9ef;
    border-radius: 8px;
}

.category-group-box .category-list {
    gap: 7px;
}

.category-name-input {
    width: 100%;
}

.category-row {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 92px;
    gap: 6px;
    align-items: center;
    padding: 7px 8px;
    background: #fff;
    border: 1px solid #e4e9ef;
    border-radius: 8px;
}

.category-row.is-selected {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.mapping-select-link {
    display: grid;
    place-items: center;
    min-height: 34px;
    color: #17324d;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    font-size: 12px;
    text-decoration: none;
}

.mapping-select-link:hover {
    border-color: #2563eb;
}

.mapping-select-link span {
    color: #52616f;
    font-size: 11px;
}

.mapping-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 6px;
    max-height: 650px;
    overflow: auto;
    padding-right: 4px;
}

.mapping-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.mapping-search input {
    width: 100%;
    height: 36px;
    padding: 7px 10px;
    border: 1px solid #c9d3df;
    border-radius: 6px;
    font: inherit;
}

.mapping-search span {
    white-space: nowrap;
}

.mapping-heading-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.erp-refresh-form {
    margin: 0;
}

.erp-refresh-form button {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 13px;
    white-space: nowrap;
}

.mapping-item {
    display: flex;
    gap: 7px;
    align-items: flex-start;
    min-height: 52px;
    padding: 8px;
    background: #fff;
    border: 1px solid #d9e0e8;
    border-radius: 8px;
    cursor: pointer;
}

.mapping-item[hidden] {
    display: none;
}

.mapping-item.is-selected {
    border-color: #2563eb;
    background: #eff6ff;
}

.mapping-item.is-used:not(.is-selected) {
    background: #f8fafc;
}

.mapping-item span {
    display: grid;
    gap: 2px;
    font-size: 13px;
}

.mapping-item strong {
    color: #17324d;
}

.mapping-item em {
    color: #697586;
    font-size: 12px;
    font-style: normal;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
}

.sticky-actions {
    position: sticky;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 6px -20px -20px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #e4e9ef;
    backdrop-filter: blur(6px);
}

.compact-empty {
    margin-top: 0;
}

.notice-error {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #b42318;
}

.settings-panel {
    display: grid;
    gap: 16px;
}

.settings-panel h2 {
    margin: 0;
}

.settings-form {
    display: grid;
    gap: 18px;
}

.settings-section {
    display: grid;
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e4e9ef;
}

.settings-section > label {
    display: grid;
    gap: 6px;
}

.settings-section:last-of-type {
    border-bottom: 0;
}

.settings-section h2 {
    margin: 0;
}

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

.settings-grid label,
.settings-toggle {
    display: grid;
    gap: 6px;
}

.settings-grid input,
.settings-grid select,
.settings-textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #c9d3df;
    border-radius: 6px;
    font: inherit;
}

.settings-textarea {
    min-height: 220px;
    resize: vertical;
    line-height: 1.55;
}

.settings-toggle {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: flex-start;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #d9e0e8;
    border-radius: 8px;
}

.settings-toggle.compact {
    padding: 10px 12px;
}

.settings-toggle input {
    margin-top: 4px;
}

.settings-toggle span {
    display: grid;
    gap: 3px;
}

.settings-toggle em,
.settings-preview span {
    color: #697586;
    font-size: 13px;
    font-style: normal;
}

.settings-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #fff;
    border: 1px dashed #c9d3df;
    border-radius: 8px;
}

/* The system settings page is a dense operational form, not a content page. */
.system-settings-hero {
    gap: 6px;
    padding: 18px 20px !important;
}

.system-settings-hero h1 {
    font-size: 27px;
    line-height: 1.2;
}

.system-settings-hero p {
    margin: 0;
    font-size: 14px;
}

.system-settings-panel {
    gap: 12px;
    padding: 18px 20px !important;
}

.system-settings-form {
    gap: 14px;
}

.system-settings-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
    max-width: 100%;
    overflow-x: auto;
    padding: 4px;
    border: 1px solid #dbe5f0;
    border-radius: 8px;
    background: #f8fafc;
}

.system-settings-tabs button {
    min-height: 32px;
    padding: 6px 11px;
    border: 0;
    border-radius: 6px;
    color: #334155;
    background: transparent;
    box-shadow: none;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.system-settings-tabs button:hover {
    color: #1d4ed8;
    background: #eaf2ff;
}

.system-settings-tabs button.is-active {
    color: #fff;
    background: #2563eb;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.system-settings-form > .settings-section[hidden] {
    display: none !important;
}

.system-settings-panel .settings-section[data-settings-panel-final] {
    padding-bottom: 0;
    border-bottom: 0;
}

.system-settings-panel .settings-section {
    gap: 10px;
    padding-bottom: 14px;
}

.system-settings-panel .settings-section h2 {
    font-size: 20px;
    line-height: 1.25;
}

.system-settings-panel .settings-grid {
    gap: 10px;
}

.system-settings-panel .settings-grid label,
.system-settings-panel .settings-toggle {
    gap: 4px;
    font-size: 13px;
}

.system-settings-panel .settings-grid input,
.system-settings-panel .settings-grid select,
.system-settings-panel .settings-textarea {
    min-height: 36px;
    padding: 6px 9px;
    font-size: 14px;
}

.system-settings-panel .settings-textarea {
    min-height: 160px;
}

.system-settings-panel .settings-toggle,
.system-settings-panel .settings-toggle.compact {
    padding: 8px 10px;
}

.system-settings-panel .settings-toggle input {
    margin-top: 2px;
}

.system-settings-panel .settings-toggle span {
    gap: 2px;
}

.system-settings-panel .settings-toggle strong {
    font-size: 14px;
}

.system-settings-panel .settings-toggle em,
.system-settings-panel .settings-preview span,
.system-settings-panel .field-validation {
    font-size: 12px;
}

.system-settings-panel .settings-preview {
    gap: 8px;
    padding: 8px 10px;
    font-size: 13px;
}

.system-settings-panel .settings-preview strong {
    font-size: 14px;
}

.system-settings-panel .inventory-mode-notes {
    gap: 8px;
    margin-top: 8px;
}

.system-settings-panel .inventory-mode-notes div {
    gap: 3px;
    padding: 9px 10px;
}

.system-settings-panel .inventory-mode-notes strong {
    font-size: 13px;
}

.system-settings-panel .inventory-mode-notes span {
    font-size: 12px;
    line-height: 1.35;
}

.system-settings-panel .inventory-health-panel {
    gap: 10px;
    padding: 11px;
}

.system-settings-panel .inventory-health-grid {
    gap: 7px;
}

.system-settings-panel .inventory-health-grid div {
    gap: 4px;
    padding: 8px;
}

.system-settings-panel .inventory-health-grid strong {
    font-size: 1rem;
}

.system-settings-panel .inventory-health-warning,
.system-settings-panel .inventory-health-note {
    padding: 8px 10px;
    font-size: 13px;
}

.system-settings-panel .form-actions button {
    min-height: 38px;
    padding: 8px 14px;
    font-size: 14px;
}

.inventory-health-panel {
    background: #f8fbff;
    border: 1px solid #dbe6f2;
    border-radius: 8px;
    display: grid;
    gap: 12px;
    padding: 14px;
}

.inventory-health-panel.has-blocking {
    background: #fff8f6;
    border-color: #fecaca;
}

.inventory-health-heading {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.inventory-health-heading div {
    display: grid;
    gap: 3px;
}

.inventory-health-heading strong {
    color: #001f3f;
}

.inventory-health-heading span {
    color: #52677f;
    font-size: 0.86rem;
}

.inventory-health-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(5, minmax(110px, 1fr));
}

.inventory-health-grid div {
    background: #ffffff;
    border: 1px solid #dbe6f2;
    border-radius: 8px;
    display: grid;
    gap: 6px;
    padding: 10px;
}

.inventory-health-grid div.is-warning {
    background: #fffbeb;
    border-color: #fbbf24;
}

.inventory-health-grid div.is-danger {
    background: #fff1f2;
    border-color: #fca5a5;
}

.inventory-health-grid span {
    color: #52677f;
    font-size: 0.78rem;
    font-weight: 700;
}

.inventory-health-grid strong {
    color: #001f3f;
    font-size: 1.15rem;
    line-height: 1;
}

.inventory-health-warning,
.inventory-health-note {
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0;
    padding: 10px 12px;
}

.inventory-health-warning {
    background: #fee2e2;
    color: #991b1b;
}

.inventory-health-note {
    background: #fef3c7;
    color: #92400e;
}

.inventory-risk-confirm-panel {
    background: #fff7ed;
    border: 1px solid #fdba74;
    border-radius: 8px;
    display: grid;
    gap: 12px;
    padding: 14px;
}

.inventory-risk-confirm-heading {
    display: grid;
    gap: 3px;
}

.inventory-risk-confirm-heading strong {
    color: #9a3412;
    font-size: 1rem;
}

.inventory-risk-confirm-heading span {
    color: #7c2d12;
    font-size: 0.88rem;
}

.inventory-risk-list {
    display: grid;
    gap: 8px;
}

.inventory-risk-item {
    background: #fff;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    display: grid;
    gap: 4px;
    padding: 10px 12px;
}

.inventory-risk-item strong {
    color: #7c2d12;
    font-size: 0.92rem;
}

.inventory-risk-item span {
    color: #475569;
    font-size: 0.86rem;
    line-height: 1.5;
}

.inventory-risk-item.is-danger {
    background: #fff1f2;
    border-color: #fca5a5;
}

.inventory-risk-item.is-danger strong {
    color: #991b1b;
}

.inventory-risk-confirm-check {
    background: #ffffff;
    border-color: #fdba74;
}

.inventory-mode-notes {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 12px;
}

.inventory-mode-notes div {
    background: #f8fafc;
    border: 1px solid #dbe6f2;
    border-radius: 8px;
    display: grid;
    gap: 4px;
    padding: 12px;
}

.inventory-mode-notes strong {
    color: #001f3f;
    font-size: 0.92rem;
}

.inventory-mode-notes span {
    color: #52677f;
    font-size: 0.82rem;
    line-height: 1.45;
}

.inventory-health-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.inventory-health-actions .button {
    font-size: 0.85rem;
    min-height: 34px;
    padding: 7px 10px;
}

.inventory-health-action-metric {
    background: #fff;
    border: 1px solid #dbe6f2;
    border-radius: 8px;
    display: inline-grid;
    gap: 2px;
    min-width: 110px;
    padding: 8px 10px;
}

.inventory-health-action-metric.is-warning {
    background: #fffbeb;
    border-color: #facc15;
}

.inventory-health-action-metric span {
    color: #52677f;
    font-size: 0.78rem;
    font-weight: 800;
}

.inventory-health-action-metric strong {
    color: #001f3f;
    font-size: 1.2rem;
    line-height: 1;
}

.order-review-phrase-preview {
    align-items: flex-start;
    flex-wrap: wrap;
}

.shipment-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.shipment-flow-tabs {
    align-items: stretch;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0 0 12px;
    border-bottom: 1px solid #d8e2ee;
    background: #fff;
}

.shipment-flow-tabs a {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    color: #17324d;
    border-bottom: 3px solid transparent;
    font-weight: 800;
    text-decoration: none;
}

.shipment-flow-tabs a:hover {
    color: #1d4ed8;
    background: #f8fbff;
}

.shipment-flow-tabs a.is-active {
    color: #1d4ed8;
    border-bottom-color: #2563eb;
}

.shipment-flow-tabs span {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-width: 22px;
    min-height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    color: #334155;
    background: #e9eff6;
    font-size: 0.78rem;
}

.shipment-flow-tabs a.is-active span {
    color: #fff;
    background: #2563eb;
}

.shipment-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 10px;
    margin: 0 0 12px;
}

.shipment-metric {
    display: grid;
    gap: 6px;
    min-height: 72px;
    padding: 12px 14px;
    border: 1px solid #d8e2ee;
    border-radius: 8px;
    background: #fff;
}

.shipment-metric span {
    color: #52677f;
    font-size: 0.82rem;
    font-weight: 800;
}

.shipment-metric strong {
    color: #0f2537;
    font-size: 1.25rem;
    line-height: 1.1;
}

.shipment-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.shipment-panel-heading h2,
.shipment-recent-panel h2 {
    margin: 0;
    font-size: 22px;
}

.shipment-batch-panel {
    overflow-x: auto;
}

.shipment-batch-table {
    min-width: 1120px;
}

.shipment-batch-table th:nth-child(1),
.shipment-batch-table td:nth-child(1) {
    width: 230px;
}

.shipment-batch-table th:nth-child(2),
.shipment-batch-table td:nth-child(2) {
    width: 190px;
}

.shipment-batch-table th:nth-child(3),
.shipment-batch-table td:nth-child(3) {
    width: auto;
}

.shipment-batch-table th:nth-child(4),
.shipment-batch-table td:nth-child(4) {
    width: 120px;
}

.shipment-batch-table th:nth-child(5),
.shipment-batch-table td:nth-child(5) {
    width: 210px;
}

.shipment-batch-table th:nth-child(6),
.shipment-batch-table td:nth-child(6) {
    width: 96px;
}

.shipment-batch-table td {
    vertical-align: middle;
}

.shipment-batch-table td strong,
.shipment-batch-table td span {
    display: block;
}

.shipment-batch-table .shipment-status-badge {
    display: inline-flex;
    margin-top: 5px;
}

.shipment-copy-line {
    align-items: center;
    display: flex !important;
    gap: 6px;
    min-width: 0;
    white-space: nowrap;
}

.shipment-copy-line strong {
    display: inline-block !important;
    white-space: nowrap;
}

.copy-inline-button {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    color: #52677f;
    background: #f6f8fb;
    border: 1px solid #cfd9e6;
    border-radius: 7px;
    cursor: pointer;
    flex: 0 0 28px;
}

.copy-inline-button:hover {
    color: #1d4ed8;
    background: #eef5ff;
    border-color: #a9c2e8;
}

.copy-inline-button.is-copied {
    color: #047857;
    background: #dcfce7;
    border-color: #86efac;
}

.copy-inline-icon {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.shipment-order-table th:first-child,
.shipment-order-table td:first-child {
    width: 56px;
    text-align: center;
}

.shipment-order-table input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin: 0;
    cursor: pointer;
    accent-color: #2563eb;
}

.shipment-order-table tr.is-selected td {
    background: #f3f8ff;
}

.shipment-order-table td strong,
.shipment-order-table td span,
.shipment-order-table td a {
    display: block;
}

.shipment-order-table td a {
    color: #0f2537;
    text-decoration: none;
}

.shipment-order-table td a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.shipment-order-status {
    display: inline-flex !important;
    width: fit-content;
    margin-top: 5px;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.shipment-order-status.is-approved {
    color: #075985;
    background: #e0f2fe;
}

.shipment-order-status.is-customer {
    color: #92400e;
    background: #fef3c7;
}

.shipment-order-status.is-ready {
    color: #047857;
    background: #dcfce7;
}

.shipment-create-footer {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(260px, auto);
    gap: 10px 14px;
    align-items: start;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e4e9ef;
}

.shipment-remark-phrases {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    grid-column: 1;
}

.shipment-remark-phrases button {
    min-height: 34px;
    padding: 6px 10px;
    color: #17324d;
    background: #eef5ff;
    border: 1px solid #cfe0f5;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 800;
}

.shipment-remark-phrases button:hover {
    background: #dfeeff;
    border-color: #9dbce4;
}

.shipment-selection-panel {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-column: 2;
    grid-row: 1 / span 2;
    grid-template-columns: minmax(150px, auto) minmax(0, 1fr);
}

.shipment-selection-summary {
    min-height: 42px;
    padding: 10px 12px;
    color: #17324d;
    background: #f8fafc;
    border: 1px solid #d9e0e8;
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
}

.shipment-selection-summary.is-warning {
    color: #92400e;
    background: #fef3c7;
    border-color: #fde68a;
}

.shipment-selection-detail {
    color: #52677f;
    font-size: 0.84rem;
    line-height: 1.45;
}

.shipment-selection-panel .button {
    grid-column: 1 / -1;
    justify-self: stretch;
}

.shipment-content-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.42);
}

.shipment-content-modal[hidden] {
    display: none;
}

.shipment-content-dialog {
    display: grid;
    gap: 12px;
    width: min(720px, 100%);
    padding: 16px;
    background: #fff;
    border: 1px solid #d8e2ee;
    border-radius: 8px;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.22);
}

.shipment-content-header {
    align-items: start;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.shipment-content-header h2 {
    margin: 0 0 4px;
    font-size: 20px;
}

.shipment-content-dialog textarea {
    width: 100%;
    min-height: 250px;
    padding: 12px;
    color: #0f2537;
    background: #f8fafc;
    border: 1px solid #cbd7e4;
    border-radius: 8px;
    font: 15px/1.55 Consolas, "Courier New", monospace;
    resize: vertical;
}

.shipment-content-actions {
    align-items: center;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.shipment-empty-state {
    display: grid;
    gap: 4px;
    padding: 18px 8px;
}

.shipment-empty-state strong {
    color: #17324d;
}

.shipment-empty-state span {
    color: #64748b;
    font-size: 0.9rem;
}

.shipment-batch-list {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.shipment-batch-card {
    display: grid;
    gap: 5px;
    padding: 10px 11px;
    color: inherit;
    text-decoration: none;
    border: 1px solid #d9e0e8;
    border-radius: 8px;
    background: #fff;
}

.shipment-batch-card:hover {
    border-color: #9db2cc;
    background: #f8fafc;
}

.shipment-status-tabs {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.shipment-empty-text {
    margin-top: 14px;
}

.shipment-batch-card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.shipment-batch-card-title strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shipment-batch-customer {
    color: #17324d;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shipment-batch-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.shipment-batch-stats span {
    min-height: 24px;
    padding: 3px 7px;
    border-radius: 999px;
    color: #334155;
    background: #f6f8fb;
    font-size: 0.78rem;
    font-weight: 800;
}

.shipment-batch-remark {
    display: -webkit-box;
    overflow: hidden;
    color: #52677f;
    font-size: 0.84rem;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.shipment-batch-action {
    justify-self: start;
    color: #1d4ed8;
    font-size: 0.84rem;
    font-weight: 800;
}

.shipment-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.shipment-status-badge.is-warning {
    color: #92400e;
    background: #fef3c7;
}

.shipment-status-badge.is-success {
    color: #166534;
    background: #dcfce7;
}

.shipment-status-badge.is-muted {
    color: #475569;
    background: #e2e8f0;
}

.shipment-ship-form {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.shipment-ship-form input {
    width: 180px;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #cbd7e4;
    border-radius: 7px;
    font: inherit;
}

.shipment-detail-header {
    padding: 18px 20px;
}

.shipment-detail-title {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

.shipment-detail-title h1 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.15;
}

.shipment-detail-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: #52677f;
    font-size: 0.92rem;
}

.shipment-detail-meta .shipment-status-badge {
    margin: 0;
}

.shipment-detail-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.shipment-detail-summary-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
    margin: 10px 0;
}

.shipment-detail-summary-bar div {
    display: grid;
    gap: 3px;
    min-height: 58px;
    padding: 10px 12px;
    border: 1px solid #d8e2ee;
    border-radius: 8px;
    background: #fff;
}

.shipment-detail-summary-bar span {
    color: #52677f;
    font-size: 0.78rem;
    font-weight: 800;
}

.shipment-detail-summary-bar strong {
    color: #0f2537;
    font-size: 1.05rem;
    line-height: 1.1;
}

.shipment-detail-note-panel {
    align-items: start;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 16px;
}

.shipment-detail-note-heading {
    display: grid;
    gap: 4px;
}

.shipment-detail-note-heading h2 {
    margin: 0;
    font-size: 20px;
}

.shipment-detail-note-form {
    align-items: start;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.shipment-detail-note-form textarea {
    width: 100%;
    min-height: 62px;
    padding: 9px 10px;
    border: 1px solid #cbd7e4;
    border-radius: 8px;
    font: inherit;
    line-height: 1.45;
    resize: vertical;
}

.shipment-detail-tabs-panel {
    padding: 0;
    overflow: hidden;
}

.shipment-detail-tabs {
    align-items: stretch;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 1px solid #d8e2ee;
    background: #fff;
}

.shipment-detail-tabs button {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    color: #17324d;
    background: transparent;
    border: 0;
    border-bottom: 3px solid transparent;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.shipment-detail-tabs button:hover {
    color: #1d4ed8;
    background: #f8fbff;
}

.shipment-detail-tabs button.is-active {
    color: #1d4ed8;
    border-bottom-color: #2563eb;
}

.shipment-detail-tabs span {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-width: 22px;
    min-height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    color: #334155;
    background: #e9eff6;
    font-size: 0.78rem;
}

.shipment-detail-tabs button.is-active span {
    color: #fff;
    background: #2563eb;
}

.shipment-detail-tab-panel {
    padding: 14px 20px 18px;
}

.shipment-detail-table th,
.shipment-detail-table td {
    padding: 10px 12px;
    vertical-align: middle;
}

.shipment-detail-table td strong,
.shipment-detail-table td span {
    display: block;
}

.shipment-detail-items-table th:nth-child(1),
.shipment-detail-items-table td:nth-child(1) {
    width: 52%;
}

.shipment-detail-items-table th:nth-child(2),
.shipment-detail-items-table td:nth-child(2) {
    width: 150px;
}

.shipment-detail-item-cell {
    align-items: center;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
}

.shipment-detail-item-thumb {
    display: grid;
    place-items: center;
    width: 52px;
    height: 62px;
    overflow: hidden;
    color: #7b8a9a;
    background: #f1f5f9;
    border: 1px solid #dbe6f2;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 800;
}

.shipment-detail-item-thumb img {
    width: auto;
    height: auto;
    max-width: 88%;
    max-height: 88%;
    object-fit: contain;
}

.shipment-detail-source-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.shipment-detail-source-list span {
    display: inline-grid !important;
    gap: 2px;
    width: fit-content;
    padding: 5px 8px;
    border-radius: 8px;
    color: #17324d;
    background: #f1f5f9;
    font-size: 0.82rem;
    font-weight: 800;
}

.shipment-detail-source-list span strong {
    display: block;
    line-height: 1.2;
}

.shipment-detail-source-list span em {
    color: #52677f;
    font-style: normal;
    font-weight: 800;
    line-height: 1.25;
}

.shipment-price-warning {
    display: inline-flex !important;
    width: fit-content;
    margin-top: 4px;
    padding: 3px 7px;
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
}

.shipment-product-no-copy {
    align-items: center;
    display: inline-flex !important;
    gap: 5px;
    width: fit-content;
}

.shipment-product-no-copy > span,
.shipment-product-no-copy > strong {
    display: inline-block !important;
}

.shipment-product-no-copy .copy-inline-button {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
    border-radius: 6px;
}

.shipment-product-no-copy .copy-inline-icon {
    width: 13px;
    height: 13px;
}

.shipment-erp-input-table th:nth-child(1),
.shipment-erp-input-table td:nth-child(1) {
    width: 190px;
}

.shipment-erp-input-table th:nth-child(3),
.shipment-erp-input-table td:nth-child(3),
.shipment-erp-input-table th:nth-child(4),
.shipment-erp-input-table td:nth-child(4),
.shipment-erp-input-table th:nth-child(5),
.shipment-erp-input-table td:nth-child(5) {
    width: 130px;
    text-align: right;
    white-space: nowrap;
}

.shipment-picking-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0;
}

.shipment-picking-card {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid #d9e4ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.035);
}

.shipment-picking-card span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.shipment-picking-card strong {
    color: #0f2537;
    font-size: 20px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.shipment-remark-panel {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.shipment-remark-panel h2 {
    margin: 0 0 4px;
}

.shipment-remark-panel p {
    margin: 0;
}

.shipment-remark-form {
    display: grid;
    gap: 10px;
}

.shipment-remark-form textarea {
    width: 100%;
    min-height: 88px;
    resize: vertical;
    padding: 10px 12px;
    border: 1px solid #cbd7e4;
    border-radius: 8px;
    font: inherit;
    line-height: 1.5;
}

.shipment-remark-form button {
    justify-self: end;
}

.shipment-items-panel {
    display: grid;
    gap: 14px;
}

.shipment-items-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.shipment-items-heading h2 {
    margin: 0;
}

.shipment-total-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 12px;
    color: #17324d;
    background: #f1f7ff;
    border: 1px solid #cfe0f5;
    border-radius: 999px;
    font-weight: 800;
    white-space: nowrap;
}

.shipment-item-list {
    display: grid;
    gap: 10px;
}

.shipment-item-row {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) 150px;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid #e0e7ef;
    border-radius: 8px;
    background: #fff;
}

.shipment-item-thumb {
    display: grid;
    place-items: center;
    width: 76px;
    height: 92px;
    overflow: hidden;
    color: #7b8a9a;
    background: #f1f5f9;
    border: 1px solid #e0e7ef;
    border-radius: 8px;
    font-size: 13px;
}

.shipment-item-thumb img {
    width: auto;
    height: auto;
    max-width: 86%;
    max-height: 88%;
    object-fit: contain;
}

.shipment-item-main {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.shipment-item-main strong {
    line-height: 1.35;
}

.shipment-pick-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
}

.shipment-pick-meta span {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    padding: 3px 8px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #f8fbff;
    color: #1e3a5f;
    font-size: 12px;
    font-weight: 800;
}

.shipment-source-list {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.shipment-source-list span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    color: #17324d;
    background: #f8fafc;
    border: 1px solid #d9e0e8;
    border-radius: 999px;
    font-size: 12px;
}

.shipment-item-quantity {
    display: grid;
    gap: 4px;
    justify-items: end;
}

.shipment-item-quantity span {
    color: #52616f;
    font-size: 13px;
}

.shipment-item-quantity strong {
    font-size: 18px;
}

/* Product catalog visual refresh */
.page:has(.product-toolbar) {
    max-width: 1200px;
    padding-top: 18px;
}

.page:has(.product-toolbar) .toolbar,
.page:has(.product-toolbar) .panel {
    border-color: #e3e8ee;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.045);
}

.product-toolbar {
    padding: 18px 22px 16px;
    border: 0;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.88)),
        #fff;
    box-shadow: none;
}

.product-toolbar h1 {
    color: #0f2537;
    font-size: 34px;
    font-weight: 850;
    letter-spacing: 0;
}

.product-search-sticky {
    display: grid;
    gap: 10px;
    top: 64px;
    padding: 10px 12px;
    border-color: rgba(210, 219, 228, 0.82);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(14px);
}

.product-search-form {
    gap: 10px;
}

.product-search-form input,
.product-search-form select {
    height: 46px;
    border-color: #d7dee8;
    border-radius: 10px;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.product-search-form input:focus,
.product-search-form select:focus,
.pager-jump-form input:focus {
    border-color: #2563eb;
    outline: 3px solid rgba(37, 99, 235, 0.12);
}

.product-search-form .icon-action-button {
    width: 50px;
    min-width: 50px;
    height: 46px;
    border-radius: 12px;
    background: #1f5fe5;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
}

.product-toolbar-actions {
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
}

.product-page-size-control {
    margin: 0;
}

.product-page-size-control label {
    min-height: 34px;
    padding: 0 8px;
    border: 1px solid #dce6f0;
    border-radius: 999px;
    background: #f6f9fc;
}

.product-page-size-control label span {
    color: #536273;
    font-size: 12px;
}

.product-page-size-control select {
    height: 30px;
    min-width: 54px;
    padding: 0 6px;
    border: 0;
    background: transparent;
    font-weight: 800;
}

.product-quick-filters {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    padding: 2px 0;
}

.quick-filter-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    flex: 0 0 auto;
    padding: 7px 13px;
    border: 1px solid #dce6f0;
    border-radius: 999px;
    color: #25384c;
    background: #f6f9fc;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.quick-filter-link:hover {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.quick-filter-link.is-active {
    border-color: #2563eb;
    color: #fff;
    background: #2563eb;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.product-browser-panel {
    gap: 12px;
    padding: 14px 16px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.category-browser {
    gap: 8px;
    padding: 14px;
    border-color: #e5ebf2;
    border-radius: 14px;
    background: linear-gradient(180deg, #fff 0%, #f9fbfd 100%);
}

.category-all-link,
.category-link {
    border-radius: 999px;
    font-weight: 650;
}

.category-all-link {
    min-height: 34px;
    padding: 7px 13px;
    color: #0f2537;
    border-color: #dbe3ec;
}

.category-browser-group {
    grid-template-columns: 120px minmax(0, 1fr);
    padding-top: 10px;
    border-top-color: #edf1f5;
}

.category-browser-group h2 {
    color: #0f2537;
    font-size: 15px;
    font-weight: 750;
}

.category-link {
    min-height: 34px;
    padding: 7px 12px;
    color: #22364d;
    border-color: #dbe3ec;
    background: #fff;
    font-size: 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.category-all-link.is-active,
.category-link.is-active {
    background: #0f2537;
    border-color: #0f2537;
    box-shadow: 0 10px 22px rgba(15, 37, 55, 0.16);
}

.sort-tabs,
.view-tabs {
    padding: 2px;
    border-color: #dbe3ec;
    border-radius: 12px;
    background: #f7f9fb;
    box-shadow: none;
}

.sort-tab {
    min-height: 40px;
    padding: 9px 14px;
    color: #475569;
    border-radius: 10px;
    font-weight: 750;
}

.sort-tab.is-active {
    background: #0f2537;
    box-shadow: 0 10px 22px rgba(15, 37, 55, 0.16);
}

.view-tab {
    width: 42px;
    min-height: 40px;
    border-radius: 10px;
}

.view-tab.is-active {
    background: #0f2537;
}

.result-summary {
    padding: 0 2px;
    color: #6b7786;
    font-size: 15px;
}

.filter-chip {
    min-height: 30px;
    border-color: #d3e4fb;
    background: #f2f7ff;
    font-weight: 650;
}

.product-grid {
    grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.product-card {
    gap: 0;
    overflow: hidden;
    padding: 0;
    border: 1px solid #e1e8f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.045);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.product-card:hover {
    border-color: #bdd0e4;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.09);
    transform: translateY(-2px);
}

.product-image-link {
    display: grid;
    place-items: center;
    height: 196px;
    margin: 10px 10px 0;
    border-radius: 10px;
    background:
        linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
    overflow: hidden;
}

.product-card .product-image-link img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 9px;
    max-width: none;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
    background: transparent;
    border-radius: 6px;
    box-shadow: none;
}

.product-card:hover img {
    transform: scale(1.018);
}

.product-body {
    gap: 5px;
    padding: 10px 14px 7px;
}

.product-card h2 {
    font-size: 17px;
    font-weight: 760;
    letter-spacing: 0;
}

.product-name {
    min-height: 46px;
}

.product-no {
    color: #7b8794;
    font-size: 13px;
}

.price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-top: 0;
}

.price-label {
    color: #7b8794;
    font-size: 13px;
    font-weight: 650;
}

.price {
    color: #0f2537;
    font-size: 18px;
    font-weight: 850;
}

.low-stock-pill {
    width: fit-content;
    margin-top: 1px;
    border-radius: 999px;
    font-weight: 700;
}

.add-cart-form {
    grid-template-columns: minmax(0, 1fr) 52px;
    gap: 9px;
    padding: 0 14px 12px;
}

.add-cart-form label {
    gap: 5px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.quantity-stepper {
    min-width: 0;
    border-color: #d6dee8;
    border-radius: 10px;
}

.quantity-stepper-button {
    min-height: 40px;
    background: #f4f7fa;
}

.cart-add-icon-button {
    width: 48px;
    min-width: 48px;
    height: 42px;
    padding: 0;
    border-radius: 12px;
    background: #1f5fe5;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.2);
}

.cart-add-icon-button .action-icon {
    width: 33px;
    height: 33px;
    stroke-width: 2;
}

.product-card.is-unavailable {
    border-color: #ead6d6;
    background: #fff;
    box-shadow: 0 8px 18px rgba(127, 29, 29, 0.04);
}

.product-card.is-unavailable .product-image-link {
    background: #f7f4f4;
}

.availability-pill {
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 750;
}

.product-list-panel {
    padding: 14px 18px;
    border: 0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.055);
}

.quick-order-bar {
    position: sticky;
    top: 78px;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid #dbe3ec;
    border-radius: 8px;
    background: #f8fafc;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.quick-order-bar strong,
.quick-order-bar span {
    display: block;
}

.quick-order-result {
    min-height: 18px;
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.quick-order-result:empty {
    display: none;
}

.quick-order-result.is-success {
    color: #067647;
}

.quick-order-result.is-warning {
    color: #b54708;
}

.quick-order-result.is-error {
    color: #b42318;
}

.quick-order-form {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.quick-order-form .button {
    min-height: 36px;
    white-space: nowrap;
}

.product-list-table th {
    background: #f6f8fb;
}

.product-list-table td {
    padding-top: 14px;
    padding-bottom: 14px;
}

.product-list-image {
    width: 78px;
    height: 98px;
    border-radius: 10px;
    background: linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
    box-shadow: inset 0 0 0 1px #e4ebf2;
}

.list-add-form {
    grid-template-columns: minmax(132px, 1fr) 56px;
}

.procurement-order-bar {
    position: relative;
    top: auto;
    z-index: 1;
    border-radius: 10px;
    background: #ffffff;
    margin-bottom: 14px;
    box-shadow: none;
}

.procurement-order-bar > div:first-child {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
}

.procurement-order-bar strong {
    color: #0f2537;
    font-size: 16px;
}

.procurement-order-bar .muted {
    white-space: nowrap;
}

.product-list-table {
    table-layout: fixed;
}

.product-list-table th:first-child,
.product-list-table td:first-child {
    width: auto;
    text-align: left;
}

.product-list-table th:nth-child(2),
.product-list-table td:nth-child(2) {
    width: 180px;
}

.product-list-table th:nth-child(3),
.product-list-table td:nth-child(3) {
    width: 228px;
}

.product-list-table td {
    padding-top: 10px;
    padding-bottom: 10px;
    vertical-align: middle;
}

.procurement-product-cell {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.procurement-product-cell .product-list-image {
    width: 58px;
    height: 76px;
    margin: 0;
    border-radius: 8px;
}

.procurement-product-cell .product-list-image img {
    max-width: 88%;
    max-height: 90%;
}

.procurement-product-cell .product-list-image span {
    color: #94a3b8;
    font-size: 10px;
    font-weight: 800;
}

.procurement-product-info {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.procurement-product-info strong,
.procurement-product-info span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.procurement-product-info strong {
    color: #0f2537;
    font-size: 15px;
    line-height: 1.35;
}

.procurement-product-flags {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
}

.procurement-product-flags .product-list-favorite-form {
    position: static;
}

.procurement-product-flags .favorite-button {
    width: 24px;
    height: 24px;
    min-height: 24px;
}

.procurement-product-flags .favorite-icon {
    width: 15px;
    height: 15px;
}

.procurement-price-cell {
    display: grid;
    gap: 2px;
    align-items: center;
}

.procurement-price-cell strong {
    color: #0f2537;
    font-size: 16px;
    line-height: 1.2;
}

.product-list-table .low-stock-pill {
    margin-top: 4px;
}

.product-list-table .list-add-form {
    grid-template-columns: minmax(126px, 1fr) 48px;
    gap: 6px;
}

.product-list-table .quantity-stepper {
    grid-template-columns: 32px minmax(44px, 1fr) 32px;
    border-radius: 8px;
}

.product-list-table .quantity-stepper-button {
    min-height: 36px;
    font-size: 16px;
}

.product-list-table .cart-add-icon-button {
    width: 48px;
    min-width: 48px;
    height: 38px;
    border-radius: 9px;
}

.product-list-table .cart-add-icon-button .action-icon {
    width: 29px;
    height: 29px;
    stroke-width: 2;
}

.product-card > a:first-child,
.product-card .product-image-link {
    position: relative !important;
    display: grid !important;
    place-items: center !important;
    height: 196px !important;
    max-height: 196px !important;
    overflow: hidden !important;
}

.product-card > a:first-child img,
.product-card .product-image-link img,
.product-card img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    padding: 10px !important;
    box-sizing: border-box !important;
    object-fit: contain !important;
    object-position: center center !important;
    aspect-ratio: auto !important;
}

.product-image-placeholder {
    display: grid;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    place-items: center;
    align-content: center;
    gap: 6px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: #64748b;
    background: linear-gradient(135deg, #f8fafc, #eef2f7);
    text-align: center;
}

.product-image-placeholder span {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.product-image-placeholder small {
    max-width: 86%;
    overflow: hidden;
    color: #94a3b8;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.favorite-form {
    margin: 0;
}

.product-card .favorite-form {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 12;
}

.favorite-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    opacity: 0.58;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
    transition: opacity 0.16s ease, color 0.16s ease, border-color 0.16s ease, background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.product-card:hover .favorite-button,
.favorite-button:hover {
    color: #0f3761;
    border-color: rgba(37, 99, 235, 0.35);
    background: rgba(255, 255, 255, 0.96);
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
}

.favorite-button.is-active {
    color: #d97706;
    border-color: rgba(245, 158, 11, 0.42);
    background: #fffbeb;
    opacity: 1;
    box-shadow: 0 14px 32px rgba(217, 119, 6, 0.18);
}

.product-card .favorite-button.is-active {
    opacity: 1;
    visibility: visible;
}

.favorite-button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.favorite-icon {
    width: 19px;
    height: 19px;
    display: block;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.favorite-button.is-active .favorite-icon {
    fill: currentColor;
}

.favorite-button-pop {
    animation: favorite-pop 0.32s ease-out;
}

.product-list-table td:first-child {
    position: relative;
}

.product-list-favorite-form {
    position: absolute;
    top: 9px;
    right: 8px;
}

.product-list-favorite-form .favorite-button {
    width: 30px;
    height: 30px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
}

.product-list-favorite-form .favorite-icon {
    width: 16px;
    height: 16px;
}

.detail-favorite-form {
    display: inline-flex;
    margin-left: auto;
}

.favorite-filter-link {
    gap: 8px;
}

@keyframes favorite-pop {
    0% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.14);
    }

    100% {
        transform: scale(1);
    }
}

.product-card .favorite-form {
    z-index: 20;
}

.product-card {
    position: relative !important;
}

.product-card .favorite-button {
    opacity: 1 !important;
    visibility: visible !important;
    background: #ffffff !important;
    color: #123250 !important;
    border-color: #b8c7d8 !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16) !important;
}

.product-card .favorite-button.is-active {
    opacity: 1 !important;
    visibility: visible !important;
    background: #fff7df !important;
    color: #d97706 !important;
    border-color: #f2b84b !important;
    box-shadow: 0 14px 32px rgba(217, 119, 6, 0.22) !important;
}

.product-card .favorite-button:hover {
    transform: translateY(-1px) scale(1.03);
}

.product-browser-panel {
    gap: 10px !important;
    padding: 10px 12px 12px !important;
}

.category-browser {
    display: grid !important;
    gap: 0 !important;
    padding: 10px 16px !important;
    border: 1px solid #e4ebf3 !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.035) !important;
}

.category-primary-tabs {
    display: inline-flex;
    width: fit-content;
    gap: 4px;
    padding: 3px;
    margin-bottom: 8px;
    border: 1px solid #dce6f0;
    border-radius: 999px;
    background: #f5f8fb;
}

.category-primary-tabs .category-all-link {
    min-height: 30px !important;
    padding: 6px 12px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: #536273 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

.category-primary-tabs .category-all-link.is-active {
    background: #102b43 !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(16, 43, 67, 0.16) !important;
}

.category-browser-group {
    display: grid !important;
    grid-template-columns: 112px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 12px !important;
    min-height: 44px !important;
    padding: 6px 0 !important;
    border-top: 1px solid #edf2f7 !important;
}

.category-browser-group h2 {
    margin: 0 !important;
    color: #334155 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

.category-browser-links {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
}

.category-link {
    min-height: 30px !important;
    padding: 6px 11px !important;
    border: 1px solid #dbe5ef !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #26384a !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

.category-link:hover {
    border-color: #b8c9db !important;
    background: #f8fafc !important;
    color: #102b43 !important;
}

.category-link.is-active {
    border-color: #2563eb !important;
    background: #eef5ff !important;
    color: #1d4ed8 !important;
    font-weight: 650 !important;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.14) !important;
}

.result-summary {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 40px !important;
    padding: 0 4px !important;
}

.result-count {
    color: #64748b;
    font-size: 14px;
    white-space: nowrap;
}

.summary-pager {
    margin-left: auto !important;
}

.summary-pager .pager {
    margin: 0 !important;
}

.summary-pager .pager.is-compact {
    gap: 6px !important;
}

.summary-pager .button.secondary,
.summary-pager .pager-jump-form button {
    min-height: 34px !important;
    padding: 7px 11px !important;
    border-radius: 8px !important;
}

.summary-pager .pager-page,
.summary-pager .pager-jump-form input {
    width: 36px !important;
    min-width: 36px !important;
    height: 34px !important;
    border-radius: 8px !important;
}

@media (max-width: 760px) {
    .category-browser-group {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .result-summary {
        align-items: flex-start !important;
    }

    .summary-pager {
        width: 100%;
        margin-left: 0 !important;
    }
}

.customer-orders-hero {
    gap: 14px !important;
    padding: 24px !important;
    border-color: #dfe7ef !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94)) !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.045) !important;
}

.customer-orders-hero .toolbar-heading {
    align-items: flex-start;
}

.customer-orders-hero h1 {
    margin-bottom: 4px;
    font-size: 32px;
    letter-spacing: 0;
}

.customer-orders-hero .toolbar-heading .button {
    min-height: 46px;
    padding-inline: 18px;
    border-radius: 9px;
}

.customer-orders-hero .status-tabs {
    gap: 4px;
    padding: 4px;
    border-color: #dce6f1;
    border-radius: 12px;
    background: #f6f9fc;
}

.customer-orders-hero .status-tab {
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 9px;
    color: #34495e;
    font-size: 14px;
    font-weight: 600;
}

.customer-orders-hero .status-tab:hover {
    background: #edf4ff;
    color: #16375a;
}

.customer-orders-hero .status-tab.is-active {
    color: #fff;
    background: #2563eb;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2);
}

.customer-orders-hero .order-filter-form {
    display: flex;
    align-items: end;
    gap: 10px;
    padding-top: 2px;
}

.customer-orders-filter-row {
    display: flex;
    align-items: end;
    gap: 10px;
}

.customer-orders-filter-row .order-filter-form {
    min-width: 0;
    flex: 1 1 auto;
}

.customer-orders-toggle-all {
    flex: 0 0 auto;
    min-height: 42px;
    padding-inline: 14px;
    border-radius: 9px;
    white-space: nowrap;
}

.customer-orders-hero .order-filter-form > input {
    height: 42px;
    min-width: 280px;
    border-color: #d3deea;
    border-radius: 9px;
    background: #fff;
}

.customer-orders-hero .order-filter-form label {
    gap: 6px;
    color: #475569;
    font-size: 13px;
}

.customer-orders-hero .order-filter-form input[type="date"] {
    height: 42px;
    min-width: 166px;
    border-color: #d3deea;
    border-radius: 9px;
    background: #fff;
}

.customer-orders-hero .order-filter-form button,
.customer-orders-hero .order-filter-form .button {
    min-height: 42px;
    border-radius: 9px;
}

.customer-orders-table-panel {
    padding: 20px 22px 22px !important;
    border-color: #dfe7ef !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.038) !important;
}

.customer-orders-table-panel .table-summary {
    margin-bottom: 12px;
    color: #64748b;
    font-size: 15px;
}

.customer-orders-card-panel {
    display: grid;
    gap: 12px;
    padding: 18px 20px 20px !important;
    border-color: #dfe7ef !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.038) !important;
}

.customer-orders-card-panel .table-summary {
    margin-bottom: 0;
    color: #64748b;
    font-size: 15px;
}

.customer-order-filter-summary {
    padding-top: 0;
}

.customer-orders-summary {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.customer-order-card-list {
    display: grid;
    gap: 12px;
}

.customer-order-card-list.is-details-collapsed .customer-order-card-body,
.customer-order-card-list.is-details-collapsed .customer-order-expand {
    display: none;
}

.customer-order-card-list.is-details-collapsed .customer-order-card-head {
    border-bottom: 0;
}

.customer-order-card {
    overflow: hidden;
    border: 1px solid #dfe7ef;
    border-radius: 10px;
    background: #fff;
}

.customer-order-card.needs-customer-confirm {
    border-color: #f6df9b;
    background: #fffbeb;
    box-shadow: inset 4px 0 0 #f59e0b;
}

.customer-order-card-head {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) minmax(180px, 0.85fr) minmax(120px, 0.55fr) 220px;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid #e6edf5;
    background: #f8fafc;
}

.customer-order-card.needs-customer-confirm .customer-order-card-head {
    background: #fff7d6;
}

.customer-order-title,
.customer-order-account,
.customer-order-state {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.customer-order-title strong {
    color: #0f2537;
    font-size: 16px;
    letter-spacing: 0.01em;
}

.customer-order-title span,
.customer-order-title .customer-order-company,
.customer-order-account span,
.customer-order-state small {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.customer-order-account strong {
    overflow: hidden;
    color: #0f2537;
    font-size: 14px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-order-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    flex-wrap: wrap;
}

.customer-order-card-actions form {
    margin: 0;
}

.customer-order-card-actions .button,
.customer-order-card-actions button {
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 8px;
    background: #eef3f8;
    color: #25384c;
    box-shadow: none;
    font-size: 14px;
}

.customer-order-card-actions .button:hover,
.customer-order-card-actions button:hover {
    background: #dfe8f2;
}

.customer-order-card-actions .confirm-difference-button {
    background: #f59e0b;
    color: #fff;
    box-shadow: 0 8px 18px rgba(245, 158, 11, 0.2);
}

.customer-order-card-actions .confirm-difference-button:hover {
    background: #d97706;
}

.customer-order-card-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 176px;
    gap: 14px;
    padding: 12px 14px 10px;
}

.customer-order-products {
    display: grid;
    gap: 0;
    min-width: 0;
}

.customer-order-product {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 76px 92px;
    gap: 18px;
    align-items: center;
    min-height: 112px;
    padding: 12px 0;
    border-bottom: 1px solid #edf2f7;
}

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

.customer-order-products:not(.is-expanded) .customer-order-product.is-extra {
    display: none;
}

.customer-order-product-main {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    min-width: 0;
}

.customer-order-product-image {
    display: grid;
    justify-self: center;
    place-items: center;
    box-sizing: border-box;
    width: 92px;
    min-width: 92px;
    height: 92px;
    min-height: 92px;
    overflow: hidden;
    border: 1px solid #dbe5f0;
    border-radius: 8px;
    background: #f1f5f9;
}

.customer-order-product-image img {
    display: block;
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    min-height: 0 !important;
    max-width: 100% !important;
    max-height: 100% !important;
    padding: 3px;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain;
}

.customer-order-product-image span {
    color: #94a3b8;
    font-size: 10px;
    font-weight: 800;
}

.customer-order-product-info {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.customer-order-product-info strong {
    overflow: hidden;
    color: #0f2537;
    font-size: 14px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-order-product-info span,
.customer-order-product-info small {
    overflow: hidden;
    color: #64748b;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-order-product-qty,
.customer-order-product-price {
    display: grid;
    justify-items: end;
    gap: 2px;
    color: #0f2537;
    font-variant-numeric: tabular-nums;
}

.customer-order-product-qty strong,
.customer-order-product-price strong {
    font-size: 14px;
}

.customer-order-product-qty span,
.customer-order-product-price span {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.customer-order-total {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f8fafc;
}

.customer-order-total > div {
    display: grid;
    gap: 3px;
}

.customer-order-total span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.customer-order-total strong {
    color: #0f2537;
    font-size: 17px;
    font-variant-numeric: tabular-nums;
}

.customer-order-total .previous-amount {
    width: fit-content;
    color: #94a3b8;
    font-size: 12px;
    text-decoration: line-through;
}

.customer-order-expand {
    width: 100%;
    min-height: 34px;
    border: 0;
    border-top: 1px solid #e6edf5;
    border-radius: 0;
    color: #2563eb;
    background: #fbfdff;
    font-size: 13px;
    font-weight: 800;
    box-shadow: none;
}

.customer-order-expand:hover {
    color: #1d4ed8;
    background: #eff6ff;
}

.customer-order-empty {
    min-height: 120px;
    align-content: center;
    justify-items: center;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    color: #64748b;
    font-weight: 800;
}

.customer-orders-table {
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.customer-orders-table thead th {
    padding: 13px 14px;
    border-bottom: 1px solid #dbe5f0;
    background: #f7f9fc;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.customer-orders-table thead th:first-child {
    border-top-left-radius: 8px;
}

.customer-orders-table thead th:last-child {
    border-top-right-radius: 8px;
}

.customer-orders-table td {
    padding: 13px 14px;
    border-bottom: 1px solid #e5ebf2;
    vertical-align: middle;
}

.customer-orders-table th:nth-child(1),
.customer-orders-table td:nth-child(1) {
    width: 28%;
}

.customer-orders-table th:nth-child(2),
.customer-orders-table td:nth-child(2) {
    width: 24%;
}

.customer-orders-table th:nth-child(3),
.customer-orders-table td:nth-child(3) {
    width: 16%;
}

.customer-orders-table th:nth-child(4),
.customer-orders-table td:nth-child(4) {
    width: 14%;
}

.customer-orders-table th:nth-child(5),
.customer-orders-table td:nth-child(5) {
    width: 18%;
}

.customer-order-row {
    transition: background 140ms ease, box-shadow 140ms ease;
}

.customer-order-row:hover td {
    background: #fbfdff;
}

.customer-order-main,
.customer-order-metrics {
    display: grid;
    gap: 3px;
}

.customer-order-main strong,
.customer-orders-table td:first-child strong {
    color: #0f2537;
    font-size: 16px;
    letter-spacing: 0.01em;
}

.customer-order-main .muted,
.customer-orders-table td:first-child .muted {
    margin-top: 3px;
    color: #64748b;
    font-size: 14px;
}

.customer-order-metrics strong {
    color: #0f2537;
    font-size: 15px;
}

.customer-order-metrics span {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.customer-order-alerts {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.customer-order-alert {
    width: fit-content;
    min-height: 22px;
    padding: 2px 8px;
    color: #92400e !important;
    background: #fef3c7;
    border-radius: 999px;
}

.customer-order-status-hint {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.customer-orders-table .status-pill {
    min-width: 66px;
    justify-content: center;
    padding: 5px 10px;
    font-size: 13px;
    font-weight: 700;
}

.customer-orders-table .order-amount {
    color: #0f2537;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.customer-orders-table .order-amount strong {
    display: block;
    font-size: 16px;
}

.customer-orders-table .previous-amount {
    display: block;
    margin-bottom: 2px;
    color: #94a3b8;
    font-size: 12px;
    text-decoration: line-through;
}

.customer-orders-table .row-actions {
    gap: 7px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.customer-orders-table .row-actions .button,
.customer-orders-table .row-actions button {
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #eef3f8;
    color: #25384c;
    box-shadow: none;
}

.customer-orders-table .row-actions .button:hover,
.customer-orders-table .row-actions button:hover {
    background: #dfe8f2;
}

.customer-orders-table tr.needs-customer-confirm td {
    background: #fffbeb;
    border-bottom-color: #f6df9b;
}

.customer-orders-table tr.needs-customer-confirm td:first-child {
    position: relative;
}

.customer-orders-table tr.needs-customer-confirm td:first-child::before {
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 0;
    width: 4px;
    border-radius: 999px;
    background: #f59e0b;
    content: "";
}

.customer-orders-table tr.needs-customer-confirm:hover td {
    background: #fff7d6;
}

.customer-orders-table .customer-confirm-hint {
    color: #92400e;
    font-weight: 700;
}

.customer-orders-table .confirm-difference-button {
    background: #f59e0b;
    color: #fff;
    box-shadow: 0 8px 18px rgba(245, 158, 11, 0.2);
}

.customer-orders-table .confirm-difference-button:hover {
    background: #d97706;
}

.customer-order-detail-hero {
    padding: 20px 22px !important;
    border-color: #dfe7ef !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.045) !important;
}

.customer-order-detail-hero h1 {
    margin: 0 0 4px;
    font-size: 30px;
    letter-spacing: 0;
}

.customer-order-detail-hero .actions {
    align-items: center;
}

.customer-order-detail-hero .actions .button,
.customer-order-detail-hero .actions button {
    min-height: 40px;
    padding: 9px 14px;
    border-radius: 8px;
    font-weight: 800;
}

.customer-order-detail-summary {
    margin: 12px 0;
}

.customer-confirm-panel {
    display: grid;
    gap: 12px;
    margin-top: 12px;
    border-color: #f6df9b;
    background: #fffdf3;
}

.customer-confirm-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.customer-confirm-heading h2,
.customer-order-note-panel h2 {
    margin: 0 0 4px;
    color: #0f2537;
    font-size: 20px;
}

.customer-confirm-heading p,
.customer-order-note-panel p {
    margin: 0;
}

.customer-confirm-review-note {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    background: #fff7ed;
}

.customer-confirm-review-note span,
.customer-order-note-grid span {
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.customer-confirm-review-note strong,
.customer-order-note-grid strong {
    color: #0f2537;
    font-size: 15px;
}

.customer-confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.customer-confirm-actions form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
    padding: 12px;
    border: 1px solid #e5ebf2;
    border-radius: 8px;
    background: #fff;
}

.customer-confirm-actions button {
    min-height: 42px;
    padding: 9px 14px;
    border-radius: 8px;
    font-weight: 800;
    white-space: nowrap;
}

.customer-order-note-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.customer-order-note-grid > div {
    display: grid;
    gap: 5px;
    padding: 12px;
    border: 1px solid #e5ebf2;
    border-radius: 8px;
    background: #fff;
}

.customer-order-detail-panel {
    margin-top: 12px;
    padding: 14px 18px 16px !important;
}

.customer-order-detail-table {
    table-layout: fixed;
}

.customer-order-detail-table th,
.customer-order-detail-table td {
    vertical-align: middle;
}

.customer-order-detail-table th:nth-child(1),
.customer-order-detail-table td:nth-child(1) {
    width: 38%;
}

.customer-order-detail-table th:nth-child(2),
.customer-order-detail-table td:nth-child(2) {
    width: 15%;
}

.customer-order-detail-table th:nth-child(3),
.customer-order-detail-table td:nth-child(3),
.customer-order-detail-table th:nth-child(4),
.customer-order-detail-table td:nth-child(4) {
    width: 15%;
}

.customer-order-detail-table th:nth-child(5),
.customer-order-detail-table td:nth-child(5) {
    width: 17%;
}

.customer-order-detail-table tr.has-difference td {
    background: #fffbeb;
}

.customer-order-detail-table .customer-order-product {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.customer-order-detail-table .customer-order-product strong,
.customer-order-detail-table .customer-order-product span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.customer-order-detail-table .customer-order-product strong {
    color: #0f2537;
    font-size: 15px;
}

.order-submitted-panel {
    display: grid;
    gap: 16px;
    max-width: 920px;
    margin: 24px auto;
    padding: 24px !important;
    border-color: #bfdbfe !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 251, 255, 0.96)) !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06) !important;
}

.order-submitted-heading {
    display: flex;
    align-items: center;
    gap: 14px;
}

.order-submitted-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 999px;
    color: #065f46;
    background: #d1fae5;
    font-size: 28px;
    font-weight: 900;
}

.order-submitted-heading h1 {
    margin: 2px 0;
    color: #0f2537;
    font-size: 30px;
    letter-spacing: 0;
}

.order-submitted-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #eff6ff;
}

.order-submitted-status strong {
    color: #1e3a5f;
    font-size: 15px;
}

.order-submitted-summary {
    margin: 0;
}

.order-submitted-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.order-submitted-actions .button {
    min-height: 42px;
    padding: 9px 16px;
    border-radius: 8px;
    font-weight: 800;
}

.confirm-on-behalf-panel {
    border-color: #f6df9b;
    background: #fffdf3;
}

.confirm-on-behalf-panel h2 {
    color: #92400e;
}

.customer-follow-up-panel {
    border-color: #bfdbfe;
    background: #f8fbff;
}

.customer-follow-up-panel h2 {
    color: #1d4ed8;
}

.customer-follow-up-grid {
    display: grid;
    grid-template-columns: minmax(160px, 0.45fr) minmax(160px, 0.55fr);
    gap: 12px;
}

.customer-follow-up-panel select,
.customer-follow-up-panel input {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #c9d3df;
    border-radius: 6px;
    font: inherit;
}

.customer-follow-up-phrases {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.customer-follow-up-phrases button {
    min-height: 28px;
    padding: 5px 9px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    color: #1d4ed8;
    background: #eff6ff;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.customer-follow-up-phrases button:hover {
    border-color: #2563eb;
    background: #dbeafe;
}

.login-log-hero {
    gap: 16px;
}

.login-log-hero h1 {
    margin-bottom: 0;
}

.login-log-insight-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.login-log-insight-card {
    display: grid;
    gap: 5px;
    padding: 12px 14px;
    border: 1px solid #dce4ed;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.035);
}

.login-log-insight-card span {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.login-log-insight-card strong {
    color: #0f2537;
    font-size: 24px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.login-log-insight-card.is-warning {
    border-color: #fde68a;
    background: #fffbeb;
}

.login-log-insight-card.is-warning strong {
    color: #b45309;
}

.login-log-insight-card.is-danger {
    border-color: #fecaca;
    background: #fef2f2;
}

.login-log-insight-card.is-danger strong {
    color: #b91c1c;
}

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

.login-log-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid #d7e0ea;
    border-radius: 999px;
    background: #fff;
    color: #17324d;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.login-log-chip:hover {
    border-color: #bcd0e4;
    background: #f8fbff;
}

.login-log-chip.is-active {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.login-log-suspicious-panel {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fff7f7;
}

.login-log-suspicious-heading {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.login-log-suspicious-heading strong {
    color: #991b1b;
}

.login-log-suspicious-heading span {
    color: #7f1d1d;
    font-size: 13px;
}

.login-log-suspicious-list {
    display: grid;
    gap: 7px;
}

.login-log-suspicious-item {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) 90px 90px 64px auto;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid #fee2e2;
    border-radius: 7px;
    background: #fff;
}

.login-log-suspicious-item strong {
    color: #0f2537;
    font-variant-numeric: tabular-nums;
}

.login-log-suspicious-item span {
    color: #64748b;
    font-size: 13px;
}

.login-log-filter-form {
    display: grid;
    grid-template-columns: minmax(230px, 1.4fr) minmax(120px, 0.65fr) minmax(130px, 0.7fr) minmax(145px, 0.8fr) repeat(2, minmax(132px, 0.65fr)) auto;
    align-items: end;
    gap: 10px;
}

.login-log-filter-form label {
    display: grid;
    gap: 5px;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.login-log-filter-form input,
.login-log-filter-form select {
    min-width: 0;
}

.login-log-panel {
    padding: 20px 22px 22px !important;
}

.login-log-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.login-log-reason-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.login-log-reason-summary a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.login-log-ip-insight {
    display: grid;
    gap: 10px;
    padding: 13px 14px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #f8fbff;
}

.login-log-ip-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
}

.login-log-ip-heading strong {
    color: #0f2537;
    font-variant-numeric: tabular-nums;
}

.login-log-ip-heading span,
.login-log-ip-metrics span,
.login-log-ip-accounts a span {
    color: #64748b;
    font-size: 13px;
}

.login-log-ip-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.login-log-ip-metrics span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 4px 9px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #fff;
    font-weight: 800;
}

.login-log-ip-metrics .is-warning,
.login-log-ip-accounts .is-warning {
    color: #b45309;
}

.login-log-ip-accounts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.login-log-ip-accounts a {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid #dbeafe;
    border-radius: 7px;
    background: #fff;
    text-decoration: none;
}

.login-log-ip-accounts a:hover {
    border-color: #93c5fd;
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.1);
}

.login-log-ip-accounts a strong {
    overflow: hidden;
    color: #0f2537;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.login-log-table {
    table-layout: fixed;
}

.login-log-table th,
.login-log-table td {
    padding: 12px 14px;
    vertical-align: middle;
}

.login-log-table th:nth-child(1),
.login-log-table td:nth-child(1) {
    width: 142px;
}

.login-log-table th:nth-child(2),
.login-log-table td:nth-child(2) {
    width: 120px;
}

.login-log-table th:nth-child(3),
.login-log-table td:nth-child(3) {
    width: 190px;
}

.login-log-table th:nth-child(4),
.login-log-table td:nth-child(4) {
    width: 128px;
}

.login-log-table th:nth-child(5),
.login-log-table td:nth-child(5) {
    width: 180px;
}

.login-log-table th:nth-child(6),
.login-log-table td:nth-child(6) {
    width: 120px;
}

.login-log-table th:nth-child(8),
.login-log-table td:nth-child(8) {
    width: 92px;
}

.login-log-time,
.login-log-account,
.login-log-customer-no {
    color: #0f2537;
    font-variant-numeric: tabular-nums;
}

.login-log-account,
.login-log-customer-no {
    display: block;
    font-weight: 700;
}

.login-log-user-agent {
    overflow: hidden;
    color: #64748b;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.login-log-order-link {
    min-height: 32px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 13px;
    white-space: nowrap;
}

.audit-log-hero {
    gap: 14px;
}

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

.audit-log-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid #d7e0ea;
    border-radius: 999px;
    background: #fff;
    color: #17324d;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.audit-log-chip:hover {
    border-color: #bcd0e4;
    background: #f8fbff;
}

.audit-log-chip.is-active {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.audit-log-filter-form {
    display: grid;
    grid-template-columns: minmax(240px, 1.3fr) minmax(130px, 0.7fr) minmax(130px, 0.7fr) minmax(130px, 0.7fr) repeat(2, minmax(138px, 0.7fr)) auto;
    align-items: end;
    gap: 10px;
}

.audit-log-filter-form label {
    display: grid;
    gap: 5px;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.audit-log-filter-form input,
.audit-log-filter-form select {
    min-width: 0;
}

.audit-log-summary {
    margin-bottom: 12px;
}

.audit-log-table {
    min-width: 980px;
    table-layout: fixed;
}

.audit-log-table th,
.audit-log-table td {
    padding: 11px 12px;
    vertical-align: middle;
}

.audit-log-table th:nth-child(1),
.audit-log-table td:nth-child(1) {
    width: 156px;
}

.audit-log-table th:nth-child(2),
.audit-log-table td:nth-child(2) {
    width: 150px;
}

.audit-log-table th:nth-child(3),
.audit-log-table td:nth-child(3) {
    width: 170px;
}

.audit-log-table th:nth-child(4),
.audit-log-table td:nth-child(4) {
    width: 142px;
}

.audit-log-table th:nth-child(5),
.audit-log-table td:nth-child(5) {
    width: 118px;
}

.audit-log-time,
.audit-log-ip {
    color: #0f2537;
    font-variant-numeric: tabular-nums;
}

.audit-log-table td > strong,
.audit-log-table td > span {
    display: block;
}

.audit-target-link {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    color: #175cd3;
    font-weight: 800;
    text-decoration: none;
}

.audit-target-link:hover {
    text-decoration: underline;
}

.audit-action-badge {
    display: inline-flex !important;
    width: fit-content;
    min-height: 24px;
    margin-top: 4px;
    padding: 3px 8px;
    color: #17324d;
    background: #eef4fb;
    border: 1px solid #d8e5f2;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.audit-log-detail-cell {
    white-space: normal;
}

.audit-log-detail {
    display: grid;
    gap: 7px;
    color: #475569;
    font-size: 13px;
    line-height: 1.35;
}

.audit-log-detail summary {
    overflow: hidden;
    cursor: pointer;
    color: #17324d;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.audit-log-detail[open] summary {
    white-space: normal;
}

.audit-detail-list {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid #dbe3ec;
    border-radius: 7px;
    background: #f8fafc;
}

.audit-detail-list div {
    display: grid;
    grid-template-columns: minmax(88px, 0.42fr) minmax(0, 1fr);
    gap: 10px;
}

.audit-detail-list dt {
    min-width: 0;
    color: #64748b;
    font-weight: 800;
}

.audit-detail-list dd {
    min-width: 0;
    margin: 0;
    color: #172033;
    word-break: break-word;
}

.audit-log-detail pre {
    max-height: 180px;
    overflow: auto;
    margin: 0;
    padding: 9px 10px;
    border: 1px solid #dbe3ec;
    border-radius: 7px;
    background: #f8fafc;
    color: #334155;
    font: inherit;
    font-size: 12px;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.admin-dashboard-hero {
    gap: 16px;
}

.admin-dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 10px;
}

.admin-dashboard-metric {
    display: grid;
    gap: 5px;
    min-height: 82px;
    padding: 12px 13px;
    color: inherit;
    background: #fff;
    border: 1px solid #dce4ed;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.035);
}

a.admin-dashboard-metric:hover {
    border-color: #b8c9db;
    background: #fbfdff;
}

.admin-dashboard-metric span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.admin-dashboard-metric strong {
    color: #0f2537;
    font-size: 24px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.admin-dashboard-metric small {
    overflow: hidden;
    color: #64748b;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-dashboard-metric.is-work {
    border-color: #bfdbfe;
    background: #f8fbff;
}

.admin-dashboard-metric.is-warning {
    border-color: #fde68a;
    background: #fffbeb;
}

.admin-dashboard-metric.is-warning strong {
    color: #b45309;
}

.admin-dashboard-metric.is-danger {
    border-color: #fecaca;
    background: #fff7f7;
}

.admin-dashboard-metric.is-danger strong {
    color: #b91c1c;
}

.admin-dashboard-inventory-alert {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.admin-dashboard-inventory-alert.has-alerts {
    border-color: #fde68a;
    background: #fffdf5;
}

.admin-dashboard-inventory-heading {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.admin-dashboard-inventory-heading h2 {
    font-size: 20px;
    margin: 0;
}

.admin-dashboard-inventory-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.admin-dashboard-inventory-item {
    background: #fff;
    border: 1px solid #dce4ed;
    border-radius: 8px;
    color: inherit;
    display: grid;
    gap: 5px;
    min-height: 66px;
    padding: 10px 11px;
    text-decoration: none;
}

.admin-dashboard-inventory-item:hover {
    background: #fbfdff;
    border-color: #b8c9db;
}

.admin-dashboard-inventory-item span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.admin-dashboard-inventory-item strong {
    color: #0f2537;
    font-size: 22px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.admin-dashboard-inventory-item.is-warning {
    background: #fffbeb;
    border-color: #fde68a;
}

.admin-dashboard-inventory-item.is-warning strong {
    color: #b45309;
}

.admin-dashboard-inventory-item.is-danger {
    background: #fff7f7;
    border-color: #fecaca;
}

.admin-dashboard-inventory-item.is-danger strong {
    color: #b91c1c;
}

.admin-dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 16px;
    margin-top: 16px;
    align-items: start;
}

.admin-dashboard-layout.is-secondary {
    grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
}

.admin-dashboard-panel {
    display: grid;
    gap: 12px;
}

.admin-dashboard-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-dashboard-panel-heading h2 {
    margin: 0;
    font-size: 20px;
}

.admin-dashboard-panel-heading a {
    color: #2563eb;
    font-weight: 800;
    text-decoration: none;
}

.admin-dashboard-list,
.admin-dashboard-risk-list,
.admin-dashboard-audit-list,
.admin-dashboard-shortcuts {
    display: grid;
    gap: 8px;
}

.admin-dashboard-list-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px 11px;
    color: inherit;
    border: 1px solid #e0e7ef;
    border-radius: 8px;
    background: #fff;
    text-decoration: none;
}

.admin-dashboard-list-row:hover {
    border-color: #b8c9db;
    background: #fbfdff;
}

.admin-dashboard-list-row strong,
.admin-dashboard-list-row span {
    display: block;
}

.admin-dashboard-list-row > div:first-child span {
    overflow: hidden;
    color: #64748b;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-dashboard-row-meta {
    display: grid;
    gap: 3px;
    justify-items: end;
    min-width: 116px;
    font-size: 12px;
}

.admin-dashboard-row-meta strong {
    color: #0f2537;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.admin-dashboard-row-meta .status-pill {
    min-width: 74px;
    justify-content: center;
    padding: 4px 8px;
    font-size: 12px;
}

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

.admin-dashboard-shortcuts a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 10px;
    color: #17324d;
    background: #f8fafc;
    border: 1px solid #d9e0e8;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.admin-dashboard-shortcuts a:hover {
    border-color: #b8c9db;
    background: #eef6ff;
}

.admin-dashboard-risk-row,
.admin-dashboard-audit-row {
    display: grid;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border: 1px solid #e0e7ef;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
}

.admin-dashboard-risk-row {
    grid-template-columns: minmax(120px, 1fr) auto auto;
}

.admin-dashboard-risk-row strong {
    color: #991b1b;
    font-variant-numeric: tabular-nums;
}

.admin-dashboard-risk-row span,
.admin-dashboard-audit-row span {
    color: #64748b;
}

.admin-dashboard-audit-row {
    grid-template-columns: 86px 92px minmax(0, 1fr) minmax(90px, auto);
}

.admin-dashboard-audit-row strong,
.admin-dashboard-audit-row span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 820px) {
    .account-profile-grid {
        grid-template-columns: 1fr;
    }

    .customer-book-layout {
        grid-template-columns: 1fr;
    }

    .customer-book-form {
        position: static;
    }

    .customer-book-inline-fields {
        grid-template-columns: 1fr;
    }

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

    .cart-readiness-panel {
        align-items: flex-start;
        display: grid;
    }

    .cart-readiness-metrics {
        justify-content: flex-start;
    }

    .cart-checkout-panel {
        bottom: 8px;
    }

    .cart-checkout-form {
        grid-template-columns: 1fr;
    }

    .cart-checkout-actions {
        align-items: stretch;
        display: grid;
        justify-content: stretch;
    }

    .cart-confirm-submit-panel {
        bottom: 8px;
        grid-template-columns: 1fr;
    }

    .cart-confirm-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .customer-orders-hero {
        padding: 18px !important;
    }

    .customer-orders-hero .toolbar-heading {
        gap: 12px;
    }

    .customer-orders-hero .order-filter-form {
        align-items: stretch;
    }

    .customer-orders-filter-row {
        display: grid;
        align-items: stretch;
    }

    .customer-orders-toggle-all {
        width: 100%;
    }

    .customer-orders-hero .order-filter-form label,
    .customer-orders-hero .order-filter-form input[type="date"] {
        width: 100%;
    }

    .customer-order-card-head,
    .customer-order-card-body {
        grid-template-columns: 1fr;
    }

    .customer-order-card-actions {
        justify-content: flex-start;
    }

    .customer-order-product {
        grid-template-columns: 1fr;
        gap: 8px;
        min-height: 104px;
        padding: 10px 0;
    }

    .customer-order-product-main {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 12px;
    }

    .customer-order-product-image {
        width: 84px;
        min-width: 84px;
        height: 84px;
        min-height: 84px;
    }

    .customer-order-product-qty,
    .customer-order-product-price {
        justify-items: start;
        grid-column: auto;
    }

    .customer-order-total {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .customer-order-total .customer-order-alerts {
        grid-column: 1 / -1;
    }

    .customer-order-detail-hero .toolbar-heading,
    .customer-confirm-heading {
        display: grid;
    }

    .customer-confirm-actions,
    .customer-confirm-actions form,
    .customer-order-note-grid {
        grid-template-columns: 1fr;
    }

    .order-submitted-heading,
    .order-submitted-status,
    .order-submitted-actions {
        align-items: stretch;
        display: grid;
    }

    .login-log-filter-form,
    .audit-log-filter-form {
        grid-template-columns: 1fr 1fr;
    }

    .audit-log-quick-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 2px;
    }

    .audit-log-chip {
        flex: 0 0 auto;
    }

    .admin-review-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-order-inventory-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-review-meta-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .review-customer-confirm-summary p {
        grid-column: 1 / -1;
    }

    .review-outcome-panel {
        display: grid;
        align-items: start;
    }

    .review-outcome-badges {
        justify-content: flex-start;
    }

    .review-remark {
        grid-template-columns: 1fr;
    }

    .review-submit-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .customer-follow-up-grid {
        grid-template-columns: 1fr;
    }

    .login-log-insight-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .login-log-ip-accounts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .login-log-summary {
        align-items: flex-start;
        display: grid;
    }

    .login-log-reason-summary {
        justify-content: flex-start;
    }

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

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

    .customer-account-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .customer-account-detail-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-product-detail-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .customer-account-detail-table {
        overflow-x: auto;
    }

    .customer-account-detail-table .data-table {
        min-width: 760px;
    }

    .cart-readiness-panel,
    .cart-review-notice {
        display: grid;
        align-items: start;
    }

    .cart-readiness-metrics {
        justify-content: flex-start;
    }

    .cart-difference-grid {
        grid-template-columns: 1fr;
    }

    .shipment-picking-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-dashboard-layout,
    .admin-dashboard-layout.is-secondary {
        grid-template-columns: 1fr;
    }

    .login-log-suspicious-heading,
    .login-log-suspicious-item {
        display: grid;
        grid-template-columns: 1fr;
    }

    .admin-dashboard-inventory-heading {
        align-items: stretch;
        display: grid;
    }

    .customer-account-table {
        min-width: 980px;
    }

    .customer-account-line {
        grid-template-columns: 1fr;
    }

    .customer-account-inline-actions {
        flex-wrap: wrap;
        white-space: normal;
    }
}

@media (max-width: 720px) {
    .topbar {
        align-items: flex-start;
        height: auto;
        padding: 14px 16px;
    }

    .topbar,
    .topbar nav,
    .toolbar-heading,
    .shortcut-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .topbar nav {
        gap: 10px;
    }

    .product-search-sticky {
        top: 12px;
    }

    .search-form,
    .customer-account-filter-form,
    .add-cart-form,
    .checkout-form,
    .detail-add-cart-form,
    .detail-order-panel,
    .product-top-row,
    .category-browser-group {
        display: grid;
        grid-template-columns: 1fr;
    }

    .search-form input,
    .search-form select {
        min-width: 0;
    }

    .product-search-form .availability-select {
        width: 100%;
    }

    .product-toolbar-actions {
        justify-content: stretch;
        flex-wrap: wrap !important;
    }

    .sort-tabs,
    .view-tabs,
    .product-quick-filters {
        width: 100%;
        overflow-x: auto;
    }

    .product-page-size-control {
        width: 100%;
    }

    .product-page-size-control label {
        justify-content: space-between;
        width: 100%;
    }

    .sort-tab,
    .view-tab {
        flex: 1 0 auto;
    }

    .quick-order-bar,
    .quick-order-form {
        display: grid;
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .quick-order-bar {
        top: 12px;
    }

    .quick-order-form .button {
        width: 100%;
    }

    .product-list-table {
        min-width: 760px;
    }

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

    .category-admin-layout,
    .category-row,
    .drag-row,
    .category-create-form,
    .login-log-filter-form,
    .audit-log-filter-form,
    .category-edit-form,
    .settings-grid,
    .shipment-metrics,
    .shipment-workspace,
    .shipment-detail-summary-bar,
    .shipment-detail-note-panel,
    .shipment-remark-panel,
    .shipment-create-footer,
    .shipment-item-row,
    .shipment-picking-summary {
        grid-template-columns: 1fr;
    }

    .login-log-ip-accounts {
        grid-template-columns: 1fr;
    }

    .shipment-ship-form {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .shipment-ship-form input {
        width: 100%;
    }

    .shipment-detail-title,
    .shipment-detail-actions,
    .shipment-detail-note-form {
        align-items: stretch;
        display: grid;
        grid-template-columns: 1fr;
        justify-content: stretch;
    }

    .shipment-detail-tab-panel {
        overflow-x: auto;
        padding: 12px;
    }

    .shipment-detail-table {
        min-width: 760px;
    }

    .shipment-remark-form button {
        justify-self: stretch;
    }

    .shipment-items-heading {
        display: grid;
        align-items: start;
    }

    .shipment-item-row,
    .shipment-item-quantity {
        justify-items: start;
    }

    .sticky-actions {
        display: grid;
    }
}

.admin-inventory-kpi-grid {
    grid-template-columns: repeat(6, minmax(140px, 1fr));
}

.inventory-alert-kpi-grid {
    grid-template-columns: repeat(7, minmax(120px, 1fr));
}

.inventory-init-panel {
    align-items: center;
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(260px, 1fr) auto auto auto auto auto;
}

.inventory-init-panel h2 {
    font-size: 1.05rem;
    margin: 0 0 4px;
}

.inventory-init-panel p {
    margin: 0;
}

.inventory-init-metrics {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.inventory-init-metrics span {
    background: #f4f7fb;
    border: 1px solid #dbe6f2;
    border-radius: 999px;
    color: #52677f;
    font-size: 0.84rem;
    font-weight: 700;
    padding: 6px 10px;
}

.inventory-init-metrics strong {
    color: #001f3f;
    margin-left: 4px;
}

.inventory-init-confirm-form {
    display: grid;
    gap: 8px;
    min-width: 260px;
}

.inventory-confirm-check {
    align-items: flex-start;
    color: #52677f;
    display: grid;
    font-size: 0.82rem;
    font-weight: 800;
    gap: 8px;
    grid-template-columns: auto minmax(0, 1fr);
    line-height: 1.35;
}

.inventory-confirm-check input {
    margin-top: 2px;
}

.admin-inventory-table {
    min-width: 1180px;
}

.admin-inventory-table td,
.admin-inventory-transaction-table td {
    vertical-align: middle;
}

.inventory-adjust-form {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: 100px minmax(120px, 1fr) auto;
    min-width: 360px;
}

.inventory-adjust-form input,
.inventory-detail-adjust-form input {
    min-width: 0;
}

.inventory-adjust-form button,
.inventory-detail-adjust-form button {
    white-space: nowrap;
}

.inventory-quantity {
    color: #082f49;
    font-variant-numeric: tabular-nums;
}

.inventory-quantity.is-zero {
    color: #b45309;
}

.inventory-quantity.is-negative {
    color: #b91c1c;
}

.inventory-quantity.is-positive {
    color: #047857;
}

.admin-product-row.is-danger {
    background: #fff7f7;
}

.admin-product-row.is-warning {
    background: #fffbeb;
}

.admin-product-row.is-muted-risk {
    background: #f8fafc;
}

.inventory-risk-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 6px;
}

.inventory-risk-tag {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 7px;
    border-radius: 999px;
    color: #334155;
    background: #eef2f7;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.inventory-risk-tag.is-danger {
    color: #991b1b;
    background: #fee2e2;
}

.inventory-risk-tag.is-warning {
    color: #92400e;
    background: #fef3c7;
}

.inventory-risk-tag.is-info {
    color: #075985;
    background: #e0f2fe;
}

.inventory-risk-tag.is-muted {
    color: #475569;
    background: #e2e8f0;
}

.inventory-risk-tag.is-erp {
    color: #6d28d9;
    background: #ede9fe;
}

.inventory-risk-tag.is-correction {
    color: #0f766e;
    background: #ccfbf1;
}

.inventory-risk-tag.is-ok {
    color: #047857;
    background: #dcfce7;
}

.inventory-alert-table {
    min-width: 1120px;
}

.inventory-alert-table td {
    vertical-align: middle;
}

.inventory-alert-table td > strong,
.inventory-alert-table td > span {
    display: block;
}

.admin-inventory-detail-grid {
    align-items: stretch;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(280px, 2fr) repeat(4, minmax(120px, 1fr));
}

.admin-product-thumb.large {
    height: 82px;
    width: 82px;
}

.inventory-metric {
    border: 1px solid #d8e2ee;
    border-radius: 8px;
    display: grid;
    gap: 8px;
    padding: 14px;
}

.inventory-metric span {
    color: #52677f;
    font-size: 0.82rem;
    font-weight: 700;
}

.inventory-metric strong {
    color: #001f3f;
    font-size: 1.35rem;
    line-height: 1.1;
}

.inventory-detail-adjust-form {
    align-items: end;
    border-top: 1px solid #e3ebf5;
    display: grid;
    gap: 12px;
    grid-template-columns: 180px minmax(240px, 1fr) auto;
    margin-top: 16px;
    padding-top: 16px;
}

.inventory-detail-adjust-form label {
    display: grid;
    gap: 6px;
}

.inventory-detail-adjust-form label span {
    color: #52677f;
    font-size: 0.82rem;
    font-weight: 700;
}

.admin-inventory-transaction-table {
    min-width: 980px;
}

.inventory-transaction-filter-form {
    grid-template-columns: minmax(280px, 1fr) 190px 160px 160px auto;
}

.admin-inventory-transaction-list-table {
    min-width: 1240px;
}

.admin-inventory-transaction-list-table td {
    vertical-align: middle;
}

.admin-inventory-transaction-list-table td a,
.admin-inventory-transaction-list-table td strong,
.admin-inventory-transaction-list-table td span {
    display: block;
}

.admin-inventory-transaction-list-table td a {
    color: #1d4ed8;
    font-weight: 800;
    text-decoration: none;
}

.admin-inventory-transaction-list-table td a:hover {
    text-decoration: underline;
}

.admin-inventory-transaction-table tr.is-correction td,
.admin-inventory-transaction-list-table tr.is-correction td {
    background: #fbfdff;
}

.inventory-transaction-time {
    color: #334155;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.inventory-source-stack,
.inventory-note-stack {
    display: grid;
    gap: 4px;
}

.inventory-source-link {
    color: #1d4ed8;
    font-weight: 800;
    text-decoration: none;
}

.inventory-source-link:hover {
    text-decoration: underline;
}

.inventory-source-meta {
    color: #52677f;
    font-size: 0.82rem;
    line-height: 1.35;
}

.inventory-source-status-row {
    align-items: center;
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px;
}

.inventory-source-status-row .status-pill,
.inventory-source-status-row .inventory-source-meta {
    display: inline-flex !important;
}

.inventory-correction-note {
    background: #f8fbff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    display: grid;
    gap: 4px;
    padding: 8px 10px;
}

.inventory-correction-note strong {
    color: #0f2537;
}

.inventory-correction-note span {
    color: #52677f;
    font-size: 0.84rem;
    line-height: 1.45;
}

.status-pill.is-info {
    color: #075985;
    background: #e0f2fe;
}

.status-pill.is-warning {
    color: #92400e;
    background: #fef3c7;
}

.status-pill.is-danger {
    color: #991b1b;
    background: #fee2e2;
}

.status-pill.is-muted {
    color: #475569;
    background: #e2e8f0;
}

.status-pill.is-ok {
    color: #047857;
    background: #dcfce7;
}

.admin-inventory-related-panel .table-summary {
    align-items: center;
}

.admin-inventory-related-panel .table-summary > div {
    display: grid;
    gap: 3px;
}

.admin-inventory-related-panel .table-summary strong {
    color: #0f2537;
    font-size: 1.05rem;
}

.admin-inventory-related-table {
    min-width: 980px;
}

.admin-inventory-related-table td {
    vertical-align: middle;
}

.admin-inventory-related-table td strong,
.admin-inventory-related-table td span,
.admin-inventory-related-table td a {
    display: block;
}

.admin-inventory-related-table td a {
    color: #1d4ed8;
    font-weight: 800;
    text-decoration: none;
}

.admin-inventory-related-table td a:hover {
    text-decoration: underline;
}

.admin-inventory-related-table tr.has-reservation td {
    background: #fffbeb;
}

.admin-inventory-related-table tr.has-shipment-deduct td {
    background: #f8fbff;
}

.inventory-import-panel textarea {
    min-height: 220px;
    resize: vertical;
    font-family: Consolas, "Courier New", monospace;
    line-height: 1.55;
}

.inventory-import-hint {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid #dbe6f2;
    border-radius: 8px;
    background: #f8fafc;
}

.inventory-import-hint strong {
    color: #0f2537;
}

.inventory-import-hint span {
    color: #52677f;
    font-size: 0.9rem;
}

.inventory-import-preview-panel .table-summary {
    align-items: center;
}

.inventory-import-preview-panel .table-summary > div {
    display: grid;
    gap: 3px;
}

.inventory-import-preview-panel .table-summary form {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.inventory-import-impact-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    margin-bottom: 12px;
}

.inventory-import-impact-grid div {
    background: #fff;
    border: 1px solid #dbe6f2;
    border-radius: 8px;
    display: grid;
    gap: 5px;
    padding: 10px 12px;
}

.inventory-import-impact-grid span {
    color: #52677f;
    font-size: 0.78rem;
    font-weight: 800;
}

.inventory-import-impact-grid strong {
    color: #001f3f;
    font-size: 1.15rem;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.inventory-import-impact-grid .is-positive strong {
    color: #047857;
}

.inventory-import-impact-grid .is-negative strong {
    color: #b91c1c;
}

.inventory-import-preview-table {
    min-width: 1080px;
}

.inventory-import-preview-table tr.is-import-error td {
    background: #fff1f2;
}

.inventory-import-error {
    color: #991b1b;
    font-weight: 800;
}

@media (max-width: 1100px) {
    .admin-inventory-kpi-grid,
    .inventory-alert-kpi-grid,
    .admin-inventory-detail-grid,
    .inventory-init-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .inventory-transaction-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .inventory-import-impact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .inventory-detail-adjust-form {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 720px) {
    .inventory-init-panel {
        grid-template-columns: 1fr;
    }

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

    .inventory-init-panel form,
    .inventory-init-panel button,
    .inventory-init-panel .button {
        width: 100%;
    }

    .inventory-transaction-filter-form {
        grid-template-columns: 1fr;
    }

    .inventory-import-impact-grid {
        grid-template-columns: 1fr;
    }

    .inventory-health-heading {
        align-items: stretch;
        display: grid;
    }

    .inventory-health-grid {
        grid-template-columns: 1fr;
    }

    .inventory-mode-notes {
        grid-template-columns: 1fr;
    }
}

/* Shared administration surface: compact, scan-friendly, and consistent across back-office pages. */
.is-admin-page {
    background: #f3f6fa;
}

.topbar nav a.is-active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.is-admin-page .topbar {
    height: 52px;
    padding-inline: 16px;
    box-shadow: 0 1px 5px rgba(23, 50, 77, 0.18);
}

.is-admin-page .topbar .brand {
    flex: 0 0 auto;
    margin-right: 12px;
    font-size: 14px;
    font-weight: 750;
    white-space: nowrap;
}

.is-admin-page .topbar nav {
    flex: 1 1 auto;
    align-self: stretch;
    min-width: 0;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.is-admin-page .topbar nav > a {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 52px;
    padding: 0 9px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: background-color 150ms ease, color 150ms ease;
}

.is-admin-page .topbar nav > a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.is-admin-page .topbar .user-name,
.is-admin-page .topbar .logout-form {
    flex: 0 0 auto;
    font-size: 13px;
    white-space: nowrap;
}

.is-admin-page .admin-page {
    max-width: 1560px;
    padding: 16px 20px 28px;
}

.is-admin-page .panel,
.is-admin-page .toolbar {
    border-color: #d8e1eb;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.025);
}

.is-admin-page .toolbar h1,
.is-admin-page .panel h1 {
    margin: 0;
    color: #102a43;
    font-size: 26px;
    line-height: 1.25;
}

.is-admin-page .toolbar h2,
.is-admin-page .panel h2 {
    margin-top: 0;
    color: #163a5f;
    font-size: 20px;
    line-height: 1.35;
}

.is-admin-page .toolbar .muted,
.is-admin-page .panel .muted {
    font-size: 14px;
    line-height: 1.5;
}

.is-admin-page input:not([type="checkbox"]):not([type="radio"]),
.is-admin-page select {
    min-height: 38px;
    padding: 7px 10px;
    font-size: 14px;
}

.is-admin-page textarea {
    min-height: 82px;
    padding: 9px 10px;
    font-size: 14px;
    line-height: 1.5;
}

.is-admin-page button,
.is-admin-page .button {
    min-height: 36px;
    padding: 7px 11px;
    font-size: 14px;
    line-height: 1.35;
}

.is-admin-page .actions,
.is-admin-page .row-actions {
    gap: 8px;
}

.is-admin-page .table-panel {
    border: 1px solid #dce4ed;
    border-radius: 7px;
}

.is-admin-page .data-table th,
.is-admin-page .data-table td {
    padding: 10px 12px;
}

.is-admin-page .data-table th {
    color: #40566f;
    background: #f5f7fa;
    font-size: 13px;
    letter-spacing: 0;
}

.is-admin-page .data-table tbody tr {
    transition: background-color 140ms ease;
}

.is-admin-page .data-table tbody tr:hover td {
    background: #f8fbff;
}

.is-admin-page .filter-chip,
.is-admin-page .status-tab {
    min-height: 34px;
    font-size: 13px;
}

/* Standard list-page workbench used by orders, shipments, products, accounts and logs. */
.is-admin-page .admin-list-toolbar {
    display: grid;
    gap: 12px;
}

.is-admin-page .admin-list-toolbar > :first-child h1 {
    margin-bottom: 4px;
}

.is-admin-page .admin-list-toolbar .search-form {
    gap: 8px;
    padding: 10px;
    background: #f7f9fc;
    border: 1px solid #e0e7ef;
    border-radius: 7px;
}

.is-admin-page .admin-list-toolbar .search-form label > span {
    margin-bottom: 3px;
    color: #526b84;
    font-size: 12px;
    font-weight: 750;
}

.is-admin-page .admin-list-toolbar .status-tabs,
.is-admin-page .admin-list-toolbar .shipment-flow-tabs,
.is-admin-page .admin-list-toolbar .login-log-quick-filters,
.is-admin-page .admin-list-toolbar .audit-log-quick-filters {
    gap: 4px;
    padding: 4px;
    background: #f5f7fa;
    border: 1px solid #dde5ee;
    border-radius: 7px;
}

.is-admin-page .admin-list-toolbar .status-tab,
.is-admin-page .admin-list-toolbar .shipment-flow-tabs > a,
.is-admin-page .admin-list-toolbar .login-log-quick-filters > a,
.is-admin-page .admin-list-toolbar .audit-log-quick-filters > a {
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 5px;
    font-size: 13px;
}

.is-admin-page .admin-list-toolbar .applied-filter-row {
    gap: 6px;
    margin-top: -2px;
}

.is-admin-page .order-summary-grid,
.is-admin-page .shipment-metrics,
.is-admin-page .customer-account-kpis,
.is-admin-page .login-log-insight-grid {
    gap: 8px;
}

.is-admin-page .order-summary-card,
.is-admin-page .shipment-metric,
.is-admin-page .customer-account-kpi,
.is-admin-page .login-log-insight-card {
    min-height: 68px;
    padding: 11px 12px;
    border-color: #d9e2ec;
    border-radius: 7px;
}

.is-admin-page .order-summary-card > span,
.is-admin-page .shipment-metric > span,
.is-admin-page .customer-account-kpi > span,
.is-admin-page .login-log-insight-card > span {
    color: #526b84;
    font-size: 12px;
    font-weight: 750;
}

.is-admin-page .order-summary-card > strong,
.is-admin-page .shipment-metric > strong,
.is-admin-page .customer-account-kpi > strong,
.is-admin-page .login-log-insight-card > strong {
    margin-top: 3px;
    font-size: 20px;
    line-height: 1.1;
}

.is-admin-page .table-summary {
    min-height: 34px;
    padding-bottom: 10px;
    color: #526b84;
    font-size: 13px;
}

.is-admin-page .table-summary .muted {
    font-size: 13px;
}

.is-admin-page .empty-cell {
    padding-block: 30px !important;
    color: #5f7287;
    font-size: 14px;
}

.product-search-keywords-panel,
.product-search-log-panel {
    margin-top: 12px;
}

.product-search-keyword-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-search-keyword-list .filter-chip {
    align-items: center;
    gap: 7px;
    min-height: 32px;
}

.product-search-keyword-list .filter-chip small {
    color: #b45309;
    font-size: 11px;
    font-weight: 700;
}

.text-danger {
    color: #b91c1c;
}

.cart-checkout-profiles {
    display: contents;
}

.cart-confirm-profiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.cart-checkout-profiles .field {
    gap: 4px;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid #dce5ef;
    border-radius: 7px;
    background: #f8fafc;
}

.cart-profile-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #455f78;
    font-size: 12px;
    font-weight: 800;
}

.cart-checkout-profiles select {
    min-width: 0;
    min-height: 32px;
    padding-block: 4px;
}

.cart-profile-preview {
    display: block;
    min-width: 0;
    color: #5b7188;
    font-size: 12px;
    line-height: 1.25;
}

.cart-profile-preview strong {
    display: none;
}

.cart-profile-preview span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-profile-manage {
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.cart-profile-manage:hover {
    text-decoration: underline;
}

.cart-checkout-amount {
    display: grid;
    gap: 1px;
    min-width: 98px;
    padding-right: 0;
    text-align: right;
}

.cart-checkout-amount span,
.cart-checkout-amount small {
    color: #64748b;
    font-size: 12px;
    font-weight: 650;
}

.cart-checkout-amount strong {
    color: #0f2537;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.15;
}

.cart-profile-manage {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.cart-profile-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.48);
}

.cart-profile-modal[hidden] {
    display: none;
}

.cart-profile-modal-dialog {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(1120px, 100%);
    height: min(760px, calc(100vh - 48px));
    overflow: hidden;
    border: 1px solid #cfd9e5;
    border-radius: 8px;
    background: #f5f7fa;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.3);
}

.cart-profile-modal-header,
.embedded-profile-manager-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 50px;
    padding: 10px 14px;
    border-bottom: 1px solid #dce5ef;
    background: #fff;
}

.cart-profile-modal-header h2,
.embedded-profile-manager-header h1 {
    margin: 0;
    color: #102b46;
    font-size: 17px;
    line-height: 1.25;
}

.cart-profile-modal iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    background: #f5f7fa;
}

.embedded-profile-manager-header ~ .account-profile-hero,
.embedded-profile-manager-header ~ .account-profile-tabs {
    display: none;
}

body.has-profile-manager-modal {
    overflow: hidden;
}

@media (max-width: 1100px) {
    .cart-checkout-form {
        grid-template-columns: minmax(0, 1fr) minmax(220px, 0.8fr);
    }

    .cart-checkout-profiles {
        display: grid;
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}

.cart-confirm-profiles {
    margin-bottom: 12px;
}

.cart-confirm-profiles > div {
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    background: #f6f9fc;
    border: 1px solid #dce5ef;
    border-radius: 6px;
}

.cart-confirm-profiles span,
.cart-confirm-profiles small {
    color: #5b7188;
    font-size: 13px;
}

.customer-order-fulfillment-grid,
.order-profile-snapshot-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.customer-order-fulfillment-grid > div,
.order-profile-snapshot-grid > div {
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    background: #f7f9fc;
    border: 1px solid #dce5ef;
    border-radius: 6px;
}

.customer-order-fulfillment-grid span,
.customer-order-fulfillment-grid small,
.order-profile-snapshot-grid span,
.order-profile-snapshot-grid small {
    color: #5b7188;
    font-size: 13px;
}

.order-profile-snapshot-panel h2 {
    margin-bottom: 10px;
}

.review-inventory-assist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px 8px;
    width: 220px;
    margin-bottom: 6px;
    padding-bottom: 6px;
    color: #526b84;
    font-size: 12px;
    line-height: 1.35;
    border-bottom: 1px solid #e3eaf2;
}

.review-inventory-assist span {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    white-space: nowrap;
}

.review-inventory-assist strong {
    color: #102a43;
    font-size: 13px;
}

/* Shared product thumbnail: always show the full source image, never crop it. */
.product-thumbnail {
    position: relative;
    display: block;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #f4f7fa;
}

.product-thumbnail--fill {
    width: 100%;
    height: 100%;
}

.product-thumbnail > img {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    padding: 3px !important;
    object-fit: contain !important;
    object-position: center center !important;
    aspect-ratio: auto !important;
    transform: none !important;
}

.product-thumbnail-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    padding: 4px;
    box-sizing: border-box;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
}

.product-thumbnail-fallback[hidden] {
    display: none;
}

.review-inventory-source {
    justify-content: flex-start !important;
    width: max-content;
    grid-column: 1 / -1;
    padding: 2px 6px;
    color: #1d4ed8;
    background: #eaf2ff;
    border-radius: 999px;
    font-weight: 750;
}

/* Front-end product cards: keep desktop scanning dense without cropping cover art. */
.product-grid {
    grid-template-columns: repeat(var(--product-grid-columns, 5), minmax(0, 1fr));
    gap: 14px;
}

.product-grid--columns-4 {
    --product-grid-columns: 4;
}

.product-grid--columns-5 {
    --product-grid-columns: 5;
}

.product-card > a:first-child,
.product-card .product-image-link {
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 1 / 1;
    margin: 9px 9px 0;
    border-radius: 8px;
}

.product-card > a:first-child img,
.product-card .product-image-link img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    padding: 8px !important;
    object-fit: contain !important;
    object-position: center center !important;
}

.product-card .favorite-form {
    top: 10px;
    right: 10px;
}

.product-card .favorite-button {
    width: 34px;
    height: 34px;
}

.product-card .favorite-icon {
    width: 18px;
    height: 18px;
}

.product-body {
    gap: 3px;
    padding: 8px 11px 5px;
}

.product-card h2 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.product-name {
    min-height: 41px;
}

.product-no,
.price-label,
.add-cart-form label {
    font-size: 12px;
}

.price {
    font-size: 17px;
}

.add-cart-form {
    grid-template-columns: minmax(0, 1fr) 46px;
    gap: 7px;
    padding: 0 11px 10px;
}

.quantity-stepper-button {
    min-height: 38px;
}

.cart-add-icon-button {
    width: 42px;
    min-width: 42px;
    height: 40px;
    border-radius: 9px;
}

.cart-add-icon-button .action-icon {
    width: 29px;
    height: 29px;
}

@media (max-width: 1180px) {
    .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

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

@media (max-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}

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

@media (max-width: 720px) {
    .cart-checkout-profiles,
    .cart-confirm-profiles,
    .customer-order-fulfillment-grid,
    .order-profile-snapshot-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    .is-admin-page .topbar {
        padding-inline: 12px;
    }

    .is-admin-page .admin-page {
        padding-inline: 12px;
    }
}
