@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Work+Sans:wght@400;500;600&display=swap");

:root {
    --pdv-bg: #f6f8fb;
    --pdv-surface: #ffffff;
    --pdv-primary: #2563eb;
    --pdv-primary-strong: #1d4ed8;
    --pdv-muted: #64748b;
    --pdv-border: #e2e8f0;
    --pdv-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    --pdv-radius-lg: 22px;
    --pdv-radius-md: 16px;
    --pdv-radius-sm: 12px;
    --pdv-font-display: "Space Grotesk", "Segoe UI", sans-serif;
    --pdv-font-body: "Work Sans", "Segoe UI", sans-serif;
}

html, body {
    font-family: var(--pdv-font-body);
    background: radial-gradient(circle at top left, #e0edff 0%, #f6f8fb 45%, #f8fafc 100%);
    color: #0f172a;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.08), transparent 40%),
        radial-gradient(circle at 80% 10%, rgba(14, 165, 233, 0.08), transparent 35%),
        radial-gradient(circle at 50% 90%, rgba(34, 197, 94, 0.06), transparent 40%);
    z-index: -1;
}

.pdv-layout {
    min-height: 100vh;
}

.pdv-drawer {
    border-right: 1px solid var(--pdv-border);
}

.pdv-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
}

.pdv-brand-icon {
    background: #e0edff;
    color: var(--pdv-primary);
}

.pdv-brand-title {
    font-family: var(--pdv-font-display);
    font-weight: 700;
}

.pdv-brand-subtitle {
    color: var(--pdv-muted);
}

.pdv-nav .mud-nav-link-text {
    font-weight: 500;
}

.pdv-main {
    background: transparent;
}

.pdv-appbar {
    background: var(--pdv-surface);
    border-bottom: 1px solid var(--pdv-border);
}

.pdv-appbar-button {
    color: #0f172a;
}

.pdv-breadcrumb {
    color: #475569;
    font-weight: 500;
}

.pdv-breadcrumb-divider {
    margin: 0 8px;
    color: #cbd5f5;
}

.pdv-avatar {
    background: #0ea5e9;
    color: white;
    margin-left: 12px;
}

.pdv-user-name {
    margin-left: 8px;
}

.pdv-body {
    padding: 24px 28px 40px;
}

.pdv-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.pdv-title {
    font-family: var(--pdv-font-display);
    font-weight: 700;
}

.pdv-subtitle {
    color: var(--pdv-muted);
}

.pdv-kpi-grid .mud-paper {
    animation: pdv-fade-up 0.5s ease forwards;
}

.pdv-kpi-card {
    padding: 18px;
    border-radius: var(--pdv-radius-md);
    background: var(--pdv-surface);
    box-shadow: var(--pdv-shadow);
}

.pdv-kpi-label {
    color: var(--pdv-muted);
}

.pdv-kpi-value {
    font-family: var(--pdv-font-display);
    font-weight: 700;
}

.pdv-kpi-note {
    color: #10b981;
}

.pdv-card {
    padding: 22px;
    border-radius: var(--pdv-radius-lg);
    background: var(--pdv-surface);
    box-shadow: var(--pdv-shadow);
    animation: pdv-fade-up 0.45s ease forwards;
}

.pdv-products-toolbar {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(220px, 1fr) 180px;
    align-items: center;
    margin-bottom: 16px;
}

.pdv-products-search .mud-input-control {
    background: #f8fafc;
}

.pdv-products-table .mud-table-container {
    overflow: auto;
}

.pdv-product-image-cell {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdv-product-image {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--pdv-border);
    background: #f8fafc;
}

.pdv-product-image-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--pdv-border);
    background: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.pdv-richtext {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pdv-richtext-label {
    font-size: 0.8rem;
    color: var(--pdv-muted);
    font-weight: 500;
}

.pdv-richtext-toolbar {
    display: flex;
    gap: 6px;
    padding: 6px;
    border: 1px solid var(--pdv-border);
    border-radius: 10px 10px 0 0;
    background: #f8fafc;
}

.pdv-richtext-editor {
    border: 1px solid var(--pdv-border);
    border-top: none;
    border-radius: 0 0 10px 10px;
    background: #ffffff;
    padding: 10px 12px;
    line-height: 1.5;
    outline: none;
}

.pdv-richtext-editor:empty:before {
    content: attr(data-placeholder);
    color: #94a3b8;
}

.pdv-richtext-footer {
    display: flex;
    justify-content: flex-end;
    font-size: 0.75rem;
    color: var(--pdv-muted);
    padding-top: 4px;
}

.pdv-richtext-counter--max {
    color: #dc2626;
    font-weight: 600;
}

.pdv-save-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.pdv-save-overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.pdv-save-spinner {
    width: 150px;
    height: 150px;
    display: block;
    animation: pdv-heartbeat 1.2s ease-in-out infinite;
    transform-origin: 50% 50%;
    transform-box: fill-box;
}

.pdv-save-text {
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.pdv-spin-cw,
.pdv-spin-ccw {
    transform-box: view-box;
    transform-origin: 50% 50%;
}

.pdv-spin-cw {
    animation: pdv-spin-cw 2.5s linear infinite;
}

.pdv-spin-ccw {
    animation: pdv-spin-ccw 2.5s linear infinite;
}

@keyframes pdv-spin-cw {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pdv-spin-ccw {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(-360deg);
    }
}

@keyframes pdv-heartbeat {
    0% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.06);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.1);
    }
    56% {
        transform: scale(1);
    }
    100% {
        transform: scale(1);
    }
}

.pdv-product-image-icon .mud-icon-root {
    font-size: 18px;
}

.pdv-products-editor {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pdv-products-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pdv-products-editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.pdv-products-alert {
    align-self: flex-start;
}

.pdv-search-card {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr auto;
    align-items: center;
}

.pdv-search-input .mud-input-control {
    background: #f8fafc;
}

.pdv-section-title {
    margin-bottom: 12px;
    font-family: var(--pdv-font-display);
    font-weight: 600;
}

.pdv-product-grid .mud-paper {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pdv-product-card {
    padding: 18px;
    border-radius: var(--pdv-radius-md);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pdv-product-card.pdv-product-card--promo {
    padding: 0;
    overflow: hidden;
    background: var(--pdv-surface);
    border: 1px solid var(--pdv-border);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
}

.pdv-card-content {
    padding: 16px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--pdv-surface);
}

.pdv-card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pdv-card-title {
    font-family: var(--pdv-font-display);
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pdv-card-title-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #cbd5f5;
}

.pdv-card-fav {
    font-size: 20px;
}

.pdv-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pdv-card-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    color: #f59e0b;
}

.pdv-card-rating .mud-icon-root {
    font-size: 16px;
}

.pdv-card-tag {
    background: #2563eb;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.pdv-card-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pdv-card-pill {
    font-size: 0.65rem;
    color: #475569;
    border-color: #cbd5f5;
    background: rgba(255, 255, 255, 0.7);
}

.pdv-card-price-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.pdv-card-variant {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px dashed var(--pdv-border);
    border-bottom: 1px dashed var(--pdv-border);
}

.pdv-card-variant-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pdv-card-variant-label {
    color: var(--pdv-muted);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
}

.pdv-card-variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pdv-card-variant-btn.mud-button-root {
    min-width: 36px;
    padding: 2px 10px;
    font-size: 0.72rem;
    border-radius: 999px;
    text-transform: none;
    line-height: 1.4;
}

.pdv-card-variant-btn.mud-button-root.mud-disabled {
    opacity: 0.4;
}

.pdv-card-variant-hint {
    color: #94a3b8;
}

.pdv-card-qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 10px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid var(--pdv-border);
}

.pdv-card-qty-label {
    color: #475569;
    font-weight: 600;
}

.pdv-card-qty-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pdv-card-qty-btn {
    background: #ffffff;
    border: 1px solid var(--pdv-border);
}

.pdv-card-price {
    font-size: 1.6rem;
    font-weight: 700;
}

.pdv-card-price-note {
    color: #94a3b8;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pdv-card-desc {
    color: #475569;
    line-height: 1.4;
    min-height: 38px;
}

.pdv-card-save {
    color: #16a34a;
    font-weight: 600;
    font-size: 0.75rem;
}

.pdv-card-cta {
    border-radius: 12px;
}

.pdv-card-cta-wrap {
    display: contents;
}

.pdv-card-cta.mud-button-root {
    background: #22c55e;
    color: #ffffff;
}

.pdv-card-cta.mud-button-root:hover {
    background: #16a34a;
}

.pdv-card-media {
    position: relative;
    width: 100%;
    height: 170px;
    border-radius: 14px 14px 0 0;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdv-card-media-img {
    /*width: 100%;*/
    height:90%;
    object-fit: cover;
    display: block;
}

.pdv-card-media-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    background: #f8fafc;
}

.pdv-card-media-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.pdv-card-media-btn-wrap {
    display: contents;
}

.pdv-card-media-prev {
    left: 6px;
}

.pdv-card-media-next {
    right: 6px;
}

.pdv-card-media-indicator {
    position: absolute;
    bottom: 6px;
    right: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.7);
    color: #f8fafc;
    font-size: 0.7rem;
    letter-spacing: 0.02em;
}

.pdv-product-clickable {
    cursor: pointer;
    user-select: none;
}

.pdv-product-in-cart {
    border: 2px solid #22c55e;
    box-shadow: 0 18px 36px rgba(34, 197, 94, 0.18);
}

.pdv-product-in-cart-chip {
    align-self: flex-start;
}

.pdv-product-disabled {
    opacity: 0.6;
    pointer-events: none;
}

.pdv-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.pdv-product-icon {
    font-size: 28px;
}

.pdv-product-red {
    background: #ffe4e6;
}

.pdv-product-yellow {
    background: #fef3c7;
}

.pdv-product-blue {
    background: #dbeafe;
}

.pdv-product-purple {
    background: #ede9fe;
}

.pdv-product-cyan {
    background: #cffafe;
}

.pdv-product-gold {
    background: #fef9c3;
}

.pdv-price {
    color: var(--pdv-primary);
    font-weight: 700;
}

.pdv-product-attrs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pdv-product-attr {
    font-size: 0.72rem;
    border-color: #cbd5f5;
    color: #475569;
    background: rgba(255, 255, 255, 0.6);
}

.pdv-table-card {
    margin-top: 18px;
}

.pdv-table th {
    color: var(--pdv-muted);
    font-size: 0.75rem;
}

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

.pdv-table th,
.pdv-table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--pdv-border);
}

.pdv-table th {
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pdv-summary-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 96px;
}

.pdv-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pdv-summary-customer {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--pdv-radius-sm);
    background: #f8fafc;
}

.pdv-customer-select {
    margin-top: 10px;
}

.pdv-empty-state {
    text-align: center;
    padding: 18px;
    border-radius: var(--pdv-radius-sm);
    background: #f8fafc;
}

.pdv-empty-icon {
    font-size: 38px;
    color: #94a3b8;
}

.pdv-summary-totals {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pdv-cart-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pdv-cart-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 12px;
    border-radius: var(--pdv-radius-sm);
    background: #f8fafc;
}

.pdv-cart-attrs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.pdv-cart-item-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.pdv-cart-qty {
    width: 92px;
}

.pdv-cart-item-total {
    font-weight: 600;
}

.pdv-stock-low {
    color: #b91c1c;
    font-weight: 600;
}

.pdv-row-error {
    background-color: var(--mud-palette-error);
    color: var(--mud-palette-error-contrast-text);
}

.pdv-row-warning {
    background-color: var(--mud-palette-warning);
    color: var(--mud-palette-warning-contrast-text);
}

.pdv-wrap {
    white-space: normal;
    word-break: break-word;
}

.pdv-summary-row {
    display: flex;
    justify-content: space-between;
}

.pdv-summary-total {
    font-weight: 700;
    color: var(--pdv-primary-strong);
}

.pdv-payment-grid .mud-button {
    border-radius: 12px;
}

.pdv-primary-action {
    margin-top: 8px;
}

.pdv-secondary-action {
    margin-top: 8px;
}

.pdv-action-grid {
    margin-top: 8px;
}

.pdv-credit-card {
    padding: 16px;
    border-radius: var(--pdv-radius-md);
    background: #f8fafc;
    border: 1px solid var(--pdv-border);
}

.pdv-credit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.pdv-credit-grid {
    margin-bottom: 8px;
}

.pdv-credit-total {
    margin-top: 8px;
    text-align: right;
    font-weight: 600;
    color: var(--pdv-primary-strong);
}

.pdv-status-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 16px 0 20px;
}

.pdv-status-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pdv-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.pdv-status-ok {
    background: #22c55e;
}

.pdv-status-warn {
    background: #f59e0b;
}

.pdv-muted {
    color: var(--pdv-muted);
}

.pdv-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}

.pdv-login-card {
    width: min(420px, 92vw);
    padding: 28px;
    border-radius: var(--pdv-radius-lg);
    background: var(--pdv-surface);
    box-shadow: var(--pdv-shadow);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pdv-branch-card {
    width: min(420px, 94vw);
}

.pdv-login-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pdv-login-logo {
    margin: 0 auto 6px;
    background: #e0edff;
    color: var(--pdv-primary);
}

.pdv-login-title {
    font-family: var(--pdv-font-display);
    font-weight: 700;
}
.pdv-body-color-white{
    background-color:#ffffff;
}

.pdv-login-subtitle {
    color: var(--pdv-muted);
}

.pdv-login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pdv-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pdv-login-alert {
    align-self: stretch;
}

.pdv-context {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 6px 12px;
    background: #f8fafc;
    border-radius: var(--pdv-radius-sm);
    border: 1px solid var(--pdv-border);
}

@keyframes pdv-fade-up {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .pdv-search-card {
        grid-template-columns: 1fr;
    }

    .pdv-products-toolbar {
        grid-template-columns: 1fr;
    }

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

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

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}
.td-disabled {
    opacity: 0.5;
    pointer-events: none; /* bloqueia clique */
    cursor: not-allowed;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

.pdv-notification-menu .mud-menu-list {
    min-width: 340px;
    padding: 8px 0;
}

.pdv-notification-item {
    min-width: 320px;
}

.pdv-notification-time {
    color: #94a3b8;
}

.pdv-notification-card {
    display: flex;
    flex-direction: column;
}

.pdv-print-root {
    padding: 24px 28px 40px;
    min-height: 100vh;
}

.pdv-print-card {
    box-shadow: var(--pdv-shadow);
}

.pdv-carnet {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pdv-carnet-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.pdv-carnet-title {
    font-family: var(--pdv-font-display);
    font-weight: 700;
}

.pdv-carnet-meta {
    text-align: right;
    min-width: 200px;
}

.pdv-carnet-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.pdv-carnet-info {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--pdv-border);
    background: #f8fafc;
}

.pdv-carnet-section-title {
    margin-bottom: 8px;
}

.pdv-carnet-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.pdv-carnet-table th,
.pdv-carnet-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--pdv-border);
    text-align: left;
}

.pdv-carnet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.pdv-carnet-parcela {
    border: 1px solid var(--pdv-border);
    border-radius: 14px;
    padding: 12px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pdv-carnet-qr {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 12px;
    background: #f8fafc;
}

.pdv-carnet-qr img {
    max-width: 180px;
    width: 100%;
    height: auto;
}

.pdv-receipt-root {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pdv-receipt-page {
    display: flex;
    flex-direction: column;
    gap: 6mm;
}

.pdv-receipt {
    border: 1px solid var(--pdv-border);
    border-radius: 12px;
    padding: 4mm;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 3mm;
    break-inside: avoid;
    height: 90mm;
    box-sizing: border-box;
}

.pdv-receipt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 2mm;
    border-bottom: 1px solid var(--pdv-border);
}

.pdv-receipt-header-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pdv-receipt-header-title {
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.8rem;
    color: #111827;
}

.pdv-receipt-header-parcela {
    font-size: 0.58rem;
    color: #475569;
    font-weight: 600;
}

.pdv-receipt-body {
    display: flex;
    gap: 4mm;
    flex: 1;
}

.pdv-receipt-left {
    flex: 1.4;
    display: flex;
    flex-direction: column;
    gap: 2.5mm;
}

.pdv-receipt-left-top {
    padding-bottom: 2mm;
    border-bottom: 1px dashed var(--pdv-border);
}

.pdv-receipt-left-bottom {
    display: flex;
    flex-direction: column;
    gap: 1.6mm;
}

.pdv-receipt-right {
    flex: 0.8;
    display: flex;
    flex-direction: column;
    gap: 2mm;
}

.pdv-receipt-amount {
    border: 1px solid #111827;
    border-radius: 6px;
    padding: 2px 6px;
    min-width: 46px;
    text-align: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.pdv-receipt-logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 2px solid #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.7rem;
}

.pdv-receipt-company {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdv-receipt-company-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.pdv-receipt-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #111827;
}

.pdv-receipt-sub,
.pdv-receipt-field,
.pdv-receipt-line {
    font-size: 0.64rem;
    color: #475569;
    line-height: 1.2;
}

.pdv-receipt-field span,
.pdv-receipt-line span {
    color: #111827;
    font-weight: 600;
    margin-right: 4px;
}

.pdv-receipt-blank {
    display: inline-block;
    min-width: 90px;
    border-bottom: 1px solid #111827;
}

.pdv-receipt-products {
    border: 1px dashed var(--pdv-border);
    border-radius: 6px;
    padding: 4px 6px;
    max-height: 14mm;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.58rem;
    color: #334155;
}

.pdv-receipt-product {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pdv-receipt-summary {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    font-size: 0.62rem;
    font-weight: 600;
    color: #111827;
}

.pdv-receipt-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px;
    border: 1px dashed var(--pdv-border);
    border-radius: 8px;
    background: #f8fafc;
    min-height: 22mm;
}

.pdv-receipt-qr img {
    max-width: 110px;
    width: 100%;
    height: auto;
}

.pdv-receipt-qr-label {
    font-weight: 600;
    font-size: 0.6rem;
}

.pdv-receipt-qr-link {
    font-size: 0.52rem;
    color: #475569;
    text-align: center;
    word-break: break-all;
}

.pdv-receipt-sign {
    border-top: 1px solid #111827;
    text-align: center;
    padding-top: 4px;
    font-size: 0.6rem;
    margin-top: auto;
}

.pdv-receipt-break {
    page-break-after: always;
}

@media print {
    @page {
        size: A4;
        margin: 10mm;
    }

    body {
        background: #ffffff !important;
    }

    .pdv-print-root {
        padding: 0;
    }

    .pdv-card,
    .pdv-print-card {
        box-shadow: none !important;
    }

    .pdv-receipt-page {
        gap: 6mm;
        page-break-after: always;
    }
}
