/* Admin order view — Filament panel does not load storefront Tailwind. */
[x-cloak] {
    display: none !important;
}

.oth-order-page {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1280px) {
    .oth-order-page {
        grid-template-columns: 2fr 1fr;
    }
}

.oth-order-main,
.oth-order-side {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.oth-card {
    background: var(--fi-bg, #fff);
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
}

.dark .oth-card {
    background: var(--fi-bg, rgb(17 24 39));
    border-color: rgba(255, 255, 255, 0.1);
}

.oth-card--flush {
    padding: 0;
    overflow: hidden;
}

.oth-card__header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.dark .oth-card__header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.oth-card__body {
    padding: 1.5rem;
}

.oth-card__title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--fi-text, #111827);
}

.dark .oth-card__title {
    color: #f9fafb;
}

.oth-card__subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.75rem;
    color: #6b7280;
}

.oth-order-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.oth-order-number {
    margin: 0.25rem 0 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--fi-text, #111827);
}

.dark .oth-order-number {
    color: #f9fafb;
}

.oth-order-meta {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: #6b7280;
}

.oth-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.oth-stat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (min-width: 640px) {
    .oth-stat-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.oth-stat {
    background: #f9fafb;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}

.dark .oth-stat {
    background: rgba(255, 255, 255, 0.05);
}

.oth-stat__label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}

.oth-stat__value {
    margin-top: 0.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--fi-text, #111827);
}

.dark .oth-stat__value {
    color: #f9fafb;
}

.oth-dl {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

@media (min-width: 640px) {
    .oth-dl {
        grid-template-columns: repeat(2, 1fr);
    }
}

.oth-dl dt {
    font-size: 0.75rem;
    color: #6b7280;
}

.oth-dl dd {
    margin: 0.125rem 0 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--fi-text, #111827);
}

.dark .oth-dl dd {
    color: #f3f4f6;
}

.oth-dl__full {
    grid-column: 1 / -1;
}

.oth-table-wrap {
    overflow-x: auto;
}

.oth-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.oth-table th {
    text-align: left;
    padding: 0.75rem 1.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    background: #f9fafb;
}

.dark .oth-table th {
    background: rgba(255, 255, 255, 0.05);
}

.oth-table td {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--fi-text, #111827);
}

.dark .oth-table td {
    border-top-color: rgba(255, 255, 255, 0.1);
    color: #f3f4f6;
}

.oth-table .text-right {
    text-align: right;
}

.oth-table tfoot td {
    font-weight: 600;
    background: #f9fafb;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
}

.dark .oth-table tfoot td {
    background: rgba(255, 255, 255, 0.05);
}

.oth-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.oth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.oth-btn--primary {
    background: #1e3a2a;
    color: #fff;
}

.oth-btn--primary:hover {
    background: #2d5440;
}

.oth-btn--secondary {
    background: #fff;
    color: #374151;
    border-color: #d1d5db;
}

.dark .oth-btn--secondary {
    background: rgb(31 41 55);
    color: #e5e7eb;
    border-color: rgba(255, 255, 255, 0.1);
}

.oth-btn--secondary:hover {
    background: #f9fafb;
}

.oth-btn--success {
    background: #16a34a;
    color: #fff;
    border: none;
}

.oth-btn--success:hover {
    background: #15803d;
}

.oth-btn--danger {
    background: #fff;
    color: #dc2626;
    border-color: #d1d5db;
}

.oth-btn--danger:hover {
    background: #fef2f2;
}

.oth-btn--sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.oth-payment {
    font-size: 0.875rem;
}

.oth-payment__row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
}

.oth-payment__label {
    color: #6b7280;
    flex-shrink: 0;
}

.oth-payment__value {
    font-weight: 500;
    text-align: right;
    color: var(--fi-text, #111827);
}

.dark .oth-payment__value {
    color: #f3f4f6;
}

.oth-payment__banks {
    margin: 0.75rem 0;
    padding: 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #f9fafb;
    font-size: 0.75rem;
}

.dark .oth-payment__banks {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Small thumbnail — click opens dialog */
.oth-proof-thumb {
    position: relative;
    display: block;
    width: 5.5rem;
    height: 5.5rem;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    background: #f3f4f6;
}

.oth-proof-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.oth-proof-thumb__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0;
    transition: opacity 0.15s;
}

.oth-proof-thumb:hover .oth-proof-thumb__overlay {
    opacity: 1;
}

.oth-proof-thumb__error {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 0.65rem;
    color: #6b7280;
    text-align: center;
    padding: 0.25rem;
}

/* Native <dialog> for payment proof — centered modal + dark mask */
.oth-proof-dialog {
    border: none;
    padding: 0;
    margin: 0;
    max-width: min(36rem, calc(100vw - 2rem));
    width: 100%;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.oth-proof-dialog[open] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    width: 100vw;
    max-width: none;
    height: 100vh;
    max-height: none;
    margin: 0;
    padding: 1rem;
    box-sizing: border-box;
}

.oth-proof-dialog::backdrop {
    background: rgba(0, 0, 0, 0.65);
}

.oth-proof-dialog__inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: min(36rem, 100%);
    max-height: min(90vh, calc(100vh - 2rem));
    margin: auto;
    background: #fff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
}

.dark .oth-proof-dialog__inner {
    background: rgb(17 24 39);
}

.oth-dialog__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.dark .oth-dialog__header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.oth-dialog__title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
}

.dark .oth-dialog__title {
    color: #f9fafb;
}

.oth-dialog__close {
    width: 2rem;
    height: 2rem;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
    border-radius: 0.25rem;
}

.oth-dialog__close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #111827;
}

.oth-dialog__body {
    padding: 1rem;
    overflow: auto;
    text-align: center;
    background: #fff;
}

.dark .oth-dialog__body {
    background: rgb(17 24 39);
}

.oth-dialog__body--confirm {
    text-align: left;
}

.oth-dialog__message {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #374151;
}

.dark .oth-dialog__message {
    color: #d1d5db;
}

.oth-confirm-dialog .oth-dialog__footer {
    justify-content: flex-end;
}

.oth-dialog__img {
    display: block;
    max-width: 100%;
    max-height: min(65vh, 520px);
    margin: 0 auto;
    object-fit: contain;
    border-radius: 0.375rem;
}

.oth-dialog__footer {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.dark .oth-dialog__footer {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.oth-proof-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.oth-alert {
    padding: 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    margin-top: 0.75rem;
}

.oth-alert--success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.oth-alert--danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.oth-alert--warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.oth-confirm-box {
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-top: 0.75rem;
}

.oth-confirm-box--green {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.oth-confirm-box--red {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.oth-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.oth-divider {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin: 1rem 0;
}

.dark .oth-divider {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.oth-progress {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.oth-progress__step {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.oth-progress__marker {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    border: 2px solid #d1d5db;
    color: #6b7280;
    background: #fff;
}

.oth-progress__step--current .oth-progress__marker {
    border-color: #1e3a2a;
    background: #1e3a2a;
    color: #f7f2e8;
}

.oth-progress__step--complete .oth-progress__marker {
    border-color: #2d5440;
    background: #2d5440;
    color: #fff;
}

.oth-progress__step--cancelled .oth-progress__marker {
    border-color: #fca5a5;
    background: #fef2f2;
    color: #991b1b;
}

.oth-progress__content {
    padding-top: 0.15rem;
}

.oth-progress__label {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
}

.oth-progress__step--upcoming .oth-progress__label {
    color: #6b7280;
}

.oth-progress__step--cancelled .oth-progress__label {
    color: #991b1b;
}

.oth-progress__description {
    margin: 0.15rem 0 0;
    font-size: 0.75rem;
    color: #6b7280;
}

.oth-progress__connector {
    width: 2px;
    height: 1rem;
    margin-left: 0.84rem;
    background: #e5e7eb;
}

.oth-progress__connector--complete {
    background: #2d5440;
}

.dark .oth-progress__label {
    color: #f9fafb;
}

.dark .oth-progress__step--upcoming .oth-progress__label {
    color: #9ca3af;
}

.dark .oth-progress__marker {
    background: rgb(17 24 39);
    border-color: rgba(255, 255, 255, 0.2);
}

.dark .oth-progress__step--current .oth-progress__marker {
    background: #2d5440;
    border-color: #2d5440;
}

/* Admin product view */
.oth-product-page {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1280px) {
    .oth-product-page {
        grid-template-columns: 1.35fr 1fr;
        align-items: start;
    }
}

.oth-product-main,
.oth-product-side {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.oth-product-gallery-card {
    overflow: hidden;
}

.oth-product-hero {
    position: relative;
    aspect-ratio: 4 / 3;
    background: linear-gradient(145deg, #f7f2e8 0%, #ede5d0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark .oth-product-hero {
    background: linear-gradient(145deg, rgb(31 41 55) 0%, rgb(17 24 39) 100%);
}

.oth-product-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.oth-product-hero__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #9ca3af;
    padding: 2rem;
    text-align: center;
}

.oth-product-hero__placeholder p {
    margin: 0;
    font-size: 0.875rem;
}

.oth-product-hero__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.35rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.oth-product-hero__badge--live {
    background: #1e3a2a;
    color: #ede5d0;
}

.oth-product-hero__badge--hidden {
    background: rgba(17, 24, 39, 0.72);
    color: #f9fafb;
}

.oth-product-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 0.75rem;
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.dark .oth-product-thumbs {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.oth-product-thumb {
    aspect-ratio: 1;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    background: #f3f4f6;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.oth-product-thumb:hover {
    transform: translateY(-1px);
}

.oth-product-thumb.is-active {
    border-color: #1e3a2a;
}

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

.oth-product-head-card {
    background: linear-gradient(180deg, rgba(30, 58, 42, 0.04) 0%, transparent 100%);
}

.dark .oth-product-head-card {
    background: linear-gradient(180deg, rgba(45, 84, 64, 0.18) 0%, transparent 100%);
}

.oth-product-name {
    margin: 0.35rem 0 0;
    font-size: 1.625rem;
    line-height: 1.2;
    font-weight: 600;
    color: var(--fi-text, #111827);
}

.dark .oth-product-name {
    color: #f9fafb;
}

.oth-product-meta {
    margin: 0.5rem 0 0;
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.5;
}

.oth-product-meta code {
    font-size: 0.75rem;
    background: rgba(0, 0, 0, 0.05);
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
}

.dark .oth-product-meta code {
    background: rgba(255, 255, 255, 0.08);
}

.oth-product-price {
    margin: 1rem 0 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e3a2a;
    letter-spacing: -0.02em;
}

.dark .oth-product-price {
    color: #a7f3d0;
}

.oth-product-summary {
    margin: 0.75rem 0 0;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #374151;
}

.dark .oth-product-summary {
    color: #d1d5db;
}

.oth-product-description {
    margin-top: 0.75rem;
    font-size: 0.9375rem;
    line-height: 1.75;
    color: #374151;
}

.oth-product-description p {
    margin: 0 0 0.75rem;
}

.oth-product-description p:last-child {
    margin-bottom: 0;
}

.dark .oth-product-description {
    color: #d1d5db;
}

.oth-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.15rem;
}

.oth-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(30, 58, 42, 0.1);
    color: #1e3a2a;
}

.oth-tag--muted {
    background: rgba(107, 114, 128, 0.12);
    color: #4b5563;
}

.dark .oth-tag {
    background: rgba(45, 84, 64, 0.35);
    color: #d1fae5;
}

.dark .oth-tag--muted {
    background: rgba(255, 255, 255, 0.08);
    color: #d1d5db;
}

.oth-counter-products__header {
    margin-bottom: 1rem;
}

.oth-counter-products__add-form {
    display: grid;
    grid-template-columns: 7rem auto;
    gap: 0.75rem;
    align-items: end;
    margin-top: 1rem;
}

.oth-counter-products__chooser {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
    .oth-counter-products__chooser {
        grid-template-columns: 1fr;
    }
}

.oth-counter-products__picker {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.oth-counter-products__selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(30, 58, 42, 0.14);
    border-radius: 0.75rem;
    background: rgba(30, 58, 42, 0.03);
}

.oth-counter-products__selected-meta,
.oth-counter-products__result-meta {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.8125rem;
    color: rgba(30, 58, 42, 0.62);
}

.oth-counter-products__results {
    border: 1px solid rgba(30, 58, 42, 0.12);
    border-radius: 0.75rem;
    background: var(--fi-bg, #fff);
    overflow: hidden;
}

.oth-counter-products__results-status,
.oth-counter-products__results-empty {
    margin: 0;
    padding: 0.85rem 1rem;
    font-size: 0.875rem;
    color: rgba(30, 58, 42, 0.65);
}

.oth-counter-products__results-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 18rem;
    overflow-y: auto;
}

.oth-counter-products__results-list li + li {
    border-top: 1px solid rgba(30, 58, 42, 0.08);
}

.oth-counter-products__result {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}

.oth-counter-products__result:hover,
.oth-counter-products__result:focus-visible {
    background: rgba(30, 58, 42, 0.05);
    outline: none;
}

.oth-counter-products__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.oth-counter-products__field--grow {
    min-width: 0;
}

.oth-counter-products__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(30, 58, 42, 0.65);
}

.oth-counter-products__select {
    width: 100%;
    border: 1px solid rgba(30, 58, 42, 0.15);
    border-radius: 0.5rem;
    padding: 0.55rem 0.65rem;
    font-size: 0.875rem;
    background: var(--fi-bg, #fff);
}

.oth-counter-products__qty--add {
    max-width: none;
    width: 100%;
}

@media (max-width: 768px) {
    .oth-counter-products__add-form {
        grid-template-columns: 1fr;
    }
}

.oth-counter-products__toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.oth-counter-products__empty {
    margin-top: 1rem;
    padding: 2rem 1rem;
    text-align: center;
    border: 1px dashed rgba(30, 58, 42, 0.18);
    border-radius: 0.75rem;
    color: rgba(30, 58, 42, 0.65);
}

.oth-counter-products__product {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.oth-counter-products__thumb {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.5rem;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(30, 58, 42, 0.06);
}

.oth-counter-products__thumb--empty {
    display: block;
}

.oth-counter-products__qty,
.oth-counter-products__search {
    width: 100%;
    border: 1px solid rgba(30, 58, 42, 0.15);
    border-radius: 0.5rem;
    padding: 0.55rem 0.65rem;
    font-size: 0.875rem;
    background: var(--fi-bg, #fff);
}

.oth-counter-products__qty {
    max-width: 5rem;
}

.oth-btn--sm {
    padding: 0.35rem 0.65rem;
    font-size: 0.8125rem;
}

.oth-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.oth-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.oth-modal__panel {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    max-height: min(85vh, 900px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--fi-bg, #fff);
    border-radius: 0.875rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.oth-modal__header,
.oth-modal__search {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(30, 58, 42, 0.08);
}

.oth-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.oth-modal__close {
    border: 0;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: rgba(30, 58, 42, 0.55);
}

.oth-modal__body {
    overflow: auto;
    padding: 0 1.25rem 1.25rem;
}

.dark .oth-modal__panel {
    background: rgb(17 24 39);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark .oth-counter-products__empty {
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.65);
}

/* Counter order workflow */
.oth-counter-layout {
    align-items: start;
    gap: 1.5rem;
}

.oth-counter-wizard {
    background: var(--fi-bg, #fff);
    border: 1px solid rgba(30, 58, 42, 0.08);
    border-radius: 0.875rem;
    padding: 1.25rem;
}

.oth-counter-sidebar {
    position: sticky;
    top: 1rem;
}

.oth-counter-sidebar__card {
    background: linear-gradient(180deg, rgba(30, 58, 42, 0.04) 0%, var(--fi-bg, #fff) 100%);
    border: 1px solid rgba(30, 58, 42, 0.1);
    border-radius: 0.875rem;
    padding: 1.25rem;
    box-shadow: 0 8px 24px rgba(30, 58, 42, 0.06);
}

.oth-counter-sidebar__eyebrow {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #C4843C;
}

.oth-counter-sidebar__title {
    margin: 0.35rem 0 1rem;
    font-size: 1.125rem;
    color: #1E3A2A;
}

.oth-counter-steps {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.oth-counter-steps__item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.8125rem;
    color: rgba(30, 58, 42, 0.75);
}

.oth-counter-steps__badge {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 58, 42, 0.08);
    color: #1E3A2A;
    font-size: 0.75rem;
    font-weight: 700;
}

.oth-counter-sidebar__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.oth-counter-sidebar__stat {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(30, 58, 42, 0.08);
    border-radius: 0.65rem;
    padding: 0.65rem 0.75rem;
}

.oth-counter-sidebar__stat-label {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(30, 58, 42, 0.55);
}

.oth-counter-sidebar__lines {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.oth-counter-sidebar__lines li {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.8125rem;
}

.oth-counter-sidebar__more {
    color: rgba(30, 58, 42, 0.55);
    font-style: italic;
}

.oth-counter-sidebar__section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(30, 58, 42, 0.08);
}

.oth-counter-sidebar__section-label,
.oth-counter-sidebar__section-meta {
    margin: 0;
    font-size: 0.75rem;
    color: rgba(30, 58, 42, 0.6);
}

.oth-counter-sidebar__section-value {
    margin: 0.15rem 0 0;
    font-weight: 600;
}

.oth-counter-products__panel {
    margin-bottom: 1rem;
}

.oth-counter-products__panel--flush {
    padding: 0;
    overflow: hidden;
}

.oth-counter-products__step {
    margin: 0 0 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #C4843C;
}

.oth-counter-products__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.oth-counter-products__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 9999px;
    background: rgba(45, 84, 64, 0.12);
    color: #1E3A2A;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.oth-counter-products__sku {
    font-family: monospace;
    font-size: 0.75rem;
    color: #6b7280;
}

.oth-counter-products__empty-hint {
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    color: rgba(30, 58, 42, 0.55);
}

.oth-payment-methods {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.oth-payment-methods--modes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.oth-payment-methods--banks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.oth-payment-banks {
    margin-bottom: 1rem;
}

.oth-payment-banks__label {
    margin: 0 0 0.5rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(30, 58, 42, 0.55);
}

.oth-payment-method--bank {
    align-items: flex-start;
    text-align: left;
}

.oth-payment-method--bank .oth-payment-method__label {
    width: 100%;
    text-align: left;
}

.oth-payment-method--bank .oth-payment-method__hint {
    text-align: left;
    line-height: 1.35;
}

.oth-payment-method {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0.9rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(30, 58, 42, 0.12);
    background: var(--fi-bg, #fff);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.oth-payment-method:hover {
    border-color: rgba(30, 58, 42, 0.28);
}

.oth-payment-method.is-active {
    border-color: #1E3A2A;
    background: rgba(30, 58, 42, 0.05);
    box-shadow: inset 0 0 0 1px rgba(30, 58, 42, 0.15);
}

.oth-payment-method__label {
    font-weight: 700;
    color: #1E3A2A;
}

.oth-payment-method__hint {
    font-size: 0.75rem;
    color: rgba(30, 58, 42, 0.6);
}

.oth-counter-review__intro {
    margin-bottom: 1rem;
}

.oth-counter-review__grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 960px) {
    .oth-counter-review__grid {
        grid-template-columns: 1.2fr 0.8fr;
    }

    .oth-counter-review__total-card {
        grid-column: 1 / -1;
    }
}

.oth-counter-review__heading {
    margin: 0 0 0.85rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(30, 58, 42, 0.65);
}

.oth-counter-review__lines {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.oth-counter-review__lines li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.oth-counter-review__meta {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.75rem;
    color: rgba(30, 58, 42, 0.6);
}

.oth-counter-review__dl {
    display: grid;
    gap: 0.75rem;
    margin: 0;
}

.oth-counter-review__dl dt {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(30, 58, 42, 0.55);
}

.oth-counter-review__dl dd {
    margin: 0.15rem 0 0;
    font-weight: 600;
}

.oth-counter-review__full {
    grid-column: 1 / -1;
}

.oth-counter-review__empty {
    margin: 0;
    color: rgba(30, 58, 42, 0.6);
}

.oth-counter-summary {
    margin-top: 0.5rem;
}

.oth-counter-summary--compact {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(30, 58, 42, 0.08);
}

.oth-counter-summary__grid {
    display: grid;
    gap: 0.75rem;
    margin: 0;
}

.oth-counter-summary__grid dt {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(30, 58, 42, 0.65);
}

.oth-counter-summary__grid dd {
    margin: 0.15rem 0 0;
    font-weight: 600;
}

.oth-counter-summary__total dd {
    font-size: 1.35rem;
    color: #1E3A2A;
}

.oth-counter-summary__discount {
    color: #b45309;
}

.oth-counter-summary__alert {
    margin: 0.75rem 0 0;
    color: #b45309;
    font-size: 0.875rem;
}

.oth-counter-summary__meta,
.oth-counter-summary__section p {
    margin: 0.35rem 0 0;
    font-size: 0.875rem;
}

.oth-counter-summary__section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(30, 58, 42, 0.08);
}

.oth-counter-summary__section h4 {
    margin: 0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(30, 58, 42, 0.65);
}

.oth-counter-submit {
    font-weight: 700;
}

@media (max-width: 1279px) {
    .oth-counter-sidebar {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .oth-payment-methods--modes,
    .oth-payment-methods--banks {
        grid-template-columns: 1fr 1fr;
    }
}

/* Resource list pages — tabs, filters, and table in one card */
.oth-orders-list-page .oth-orders-list-panel.fi-sc-section > .fi-section,
.oth-invoices-list-page .oth-invoices-list-panel.fi-sc-section > .fi-section {
    overflow: hidden;
}

.oth-orders-list-page .oth-orders-list-panel .fi-section-content,
.oth-invoices-list-page .oth-invoices-list-panel .fi-section-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
}

.oth-orders-list-page .oth-orders-list-tabs.fi-sc-tabs,
.oth-invoices-list-page .oth-invoices-list-tabs.fi-sc-tabs {
    padding: 0.75rem 1rem 0;
    margin: 0;
    border-bottom: 1px solid rgb(229 231 235);
    background: rgb(249 250 251);
}

.dark .oth-orders-list-page .oth-orders-list-tabs.fi-sc-tabs,
.dark .oth-invoices-list-page .oth-invoices-list-tabs.fi-sc-tabs {
    border-bottom-color: rgb(55 65 81);
    background: rgb(17 24 39 / 0.5);
}

.oth-orders-list-page .oth-orders-list-tabs .fi-tabs,
.oth-invoices-list-page .oth-invoices-list-tabs .fi-tabs {
    margin: 0;
    box-shadow: none;
    background: transparent;
    border: none;
    padding: 0;
}

.oth-orders-list-page .oth-orders-list-panel .fi-ta-ctn,
.oth-invoices-list-page .oth-invoices-list-panel .fi-ta-ctn {
    border-radius: 0;
    box-shadow: none;
    --tw-ring-shadow: 0 0 #0000;
    border: none;
}

.oth-orders-list-page .oth-orders-list-panel .fi-ta-header-ctn,
.oth-invoices-list-page .oth-invoices-list-panel .fi-ta-header-ctn {
    padding-inline: 1rem;
    padding-top: 1rem;
}

.oth-orders-list-page .oth-orders-list-panel .fi-ta-header-toolbar,
.oth-invoices-list-page .oth-invoices-list-panel .fi-ta-header-toolbar {
    padding-inline: 1rem;
}

.oth-orders-list-page .oth-orders-list-panel .fi-ta-filters-above-content-ctn,
.oth-invoices-list-page .oth-invoices-list-panel .fi-ta-filters-above-content-ctn {
    padding: 0.75rem 1rem;
    margin: 0;
    border-bottom: 1px solid rgb(229 231 235);
    background: rgb(255 255 255);
}

.dark .oth-orders-list-page .oth-orders-list-panel .fi-ta-filters-above-content-ctn,
.dark .oth-invoices-list-page .oth-invoices-list-panel .fi-ta-filters-above-content-ctn {
    border-bottom-color: rgb(55 65 81);
    background: transparent;
}

.oth-orders-list-page .oth-orders-list-panel .fi-ta-content-ctn,
.oth-invoices-list-page .oth-invoices-list-panel .fi-ta-content-ctn {
    border-radius: 0;
}

.oth-orders-list-page .oth-orders-list-panel .fi-ta-table-ctn,
.oth-invoices-list-page .oth-invoices-list-panel .fi-ta-table-ctn {
    border-radius: 0;
}

.oth-orders-list-page .oth-orders-list-panel .fi-ta-pagination-ctn,
.oth-invoices-list-page .oth-invoices-list-panel .fi-ta-pagination-ctn {
    padding-inline: 1rem;
    padding-bottom: 0.75rem;
}

/* Invoices list */
.oth-invoices-list-page .oth-invoices-list-tabs.fi-sc-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.oth-invoices-list-page .oth-invoices-list-tabs .fi-tabs-item {
    white-space: nowrap;
}

.oth-invoices-list-page .oth-invoices-list-panel .fi-ta-filters-above-content-ctn {
    background: rgb(249 250 251);
}

.oth-invoices-list-page .oth-invoices-list-panel .fi-ta-filters-above-content-ctn .fi-fo-field-wrp-label {
    font-size: 0.75rem;
    font-weight: 600;
}

.oth-invoices-list-page .oth-invoices-list-panel .fi-ta-row--overdue {
    background: rgb(254 242 242 / 0.45);
}

.oth-invoices-list-page .oth-invoices-list-panel .fi-ta-record {
    transition: background-color 0.15s ease;
}
