html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body.modal-open {
    overflow: hidden;
    overscroll-behavior: none;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: var(--cor-primaria);
    border-color: var(--cor-primaria);
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--cor-primaria-hover);
    border-color: var(--cor-primaria-hover);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.thermal-receipt-host {
    display: none;
}

@media print {
    @page {
        size: 80mm auto;
        margin: 0;
    }

    html,
    body {
        width: 80mm !important;
        min-width: 80mm !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    body * {
        visibility: hidden !important;
    }

    .thermal-receipt-host,
    .thermal-receipt-host * {
        visibility: visible !important;
    }

    .thermal-receipt-host {
        position: fixed !important;
        z-index: 2147483647 !important;
        top: 0 !important;
        left: 0 !important;
        display: block !important;
        width: 80mm !important;
        max-width: 80mm !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzP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MDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

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

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.admin-main-tabs {
    display: flex;
    gap: 22px;
    border-bottom: 1px solid #dfe6de;
    margin: 0 0 22px;
}

body:has(.admin-main-tabs) .floating-cart-button {
    display: none;
}

.admin-main-tab {
    min-height: 42px;
    border: 0;
    border-bottom: 2px solid transparent;
    padding: 0 2px;
    color: #68756e;
    background: transparent;
    cursor: pointer;
    font: 700 11px 'DM Sans', sans-serif;
}

.admin-main-tab.active {
    border-bottom-color: #d94d36;
    color: #202b25;
}

.admin-main-tab:focus-visible {
    outline: 2px solid #286148;
    outline-offset: 2px;
}

.performance-dashboard {
    display: grid;
    gap: 22px;
}

.dashboard-filter-row {
    display: flex;
    align-items: end;
    gap: 14px;
}

.dashboard-date-field {
    min-width: 180px;
    display: grid;
    gap: 6px;
}

.dashboard-date-field label {
    color: #435148;
    font-size: 11px;
    font-weight: 700;
}

.dashboard-date-field input {
    width: 100%;
    min-height: 42px;
    border: 1px solid #d9e1d9;
    border-radius: 4px;
    padding: 7px 10px;
    color: #202b25;
    background: #fff;
    font: 12px 'DM Sans', sans-serif;
}

.dashboard-date-field input:focus {
    border-color: #286148;
    outline: 3px solid rgba(40, 97, 72, .12);
}

.dashboard-filter-button {
    min-width: 100px;
    margin: 0;
}

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

.dashboard-kpi {
    min-width: 0;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid #e1e7e1;
    border-top: 3px solid #286148;
    border-radius: 5px;
    padding: 16px;
    background: #fff;
}

.dashboard-kpi-revenue {
    border-top-color: #d94d36;
}

.dashboard-kpi > span {
    color: #68756e;
    font-size: 10px;
    font-weight: 700;
}

.dashboard-kpi strong {
    color: #202b25;
    font: 500 24px 'Fraunces', Georgia, serif;
    overflow-wrap: anywhere;
}

.dashboard-kpi small {
    color: #87928a;
    font-size: 9px;
}

.dashboard-ranking {
    min-width: 0;
    border: 1px solid #e1e7e1;
    border-radius: 6px;
    padding: 20px;
    background: #fff;
}

.dashboard-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #edf0ec;
    padding-bottom: 14px;
}

.dashboard-section-heading .admin-eyebrow {
    margin-bottom: 3px;
}

.dashboard-section-heading h2 {
    margin: 0;
    color: #202b25;
    font: 500 20px 'Fraunces', Georgia, serif;
}

.dashboard-section-heading > span {
    color: #68756e;
    font-size: 10px;
}

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

.dashboard-ranking-table {
    width: 100%;
    border-collapse: collapse;
    color: #435148;
    font-size: 11px;
}

.dashboard-ranking-table th,
.dashboard-ranking-table td {
    border-bottom: 1px solid #edf0ec;
    padding: 11px 9px;
    text-align: right;
    white-space: nowrap;
}

.dashboard-ranking-table thead th {
    color: #68756e;
    font-size: 9px;
}

.dashboard-ranking-table th:first-child,
.dashboard-ranking-table td:first-child,
.dashboard-ranking-table th:nth-child(2) {
    text-align: left;
}

.dashboard-ranking-table tbody tr:last-child > * {
    border-bottom: 0;
}

.ranking-position {
    color: #87928a;
    font-size: 10px;
    font-weight: 700;
}

.ranking-store-identity {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: normal;
}

.ranking-store-identity img {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 4px;
    object-fit: cover;
}

.ranking-store-identity span {
    color: #202b25;
    font-weight: 700;
}

@media (max-width: 760px) {
    .dashboard-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-kpi:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .dashboard-filter-row {
        display: grid;
        grid-template-columns: 1fr;
    }

    .dashboard-date-field {
        min-width: 0;
    }

    .dashboard-filter-button {
        width: 100%;
    }

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

    .dashboard-kpi:last-child {
        grid-column: auto;
    }

    .dashboard-ranking {
        padding: 15px;
    }

    .dashboard-ranking-table {
        min-width: 520px;
    }
}

.admin-loja-tabs {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid #dfe6de;
    margin: 0 0 22px;
}

.admin-loja-tab {
    min-height: 42px;
    border: 0;
    border-bottom: 2px solid transparent;
    padding: 0 2px;
    color: #68756e;
    background: transparent;
    cursor: pointer;
    font: 700 11px 'DM Sans', sans-serif;
}

.admin-loja-tab.active {
    border-bottom-color: #d94d36;
    color: #202b25;
}

.admin-loja-tab:focus-visible {
    outline: 2px solid #286148;
    outline-offset: 2px;
}

.public-store-profile {
    width: min(100%, 680px);
}

.product-image-upload {
    min-width: 0;
    display: grid;
    gap: 7px;
    border: 1px solid #e1e7e1;
    border-radius: 4px;
    margin: 8px 0 2px;
    padding: 12px;
}

.product-image-upload legend {
    display: flex;
    gap: 8px;
    padding: 0 5px;
    color: #286148;
    font-size: 11px;
    font-weight: 700;
}

.product-image-upload legend span {
    color: #68756e;
    font-weight: 500;
}

.product-image-upload input[type="file"] {
    min-height: 38px;
    border: 1px dashed #bdd7c1;
    border-radius: 4px;
    padding: 7px;
    color: #435148;
    background: #f8faf7;
    font: 10px 'DM Sans', sans-serif;
}

.product-image-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-image-previews figure {
    position: relative;
    width: 74px;
    height: 74px;
    overflow: hidden;
    border: 1px solid #dfe6de;
    border-radius: 4px;
    margin: 0;
    background: #f3f6f2;
}

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

.product-image-previews button {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(32, 43, 37, .78);
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
}

.store-public-description {
    max-width: 620px;
    margin: 5px 0 13px;
    color: rgba(255, 255, 255, .9);
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.product-image-gallery {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.product-image-gallery-main {
    width: 100%;
    height: 94px;
    overflow: hidden;
    border-radius: 4px;
    background: #f3f6f2;
}

.product-image-gallery-main img {
    position: static;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
}

.product-image-gallery-thumbnails {
    min-width: 0;
    display: flex;
    gap: 4px;
    overflow-x: auto;
}

.product-image-gallery-thumbnails button {
    width: 31px;
    height: 25px;
    flex: 0 0 auto;
    overflow: hidden;
    border: 1px solid #d9e1d9;
    border-radius: 3px;
    padding: 0;
    background: #fff;
    cursor: pointer;
}

.product-image-gallery-thumbnails button.selected {
    border: 2px solid #d94d36;
}

.product-image-gallery-thumbnails img {
    position: static;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
}

.product-image-gallery-thumbnails button:focus-visible {
    outline: 2px solid #286148;
    outline-offset: 2px;
}

.product-customizer > .product-image-gallery {
    flex: 0 0 auto;
    padding: 12px 22px 0;
}

.product-customizer > .product-image-gallery .product-image-gallery-main {
    height: 145px;
}

.product-customizer > .product-image-gallery .product-image-gallery-thumbnails button {
    width: 48px;
    height: 36px;
}

@media (max-width: 520px) {
    .product-customizer > .product-image-gallery {
        padding-inline: 17px;
    }

    .product-customizer > .product-image-gallery .product-image-gallery-main {
        height: 125px;
    }
}

.store-management-panel {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 15px;
    border: 1px solid #e1e7e1;
    border-radius: 6px;
    padding: 18px;
    background: #fff;
}

.store-management-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid #edf0ec;
    padding-bottom: 12px;
}

.store-management-heading h2 {
    margin: 0;
    color: #202b25;
    font: 500 20px 'Fraunces', Georgia, serif;
}

.store-management-heading > span {
    color: #68756e;
    font-size: 10px;
    white-space: nowrap;
}

.store-management-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(150px, 190px);
    align-items: end;
    gap: 12px;
}

.store-search-field,
.store-status-filter {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.store-search-field label,
.store-status-filter label,
.store-dialog label {
    color: #435148;
    font-size: 10px;
    font-weight: 700;
}

.store-search-field > div {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
}

.store-management-toolbar input,
.store-management-toolbar select,
.store-dialog input,
.store-dialog select,
.store-dialog textarea {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    border: 1px solid #d9e1d9;
    border-radius: 4px;
    padding: 7px 9px;
    color: #202b25;
    background: #fff;
    font: 11px 'DM Sans', sans-serif;
}

.store-management-toolbar input:focus,
.store-management-toolbar select:focus,
.store-dialog input:focus,
.store-dialog select:focus,
.store-dialog textarea:focus {
    border-color: #286148;
    outline: 3px solid rgba(40, 97, 72, .12);
}

.store-search-field button,
.store-row-actions button,
.store-row-actions a,
.store-pagination button {
    min-height: 34px;
    border: 1px solid #bdd7c1;
    border-radius: 4px;
    padding: 6px 9px;
    color: #286148;
    background: #f3f8f2;
    cursor: pointer;
    font: 700 9px 'DM Sans', sans-serif;
    text-decoration: none;
    white-space: nowrap;
}

.store-search-field button:hover,
.store-row-actions button:hover,
.store-row-actions a:hover,
.store-pagination button:hover:not(:disabled) {
    color: #fff;
    background: #286148;
}

.store-management-table-wrap {
    width: 100%;
    overflow-x: auto;
    border-top: 1px solid #edf0ec;
}

.store-management-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    color: #435148;
    font-size: 10px;
}

.store-management-table th,
.store-management-table td {
    border-bottom: 1px solid #edf0ec;
    padding: 10px 8px;
    text-align: left;
    vertical-align: middle;
}

.store-management-table thead th {
    color: #68756e;
    font-size: 9px;
    white-space: nowrap;
}

.store-table-identity {
    min-width: 165px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.store-table-identity img {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    border-radius: 4px;
    object-fit: cover;
}

.store-table-identity > span {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.store-table-identity strong,
.store-table-identity small {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-table-identity strong {
    color: #202b25;
    font-size: 10px;
}

.store-table-identity small,
.store-audit-detail {
    color: #68756e;
    font-size: 9px;
}

.store-status-badge {
    display: inline-block;
    border-radius: 3px;
    padding: 4px 6px;
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}

.store-status-active { color: #275e45; background: #edf6ee; }
.store-status-inactive { color: #963c2e; background: #fff2ef; }
.store-status-blocked { color: #79531b; background: #fff5df; }

.store-audit-detail {
    max-width: 185px;
    display: block;
    margin-top: 4px;
    overflow-wrap: anywhere;
}

.store-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.store-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    color: #68756e;
    font-size: 10px;
}

.store-pagination button:disabled {
    border-color: #e1e7e1;
    color: #9aa39c;
    background: #f6f7f5;
    cursor: default;
}

.store-dialog-backdrop {
    position: fixed;
    z-index: 90;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(24, 34, 28, .52);
}

.store-dialog {
    width: min(500px, 100%);
    max-height: min(90dvh, 760px);
    overflow: auto;
    border: 1px solid #dfe6de;
    border-radius: 6px;
    padding: 20px;
    color: #202b25;
    background: #fff;
    box-shadow: 0 20px 60px rgba(15, 31, 20, .24);
}

.store-dialog > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #edf0ec;
    margin-bottom: 14px;
    padding-bottom: 12px;
}

.store-dialog > header h2 {
    margin: 0;
    font: 500 21px 'Fraunces', Georgia, serif;
}

.store-dialog-close {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border: 1px solid #d9e1d9;
    border-radius: 4px;
    color: #435148;
    background: #fff;
    cursor: pointer;
    font-size: 20px;
}

.store-dialog form {
    display: grid;
    gap: 7px;
}

.store-dialog textarea {
    min-height: 90px;
    resize: vertical;
}

.store-dialog form > footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 7px;
}

.store-dialog-cancel {
    min-height: 40px;
    border: 1px solid #d9e1d9;
    border-radius: 4px;
    padding: 8px 12px;
    color: #435148;
    background: #fff;
    cursor: pointer;
    font: 700 10px 'DM Sans', sans-serif;
}

.store-dialog .admin-submit-button { margin: 0; }

@media (max-width: 720px) {
    .store-management-toolbar { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .store-management-panel { padding: 14px; }
    .store-management-table { min-width: 760px; }
    .store-dialog-backdrop { align-items: end; padding: 0; }
    .store-dialog {
        width: 100%;
        max-height: 94dvh;
        border-radius: 8px 8px 0 0;
        padding: 18px 18px max(18px, env(safe-area-inset-bottom));
    }
}