﻿*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f5f5f5;
    color: #222;
    overflow-x: hidden;
}

body.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 0.9rem;
    background:
        radial-gradient(circle at 10% 15%, rgba(56, 189, 248, 0.18), transparent 40%),
        radial-gradient(circle at 86% 22%, rgba(34, 197, 94, 0.16), transparent 36%),
        linear-gradient(135deg, #e9f5ff 0%, #f3f9ff 48%, #eefbf3 100%);
}

.app {
    max-width: 960px;
    margin: 0 auto;
    padding: 1rem;
}

.login-page .app {
    width: min(100%, 980px);
    max-width: 980px;
    margin: 0;
    padding: 0;
}

h1, h2, h3 {
    margin-top: 0;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    flex-wrap: wrap;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid #e6edf5;
}

.admin-topbar h1 {
    margin: 0;
    font-size: 1.25rem;
    letter-spacing: 0.01em;
    color: #163a5f;
}

.admin-user-box {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    background: #f5f9ff;
    border: 1px solid #d7e5f6;
    border-radius: 999px;
    padding: 0.3rem 0.45rem 0.3rem 0.7rem;
}

.admin-user-text {
    font-size: 0.9rem;
    color: #444;
}

.admin-role-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.35rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.admin-role-badge.role-suporte {
    background: #e8f5e9;
    color: #1b5e20;
    border-color: #a5d6a7;
}

.admin-role-badge.role-administrador {
    background: #e3f2fd;
    color: #0d47a1;
    border-color: #90caf9;
}

.admin-role-badge.role-operador {
    background: #fff3e0;
    color: #e65100;
    border-color: #ffcc80;
}

.admin-role-badge.role-produtos {
    background: #e0f7fa;
    color: #006064;
    border-color: #80deea;
}

.admin-logout-form {
    margin: 0;
    display: inline-flex;
}

.admin-company-switch-form {
    gap: 0.4rem;
}

.admin-company-switch-select {
    width: auto;
    min-width: 190px;
}

.admin-company-active-note {
    font-size: 0.9rem;
    margin-top: 0.35rem;
}

.admin-sidebar-user-box {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #dce7f4;
    display: grid;
    gap: 0.75rem;
}

.admin-sidebar-user-head {
    display: grid;
    gap: 0.28rem;
}

.admin-sidebar-user-label {
    color: #5f6b79;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.admin-sidebar-user-form {
    display: grid;
    gap: 0.5rem;
    margin: 0;
}

.admin-sidebar-user-select-wrap {
    display: grid;
    gap: 0.35rem;
}

.card {
    background: #fff;
    border-radius: 0.5rem;
    padding: 1.25rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    margin-bottom: 1.5rem;
}

.login-page .card {
    border-radius: 16px;
    padding: 1.6rem;
    border: 1px solid #d4e6f8;
    box-shadow: 0 20px 46px rgba(17, 60, 96, 0.14);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(4px);
    margin-bottom: 0.75rem;
}

.login-shell {
    display: grid;
    gap: 0.9rem;
}

.login-hero {
    border-radius: 18px;
    border: 1px solid #cfe7dc;
    background: linear-gradient(140deg, #f6fffb 0%, #eef8ff 100%);
    padding: 1.25rem;
}

.login-hero .login-brand {
    margin-bottom: 0.5rem;
}

.login-hero-text {
    max-width: 40ch;
}

.login-hero-badges {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-top: 0.65rem;
}

.login-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid #b9d9f2;
    background: #ffffff;
    color: #21537c;
    padding: 0.2rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.login-card {
    margin-bottom: 0;
}

.login-mode-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.14rem 0.6rem;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1e40af;
}

.login-mode-tag.is-support {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.login-form-title {
    margin: 0.55rem 0 0.25rem 0;
}

.login-form-text {
    margin: 0 0 0.7rem 0;
}

.login-form {
    gap: 0.82rem;
}

.login-alt-link {
    margin-top: 0.65rem;
    font-size: 0.9rem;
}

.login-alt-link a {
    color: #1668c0;
    text-decoration: none;
    font-weight: 600;
}

.login-alt-link a:hover {
    text-decoration: underline;
}

.login-brand {
    display: inline-block;
    margin-bottom: 0.6rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #ebf3ff;
    border: 1px solid #c9dcff;
    color: #1758a8;
    font-size: 0.8rem;
    font-weight: 600;
}

.login-title {
    margin-bottom: 0.4rem;
}

form {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.9rem;
    color: #273648;
    min-width: 0;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
input[type="time"],
textarea,
select {
    width: 100%;
    max-width: 100%;
    min-height: 42px;
    padding: 0.55rem 0.65rem;
    border-radius: 0.4rem;
    border: 1px solid #c9d3df;
    background: #fff;
    font-size: 0.95rem;
    color: #1f2d3a;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
input[type="time"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #5b9fe2;
    box-shadow: 0 0 0 3px rgba(91, 159, 226, 0.18);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

button {
    padding: 0.55rem 0.9rem;
    border-radius: 0.3rem;
    border: none;
    font-size: 0.95rem;
    cursor: pointer;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1e88e5;
    color: #fff;
    border: none;
    text-decoration: none;
    padding: 0 0.95rem;
    min-width: 96px;
    width: auto;
    min-height: 38px;
    font-size: 0.95rem;
    line-height: 1;
    white-space: nowrap;
    text-align: center;
}

.btn-primary:hover {
    background: #1565c0;
}

.login-page input[type="email"],
.login-page input[type="password"] {
    background: #f7f9ff;
    border-color: #c8d8ff;
}

.login-page input[type="email"]:focus,
.login-page input[type="password"]:focus {
    outline: none;
    border-color: #4f8df0;
    box-shadow: 0 0 0 3px rgba(79, 141, 240, 0.18);
}

.login-page .btn-primary {
    width: 100%;
    border-radius: 14px;
    background: linear-gradient(135deg, #1773cc 0%, #0f5ca7 58%, #0a477f 100%);
    box-shadow: 0 14px 28px rgba(15, 92, 167, 0.24);
    letter-spacing: 0.02em;
    min-height: 48px;
    font-size: 1rem;
    font-weight: 700;
}

.login-page .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(15, 92, 167, 0.3);
}

.login-page .btn-primary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(79, 141, 240, 0.22), 0 18px 34px rgba(15, 92, 167, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2e7d32;
    color: #fff;
    border: none;
    text-decoration: none;
    padding: 0 0.9rem;
    min-width: 96px;
    width: auto;
    min-height: 38px;
    border-radius: 0.3rem;
    font-size: 0.95rem;
    cursor: pointer;
    text-align: center;
    line-height: 1;
    white-space: nowrap;
}

.btn-secondary:hover {
    background: #1b5e20;
}

.btn-highlight-green {
    background: #1f9d45;
    box-shadow: 0 0 0 2px rgba(31, 157, 69, 0.18);
}

.btn-highlight-green:hover {
    background: #16853a;
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #d32f2f;
    color: #fff;
    padding: 0 0.9rem;
    min-width: 96px;
    width: auto;
    min-height: 38px;
    text-align: center;
    line-height: 1;
    white-space: nowrap;
}

.btn-danger:hover {
    background: #b71c1c;
}

.flash {
    padding: 0.75rem 1rem;
    border-radius: 0.35rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.flash--error {
    background: #ffebee;
    color: #c62828;
}

.flash--success {
    background: #e8f5e9;
    color: #2e7d32;
}

.admin-menu {
    background: linear-gradient(180deg, #f7fbff 0%, #f4f9ff 100%);
    border: 1px solid #dce9f7;
    border-radius: 12px;
    padding: 0.45rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
    align-items: center;
}

.admin-menu a,
.admin-submenu-row a,
.admin-submenu-toggle {
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    border: 1px solid #c7d9ec;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    color: #23415d;
    background: #ffffff;
    transition: all 0.18s ease;
}

.admin-menu a,
.admin-submenu-row a,
.admin-submenu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
}

.nav-glyph {
    width: 1rem;
    min-width: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    line-height: 1;
    opacity: 0.9;
}

.admin-menu a:hover,
.admin-submenu-row a:hover,
.admin-submenu-toggle:hover {
    border-color: #9fc3e9;
    background: #eef6ff;
    transform: translateY(-1px);
}

.admin-menu a.is-active,
.admin-submenu-row a.is-active,
.admin-submenu-toggle.is-active {
    background: linear-gradient(135deg, #1e88e5 0%, #176cc2 100%);
    color: #fff;
    border-color: #176cc2;
    box-shadow: 0 6px 16px rgba(30, 136, 229, 0.22);
}

.admin-submenu-toggle {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-family: inherit;
}

.admin-menu-wrap {
    display: block;
}

.admin-submenu-row {
    display: none;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.6rem;
    padding: 0.6rem;
    border-radius: 12px;
    border: 1px dashed #d3e2f1;
    background: #fbfdff;
}

.admin-submenu-row.is-open {
    display: flex;
}

.admin-submenu-row a {
    background: #eef8f0;
    color: #fff;
    border-color: #b8e0be;
    color: #14532d;
}

.admin-submenu-row a:hover {
    background: #dff3e4;
    border-color: #8dc89a;
}

.admin-submenu-row a.is-active {
    background: linear-gradient(135deg, #1e88e5 0%, #176cc2 100%);
    border-color: #176cc2;
    color: #fff;
}

.admin-submenu {
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.text-muted {
    color: #666;
    font-size: 0.9rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

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

.table-scroll table {
    min-width: 1280px;
}

th, td {
    border: 1px solid #ddd;
    padding: 0.62rem;
    vertical-align: middle;
}

th {
    background: #eee;
    text-align: left;
}

.grid-2 {
    display: grid;
    gap: 1rem;
}

.crud-form {
    gap: 0.9rem;
    margin-top: 0;
}

.crud-section {
    border: 1px solid #e3eaf2;
    border-radius: 10px;
    padding: 1rem;
    background: linear-gradient(180deg, #fdfefe 0%, #f8fbff 100%);
}

.crud-section-title {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    color: #1f344b;
}

.crud-grid-2,
.crud-grid-3 {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.crud-grid-2 > *,
.crud-grid-3 > * {
    min-width: 0;
}

.crud-grid-2 .full-width,
.crud-grid-3 .full-width {
    grid-column: 1 / -1;
}

.crud-actions {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    align-items: center;
}

.crud-actions .company-save-feedback {
    flex-basis: 100%;
    margin: 0 0 0.25rem 0;
}

.crud-actions .btn-primary,
.crud-actions .btn-secondary,
.crud-actions .btn-danger {
    min-width: 136px;
    min-height: 40px;
}

.company-form-nav {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    margin: 0 0 0.9rem 0;
    padding: 0.2rem;
    border-radius: 12px;
    background: linear-gradient(180deg, #eef5fb 0%, #e7f0f8 100%);
    border: 1px solid #d7e4f1;
}

.company-form-nav__button {
    border: 0;
    border-radius: 999px;
    padding: 0.7rem 1rem;
    min-height: 40px;
    background: transparent;
    color: #33506d;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.company-form-nav__button:hover {
    background: rgba(255, 255, 255, 0.72);
    color: #173654;
}

.company-form-nav__button.is-active {
    background: linear-gradient(180deg, #2f7de1 0%, #1f69ca 100%);
    color: #fff;
    box-shadow: 0 8px 18px rgba(31, 105, 202, 0.2);
}

.company-form-panels-ready .company-form-panel {
    display: none;
}

.company-form-panels-ready .company-form-panel.is-active {
    display: block;
}

.company-fiscal-guidance {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin: 0 0 0.9rem 0;
}

.company-fiscal-status {
    margin: 0 0 0.9rem 0;
    padding: 0.95rem 1rem;
    border-radius: 12px;
    border: 1px solid #d8e4f0;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f8fc 100%);
}

.company-fiscal-status.is-ready {
    border-color: #bfe3c5;
    background: linear-gradient(180deg, #f5fff7 0%, #ebf9ee 100%);
}

.company-fiscal-status.is-homologation {
    border-color: #cfe0ff;
    background: linear-gradient(180deg, #f6f9ff 0%, #edf3ff 100%);
}

.company-fiscal-status.is-draft {
    border-color: #d8e4f0;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f8fc 100%);
}

.company-fiscal-status.is-pending {
    border-color: #ffd9ba;
    background: linear-gradient(180deg, #fff9f4 0%, #fff2e7 100%);
}

.company-fiscal-status__headline {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.45rem;
    color: #173654;
}

.company-fiscal-status__headline strong {
    color: #16344f;
}

.company-fiscal-status__headline span {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    font-weight: 700;
    color: #35506c;
}

.company-fiscal-stagebar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin: 0 0 0.75rem 0;
}

.company-fiscal-stagebar__step {
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    border: 1px solid #d7e4f1;
    background: rgba(255, 255, 255, 0.72);
    color: #5a7188;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
}

.company-fiscal-stagebar__step.is-active {
    border-color: #7cb0ef;
    background: linear-gradient(180deg, #eaf3ff 0%, #dcecff 100%);
    color: #1f4e84;
}

.company-fiscal-status__body,
.company-fiscal-status__list {
    margin: 0;
    color: #35506c;
    font-size: 0.93rem;
}

.company-fiscal-status__list {
    padding-left: 1.2rem;
}

.company-fiscal-status__list li {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.45rem;
}

.company-gap-action {
    border: 1px solid #d7e4f1;
    border-radius: 999px;
    padding: 0.28rem 0.65rem;
    background: #fff;
    color: #234562;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.company-gap-action:hover {
    background: #eef5fb;
}

.invoice-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.24rem 0.58rem;
    border-radius: 999px;
    border: 1px solid #d7e4f1;
    background: #f5f8fc;
    color: #35506c;
    font-size: 0.77rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.invoice-status-badge.is-draft {
    background: #f4f8fc;
    border-color: #d8e4f0;
    color: #48627b;
}

.invoice-status-badge.is-ready {
    background: #eef6ff;
    border-color: #c8ddff;
    color: #24548d;
}

.invoice-status-badge.is-transmitted,
.invoice-status-badge.is-consulted {
    background: #eef8ff;
    border-color: #bfe1f7;
    color: #1f6175;
}

.invoice-status-badge.is-issued {
    background: #edf9ef;
    border-color: #bfe3c5;
    color: #24623a;
}

.invoice-status-badge.is-pending {
    background: #fff7ea;
    border-color: #ffd9a7;
    color: #8a5a19;
}

.invoice-status-badge.is-error {
    background: #fff0f0;
    border-color: #f3c2c2;
    color: #9c2f2f;
}

.invoice-status-badge.is-cancelled,
.invoice-status-badge.is-neutral {
    background: #f3f5f8;
    border-color: #d5dde7;
    color: #596b7d;
}

.company-fiscal-guidance__item {
    border: 1px solid #d9e5f1;
    border-radius: 12px;
    padding: 0.85rem 0.95rem;
    background: linear-gradient(180deg, #fbfdff 0%, #f3f8fd 100%);
    color: #28425d;
    font-size: 0.93rem;
}

.company-fiscal-guidance__item strong {
    display: block;
    margin-bottom: 0.2rem;
    color: #16344f;
}

.company-fiscal-guidance__item--critical {
    border-color: #ffd6b0;
    background: linear-gradient(180deg, #fff9f2 0%, #fff1e3 100%);
}

.company-field {
    position: relative;
}

.company-field-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 0.45rem;
    padding: 0.18rem 0.48rem;
    border-radius: 999px;
    background: #eef4fb;
    color: #35506c;
    font-size: 0.72rem;
    font-weight: 700;
    vertical-align: middle;
}

.company-field--required-live {
    padding: 0.8rem;
    border: 1px solid #ffd6b0;
    border-radius: 12px;
    background: linear-gradient(180deg, #fffdf9 0%, #fff6eb 100%);
}

.crud-form .field-with-button {
    gap: 0.55rem;
}

.crud-form .crud-grid-2 label,
.crud-form .crud-grid-3 label {
    margin: 0;
}

.crud-form .crud-grid-2 input[type="text"],
.crud-form .crud-grid-2 input[type="tel"],
.crud-form .crud-grid-2 input[type="email"],
.crud-form .crud-grid-2 input[type="password"],
.crud-form .crud-grid-2 input[type="date"],
.crud-form .crud-grid-2 input[type="number"],
.crud-form .crud-grid-2 input[type="time"],
.crud-form .crud-grid-2 select,
.crud-form .crud-grid-2 textarea,
.crud-form .crud-grid-3 input[type="text"],
.crud-form .crud-grid-3 input[type="tel"],
.crud-form .crud-grid-3 input[type="email"],
.crud-form .crud-grid-3 input[type="password"],
.crud-form .crud-grid-3 input[type="date"],
.crud-form .crud-grid-3 input[type="number"],
.crud-form .crud-grid-3 input[type="time"],
.crud-form .crud-grid-3 select,
.crud-form .crud-grid-3 textarea {
    width: 100%;
}

.crud-search-form {
    gap: 0.6rem;
}

.crud-search-form .actions-row {
    margin-top: 0.1rem;
}

.actions-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.actions-row form {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: auto;
}

.actions-row form .btn-primary,
.actions-row form .btn-secondary,
.actions-row form .btn-danger,
.actions-row form button {
    min-height: 40px;
}

.actions-row input[type="text"],
.actions-row input[type="email"],
.actions-row input[type="number"],
.actions-row input[type="date"],
.actions-row input[type="time"],
.actions-row select {
    flex: 1 1 220px;
    min-width: 160px;
}

.actions-row .btn-primary,
.actions-row .btn-secondary,
.actions-row .btn-danger,
.actions-row button {
    width: auto;
    min-width: 110px;
    min-height: 38px;
    padding: 0 0.9rem;
    font-size: 0.92rem;
    white-space: nowrap;
}

.crud-card {
    border: 1px solid #dbe5f2;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(15, 40, 70, 0.06);
}

.crud-card > h2,
.crud-card > h3 {
    margin-bottom: 0.35rem;
    color: #173654;
}

.crud-card > .text-muted {
    margin-top: 0.1rem;
    margin-bottom: 0.8rem;
}

.crud-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #d7e3f0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.crud-table thead th {
    background: #edf4fb;
    color: #1d3853;
    font-weight: 700;
    border-bottom: 1px solid #d0dcea;
}

.crud-table tbody tr:nth-child(even) {
    background: #f9fcff;
}

.crud-table tbody tr:hover {
    background: #f1f7ff;
}

.crud-table td,
.crud-table th {
    border-right: 1px solid #e2eaf3;
}

.crud-table td:last-child,
.crud-table th:last-child {
    border-right: 0;
}

.admin-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid #d7e3f0;
    border-radius: 12px;
    background: #f8fbff;
}

.admin-pagination__summary {
    color: #48617a;
    font-size: 0.92rem;
}

.admin-pagination__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.admin-pagination__link,
.admin-pagination__ellipsis {
    min-width: 2rem;
    padding: 0.38rem 0.58rem;
    border-radius: 999px;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1;
}

.admin-pagination__link {
    border: 1px solid #b9cce0;
    color: #173654;
    background: #fff;
    text-decoration: none;
}

.admin-pagination__link:hover {
    border-color: #1f73c9;
    color: #0f5fb1;
    background: #edf6ff;
}

.admin-pagination__link.is-current {
    border-color: #1f73c9;
    color: #fff;
    background: #1f73c9;
    font-weight: 700;
}

.admin-pagination__ellipsis {
    color: #6a7f94;
}

.event-address-row {
    display: grid;
    grid-template-columns: minmax(100px, 0.8fr) minmax(180px, 1.8fr);
    gap: 0.5rem;
    align-items: end;
}

.event-city-state-row {
    display: grid;
    grid-template-columns: minmax(160px, 1.9fr) minmax(72px, 0.7fr);
    gap: 0.5rem;
    align-items: end;
}

.json-suggest-field {
    position: relative;
}

.json-suggest-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 20;
    display: grid;
    gap: 0;
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.json-suggest-option {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #eef2f7;
    background: #fff;
    padding: 0.7rem 0.85rem;
    text-align: left;
    font: inherit;
    color: #0f172a;
    cursor: pointer;
}

.json-suggest-option:last-child {
    border-bottom: 0;
}

.json-suggest-option:hover,
.json-suggest-option:focus {
    background: #eef6ff;
    outline: 0;
}

.client-freight-note {
    background: #f1f3f5;
    border: 1px solid #e1e5ea;
    border-radius: 8px;
    padding: 0.55rem 0.7rem;
}

.is-hidden {
    display: none;
}

.no-margin {
    margin: 0;
}

.u-mb-1 {
    margin-bottom: 1rem;
}

.u-mb-075 {
    margin-bottom: 0.75rem;
}

.u-mt-1 {
    margin-top: 1rem;
}

.u-mt-075 {
    margin-top: 0.75rem;
}

.u-mt-0 {
    margin-top: 0;
}

.u-m-0 {
    margin: 0;
}

.u-my-1 {
    margin: 1rem 0;
}

.u-mb-09 {
    margin-bottom: 0.9rem;
}

.u-mb-065 {
    margin-bottom: 0.65rem;
}

.u-mb-06 {
    margin-bottom: 0.6rem;
}

.u-mb-055 {
    margin-bottom: 0.55rem;
}

.u-mb-05 {
    margin-bottom: 0.5rem;
}

.u-mb-035 {
    margin-bottom: 0.35rem;
}

.u-mt-09 {
    margin-top: 0.9rem;
}

.u-mt-08 {
    margin-top: 0.8rem;
}

.u-mt-055 {
    margin-top: 0.55rem;
}

.u-mt-05 {
    margin-top: 0.5rem;
}

.u-mt-045 {
    margin-top: 0.45rem;
}

.u-mt-035 {
    margin-top: 0.35rem;
}

.u-mt-025 {
    margin-top: 0.25rem;
}

.no-mt {
    margin-top: 0;
}

.btn-inline {
    width: auto;
    padding: 0 0.9rem;
}

.btn-inline-block {
    display: inline-block;
}

.btn-inline-sm {
    width: auto;
    padding: 0 0.8rem;
}

.btn-inline-xs {
    width: auto;
    padding: 0.2rem 0.7rem;
}

.btn-fixed-140 {
    width: 140px;
    padding: 0 0.9rem;
}

.btn-inline-nowrap {
    width: auto;
    padding: 0 0.9rem;
    white-space: nowrap;
}

.inline-help {
    display: inline-block;
    margin-left: 0.35rem;
    position: relative;
    vertical-align: middle;
}

.inline-help summary {
    align-items: center;
    background: #eef6ff;
    border: 1px solid #9cc7f2;
    border-radius: 999px;
    color: #0f4c81;
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    height: 28px;
    justify-content: center;
    list-style: none;
    width: 28px;
}

.inline-help summary::-webkit-details-marker {
    display: none;
}

.inline-help__content {
    background: #ffffff;
    border: 1px solid #c7d8eb;
    border-radius: 12px;
    box-shadow: 0 14px 35px rgba(15, 76, 129, 0.18);
    color: #14365a;
    font-size: 0.88rem;
    line-height: 1.45;
    padding: 0.75rem;
    position: absolute;
    right: 0;
    top: 34px;
    width: 320px;
    z-index: 20;
}

.customer-main-grid .customer-doc-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 180px minmax(220px, 1fr) 220px;
    gap: 0.6rem;
    align-items: end;
}

@media (max-width: 900px) {
    .customer-main-grid .customer-doc-row {
        grid-template-columns: 1fr;
    }
}

.supplier-main-grid .supplier-top-row,
.supplier-main-grid .supplier-contact-row,
.supplier-main-grid .supplier-address-row,
.supplier-main-grid .supplier-location-row {
    grid-column: 1 / -1;
    display: grid;
    gap: 0.6rem;
    align-items: end;
}

.supplier-main-grid .supplier-top-row {
    grid-template-columns: 180px minmax(240px, 1fr) 180px minmax(220px, 1fr);
}

.supplier-main-grid .supplier-contact-row {
    grid-template-columns: 180px minmax(180px, 1fr) minmax(220px, 1fr);
}

.supplier-main-grid .supplier-address-row {
    grid-template-columns: 140px minmax(220px, 1fr) 120px minmax(220px, 1fr);
}

.supplier-main-grid .supplier-location-row {
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) 120px;
}

@media (max-width: 1100px) {
    .supplier-main-grid .supplier-top-row,
    .supplier-main-grid .supplier-contact-row,
    .supplier-main-grid .supplier-address-row,
    .supplier-main-grid .supplier-location-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .supplier-main-grid .supplier-top-row,
    .supplier-main-grid .supplier-contact-row,
    .supplier-main-grid .supplier-address-row,
    .supplier-main-grid .supplier-location-row {
        grid-template-columns: 1fr;
    }
}

.print-density-control {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-right: 0.3rem;
    padding: 0.35rem 0.55rem;
    border: 1px solid #d5dbe5;
    border-radius: 999px;
    background: #f7f9fc;
}

.print-density-control label {
    margin: 0;
    font-size: 0.88rem;
    color: #374151;
    white-space: nowrap;
}

.actions-row .print-density-control input[type="number"] {
    flex: 0 0 84px;
    width: 84px;
    min-width: 84px;
    max-width: 84px;
    text-align: center;
    min-height: 36px;
    padding: 0 0.35rem;
}

.print-density-suffix {
    font-size: 0.85rem;
    color: #4b5563;
    white-space: nowrap;
}

.print-density-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e8eef9;
    color: #2d5aa6;
    font-size: 12px;
    margin-right: 0.2rem;
}

.print-actions-row {
    align-items: center;
}

.print-layout-control {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.55rem;
    border: 1px solid #d5dbe5;
    border-radius: 999px;
    background: #f7f9fc;
}

.print-layout-control label {
    margin: 0;
    font-size: 0.88rem;
    color: #374151;
    white-space: nowrap;
}

.actions-row .print-layout-control select {
    flex: 0 0 auto;
    width: auto;
    min-width: 200px;
    min-height: 36px;
}

@media (max-width: 768px) {
    .print-actions-row {
        align-items: stretch;
    }

    .print-actions-row .print-density-control {
        width: 100%;
        justify-content: flex-start;
    }

    .print-actions-row .print-layout-control {
        width: 100%;
        justify-content: flex-start;
    }

    .actions-row .print-layout-control select {
        min-width: 0;
        width: 100%;
    }
}

.btn-mini {
    min-height: 24px;
    padding: 0 6px;
    font-size: 11px;
    width: auto;
}

.btn-mini-primary {
    background: #1b8f3a;
    color: #fff;
    border-color: #1b8f3a;
}

.overflow-auto {
    overflow: auto;
}

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

.activity-logs-wrap {
    overflow-x: auto;
}

.activity-col-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.9rem;
    align-items: center;
    margin: 0.25rem 0 0.7rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid #d7e3f0;
    border-radius: 8px;
    background: #f7fbff;
    font-size: 0.86rem;
}

.activity-col-controls label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    cursor: pointer;
    user-select: none;
}

.activity-logs-table {
    min-width: 1020px;
    table-layout: auto;
}

.activity-logs-table th,
.activity-logs-table td {
    font-size: 0.84rem;
    padding: 0.48rem 0.42rem;
    vertical-align: top;
}

.activity-logs-table th:nth-child(1),
.activity-logs-table td:nth-child(1) {
    width: 56px;
    white-space: nowrap;
}

.activity-logs-table th:nth-child(2),
.activity-logs-table td:nth-child(2) {
    width: 138px;
    white-space: nowrap;
}

.activity-logs-table th:nth-child(4),
.activity-logs-table td:nth-child(4),
.activity-logs-table th:nth-child(5),
.activity-logs-table td:nth-child(5),
.activity-logs-table th:nth-child(7),
.activity-logs-table td:nth-child(7),
.activity-logs-table th:nth-child(9),
.activity-logs-table td:nth-child(9) {
    white-space: nowrap;
}

.activity-logs-table th:nth-child(8),
.activity-logs-table td:nth-child(8) {
    min-width: 280px;
    max-width: 420px;
    word-break: break-word;
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {
    .activity-col-controls {
        gap: 0.4rem 0.7rem;
        font-size: 0.82rem;
    }
    .activity-logs-table {
        min-width: 900px;
    }
}

.products-manage-wrap {
    overflow-x: auto;
}

.products-manage-table {
    min-width: 1500px !important;
    width: 100%;
    table-layout: auto;
}

.products-manage-table th,
.products-manage-table td {
    padding: 0.45rem 0.4rem;
    font-size: 0.85rem;
    word-break: break-word;
    overflow-wrap: anywhere;
    vertical-align: middle;
}

.products-manage-table th:nth-child(1),
.products-manage-table td:nth-child(1) {
    width: 14%;
}

.products-manage-table th:nth-child(2),
.products-manage-table td:nth-child(2) {
    width: 7%;
    text-align: center;
}

.products-manage-table th:nth-child(11),
.products-manage-table td:nth-child(11) {
    width: 8%;
}

.products-manage-table th:nth-child(12),
.products-manage-table td:nth-child(12) {
    width: 16%;
    min-width: 246px;
}

.products-manage-table .product-list-thumb {
    width: 44px;
    height: 44px;
}

.products-manage-actions {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    align-items: stretch;
    min-width: 220px;
}

.products-manage-actions .btn-primary,
.products-manage-actions .btn-secondary,
.products-manage-actions .btn-danger,
.products-manage-actions button,
.products-manage-actions form {
    width: 100%;
    min-width: 0;
}

.products-manage-actions .btn-secondary,
.products-manage-actions .btn-danger,
.products-manage-actions form button {
    min-height: 38px;
    padding: 0 0.75rem;
    white-space: nowrap;
    justify-content: center;
}

html {
    scroll-behavior: smooth;
}

.section-focus-flash {
    box-shadow: 0 0 0 3px rgba(43, 135, 232, 0.25), 0 12px 24px rgba(16, 62, 108, 0.12) !important;
    transition: box-shadow 0.25s ease;
}

.table-scroll-220 {
    max-height: 220px;
    overflow: auto;
}

.p-08 {
    padding: 0.8rem;
}

.p-075 {
    padding: 0.75rem;
}

.u-mb-08 {
    margin-bottom: 0.8rem;
}

.company-select {
    width: 100%;
    max-width: 360px;
}

.company-select-wide {
    width: 100%;
    max-width: 420px;
}

.inline-check {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.inline-check-gap {
    margin: 0.35rem 0;
    gap: 0.5rem;
}

.smtp-provider-help {
    margin: 0.35rem 0 0.75rem 0;
}

.card-success-border {
    border: 2px solid #2e7d32;
}

.btn-company-delete {
    width: 196px;
    max-width: 100%;
    padding: 0 0.9rem;
    white-space: nowrap;
}

.product-main-thumb {
    width: 88px;
    height: 88px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #f6f6f6;
}

.mass-preview-wrap {
    margin-top: 0.9rem;
}

.mass-preview-title {
    margin: 0 0 0.45rem 0;
}

.mass-preview-summary {
    margin-bottom: 0.45rem;
}

.product-list-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.product-gallery {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.product-gallery-item {
    display: grid;
    gap: 4px;
}

.product-gallery-thumb {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f6f6f6;
}

.product-gallery-thumb.is-primary {
    border-color: #1b8f3a;
}

.file-list-scroll {
    overflow: auto;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.45rem 0.6rem;
    background: #fafafa;
}

.file-list-scroll-lg {
    max-height: 180px;
}

.file-list-scroll-md {
    max-height: 160px;
}

.font-mono-sm {
    font-family: monospace;
    font-size: 0.83rem;
}

.hash-cell {
    font-family: monospace;
    word-break: break-all;
}

.damage-card {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px;
    margin-bottom: 8px;
}

.finance-chart-month {
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
}

.finance-chart-stack {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
}

.finance-chart-line {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.finance-chart-progress {
    height: 10px;
    width: min(100%, 260px);
    border: 0;
    border-radius: 999px;
    overflow: hidden;
    -webkit-appearance: none;
    appearance: none;
}

.finance-chart-progress::-webkit-progress-bar {
    background: #e5e7eb;
    border-radius: 999px;
}

.finance-chart-progress::-webkit-progress-value {
    border-radius: 999px;
}

.finance-chart-progress::-moz-progress-bar {
    border-radius: 999px;
}

.finance-chart-progress--receber::-webkit-progress-value {
    background: #2e7d32;
}

.finance-chart-progress--receber::-moz-progress-bar {
    background: #2e7d32;
}

.finance-chart-progress--pagar::-webkit-progress-value {
    background: #c62828;
}

.finance-chart-progress--pagar::-moz-progress-bar {
    background: #c62828;
}

.finance-chart-progress--saldo::-webkit-progress-value {
    background: #1565c0;
}

.finance-chart-progress--saldo::-moz-progress-bar {
    background: #1565c0;
}

.finance-chart-label {
    width: 56px;
    font-size: 0.8rem;
}

.finance-chart-label--receber {
    color: #2e7d32;
}

.finance-chart-label--pagar {
    color: #c62828;
}

.finance-chart-label--saldo {
    color: #1565c0;
}

.finance-chart-value {
    font-size: 0.8rem;
}

.text-success {
    color: #2e7d32;
}

.text-danger {
    color: #c62828;
}

.text-sm {
    font-size: 0.82rem;
}

.selected-items-list {
    display: grid;
    gap: 0.5rem;
}

.client-order-summary {
    margin-top: 0.75rem;
    border: 1px solid #d9e7f5;
    border-radius: 10px;
    background: #f8fbff;
    padding: 0.7rem;
}

.client-order-summary--focus {
    border-color: #5aa0db;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.28), 0 8px 20px rgba(22, 58, 95, 0.12);
    animation: clientSummaryPulse 0.55s ease-in-out 2;
}

.client-order-summary__title {
    margin: 0 0 0.45rem 0;
    font-size: 1rem;
    color: #184264;
}

.client-order-summary__total {
    margin-top: 0.55rem;
    border-radius: 8px;
    padding: 0.55rem 0.7rem;
    border: 1px solid #c7dcf0;
    background: #eaf4ff;
    color: #123a5a;
    font-weight: 700;
}

.client-order-empty {
    border: 1px dashed #c6d6e8;
    border-radius: 8px;
    padding: 0.6rem;
    color: #5a6b79;
    background: #ffffff;
}

.selected-item-row {
    margin: 0;
    border: 1px solid #d8e4f1;
    border-radius: 8px;
    background: #fff;
    padding: 0.55rem;
    align-items: center;
}

.selected-item-info {
    flex: 1 1 auto;
    min-width: 0;
}

.selected-item-title {
    font-weight: 700;
    color: #1b3650;
    margin-bottom: 0.12rem;
}

.selected-item-meta {
    font-size: 0.84rem;
    color: #4f6376;
}

.selected-item-qty {
    width: 84px;
    text-align: center;
}

#order-lock-warning a {
    font-weight: 700;
}

body.client-page details {
    margin: 0.45rem 0;
    border: 1px solid #d9e2ef;
    border-radius: 8px;
    padding: 0.5rem 0.6rem;
    background: #f8fbff;
}

body.client-page details > summary {
    cursor: pointer;
}

.client-add-feedback {
    margin-top: 0.35rem;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    color: #1b5e20;
    font-size: 0.88rem;
}

.client-add-feedback.is-visible {
    animation: fadeInOutSoft 1.8s ease;
}

.client-add-prompt {
    position: fixed;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    width: min(520px, calc(100vw - 1.2rem));
    z-index: 1200;
    padding: 0.75rem 0.8rem;
    border-radius: 12px;
    border: 1px solid #b9d6ee;
    background: linear-gradient(180deg, #fafdff 0%, #eef7ff 100%);
    box-shadow: 0 10px 28px rgba(22, 58, 95, 0.2);
    animation: clientPromptIn 0.2s ease-out;
}

.client-add-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
    z-index: 1150;
}

.client-add-prompt.client-add-prompt--anchored {
    bottom: auto;
    transform: none;
    width: min(520px, calc(100vw - 1rem));
}

.client-add-prompt__title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #134165;
    margin-bottom: 0.22rem;
}

.client-add-prompt__text {
    font-size: 0.88rem;
    color: #194a72;
    margin-bottom: 0.45rem;
    line-height: 1.35;
}

.client-add-prompt__actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.client-add-prompt__actions .btn-primary,
.client-add-prompt__actions .btn-secondary {
    min-height: 36px;
    padding: 0 0.8rem;
}

@keyframes clientPromptIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes clientSummaryPulse {
    0% { transform: translateY(0); }
    50% { transform: translateY(-1px); }
    100% { transform: translateY(0); }
}

.selected-item-row {
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.selected-item-row.is-just-added {
    border-color: #2e7d32;
    box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.15);
}

.client-summary-card {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.client-summary-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

.client-summary-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    border: 1px solid #cce7d1;
    background: #edf8ef;
    color: #1f7a2f;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.client-summary-values {
    display: grid;
    gap: 0.35rem;
    padding: 0.75rem;
    border: 1px solid #e6e8eb;
    border-radius: 8px;
    background: #fafbfd;
}

.client-summary-values p {
    margin: 0;
}

.client-summary-amount-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    margin-top: 0.4rem;
}

.client-summary-amount {
    display: grid;
    gap: 0.2rem;
    padding: 0.6rem 0.7rem;
    border-radius: 8px;
    border: 1px solid #dce3ea;
    background: #fff;
}

.client-summary-amount--primary {
    border-color: #bcd5f7;
    background: linear-gradient(180deg, #eef5ff 0%, #ffffff 100%);
}

.client-summary-amount__label {
    color: #4d5a68;
    font-size: 0.82rem;
}

.client-summary-amount__value {
    font-size: 1.15rem;
    line-height: 1.2;
    color: #112233;
}

.client-summary-actions {
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.client-summary-actions .btn-primary,
.client-summary-actions .btn-secondary,
.client-summary-actions .btn-danger {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-width: 190px;
}

.client-summary-inline-form {
    display: inline-flex;
    margin: 0;
}

.client-summary-actions .btn-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.client-summary-actions .btn-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    display: block;
}

.client-summary-pix-card {
    border: 1px solid #d9eadc;
    background: linear-gradient(180deg, #f7fcf8 0%, #ffffff 100%);
}

.client-summary-pix-grid {
    display: grid;
    gap: 0.35rem;
}

.client-summary-pix-grid p {
    margin: 0;
}

.client-summary-pix-key {
    word-break: break-word;
}

.order-actions-summary-card {
    border: 1px solid #d8e6f3;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.order-actions-summary-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
    margin-bottom: 0.9rem;
}

.order-actions-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
}

.order-actions-summary-item {
    display: grid;
    gap: 0.18rem;
    padding: 0.6rem 0.7rem;
    border-radius: 10px;
    border: 1px solid #dce7f3;
    background: #ffffff;
}

.order-actions-summary-label {
    color: #5a6877;
    font-size: 0.78rem;
}

.order-status-inline-form {
    display: grid;
    gap: 0.25rem;
}

.order-customer-inline-form {
    display: grid;
    gap: 0.25rem;
}

.order-customer-inline-select,
.order-status-inline-select {
    min-height: 32px;
    padding: 0.28rem 1.9rem 0.28rem 0.5rem;
    font-size: 0.84rem;
}

.order-actions-summary-note {
    margin: 0.85rem 0 0 0;
}

.order-actions-topbar {
    margin-top: 1rem;
}

.order-actions-footer {
    margin-top: 1rem;
    justify-content: flex-end;
}

.order-damages-editor-container {
    display: grid;
    gap: 0.5rem;
}

.order-partner-stock-card {
    border-color: #cfe4d8;
    background: #fbfffc;
}

.checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.65rem 0;
    font-weight: 700;
}

.flash--warning {
    background: #fff7df;
    border: 1px solid #f2d27a;
    color: #7a5200;
}

.order-partner-stock-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(260px, 2fr);
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.order-partner-grid-wide {
    grid-column: 1 / -1;
}

.order-partner-items-container {
    display: grid;
    gap: 0.5rem;
}

.order-partner-editor-row {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) 70px 100px 128px 128px minmax(180px, 1.5fr) auto;
    gap: 0.5rem;
    align-items: end;
    background: #fbfdff;
    border: 1px solid #d8eadf;
    border-radius: 10px;
    padding: 0.55rem;
}

.order-partner-editor-row label {
    margin: 0;
    font-size: 0.8rem;
}

.order-damage-editor-row {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) minmax(180px, 2fr) 110px 130px auto;
    gap: 0.5rem;
    align-items: end;
    background: #fbfdff;
    border: 1px solid #dce7f3;
    border-radius: 10px;
    padding: 0.55rem;
}

.order-damage-editor-row label {
    margin: 0;
    font-size: 0.8rem;
}

.order-items-editor-container {
    display: grid;
    gap: 0.5rem;
}

.order-item-editor-row {
    display: grid;
    grid-template-columns: minmax(220px, 2.4fr) 88px 122px 122px 116px auto;
    gap: 0.5rem;
    align-items: end;
    padding: 0.55rem 0.6rem;
    border: 1px solid #dbe6f3;
    border-radius: 8px;
    background: #fbfdff;
}

.order-item-editor-row label {
    margin: 0;
    font-size: 0.8rem;
}

.order-item-subtotal-box {
    display: grid;
    gap: 0.18rem;
    align-self: stretch;
    padding: 0.45rem 0.55rem;
    border-radius: 8px;
    border: 1px solid #dbe6f3;
    background: #fff;
}

.order-item-remove {
    min-height: 34px;
}

.order-item-editor-row input[type="number"],
.order-item-editor-row input[type="text"],
.order-item-editor-row select {
    min-height: 34px;
    padding: 0.35rem 0.5rem;
    font-size: 0.84rem;
}

.order-damage-editor-row input[type="text"],
.order-partner-editor-row input[type="date"],
.order-partner-editor-row input[type="number"],
.order-partner-editor-row input[type="text"],
.order-partner-editor-row select,
.order-damage-editor-row select {
    min-height: 34px;
    padding: 0.35rem 0.5rem;
    font-size: 0.84rem;
}

.order-item-subtotal-box .order-actions-summary-label {
    font-size: 0.74rem;
}

.order-item-subtotal {
    font-size: 0.88rem;
}

@keyframes fadeInOutSoft {
    0% { opacity: 0; transform: translateY(4px); }
    12% { opacity: 1; transform: translateY(0); }
    82% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-3px); }
}

.cursor-pointer {
    cursor: pointer;
}

.overflow-hidden {
    overflow: hidden;
}

.overlay-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.overlay-modal.is-hidden {
    display: none;
}

.overlay-modal-card {
    max-width: 760px;
    width: 100%;
    max-height: 88vh;
    overflow: auto;
}

.share-contract-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2000;
    padding: 1rem;
}

.share-contract-modal-card {
    max-width: 520px;
    margin: 6vh auto;
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.share-contract-steps {
    margin: 0 0 1rem 1.1rem;
    padding: 0;
    line-height: 1.5;
}

.selected-customer-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0.1rem 0.2rem 0.1rem 0;
    padding: 0.2rem 0.45rem;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 999px;
}

.selected-customer-chip-remove {
    border: 0;
    background: transparent;
    color: #b91c1c;
    cursor: pointer;
    font-weight: 700;
}

.session-row-foreign {
    background: #fdeaea;
}

.session-row-suspicious {
    background: #fff5e6;
}

.session-row-support {
    background: #eaf3ff;
}

.monitor-alert-tag {
    font-weight: 700;
}

.monitor-alert-tag--spaced {
    margin-left: 0.45rem;
}

.monitor-alert-tag--foreign {
    color: #b00020;
}

.monitor-alert-tag--suspicious {
    color: #b36b00;
}

.monitor-alert-tag--support {
    color: #0b4f9a;
}

.link-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(112px, 1fr));
    gap: 0.45rem;
    width: 100%;
    align-items: stretch;
}

.link-actions form {
    display: block;
    margin: 0;
    width: 100%;
}

.link-actions .btn-primary,
.link-actions .btn-secondary,
.link-actions .btn-danger,
.link-actions form button {
    display: inline-flex;
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 0.55rem 0.7rem;
    font-size: 0.9rem;
    white-space: normal;
    justify-content: center;
    text-align: center;
}

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

.admin-links-table {
    width: 100%;
    min-width: 1080px;
}

.admin-links-table th:last-child,
.admin-links-table td:last-child {
    width: 280px;
    min-width: 280px;
}

.admin-links-actions-cell {
    vertical-align: top;
}

.admin-links-table td input[readonly] {
    width: 100%;
}

.admin-orders-filter-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.6fr) repeat(3, minmax(180px, 1fr));
    gap: 0.8rem;
    align-items: end;
}

.admin-orders-filter-actions {
    margin-top: 0.85rem;
}

.admin-orders-card {
    padding: 0.95rem 1rem;
}

.admin-orders-card > h2 {
    margin-bottom: 0.2rem;
    font-size: 1.05rem;
}

.admin-orders-filter-form {
    gap: 0.45rem;
    margin-bottom: 0.75rem;
}

.admin-orders-filter-grid label {
    margin: 0;
    font-size: 0.84rem;
}

.admin-orders-filter-grid input[type="text"],
.admin-orders-filter-grid input[type="date"],
.admin-orders-filter-grid select {
    min-height: 38px;
    padding: 0.45rem 0.65rem;
    font-size: 0.88rem;
}

.admin-orders-filter-actions .btn-primary,
.admin-orders-filter-actions .btn-secondary {
    min-height: 34px;
    padding: 0 0.85rem;
    font-size: 0.88rem;
}

.admin-orders-table-wrap {
    margin-top: 0.35rem;
}

.admin-orders-table {
    font-size: 0.82rem;
}

.admin-orders-table th,
.admin-orders-table td {
    padding: 0.42rem 0.5rem;
    line-height: 1.2;
}

.admin-orders-table thead th {
    font-size: 0.78rem;
    letter-spacing: 0.01em;
}

.admin-orders-table .btn-inline-sm {
    min-height: 30px;
    padding: 0 0.65rem;
    font-size: 0.8rem;
}

.admin-orders-customer-link {
    color: #155db7;
    font-weight: 600;
    text-decoration: none;
}

.admin-orders-customer-link:hover {
    text-decoration: underline;
}

.admin-orders-bottom-tools {
    margin-top: 0.6rem;
}

.admin-orders-bottom-tools .actions-row {
    gap: 0.4rem;
}

.admin-orders-bottom-tools .btn-primary,
.admin-orders-bottom-tools .btn-secondary,
.admin-orders-bottom-tools .btn-danger {
    min-height: 34px;
    padding: 0 0.75rem;
    font-size: 0.84rem;
}

.admin-customers-filter-grid {
    grid-template-columns: minmax(220px, 1fr) minmax(280px, 2fr);
}

.admin-customers-table td .actions-row {
    flex-wrap: wrap;
    gap: 0.35rem;
}

@media (max-width: 980px) {
    .admin-orders-filter-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 760px) {
    .order-actions-summary-grid {
        grid-template-columns: 1fr;
    }

    .order-item-editor-row {
        grid-template-columns: 1fr;
    }

    .order-partner-stock-grid,
    .order-partner-editor-row {
        grid-template-columns: 1fr;
    }

    .order-damage-editor-row {
        grid-template-columns: 1fr;
    }

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

    .admin-links-table th:last-child,
    .admin-links-table td:last-child {
        width: 220px;
        min-width: 220px;
    }

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

.security-card {
    border-left: 6px solid #43a047;
}

.security-card--medium {
    border-left-color: #f9a825;
}

.security-card--high {
    border-left-color: #d32f2f;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.12rem 0.6rem;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid transparent;
    background: #e8f5e9;
    border-color: #a5d6a7;
    color: #1b5e20;
}

.security-badge--medium {
    background: #fff8e1;
    border-color: #ffe082;
    color: #ef6c00;
}

.security-badge--high {
    background: #ffebee;
    border-color: #ef9a9a;
    color: #b71c1c;
}

.item-row select {
    flex: 1 1 320px;
    min-width: 220px;
}

.item-row input[type="number"] {
    width: 90px;
    flex: 0 0 auto;
}

.admin-order-edit-card .item-row.actions-row {
    gap: 0.4rem;
    margin-bottom: 0.35rem;
}

.admin-order-edit-card .item-row.actions-row select {
    flex: 1 1 auto;
    min-width: 180px;
}

.admin-order-edit-card .item-row.actions-row input[type="number"] {
    width: 78px;
    min-height: 36px;
    padding: 0.35rem 0.45rem;
}

.admin-order-edit-card .item-row.actions-row .btn-danger,
.admin-order-edit-card .item-row.actions-row .btn-secondary,
.admin-order-edit-card .item-row.actions-row .btn-primary {
    min-height: 36px;
    padding: 0 0.7rem;
}

.checkbox-inline {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.field-with-button {
    display: grid;
    gap: 0.5rem;
}

.field-with-button .btn-secondary {
    width: auto;
}

.product-carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 240px);
    gap: 0.6rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    margin-bottom: 0.75rem;
    scroll-snap-type: x mandatory;
}

.product-card {
    border: 1px solid #ececec;
    border-radius: 8px;
    background: #fff;
    padding: 0.55rem;
    display: grid;
    gap: 0.35rem;
    scroll-snap-align: start;
    width: 210px;
    min-width: 210px;
    box-sizing: border-box;
    position: relative;
}

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

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

.client-offer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    border: 1px solid #ffd37d;
    background: #fff6df;
    color: #8a4b00;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.product-card__offer {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    z-index: 2;
}

.product-card__image-wrap {
    width: 100%;
    height: 90px;
    border-radius: 6px;
    border: 1px solid #efefef;
    overflow: hidden;
    background: #fff;
}

.product-card__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.product-card__no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 0.85rem;
}

.product-card__name {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.25;
}

.product-gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
}

.product-gallery-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.product-gallery-modal__dialog {
    position: relative;
    width: min(94vw, 520px);
    max-height: 88vh;
    margin: 6vh auto;
    background: #fff;
    border-radius: 10px;
    padding: 0.65rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    overflow: auto;
    z-index: 1;
}

.product-gallery-modal__close {
    width: auto;
    min-height: 32px;
    padding: 0 0.65rem;
    margin-left: auto;
    display: block;
}

.product-gallery-modal__main {
    width: 100%;
    height: min(56vh, 320px);
    object-fit: contain;
    object-position: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f7f7f7;
}

.product-gallery-modal__viewer {
    position: relative;
}

.product-gallery-modal__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    min-height: 34px;
    border-radius: 999px;
    border: 1px solid #cfcfcf;
    background: rgba(255, 255, 255, 0.92);
    color: #222;
    font-size: 20px;
    line-height: 1;
    padding: 0;
    z-index: 2;
}

.product-gallery-modal__nav--prev {
    left: 8px;
}

.product-gallery-modal__nav--next {
    right: 8px;
}

.product-gallery-modal__thumbs {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
}

.product-gallery-modal__thumb {
    border: 1px solid #cfcfcf;
    border-radius: 6px;
    padding: 2px;
    min-width: 58px;
    width: 58px;
    height: 58px;
    background: #fff;
}

.product-gallery-modal__thumb.is-active {
    border-color: #1f7a2f;
}

.product-gallery-modal__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-card__meta {
    color: #666;
    font-size: 0.8rem;
    line-height: 1.25;
}

.product-card__price {
    color: #1f7a2f;
    font-weight: 700;
}

.product-card__controls {
    display: grid;
    grid-template-columns: 34px 72px 34px;
    gap: 0.35rem;
    align-items: center;
    justify-content: center;
}

.product-card__qty {
    min-height: 34px;
    text-align: center;
    width: 72px;
    min-width: 72px;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
}

.product-card__step {
    min-height: 34px;
    min-width: 34px;
    width: 34px;
    padding: 0;
}

body.client-page .product-card .btn-primary,
body.client-page .product-card .btn-secondary {
    width: auto;
    min-height: 34px;
}

.dev-footer {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 0.5rem;
    background: transparent;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: nowrap;
}

.login-page .dev-footer {
    margin-top: 0;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
}

.dev-footer-text {
    color: #555;
    font-size: 0.9rem;
}

.dev-footer-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    text-decoration: none;
    background: #25d366;
    color: #fff;
    border: 1px solid #25d366;
    font-size: 0.9rem;
    line-height: 1;
}

.dev-footer-whatsapp:hover {
    background: #1da851;
    border-color: #1da851;
}

body.client-page input[type="text"],
body.client-page input[type="tel"],
body.client-page input[type="email"],
body.client-page input[type="password"],
body.client-page input[type="date"],
body.client-page input[type="number"],
body.client-page input[type="time"],
body.client-page select,
body.client-page textarea {
    min-height: 44px;
}

body.client-page .btn-primary,
body.client-page .btn-secondary,
body.client-page .btn-danger {
    min-height: 44px;
}

body.client-page .card {
    margin-bottom: 1rem;
}

body.client-page form {
    gap: 0.95rem;
}

body.client-page label {
    gap: 0.35rem;
}

body.client-page .app {
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
}

body.client-page .grid-2 {
    grid-template-columns: 1fr;
}

body.client-page .product-carousel {
    grid-auto-flow: row;
    grid-auto-columns: 1fr;
    overflow-x: hidden;
}

body.client-page .product-card {
    width: 100%;
    min-width: 0;
}

@media (min-width: 768px) {
    .login-shell {
        grid-template-columns: 1.05fr 1fr;
        align-items: stretch;
    }

    .login-hero {
        padding: 1.5rem;
    }

    .field-with-button {
        grid-template-columns: 1fr auto;
        align-items: end;
    }

    .crud-grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .crud-grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: 1.2fr 1fr;
    }

    .app {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    body.client-page,
    body.client-page .app,
    body.client-page .card,
    body.client-page form,
    body.client-page .grid-2 {
        max-width: 100%;
        min-width: 0;
        overflow-x: hidden;
    }

    body.client-page label input,
    body.client-page label select,
    body.client-page label textarea {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    body {
        font-size: 0.95rem;
    }

    h1 {
        font-size: 1.4rem;
    }

    .card {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .login-shell {
        grid-template-columns: 1fr;
    }

    input[type="text"],
    input[type="tel"],
    input[type="email"],
    input[type="password"],
    input[type="date"],
    input[type="number"],
    select {
        font-size: 1rem;
    }

    button {
        width: 100%;
    }

    .admin-menu,
    .admin-submenu-row {
        flex-direction: column;
    }

    .admin-menu a,
    .admin-submenu-row a,
    .admin-submenu-toggle {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .admin-submenu-row {
        margin-top: 0.5rem;
        padding: 0.5rem;
    }

    .admin-topbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.7rem;
        padding-bottom: 0.7rem;
    }

    .admin-user-box {
        justify-content: center;
        border-radius: 12px;
        padding: 0.55rem;
    }

    .admin-logout-form {
        width: 100%;
    }

    .dev-footer-whatsapp {
        width: auto;
    }

    .item-row {
        flex-direction: column;
        align-items: stretch;
    }

    .event-address-row {
        grid-template-columns: minmax(88px, 0.75fr) minmax(140px, 1.85fr);
    }

    .event-city-state-row {
        grid-template-columns: minmax(140px, 1.9fr) minmax(70px, 0.75fr);
    }

    .crud-actions .btn-primary,
    .crud-actions .btn-secondary,
    .crud-actions .btn-danger {
        width: 100%;
        min-width: 0;
    }

    .item-row select,
    .item-row input[type="number"] {
        width: 100%;
        min-width: 0;
    }

    .admin-order-edit-card .item-row.actions-row {
        gap: 0.35rem;
    }

    .admin-order-edit-card .item-row.actions-row select,
    .admin-order-edit-card .item-row.actions-row input[type="number"] {
        min-height: 38px;
    }

    .admin-order-edit-card .item-row.actions-row .btn-danger,
    .admin-order-edit-card .item-row.actions-row .btn-secondary,
    .admin-order-edit-card .item-row.actions-row .btn-primary {
        min-height: 38px;
    }

    .product-carousel {
        grid-auto-flow: row;
        grid-auto-columns: 1fr;
        overflow-x: hidden;
    }

    .product-card {
        width: 100%;
        min-width: 0;
    }

    .product-card__image-wrap {
        height: 84px;
    }

    .product-gallery-modal__nav {
        width: 32px;
        height: 32px;
        min-height: 32px;
        font-size: 18px;
    }

    .product-card__controls {
        grid-template-columns: 36px 70px 36px 1fr;
    }

    .selected-item-row {
        flex-direction: column;
        align-items: stretch;
        padding: 0.45rem;
        gap: 0.45rem;
    }

    .selected-item-qty {
        width: 100%;
        min-height: 38px;
    }

    .selected-item-title {
        font-size: 0.95rem;
        line-height: 1.2;
        margin-bottom: 0.08rem;
    }

    .selected-item-meta {
        font-size: 0.8rem;
        line-height: 1.2;
    }

    body.client-page input[type="text"],
    body.client-page input[type="tel"],
    body.client-page input[type="email"],
    body.client-page input[type="password"],
    body.client-page input[type="date"],
    body.client-page input[type="number"],
    body.client-page input[type="time"],
    body.client-page select,
    body.client-page textarea {
        font-size: 1rem;
    }

    body.client-page .actions-row {
        gap: 0.65rem;
    }

    body.client-page .actions-row .btn-primary,
    body.client-page .actions-row .btn-secondary,
    body.client-page .actions-row .btn-danger {
        width: 100%;
    }

    body.client-page .client-summary-actions .btn-primary,
    body.client-page .client-summary-actions .btn-secondary {
        width: 100%;
    }

    .client-add-prompt__actions {
        flex-direction: column;
    }

    .client-add-prompt__actions .btn-primary,
    .client-add-prompt__actions .btn-secondary {
        width: 100%;
    }

    .client-add-prompt {
        bottom: 0.6rem;
        width: calc(100vw - 1rem);
        padding: 0.65rem 0.7rem;
    }

    .client-summary-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .client-summary-amount-grid {
        grid-template-columns: 1fr;
    }

    body.client-page .app {
        padding: 0.8rem;
    }

    body.client-page .card {
        padding: 1.05rem;
        margin-bottom: 0.9rem;
    }

    body.client-page h1 {
        margin-bottom: 0.65rem;
    }

    body.client-page h3 {
        margin-bottom: 0.55rem;
    }

    body.client-page .client-submit-sticky {
        position: sticky;
        bottom: max(0.5rem, env(safe-area-inset-bottom));
        z-index: 10;
        box-shadow: 0 8px 18px rgba(30, 136, 229, 0.3);
    }

    body.client-page .client-submit-sticky.client-submit-sticky--ready {
        box-shadow: 0 0 0 2px rgba(33, 150, 83, 0.25), 0 12px 24px rgba(33, 150, 83, 0.38);
        animation: clientSubmitReadyPulse 1.25s ease-in-out infinite;
    }

    @keyframes clientSubmitReadyPulse {
        0% { transform: translateY(0); }
        50% { transform: translateY(-1px); }
        100% { transform: translateY(0); }
    }

    body.client-page.keyboard-open .client-submit-sticky {
        min-height: 38px;
        font-size: 0.9rem;
        padding-top: 0.4rem;
        padding-bottom: 0.4rem;
        box-shadow: 0 5px 12px rgba(30, 136, 229, 0.22);
    }

    body.client-page.keyboard-open .dev-footer {
        display: none;
    }
}

@media (max-width: 768px) {
    body:not(.client-page) .crud-card {
        padding: 0.95rem;
        margin-bottom: 1rem;
        border-radius: 10px;
    }

    body:not(.client-page) .crud-section {
        padding: 0.8rem;
        border-radius: 8px;
    }

    body:not(.client-page) .crud-grid-2,
    body:not(.client-page) .crud-grid-3 {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    body:not(.client-page) .actions-row {
        gap: 0.45rem;
    }

    body:not(.client-page) .actions-row .btn-primary,
    body:not(.client-page) .actions-row .btn-secondary,
    body:not(.client-page) .actions-row .btn-danger,
    body:not(.client-page) .actions-row button,
    body:not(.client-page) .crud-actions .btn-primary,
    body:not(.client-page) .crud-actions .btn-secondary,
    body:not(.client-page) .crud-actions .btn-danger {
        width: 100%;
        min-width: 0;
    }

    body:not(.client-page) .table-wrap-x {
        border: 1px solid #d7e3f0;
        border-radius: 8px;
        background: #fff;
    }

    body:not(.client-page) .crud-table {
        min-width: 720px;
    }
}

/* Admin shell with left sidebar */
.admin-app-shell {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 1rem;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.admin-sidebar {
    position: sticky;
    top: 1rem;
    margin-bottom: 0;
    max-height: calc(100vh - 2rem);
    overflow: auto;
    border: 1px solid #d8e3f1;
    background: linear-gradient(180deg, #f8fbff 0%, #f5f9ff 100%);
}

.admin-brand-head {
    margin-bottom: 0.9rem;
}

.admin-brand-head h1 {
    margin: 0 0 0.15rem 0;
    font-size: 1.18rem;
    color: #11385f;
    letter-spacing: 0.01em;
}

.admin-main-area {
    min-width: 0;
}

.admin-topbar-card {
    margin-bottom: 1rem;
    border: 1px solid #dce7f4;
}

.admin-topbar-left {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}

.admin-page-title {
    margin: 0;
    font-size: 1.2rem;
    color: #11385f;
    line-height: 1.2;
}

.admin-sidebar-toggle {
    display: none;
    min-width: 84px;
}

.admin-sidebar-toggle-floating {
    margin-bottom: 0.75rem;
}

.admin-app-shell .admin-menu-wrap {
    display: block;
}

.admin-app-shell .admin-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-app-shell .admin-menu {
    margin-top: 0;
    display: grid;
    gap: 0.5rem;
    padding: 0.55rem;
}

.admin-app-shell .admin-menu a,
.admin-app-shell .admin-submenu-toggle {
    width: 100%;
    justify-content: flex-start;
    border-radius: 10px;
    padding: 0.56rem 0.72rem;
}

.admin-app-shell .admin-submenu-row {
    margin-top: 0.55rem;
    display: none;
    gap: 0.42rem;
    padding: 0.55rem;
}

.admin-app-shell .admin-submenu-row.is-open {
    display: grid;
}

.admin-app-shell .admin-submenu-row a {
    width: 100%;
    justify-content: flex-start;
    border-radius: 9px;
    padding: 0.5rem 0.68rem;
}

@media (max-width: 980px) {
    .admin-app-shell {
        grid-template-columns: 1fr;
        padding: 0.85rem;
    }

    .admin-sidebar {
        position: fixed;
        left: 0.85rem;
        right: 0.85rem;
        top: 0.85rem;
        max-height: calc(100vh - 1.7rem);
        z-index: 1200;
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
        box-shadow: 0 16px 36px rgba(17, 44, 71, 0.24);
    }

    .admin-sidebar.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .admin-sidebar-toggle {
        display: inline-flex;
    }
}


/* Modern button system */
:root {
    --btn-radius: 12px;
    --btn-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
    --btn-shadow-hover: 0 14px 28px rgba(15, 23, 42, 0.16);
    --btn-focus: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.btn-primary,
.btn-secondary,
.btn-neutral,
.btn-danger,
button[type="submit"],
input[type="submit"] {
    border-radius: var(--btn-radius);
    border: 1px solid transparent;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #1f7ae0 0%, #155db7 100%);
    border-color: #13519d;
    box-shadow: var(--btn-shadow);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--btn-shadow-hover);
    filter: saturate(1.05);
}

.btn-primary:focus-visible {
    outline: none;
    box-shadow: var(--btn-focus), var(--btn-shadow-hover);
}

.btn-secondary {
    background: linear-gradient(135deg, #1f9d59 0%, #157a43 100%);
    border-color: #12673a;
    box-shadow: var(--btn-shadow);
}

.btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: var(--btn-shadow-hover);
    filter: saturate(1.05);
}

.btn-secondary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.24), var(--btn-shadow-hover);
}

.btn-neutral {
    background: #f8fbff;
    border-color: #c8d7e8;
    color: #35506d;
    box-shadow: none;
}

.btn-neutral:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(31, 58, 95, 0.08);
    background: #eef5fc;
}

.btn-neutral:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(143, 163, 184, 0.24);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3f3f 0%, #b91c1c 100%);
    border-color: #991b1b;
    box-shadow: var(--btn-shadow);
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: var(--btn-shadow-hover);
    filter: saturate(1.04);
}

.btn-danger:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.22), var(--btn-shadow-hover);
}

.btn-primary:active,
.btn-secondary:active,
.btn-neutral:active,
.btn-danger:active,
button[type="submit"]:active,
input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.14);
}

.btn-primary[disabled],
.btn-secondary[disabled],
.btn-neutral[disabled],
.btn-danger[disabled],
button[disabled],
input[disabled] {
    opacity: 0.62;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Modern sidebar navigation */
.admin-app-shell .admin-menu {
    background: transparent;
    border: 0;
    padding: 0;
    gap: 0.45rem;
}

.admin-app-shell .admin-menu a,
.admin-app-shell .admin-submenu-toggle,
.admin-app-shell .admin-submenu-row a {
    position: relative;
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid #d8e4f3;
    background: #ffffff;
    color: #183a5a;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.58rem 0.78rem;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
}

.admin-app-shell .admin-menu a:hover,
.admin-app-shell .admin-submenu-toggle:hover,
.admin-app-shell .admin-submenu-row a:hover {
    background: #f4f8ff;
    border-color: #c6d8ee;
    color: #102f4b;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.09);
}

.admin-app-shell .admin-menu a.is-active,
.admin-app-shell .admin-submenu-toggle.is-active,
.admin-app-shell .admin-submenu-row a.is-active {
    background: linear-gradient(135deg, #1f7ae0 0%, #155db7 100%);
    border-color: #15509b;
    color: #fff;
    box-shadow: 0 10px 20px rgba(21, 93, 183, 0.3);
}

.admin-app-shell .admin-submenu-row {
    border: 1px solid #dbe6f4;
    border-radius: 12px;
    background: #f8fbff;
}


/* Sidebar color hierarchy: main menu vs submenu */
.admin-app-shell .admin-menu > a,
.admin-app-shell .admin-menu > .admin-submenu-toggle {
    background: linear-gradient(180deg, #edf4ff 0%, #e5efff 100%);
    border-color: #c9daf2;
    color: #143a63;
}

.admin-app-shell .admin-menu > a:hover,
.admin-app-shell .admin-menu > .admin-submenu-toggle:hover {
    background: linear-gradient(180deg, #e2edff 0%, #d9e8ff 100%);
    border-color: #b8cee9;
}

.admin-app-shell .admin-menu > a.is-active,
.admin-app-shell .admin-menu > .admin-submenu-toggle.is-active {
    background: linear-gradient(135deg, #1f7ae0 0%, #155db7 100%);
    border-color: #15509b;
    color: #fff;
}

.admin-app-shell .admin-submenu-row {
    border: 1px solid #cfe6d7;
    background: linear-gradient(180deg, #f3fbf6 0%, #edf9f1 100%);
}

.admin-app-shell .admin-submenu-row a {
    background: linear-gradient(180deg, #e8f7ee 0%, #def2e6 100%);
    border-color: #b8deca;
    color: #1d5b3e;
}

.admin-app-shell .admin-submenu-row a:hover {
    background: linear-gradient(180deg, #dcf2e5 0%, #d2ecd9 100%);
    border-color: #9fceb7;
    color: #184b34;
}

.admin-app-shell .admin-submenu-row a.is-active {
    background: linear-gradient(135deg, #1f9d59 0%, #157a43 100%);
    border-color: #12673a;
    color: #fff;
    box-shadow: 0 10px 20px rgba(21, 122, 67, 0.28);
}

/* Products manage table: action buttons sizing */
.products-manage-wrap {
    overflow-x: auto;
}

.products-manage-table {
    min-width: 1500px;
}

.products-manage-table th:last-child,
.products-manage-table td:last-child {
    min-width: 246px;
}

.products-manage-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    min-width: 220px;
}

.products-manage-actions .btn-secondary,
.products-manage-actions .btn-danger,
.products-manage-actions form,
.products-manage-actions form button {
    width: 100%;
    min-width: 0;
}

.products-manage-actions .btn-secondary,
.products-manage-actions .btn-danger,
.products-manage-actions form button {
    min-height: 38px;
    padding: 0 0.75rem;
    white-space: nowrap;
    justify-content: center;
}

@media (max-width: 768px) {
    body:not(.client-page) .products-manage-actions .btn-secondary,
    body:not(.client-page) .products-manage-actions .btn-danger,
    body:not(.client-page) .products-manage-actions form button {
        width: 100%;
        min-width: 0;
    }
}

/* Products manage table final alignment */
.products-manage-wrap {
    overflow-x: auto !important;
}

.products-manage-table {
    width: 100% !important;
    min-width: 1240px !important;
    table-layout: auto !important;
}

.products-manage-table th,
.products-manage-table td {
    vertical-align: middle;
    text-align: left;
}

.products-manage-table th:nth-child(1),
.products-manage-table td:nth-child(1) {
    min-width: 220px;
}

.products-manage-table th:nth-child(2),
.products-manage-table td:nth-child(2) {
    min-width: 90px;
}

.products-manage-table th:last-child,
.products-manage-table td:last-child {
    min-width: 240px;
}

.products-manage-actions {
    min-width: 220px;
}

.products-manage-actions .btn-secondary,
.products-manage-actions .btn-danger,
.products-manage-actions form,
.products-manage-actions form button {
    width: 100%;
    min-width: 0;
}

.products-manage-actions .btn-secondary,
.products-manage-actions .btn-danger,
.products-manage-actions form button {
    min-height: 38px;
    white-space: nowrap;
}

/* Products manage table compact sizing */
.products-manage-wrap {
    overflow-x: auto !important;
}

.products-manage-table {
    width: 100% !important;
    min-width: 980px !important;
    table-layout: fixed !important;
}

.products-manage-table th,
.products-manage-table td {
    font-size: 0.82rem;
    padding: 0.4rem 0.35rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.products-manage-table th:nth-child(1),
.products-manage-table td:nth-child(1) {
    width: 18%;
}

.products-manage-table th:nth-child(2),
.products-manage-table td:nth-child(2) {
    width: 9%;
    text-align: center;
}

.products-manage-table th:last-child,
.products-manage-table td:last-child {
    width: 18%;
    min-width: 170px;
}

.products-manage-actions {
    min-width: 160px;
    gap: 0.35rem;
}

.products-manage-actions .btn-secondary,
.products-manage-actions .btn-danger,
.products-manage-actions form button {
    min-height: 34px;
    padding: 0 0.6rem;
    font-size: 0.84rem;
}

/* Products actions compact buttons */
.products-manage-table {
    min-width: 900px !important;
}

.products-manage-table th:last-child,
.products-manage-table td:last-child {
    width: 16% !important;
    min-width: 128px !important;
}

.products-manage-actions {
    min-width: 122px !important;
    gap: 0.24rem !important;
}

.products-manage-actions .btn-secondary,
.products-manage-actions .btn-danger,
.products-manage-actions form button {
    min-height: 25px !important;
    padding: 0 0.35rem !important;
    font-size: 0.72rem !important;
    border-radius: 8px !important;
}



/* Admin products page: extra compact buttons */
#topo-cadastro-produto .btn-primary,
#topo-cadastro-produto .btn-secondary,
#topo-cadastro-produto .btn-danger,
#produtos-pesquisa .btn-primary,
#produtos-pesquisa .btn-secondary,
#produtos-pesquisa .btn-danger {
    min-height: 30px !important;
    padding: 0 0.5rem !important;
    font-size: 0.78rem !important;
    border-radius: 9px !important;
}

#topo-cadastro-produto .crud-actions .btn-primary,
#topo-cadastro-produto .crud-actions .btn-secondary,
#topo-cadastro-produto .crud-actions .btn-danger {
    min-width: 108px !important;
}


/* Admin products page: ultra compact buttons */
#topo-cadastro-produto .btn-primary,
#topo-cadastro-produto .btn-secondary,
#topo-cadastro-produto .btn-danger,
#produtos-pesquisa .btn-primary,
#produtos-pesquisa .btn-secondary,
#produtos-pesquisa .btn-danger {
    min-height: 28px !important;
    padding: 0 0.42rem !important;
    font-size: 0.74rem !important;
    border-radius: 8px !important;
}

#topo-cadastro-produto .crud-actions .btn-primary,
#topo-cadastro-produto .crud-actions .btn-secondary,
#topo-cadastro-produto .crud-actions .btn-danger {
    min-width: 98px !important;
}

/* Admin visual refresh (Figma-like) */
body {
    background: radial-gradient(circle at 8% 8%, #f3f8ff 0%, #eef3fb 32%, #e9edf4 100%);
}

.app.admin-app-shell {
    max-width: 1360px !important;
    margin: 0 auto !important;
    padding: 1.15rem !important;
    gap: 1.1rem !important;
}

.card {
    border: 1px solid #dbe4f0;
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(15, 30, 60, 0.08);
}

.admin-sidebar {
    border-radius: 14px;
    background: linear-gradient(180deg, #f7fbff 0%, #f2f7ff 100%);
}

.admin-brand-head h1 {
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 0.35rem;
}

.admin-brand-head .text-muted {
    font-size: 1.05rem;
    color: #536579;
}

.admin-topbar-card {
    padding: 1rem 1.1rem;
}

.admin-page-title {
    font-size: 2rem;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.admin-user-box {
    border-radius: 14px;
    padding: 0.4rem 0.55rem 0.4rem 0.75rem;
}

.admin-app-shell .admin-menu > a,
.admin-app-shell .admin-menu > .admin-submenu-toggle {
    min-height: 46px;
    border-radius: 12px;
    font-size: 0.95rem;
}

.admin-app-shell .admin-submenu-row {
    border-radius: 12px;
    padding: 0.6rem;
}

.admin-app-shell .admin-submenu-row a {
    min-height: 42px;
    font-size: 0.9rem;
    border-radius: 10px;
}

@media (min-width: 981px) {
    .app.admin-app-shell {
        grid-template-columns: 290px minmax(0, 1fr) !important;
    }

    .admin-sidebar {
        position: sticky !important;
        top: 1rem !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
        max-height: calc(100vh - 2rem);
    }

    .admin-sidebar-toggle {
        display: none !important;
    }
}

@media (max-width: 980px) {
    .app.admin-app-shell {
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
    }

    .admin-page-title {
        font-size: 1.6rem;
    }

    .admin-brand-head h1 {
        font-size: 1.7rem;
    }
}

/* Admin products page aligned to admin orders layout */
.admin-products-card {
    padding: 0.95rem 1rem;
}

.admin-products-card > h2 {
    margin-bottom: 0.2rem;
    font-size: 1.05rem;
}

.admin-products-intro {
    margin-bottom: 0.8rem;
}

.admin-products-top-actions {
    margin-bottom: 0.55rem;
}

.admin-products-filter-form {
    gap: 0.45rem;
    margin-bottom: 0.75rem;
}

.admin-products-filter-grid {
    display: grid;
    grid-template-columns: minmax(280px, 2fr) minmax(220px, 1fr);
    gap: 0.8rem;
    align-items: end;
}

.admin-products-filter-grid label {
    margin: 0;
    font-size: 0.84rem;
}

.admin-products-filter-grid input[type="text"],
.admin-products-filter-grid select {
    min-height: 38px;
    padding: 0.45rem 0.65rem;
    font-size: 0.88rem;
}

.admin-products-filter-actions {
    margin-top: 0.2rem;
}

.admin-products-filter-actions .btn-primary,
.admin-products-filter-actions .btn-secondary {
    min-height: 34px;
    padding: 0 0.85rem;
    font-size: 0.88rem;
}

.admin-products-mass-card {
    padding: 0.95rem;
}

.products-manage-wrap {
    margin-top: 0.35rem;
}

.products-manage-table {
    min-width: 980px !important;
    table-layout: auto !important;
    font-size: 0.82rem;
}

.products-manage-table th,
.products-manage-table td {
    padding: 0.42rem 0.5rem;
    line-height: 1.2;
    vertical-align: middle;
}

.products-manage-table thead th {
    font-size: 0.78rem;
    letter-spacing: 0.01em;
}

.products-manage-table th:nth-child(1),
.products-manage-table td:nth-child(1) {
    width: 28%;
}

.products-manage-table th:nth-child(2),
.products-manage-table td:nth-child(2) {
    width: 9%;
    text-align: center;
}

.products-manage-table th:last-child,
.products-manage-table td:last-child {
    width: 20% !important;
    min-width: 190px !important;
}

.products-manage-table .product-list-thumb {
    width: 44px;
    height: 44px;
}

.product-group-row td {
    padding: 0 !important;
    background: #f4f8fc !important;
    border-top: 1px solid #d7e3f0;
    border-bottom: 1px solid #d7e3f0;
}

.product-group-head {
    padding: 0.7rem 0.8rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.product-group-summary {
    min-width: 260px;
    flex: 1 1 420px;
}

.product-group-title {
    font-weight: 700;
    color: #173654;
}

.product-group-meta {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-top: 0.18rem;
    font-size: 0.8rem;
    color: #48627b;
}

.product-group-meta-note {
    font-weight: 600;
    color: #2f5f8f;
}

.product-group-description {
    margin-top: 0.18rem;
}

.product-group-actions {
    min-width: 0;
    gap: 0.45rem;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
}

.product-group-actions .btn-secondary {
    min-height: 34px;
    padding: 0 0.85rem;
}

.product-group-name-cell {
    color: #33516d;
    font-weight: 600;
}

.products-manage-actions {
    min-width: 0 !important;
    gap: 0.3rem !important;
}

.products-manage-actions .btn-secondary,
.products-manage-actions .btn-danger,
.products-manage-actions form button {
    min-height: 32px !important;
    padding: 0 0.55rem !important;
    font-size: 0.8rem !important;
    border-radius: 8px !important;
}

.admin-products-editor-section {
    margin-top: 0.9rem;
}

.admin-products-editor-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.admin-products-editor-text {
    margin: 0.1rem 0 0 0;
}

.admin-products-main-grid {
    gap: 0.75rem;
}

.admin-products-main-grid select[multiple] {
    min-height: 148px;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.product-fixed-picker {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
}

.product-fixed-field {
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 0.7rem !important;
    padding: 0.8rem 0.9rem;
    border: 1px solid #d7e3f0;
    border-radius: 14px;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f8fc 100%);
}

.product-fixed-field .product-fixed-picker label {
    display: flex;
    flex-direction: column;
    gap: 0.32rem;
}

.product-fixed-field .product-fixed-picker select {
    min-height: 40px;
}

.product-fixed-picker-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    min-height: 34px;
    align-items: flex-start;
}

.product-fixed-picker-empty {
    margin-top: 0.05rem;
    font-size: 0.78rem;
}

.product-fixed-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 32px;
    padding: 0.28rem 0.38rem 0.28rem 0.62rem;
    border: 1px solid #cddded;
    border-radius: 999px;
    background: #f3f8fd;
    color: #173654;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
}

.product-fixed-chip-remove {
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 999px;
    background: #dbe9f7;
    color: #163c63;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1;
    padding: 0;
}

.product-fixed-chip-remove:hover {
    background: #c8dff3;
}

.admin-products-gallery-section {
    margin-top: 0.2rem;
}

.product-variation-stock-section {
    padding: 0.95rem 1rem;
    border: 1px solid #d7e3f0;
    border-radius: 16px;
    background: linear-gradient(180deg, #fbfdff 0%, #f3f8fc 100%);
}

.product-variation-stock-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.product-variation-stock-table th,
.product-variation-stock-table td {
    vertical-align: middle;
}

.product-variation-stock-table input[type="number"] {
    min-width: 110px;
}

.product-variation-stock-toggle-cell .checkbox-inline {
    margin: 0;
}

.admin-products-editor-actions {
    margin-top: 0.2rem;
}

.admin-finance-card .admin-orders-table th,
.admin-finance-card .admin-orders-table td {
    vertical-align: middle;
    white-space: nowrap;
}

.admin-finance-card .admin-orders-table th:nth-child(2),
.admin-finance-card .admin-orders-table td:nth-child(2),
.admin-finance-card .admin-orders-table th:nth-child(3),
.admin-finance-card .admin-orders-table td:nth-child(3) {
    white-space: normal;
}

.admin-finance-card .admin-orders-table th:nth-child(1),
.admin-finance-card .admin-orders-table td:nth-child(1) {
    width: 42px;
}

.admin-finance-card .admin-orders-table th:nth-child(2),
.admin-finance-card .admin-orders-table td:nth-child(2) {
    width: 82px;
}

.admin-finance-card .admin-orders-table th:nth-child(4),
.admin-finance-card .admin-orders-table td:nth-child(4) {
    width: 108px;
}

.admin-finance-card .admin-orders-table th:nth-child(5),
.admin-finance-card .admin-orders-table td:nth-child(5) {
    width: 72px;
}

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

.admin-finance-card .admin-orders-table th:nth-child(7),
.admin-finance-card .admin-orders-table td:nth-child(7),
.admin-finance-card .admin-orders-table th:nth-child(8),
.admin-finance-card .admin-orders-table td:nth-child(8),
.admin-finance-card .admin-orders-table th:nth-child(9),
.admin-finance-card .admin-orders-table td:nth-child(9) {
    width: 112px;
    text-align: right;
}

.admin-finance-card .admin-orders-table th:nth-child(10),
.admin-finance-card .admin-orders-table td:nth-child(10) {
    width: 170px;
    white-space: nowrap;
}

.admin-finance-card .admin-orders-table tr.finance-order-row--settled td {
    background: #baf7b8;
    box-shadow: inset 0 1px 0 #72dc7c, inset 0 -1px 0 #72dc7c;
}

.admin-finance-card .admin-orders-table tr.finance-order-row--settled:hover td {
    background: #aaf2a7;
}

.admin-finance-card .finance-receivable-table tr.finance-order-row--settled td,
.admin-finance-card .finance-payable-table tr.finance-order-row--settled td {
    background: #baf7b8 !important;
    box-shadow: inset 0 1px 0 #72dc7c, inset 0 -1px 0 #72dc7c;
}

.admin-finance-card .finance-receivable-table tr.finance-order-row--settled:hover td,
.admin-finance-card .finance-payable-table tr.finance-order-row--settled:hover td {
    background: #aaf2a7 !important;
}

.admin-finance-card .admin-orders-table tr.finance-order-row--partial td {
    background: #d4dce5;
    box-shadow: inset 0 1px 0 #bcc7d3, inset 0 -1px 0 #bcc7d3;
}

.admin-finance-card .admin-orders-table tr.finance-order-row--partial:hover td {
    background: #cad3dd;
}

.admin-finance-card .finance-receivable-table tr.finance-order-row--partial td,
.admin-finance-card .finance-payable-table tr.finance-order-row--partial td {
    background: #d4dce5 !important;
    box-shadow: inset 0 1px 0 #bcc7d3, inset 0 -1px 0 #bcc7d3;
}

.admin-finance-card .finance-receivable-table tr.finance-order-row--partial:hover td,
.admin-finance-card .finance-payable-table tr.finance-order-row--partial:hover td {
    background: #cad3dd !important;
}

.admin-finance-card .admin-orders-table tr.finance-order-row--overdue td {
    background: #ffd3da;
    box-shadow: inset 0 1px 0 #f2b3bf, inset 0 -1px 0 #f2b3bf;
}

.admin-finance-card .admin-orders-table tr.finance-order-row--overdue:hover td {
    background: #ffc7d0;
}

.admin-finance-card .finance-receivable-table tr.finance-order-row--overdue td,
.admin-finance-card .finance-payable-table tr.finance-order-row--overdue td {
    background: #ffd3da !important;
    box-shadow: inset 0 1px 0 #f2b3bf, inset 0 -1px 0 #f2b3bf;
}

.admin-finance-card .finance-receivable-table tr.finance-order-row--overdue:hover td,
.admin-finance-card .finance-payable-table tr.finance-order-row--overdue:hover td {
    background: #ffc7d0 !important;
}

.invoice-registry-table,
.invoice-transmissions-table {
    table-layout: auto;
}

.invoice-registry-table {
    min-width: 1480px;
}

.invoice-transmissions-table {
    min-width: 1320px;
}

.invoice-registry-table th,
.invoice-registry-table td,
.invoice-transmissions-table th,
.invoice-transmissions-table td {
    overflow-wrap: normal !important;
    word-break: normal !important;
    white-space: nowrap !important;
    vertical-align: top;
}

.invoice-registry-table th:nth-child(1),
.invoice-registry-table td:nth-child(1) {
    width: 42px;
    text-align: center;
}

.invoice-registry-table th:nth-child(2),
.invoice-registry-table td:nth-child(2) {
    min-width: 128px;
}

.invoice-registry-table th:nth-child(3),
.invoice-registry-table td:nth-child(3),
.invoice-registry-table th:nth-child(4),
.invoice-registry-table td:nth-child(4) {
    min-width: 90px;
}

.invoice-registry-table th:nth-child(5),
.invoice-registry-table td:nth-child(5) {
    min-width: 170px;
    white-space: normal !important;
}

.invoice-registry-table th:nth-child(6),
.invoice-registry-table td:nth-child(6) {
    min-width: 112px;
}

.invoice-registry-table th:nth-child(7),
.invoice-registry-table td:nth-child(7) {
    min-width: 92px;
    text-align: right;
}

.invoice-registry-table th:nth-child(8),
.invoice-registry-table td:nth-child(8),
.invoice-registry-table th:nth-child(9),
.invoice-registry-table td:nth-child(9) {
    min-width: 140px;
}

.invoice-registry-table th:nth-child(10),
.invoice-registry-table td:nth-child(10) {
    min-width: 96px;
}

.invoice-registry-table th:nth-child(11),
.invoice-registry-table td:nth-child(11),
.invoice-registry-table th:nth-child(12),
.invoice-registry-table td:nth-child(12) {
    min-width: 180px;
    white-space: normal !important;
}

.invoice-registry-table th:nth-child(13),
.invoice-registry-table td:nth-child(13) {
    min-width: 230px;
    white-space: normal !important;
}

.invoice-registry-table td:last-child .actions-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}

.invoice-registry-table td:last-child .btn-inline-nowrap,
.invoice-registry-table td:last-child form {
    width: auto;
}

.invoice-editor-actions {
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    padding-top: 0.75rem;
    border-top: 1px solid #d9e5f1;
}

.invoice-editor-actions__top,
.invoice-editor-actions__bottom {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
}

.invoice-editor-actions__top {
    justify-content: flex-start;
}

.invoice-editor-actions__bottom {
    justify-content: flex-start;
}

.invoice-editor-actions__form {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    width: auto;
}

.invoice-editor-actions__portal-form {
    flex: 1 1 560px;
}

.invoice-editor-actions__portal-form .input-inline {
    flex: 1 1 190px;
    min-width: 170px;
    max-width: 280px;
}

.invoice-editor-actions .btn-inline,
.invoice-editor-actions button,
.invoice-editor-actions a {
    min-height: 2.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.invoice-transmission-progress {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(12, 28, 48, 0.48);
    backdrop-filter: blur(4px);
}

.invoice-transmission-progress.is-hidden {
    display: none;
}

.invoice-transmission-progress-open {
    overflow: hidden;
}

.invoice-transmission-progress__card {
    width: min(560px, 100%);
    border: 1px solid #bdd2e8;
    border-radius: 1rem;
    padding: 1.15rem;
    color: #14375f;
    background: linear-gradient(145deg, #ffffff 0%, #f1f7ff 100%);
    box-shadow: 0 24px 70px rgba(5, 28, 58, 0.24);
}

.invoice-transmission-progress__header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.invoice-transmission-progress__header strong {
    display: block;
    font-size: 1.15rem;
}

.invoice-transmission-progress__header p {
    margin: 0.35rem 0 0;
    color: #3c5d7c;
}

.invoice-transmission-progress__spinner {
    width: 2.4rem;
    height: 2.4rem;
    flex: 0 0 auto;
    border: 4px solid #d5e7fa;
    border-top-color: #1f73d1;
    border-radius: 999px;
    animation: invoice-progress-spin 0.85s linear infinite;
}

.invoice-transmission-progress__bar {
    height: 0.55rem;
    margin: 1rem 0;
    overflow: hidden;
    border-radius: 999px;
    background: #dceaf8;
}

.invoice-transmission-progress__bar span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #1d72d2, #16a05d);
    transition: width 0.45s ease;
}

.invoice-transmission-progress__steps {
    display: grid;
    gap: 0.45rem;
    margin: 0 0 0.85rem;
    padding: 0;
    list-style: none;
}

.invoice-transmission-progress__steps li {
    position: relative;
    padding: 0.55rem 0.7rem 0.55rem 2.1rem;
    border: 1px solid #d8e7f4;
    border-radius: 0.75rem;
    color: #52677e;
    background: rgba(255, 255, 255, 0.72);
}

.invoice-transmission-progress__steps li::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0.75rem;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 999px;
    border: 2px solid #9fb9d2;
    transform: translateY(-50%);
    background: #ffffff;
}

.invoice-transmission-progress__steps li.is-active {
    border-color: #77aee8;
    color: #103d70;
    background: #edf6ff;
}

.invoice-transmission-progress__steps li.is-active::before {
    border-color: #1f73d1;
    background: #1f73d1;
}

.invoice-transmission-progress__steps li.is-complete {
    border-color: #9fd6b8;
    color: #1b6840;
}

.invoice-transmission-progress__steps li.is-complete::before {
    border-color: #15965a;
    background: #15965a;
}

.invoice-transmission-progress__card small {
    display: block;
    color: #5a6d80;
    line-height: 1.45;
}

@keyframes invoice-progress-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 900px) {
    .invoice-editor-actions {
        align-items: stretch;
    }

    .invoice-editor-actions__top,
    .invoice-editor-actions__bottom {
        width: 100%;
    }

    .invoice-editor-actions__form,
    .invoice-editor-actions__portal-form {
        width: 100%;
    }

    .invoice-editor-actions__portal-form .input-inline {
        max-width: none;
    }
}

.invoice-registry-table td small,
.invoice-transmissions-table td small {
    white-space: normal !important;
}

.invoice-transmissions-table th:nth-child(1),
.invoice-transmissions-table td:nth-child(1),
.invoice-transmissions-table th:nth-child(2),
.invoice-transmissions-table td:nth-child(2),
.invoice-transmissions-table th:nth-child(3),
.invoice-transmissions-table td:nth-child(3),
.invoice-transmissions-table th:nth-child(4),
.invoice-transmissions-table td:nth-child(4),
.invoice-transmissions-table th:nth-child(5),
.invoice-transmissions-table td:nth-child(5),
.invoice-transmissions-table th:nth-child(6),
.invoice-transmissions-table td:nth-child(6) {
    min-width: 96px;
}

.invoice-transmissions-table th:nth-child(7),
.invoice-transmissions-table td:nth-child(7) {
    min-width: 180px;
    white-space: normal !important;
}

.invoice-transmissions-table th:nth-child(8),
.invoice-transmissions-table td:nth-child(8),
.invoice-transmissions-table th:nth-child(9),
.invoice-transmissions-table td:nth-child(9),
.invoice-transmissions-table th:nth-child(10),
.invoice-transmissions-table td:nth-child(10) {
    min-width: 220px;
    white-space: normal !important;
}

#invoice-sefaz-documents .invoice-transmissions-table,
#invoice-sefaz-transmissions .invoice-transmissions-table {
    min-width: 1500px;
}

#invoice-sefaz-documents .invoice-transmissions-table th:nth-child(1),
#invoice-sefaz-documents .invoice-transmissions-table td:nth-child(1) {
    min-width: 64px;
}

#invoice-sefaz-documents .invoice-transmissions-table th:nth-child(2),
#invoice-sefaz-documents .invoice-transmissions-table td:nth-child(2),
#invoice-sefaz-transmissions .invoice-transmissions-table th:nth-child(2),
#invoice-sefaz-transmissions .invoice-transmissions-table td:nth-child(2) {
    min-width: 92px;
}

#invoice-sefaz-documents .invoice-transmissions-table th:nth-child(3),
#invoice-sefaz-documents .invoice-transmissions-table td:nth-child(3),
#invoice-sefaz-documents .invoice-transmissions-table th:nth-child(4),
#invoice-sefaz-documents .invoice-transmissions-table td:nth-child(4),
#invoice-sefaz-documents .invoice-transmissions-table th:nth-child(5),
#invoice-sefaz-documents .invoice-transmissions-table td:nth-child(5),
#invoice-sefaz-transmissions .invoice-transmissions-table th:nth-child(3),
#invoice-sefaz-transmissions .invoice-transmissions-table td:nth-child(3),
#invoice-sefaz-transmissions .invoice-transmissions-table th:nth-child(4),
#invoice-sefaz-transmissions .invoice-transmissions-table td:nth-child(4) {
    min-width: 120px;
}

#invoice-sefaz-documents .invoice-transmissions-table th:nth-child(6),
#invoice-sefaz-documents .invoice-transmissions-table td:nth-child(6) {
    min-width: 220px;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

#invoice-sefaz-documents .invoice-transmissions-table th:nth-child(7),
#invoice-sefaz-documents .invoice-transmissions-table td:nth-child(7),
#invoice-sefaz-transmissions .invoice-transmissions-table th:nth-child(7),
#invoice-sefaz-transmissions .invoice-transmissions-table td:nth-child(7),
#invoice-sefaz-documents .invoice-transmissions-table th:nth-child(8),
#invoice-sefaz-documents .invoice-transmissions-table td:nth-child(8),
#invoice-sefaz-transmissions .invoice-transmissions-table th:nth-child(8),
#invoice-sefaz-transmissions .invoice-transmissions-table td:nth-child(8) {
    min-width: 280px;
    white-space: normal !important;
}

#invoice-sefaz-documents details,
#invoice-sefaz-transmissions details {
    margin-top: 0.35rem;
}

#invoice-sefaz-documents details > summary,
#invoice-sefaz-transmissions details > summary {
    cursor: pointer;
    color: #23425f;
    font-weight: 600;
}

#invoice-sefaz-documents pre,
#invoice-sefaz-transmissions pre {
    margin: 0.35rem 0 0;
    padding: 0.65rem 0.75rem;
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
    background: #f7fafc;
    border: 1px solid #d9e5f1;
    border-radius: 10px;
}

.admin-finance-launch-card {
    margin-top: 0.9rem;
}

.finance-launch-summary {
    margin: 0.85rem 0 1rem;
}

.finance-status-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 0.7rem;
    align-items: center;
    padding: 0.6rem 0.75rem;
    border: 1px solid #dbe7f5;
    border-radius: 12px;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
    box-shadow: 0 8px 22px rgba(27, 71, 120, 0.08);
}

.finance-status-legend__label {
    font-size: 0.83rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #38506a;
}

.finance-status-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.38rem 0.78rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.84rem;
    font-weight: 600;
    color: #233142;
    background-clip: padding-box;
}

.finance-status-legend__dot {
    width: 0.68rem;
    height: 0.68rem;
    border-radius: 999px;
    background: currentColor;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.finance-status-legend__item--settled {
    background: #e5ffe4;
    border-color: #78df82;
    color: #0f6b28;
}

.finance-status-legend__item--partial {
    background: #e8edf3;
    border-color: #c4cfdb;
    color: #495868;
}

.finance-status-legend__item--overdue {
    background: #ffebee;
    border-color: #f2bcc6;
    color: #b42318;
}

.finance-statement-card {
    background: linear-gradient(180deg, #fbfdff 0%, #f5f9ff 100%);
}

.finance-statement-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.7rem;
    margin: 0.9rem 0 1rem;
}

.finance-statement-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
}

.finance-statement-table {
    font-size: 0.88rem;
}

.finance-statement-table th,
.finance-statement-table td {
    padding: 0.5rem 0.55rem;
}

.finance-statement-table__row--receber td {
    background: linear-gradient(180deg, #f6fcf8 0%, #edf8f1 100%);
}

.finance-statement-table__row--pagar td {
    background: linear-gradient(180deg, #fff9f9 0%, #fff0f0 100%);
}

.finance-statement-table__money {
    text-align: right;
    white-space: nowrap;
}

.finance-statement-amount--credit {
    color: #136c37;
}

.finance-statement-amount--debit {
    color: #b42318;
}

.finance-launch-summary .order-actions-summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.finance-payable-compact-form .crud-grid-2 {
    gap: 0.55rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.finance-payable-compact-form .crud-grid-2 label {
    font-size: 0.92rem;
}

.finance-payable-compact-form .crud-grid-2 input[type="text"],
.finance-payable-compact-form .crud-grid-2 input[type="date"],
.finance-payable-compact-form .crud-grid-2 input[type="number"],
.finance-payable-compact-form .crud-grid-2 input[type="datetime-local"],
.finance-payable-compact-form .crud-grid-2 select {
    min-height: 36px;
    padding: 0.45rem 0.65rem;
    font-size: 0.92rem;
}

.finance-payable-compact-form .actions-row {
    margin-top: 0.55rem;
}

.finance-payable-table {
    font-size: 0.86rem;
}

.finance-payable-table th,
.finance-payable-table td {
    padding: 0.45rem 0.5rem;
}

.finance-payable-table th:nth-child(1),
.finance-payable-table td:nth-child(1) {
    width: 68px;
}

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

.finance-payable-table th:nth-child(3),
.finance-payable-table td:nth-child(3) {
    min-width: 220px;
    white-space: normal;
}

.finance-payable-table th:nth-child(4),
.finance-payable-table td:nth-child(4),
.finance-payable-table th:nth-child(5),
.finance-payable-table td:nth-child(5),
.finance-payable-table th:nth-child(6),
.finance-payable-table td:nth-child(6),
.finance-payable-table th:nth-child(7),
.finance-payable-table td:nth-child(7) {
    width: 105px;
}

.finance-payable-table th:nth-child(8),
.finance-payable-table td:nth-child(8) {
    width: 180px;
}

.finance-payable-table td:last-child .actions-row {
    gap: 0.35rem;
}

.finance-payable-table td:last-child .btn-primary,
.finance-payable-table td:last-child .btn-secondary,
.finance-payable-table td:last-child .btn-danger,
.finance-payable-table td:last-child button {
    min-width: 96px;
    min-height: 34px;
    padding: 0 0.7rem;
    font-size: 0.84rem;
}

.finance-receivable-table {
    font-size: 0.86rem;
}

.finance-receivable-table th,
.finance-receivable-table td {
    padding: 0.45rem 0.5rem;
}

.admin-finance-card .finance-receivable-table thead th,
.admin-finance-card .finance-payable-table thead th {
    overflow-wrap: normal;
    word-break: normal;
}

.finance-receivable-table th:nth-child(1),
.finance-receivable-table td:nth-child(1) {
    width: 40px;
}

.finance-receivable-table th:nth-child(2),
.finance-receivable-table td:nth-child(2) {
    width: 78px;
}

.admin-finance-card .finance-receivable-table thead th:nth-child(2) {
    white-space: nowrap;
    min-width: 78px;
}

.finance-receivable-table th:nth-child(3),
.finance-receivable-table td:nth-child(3) {
    min-width: 150px;
    white-space: normal;
}

.finance-receivable-table th:nth-child(4),
.finance-receivable-table td:nth-child(4),
.finance-receivable-table th:nth-child(5),
.finance-receivable-table td:nth-child(5),
.finance-receivable-table th:nth-child(6),
.finance-receivable-table td:nth-child(6),
.finance-receivable-table th:nth-child(7),
.finance-receivable-table td:nth-child(7),
.finance-receivable-table th:nth-child(8),
.finance-receivable-table td:nth-child(8),
.finance-receivable-table th:nth-child(9),
.finance-receivable-table td:nth-child(9) {
    width: 98px;
}

.finance-receivable-table th:nth-child(10),
.finance-receivable-table td:nth-child(10) {
    width: 168px;
}

.finance-receivable-table td:last-child .actions-row {
    gap: 0.35rem;
}

.finance-receivable-table td:last-child .btn-primary,
.finance-receivable-table td:last-child .btn-secondary,
.finance-receivable-table td:last-child .btn-danger,
.finance-receivable-table td:last-child button {
    min-width: 92px;
    min-height: 34px;
    padding: 0 0.7rem;
    font-size: 0.84rem;
}

/* Global admin responsiveness */
body.admin-page {
    --admin-shell-gap: 0.75rem;
    --admin-shell-padding: 0.7rem;
    --admin-sidebar-width: 250px;
    --admin-card-padding: 1.05rem;
    --admin-menu-font: 0.94rem;
    --admin-submenu-font: 0.88rem;
}

body.admin-page .card {
    padding: var(--admin-card-padding);
}

body.admin-page .crud-card {
    padding: calc(var(--admin-card-padding) - 0.04rem);
}

body.admin-page .crud-card > h2,
body.admin-page .crud-card > h3 {
    margin-bottom: 0.22rem;
    line-height: 1.15;
}

body.admin-page .crud-card > .text-muted {
    margin-bottom: 0.58rem;
}

body.admin-page .crud-form {
    gap: 0.68rem;
}

body.admin-page .crud-search-form {
    gap: 0.48rem;
}

body.admin-page .crud-grid-2,
body.admin-page .crud-grid-3 {
    gap: 0.62rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

body.admin-page .crud-section {
    padding: 0.82rem;
}

body.admin-page .crud-section-title {
    margin-bottom: 0.55rem;
}

body.admin-page label {
    gap: 0.26rem;
    font-size: 0.86rem;
}

body.admin-page input[type="text"],
body.admin-page input[type="tel"],
body.admin-page input[type="email"],
body.admin-page input[type="password"],
body.admin-page input[type="date"],
body.admin-page input[type="number"],
body.admin-page input[type="time"],
body.admin-page textarea,
body.admin-page select {
    min-height: 38px;
    padding: 0.46rem 0.58rem;
    font-size: 0.9rem;
}

body.admin-page textarea {
    min-height: 100px;
}

body.admin-page .app.admin-app-shell {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: var(--admin-shell-padding) !important;
    gap: var(--admin-shell-gap) !important;
    grid-template-columns: var(--admin-sidebar-width) minmax(0, 1fr) !important;
    align-items: start;
}

body.admin-page .admin-main-area {
    min-width: 0;
    width: 100%;
}

body.admin-page .admin-sidebar {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
    padding: 0.85rem;
}

body.admin-page .admin-app-shell .admin-menu > a,
body.admin-page .admin-app-shell .admin-menu > .admin-submenu-toggle {
    font-size: var(--admin-menu-font);
}

body.admin-page .admin-app-shell .admin-submenu-row a {
    font-size: var(--admin-submenu-font);
}

body.admin-page .admin-brand-head h1,
body.admin-page .admin-page-title {
    overflow-wrap: anywhere;
}

body.admin-page .admin-brand-head {
    margin-bottom: 0.6rem;
}

body.admin-page .admin-brand-head h1 {
    margin-bottom: 0.16rem;
    font-weight: 700;
}

body.admin-page .admin-brand-head .text-muted {
    margin: 0;
    font-size: 0.92rem;
}

body.admin-page .admin-topbar-card {
    padding: 0.8rem 0.9rem;
    margin-bottom: 0.78rem;
}

body.admin-page .admin-topbar {
    gap: 0.65rem;
    padding-bottom: 0.7rem;
}

body.admin-page .admin-page-title {
    font-size: 1.65rem;
}

body.admin-page .admin-user-box {
    gap: 0.38rem;
    padding: 0.28rem 0.42rem 0.28rem 0.62rem;
}

body.admin-page .admin-user-text {
    font-size: 0.84rem;
}

body.admin-page .admin-role-badge {
    font-size: 0.7rem;
    padding: 0.08rem 0.38rem;
}

body.admin-page .admin-app-shell .admin-menu {
    gap: 0.34rem;
    padding: 0.3rem;
}

body.admin-page .admin-app-shell .admin-menu > a,
body.admin-page .admin-app-shell .admin-menu > .admin-submenu-toggle {
    min-height: 40px;
    padding: 0.42rem 0.58rem;
    border-radius: 10px;
}

body.admin-page .admin-app-shell .admin-submenu-row {
    gap: 0.26rem;
    padding: 0.3rem;
    margin-top: 0.35rem;
}

body.admin-page .admin-app-shell .admin-submenu-row a {
    min-height: 34px;
    padding: 0.34rem 0.48rem;
    border-radius: 9px;
}

body.admin-page .admin-sidebar-user-box {
    gap: 0.6rem;
    margin-top: 0.7rem;
    padding-top: 0.75rem;
}

body.admin-page .admin-sidebar-user-head {
    gap: 0.18rem;
}

body.admin-page .admin-sidebar-user-label {
    font-size: 0.72rem;
}

body.admin-page .admin-sidebar-user-form {
    gap: 0.42rem;
}

body.admin-page .crud-form,
body.admin-page .crud-search-form {
    min-width: 0;
}

body.admin-page .overflow-auto,
body.admin-page .table-wrap-x {
    width: 100%;
    max-width: 100%;
}

body.admin-page .crud-table {
    width: 100%;
}

body.admin-page .actions-row {
    row-gap: 0.55rem;
}

body.admin-page .actions-row {
    gap: 0.4rem;
}

body.admin-page .actions-row form .btn-primary,
body.admin-page .actions-row form .btn-secondary,
body.admin-page .actions-row form .btn-danger,
body.admin-page .actions-row form button,
body.admin-page .actions-row .btn-primary,
body.admin-page .actions-row .btn-secondary,
body.admin-page .actions-row .btn-danger,
body.admin-page .actions-row button {
    min-height: 34px;
    min-width: 94px;
    padding: 0 0.72rem;
    font-size: 0.86rem;
}

body.admin-page .crud-table {
    font-size: 0.84rem;
}

body.admin-page .crud-table th,
body.admin-page .crud-table td {
    padding: 0.42rem 0.46rem;
    line-height: 1.2;
}

body.admin-page .crud-table thead th {
    font-size: 0.78rem;
}

body.admin-screen-large {
    --admin-shell-gap: 0.7rem;
    --admin-shell-padding: 0.6rem;
    --admin-sidebar-width: 238px;
    --admin-card-padding: 0.96rem;
    --admin-menu-font: 0.92rem;
    --admin-submenu-font: 0.86rem;
}

body.admin-screen-large .admin-sidebar {
    position: static !important;
    top: auto !important;
    max-height: none !important;
    overflow: visible !important;
    scrollbar-width: auto;
}

body.admin-screen-large .admin-app-shell .admin-menu {
    gap: 0.42rem;
    padding: 0.48rem;
}

body.admin-screen-large .admin-app-shell .admin-menu > a,
body.admin-screen-large .admin-app-shell .admin-menu > .admin-submenu-toggle {
    min-height: 42px;
    padding: 0.5rem 0.66rem;
}

body.admin-screen-large .admin-app-shell .admin-submenu-row {
    gap: 0.34rem;
    padding: 0.48rem;
}

body.admin-screen-large .admin-app-shell .admin-submenu-row a {
    min-height: 38px;
    padding: 0.44rem 0.58rem;
}

body.admin-screen-medium {
    --admin-shell-gap: 0.65rem;
    --admin-shell-padding: 0.58rem;
    --admin-sidebar-width: 210px;
    --admin-card-padding: 0.86rem;
    --admin-menu-font: 0.86rem;
    --admin-submenu-font: 0.81rem;
}

body.admin-screen-medium .app.admin-app-shell {
    grid-template-columns: var(--admin-sidebar-width) minmax(0, 1fr) !important;
}

body.admin-screen-medium .admin-sidebar {
    position: static !important;
    top: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

body.admin-screen-medium .admin-brand-head h1,
body.admin-screen-medium .admin-page-title {
    font-size: 1.42rem;
}

body.admin-screen-medium .admin-brand-head .text-muted {
    font-size: 0.84rem;
}

body.admin-screen-medium .admin-app-shell .admin-menu {
    gap: 0.34rem;
    padding: 0.36rem;
}

body.admin-screen-medium .admin-app-shell .admin-menu > a,
body.admin-screen-medium .admin-app-shell .admin-menu > .admin-submenu-toggle {
    min-height: 38px;
    padding: 0.42rem 0.56rem;
    border-radius: 10px;
}

body.admin-screen-medium .admin-app-shell .admin-submenu-row {
    gap: 0.28rem;
    padding: 0.34rem;
}

body.admin-screen-medium .admin-app-shell .admin-submenu-row a {
    min-height: 34px;
    padding: 0.38rem 0.48rem;
    border-radius: 9px;
}

body.admin-screen-medium .admin-topbar-card {
    padding: 0.7rem 0.8rem;
}

body.admin-screen-medium .crud-grid-2,
body.admin-screen-medium .crud-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.54rem;
}

body.admin-screen-medium .admin-sidebar-user-box {
    gap: 0.48rem;
    padding-top: 0.66rem;
}

body.admin-screen-medium input[type="text"],
body.admin-screen-medium input[type="tel"],
body.admin-screen-medium input[type="email"],
body.admin-screen-medium input[type="password"],
body.admin-screen-medium input[type="date"],
body.admin-screen-medium input[type="number"],
body.admin-screen-medium input[type="time"],
body.admin-screen-medium textarea,
body.admin-screen-medium select {
    min-height: 36px;
    font-size: 0.86rem;
}

body.admin-screen-medium .actions-row .btn-primary,
body.admin-screen-medium .actions-row .btn-secondary,
body.admin-screen-medium .actions-row .btn-danger,
body.admin-screen-medium .actions-row button {
    min-height: 32px;
    font-size: 0.82rem;
    min-width: 88px;
    padding: 0 0.62rem;
}

body.admin-screen-medium .crud-table {
    font-size: 0.79rem;
}

body.admin-screen-medium .crud-table th,
body.admin-screen-medium .crud-table td {
    padding: 0.36rem 0.38rem;
}

body.admin-screen-medium .crud-table thead th {
    font-size: 0.73rem;
}

body.admin-screen-small {
    --admin-shell-gap: 0.75rem;
    --admin-shell-padding: 0.72rem;
    --admin-card-padding: 0.82rem;
}

body.admin-screen-small .app.admin-app-shell {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
}

body.admin-screen-small .admin-main-area {
    width: 100%;
}

body.admin-screen-small .admin-page-title {
    font-size: 1.26rem;
}

body.admin-screen-small .admin-brand-head h1 {
    font-size: 1.32rem;
}

body.admin-screen-small .admin-sidebar {
    position: fixed !important;
    left: 0.72rem;
    top: 0.72rem;
    bottom: 0.72rem;
    right: auto;
    width: min(88vw, 360px);
    max-height: none !important;
    overflow-y: auto !important;
    z-index: 1200;
    padding: 0.78rem;
}

body.admin-screen-small .admin-sidebar-toggle {
    display: inline-flex !important;
}

body.admin-screen-small .admin-topbar,
body.admin-screen-small .admin-topbar-left,
body.admin-screen-small .admin-user-box {
    align-items: stretch;
}

body.admin-screen-small .actions-row form,
body.admin-screen-small .actions-row .btn-primary,
body.admin-screen-small .actions-row .btn-secondary,
body.admin-screen-small .actions-row .btn-danger,
body.admin-screen-small .actions-row button,
body.admin-screen-small .actions-row a {
    width: 100%;
}

body.admin-screen-small .crud-search-form .actions-row,
body.admin-screen-small .actions-row {
    flex-direction: column;
    align-items: stretch;
}

body.admin-screen-small .admin-orders-filter-grid,
body.admin-screen-small .admin-products-filter-grid,
body.admin-screen-small .crud-grid-2,
body.admin-screen-small .crud-grid-3 {
    grid-template-columns: 1fr !important;
}

body.admin-screen-small input[type="text"],
body.admin-screen-small input[type="tel"],
body.admin-screen-small input[type="email"],
body.admin-screen-small input[type="password"],
body.admin-screen-small input[type="date"],
body.admin-screen-small input[type="number"],
body.admin-screen-small input[type="time"],
body.admin-screen-small textarea,
body.admin-screen-small select {
    min-height: 40px;
    font-size: 0.92rem;
}

body.admin-screen-small .crud-card,
body.admin-screen-small .crud-section {
    padding: 0.78rem;
}

body.admin-screen-small .crud-grid-2,
body.admin-screen-small .crud-grid-3 {
    grid-template-columns: 1fr !important;
    gap: 0.5rem;
}

body.admin-screen-small .table-wrap-x,
body.admin-screen-small .overflow-auto {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Orders, products and finance table tuning */
body.admin-page .admin-orders-table,
body.admin-page .products-manage-table,
body.admin-page .admin-finance-card .admin-orders-table {
    table-layout: auto;
}

body.admin-page .admin-orders-table td,
body.admin-page .admin-orders-table th,
body.admin-page .products-manage-table td,
body.admin-page .products-manage-table th,
body.admin-page .admin-finance-card .admin-orders-table td,
body.admin-page .admin-finance-card .admin-orders-table th {
    overflow-wrap: anywhere;
    word-break: break-word;
}

body.admin-page .admin-orders-table td:last-child .actions-row,
body.admin-page .products-manage-table td:last-child .actions-row,
body.admin-page .admin-finance-card .admin-orders-table td:last-child .actions-row {
    flex-wrap: wrap;
    justify-content: flex-start;
}

body.admin-page .admin-orders-table td:nth-child(3),
body.admin-page .products-manage-table td:nth-child(1),
body.admin-page .admin-finance-card .admin-orders-table td:nth-child(3) {
    white-space: normal;
}

body.admin-screen-medium .admin-orders-table {
    font-size: 0.78rem;
}

body.admin-screen-medium .admin-orders-table th,
body.admin-screen-medium .admin-orders-table td {
    padding: 0.38rem 0.4rem;
}

body.admin-screen-medium .admin-orders-table th:nth-child(3),
body.admin-screen-medium .admin-orders-table td:nth-child(3) {
    min-width: 150px;
}

body.admin-screen-medium .admin-orders-table th:nth-child(6),
body.admin-screen-medium .admin-orders-table td:nth-child(6) {
    min-width: 110px;
}

body.admin-screen-medium .admin-orders-bottom-tools .actions-row {
    flex-wrap: wrap;
}

body.admin-screen-medium .products-manage-table {
    min-width: 0 !important;
    font-size: 0.78rem;
}

body.admin-screen-medium .products-manage-table th,
body.admin-screen-medium .products-manage-table td {
    padding: 0.36rem 0.38rem;
}

body.admin-screen-medium .products-manage-table th:nth-child(1),
body.admin-screen-medium .products-manage-table td:nth-child(1) {
    width: 24%;
    min-width: 165px;
}

body.admin-screen-medium .products-manage-table th:nth-child(2),
body.admin-screen-medium .products-manage-table td:nth-child(2) {
    width: 7%;
    min-width: 60px;
}

body.admin-screen-medium .products-manage-table th:last-child,
body.admin-screen-medium .products-manage-table td:last-child {
    width: 16% !important;
    min-width: 150px !important;
}

body.admin-screen-medium .products-manage-actions .btn-secondary,
body.admin-screen-medium .products-manage-actions .btn-danger,
body.admin-screen-medium .products-manage-actions form button {
    min-height: 30px !important;
    padding: 0 0.48rem !important;
    font-size: 0.76rem !important;
}

body.admin-screen-medium .admin-finance-card .admin-orders-table {
    font-size: 0.77rem;
}

body.admin-screen-medium .admin-finance-card .admin-orders-table th,
body.admin-screen-medium .admin-finance-card .admin-orders-table td {
    padding: 0.36rem 0.38rem;
}

body.admin-screen-medium .admin-finance-card .admin-orders-table th:nth-child(3),
body.admin-screen-medium .admin-finance-card .admin-orders-table td:nth-child(3) {
    min-width: 150px;
}

body.admin-screen-medium .admin-finance-card .admin-orders-table th:nth-child(10),
body.admin-screen-medium .admin-finance-card .admin-orders-table td:nth-child(10) {
    min-width: 150px;
    width: 150px;
}

body.admin-screen-small .admin-orders-table,
body.admin-screen-small .products-manage-table,
body.admin-screen-small .admin-finance-card .admin-orders-table {
    min-width: 760px !important;
    font-size: 0.76rem;
}

body.admin-screen-small .admin-orders-table th,
body.admin-screen-small .admin-orders-table td,
body.admin-screen-small .products-manage-table th,
body.admin-screen-small .products-manage-table td,
body.admin-screen-small .admin-finance-card .admin-orders-table th,
body.admin-screen-small .admin-finance-card .admin-orders-table td {
    padding: 0.34rem 0.36rem;
}

body.admin-screen-small .admin-orders-table th:nth-child(3),
body.admin-screen-small .admin-orders-table td:nth-child(3),
body.admin-screen-small .products-manage-table th:nth-child(1),
body.admin-screen-small .products-manage-table td:nth-child(1),
body.admin-screen-small .admin-finance-card .admin-orders-table th:nth-child(3),
body.admin-screen-small .admin-finance-card .admin-orders-table td:nth-child(3) {
    min-width: 140px;
}

body.admin-screen-small .admin-orders-table th:last-child,
body.admin-screen-small .admin-orders-table td:last-child,
body.admin-screen-small .products-manage-table th:last-child,
body.admin-screen-small .products-manage-table td:last-child,
body.admin-screen-small .admin-finance-card .admin-orders-table th:nth-child(10),
body.admin-screen-small .admin-finance-card .admin-orders-table td:nth-child(10) {
    min-width: 140px !important;
}

body.admin-screen-small .products-manage-actions,
body.admin-screen-small .admin-finance-card .admin-orders-table td:last-child .actions-row {
    gap: 0.22rem !important;
}

/* Dashboard layout */
.dashboard-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.dashboard-summary-card {
    display: grid;
    gap: 0.22rem;
    align-content: start;
}

.dashboard-summary-card--focus {
    background: linear-gradient(135deg, #f7fbff 0%, #edf5ff 100%);
    border-color: #cfe0f3;
}

.dashboard-summary-card--alert {
    background: linear-gradient(135deg, #fffaf7 0%, #fff2ec 100%);
    border-color: #f3d2c4;
}

.dashboard-summary-card__label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #607182;
}

.dashboard-summary-card__value {
    font-size: 1.55rem;
    line-height: 1.05;
    color: #163a5f;
}

.dashboard-summary-card__meta {
    font-size: 0.84rem;
    color: #5b6977;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(300px, 0.85fr);
    gap: 0.8rem;
    align-items: start;
}

.dashboard-main-column,
.dashboard-side-column {
    display: grid;
    gap: 0.8rem;
    min-width: 0;
}

.dashboard-card {
    min-width: 0;
}

.dashboard-side-column .dashboard-card {
    padding: 0.78rem;
}

.dashboard-side-column .dashboard-card > h3 {
    font-size: 0.98rem;
    margin-bottom: 0.18rem;
}

.dashboard-side-column .dashboard-card > .text-muted {
    margin-bottom: 0.48rem;
}

.dashboard-card .crud-table,
.dashboard-card table {
    width: 100%;
}

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

.dashboard-agenda-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: 0.45rem;
}

.dashboard-agenda-grid--wide {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.dashboard-agenda-card {
    display: grid;
    gap: 0.1rem;
    padding: 0.58rem;
    border: 1px solid #dbe6f2;
    border-radius: 12px;
    background: linear-gradient(180deg, #fbfdff 0%, #f3f8ff 100%);
}

.dashboard-agenda-card__day {
    font-size: 0.94rem;
    font-weight: 700;
    color: #173654;
}

.dashboard-agenda-card__week,
.dashboard-agenda-card__meta {
    font-size: 0.72rem;
    color: #617181;
}

.dashboard-agenda-card__count {
    font-size: 1.16rem;
    line-height: 1.05;
    color: #1458a6;
}

.dashboard-reservations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.65rem;
}

.dashboard-reservation-card {
    display: grid;
    gap: 0.35rem;
    padding: 0.85rem;
    border: 1px solid #dbe6f2;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.dashboard-reservation-card__head {
    display: flex;
    justify-content: space-between;
    gap: 0.45rem;
    align-items: center;
}

.dashboard-reservation-card__status {
    font-size: 0.78rem;
    font-weight: 700;
    color: #2f5f8f;
    background: #eaf3ff;
    border: 1px solid #cfe0f3;
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
}

.dashboard-reservation-card__customer {
    font-size: 0.98rem;
    font-weight: 700;
    color: #163a5f;
}

.dashboard-reservation-card__meta {
    display: grid;
    gap: 0.14rem;
    font-size: 0.82rem;
    color: #5f6f7f;
}

.dashboard-reservation-card__total {
    font-size: 1rem;
    font-weight: 700;
    color: #1458a6;
}

.dashboard-monthly-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.48rem;
}

.dashboard-monthly-card {
    display: grid;
    gap: 0.18rem;
    padding: 0.62rem;
    border: 1px solid #dbe6f2;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.dashboard-monthly-card__day {
    font-size: 0.86rem;
    font-weight: 700;
    color: #163a5f;
}

.dashboard-monthly-card__orders {
    font-size: 0.76rem;
    color: #607080;
}

.dashboard-monthly-card__total {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1762b0;
}

.dashboard-security-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
}

.dashboard-security-card {
    display: grid;
    gap: 0.12rem;
    padding: 0.58rem;
    border: 1px solid rgba(23, 58, 95, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
}

.dashboard-security-card__label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #607182;
}

.dashboard-security-card__value {
    font-size: 1.08rem;
    line-height: 1.05;
    color: #173654;
}

body.admin-screen-medium .dashboard-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.85fr);
    gap: 0.65rem;
}

body.admin-screen-medium .dashboard-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

body.admin-screen-medium .dashboard-summary-card__value {
    font-size: 1.35rem;
}

body.admin-screen-medium .dashboard-agenda-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.admin-screen-medium .dashboard-reservations-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.admin-screen-medium .dashboard-monthly-grid {
    grid-template-columns: 1fr;
}

body.admin-screen-medium .dashboard-security-grid {
    grid-template-columns: 1fr;
}

body.admin-screen-small .dashboard-layout {
    grid-template-columns: 1fr;
}

body.admin-screen-small .dashboard-summary-grid {
    grid-template-columns: 1fr;
    gap: 0.55rem;
}

body.admin-screen-small .dashboard-summary-card__value {
    font-size: 1.26rem;
}

body.admin-screen-small .dashboard-agenda-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.admin-screen-small .dashboard-reservations-grid {
    grid-template-columns: 1fr;
}

body.admin-screen-small .dashboard-monthly-grid {
    grid-template-columns: 1fr;
}

body.admin-screen-small .dashboard-security-grid {
    grid-template-columns: 1fr;
}

.finance-launch-summary__remaining {
    border-color: #f0d39b;
    background: linear-gradient(180deg, #fff9ef 0%, #ffffff 100%);
}

.finance-launch-summary__remaining.is-settled {
    border-color: #8be193;
    background: linear-gradient(180deg, #efffeb 0%, #ffffff 100%);
}

.finance-launch-summary__remaining.is-overflow {
    border-color: #e5b3b3;
    background: linear-gradient(180deg, #fff1f1 0%, #ffffff 100%);
}

.finance-launch-summary__badge {
    display: none;
    margin-top: 0.15rem;
    width: fit-content;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid #b9dfc0;
    background: #eefbf0;
    color: #166534;
    font-size: 0.78rem;
    font-weight: 700;
}

.finance-launch-summary__badge.is-visible {
    display: inline-flex;
}

.finance-payment-table input,
.finance-payment-table select {
    min-width: 140px;
}

.finance-payment-table td:last-child,
.finance-payment-table th:last-child {
    white-space: nowrap;
}

.company-report-logo-card {
    border: 1px solid #cbdcf3;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    margin-top: 1rem;
    padding: 1rem;
}

.company-report-logo-card h4 {
    margin: 0 0 0.35rem;
}

.company-report-logo-row {
    align-items: center;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
    margin-top: 0.85rem;
}

.company-report-logo-preview {
    align-items: center;
    border: 1px dashed #9eb8dc;
    border-radius: 12px;
    background: #fff;
    display: flex;
    justify-content: center;
    min-height: 92px;
    padding: 0.7rem;
}

.company-report-logo-preview img {
    display: block;
    max-height: 78px;
    max-width: 220px;
    object-fit: contain;
}

.company-report-logo-preview span {
    color: #59708f;
    font-size: 0.9rem;
}

.company-report-logo-input small {
    color: #5f718a;
    display: block;
    font-size: 0.82rem;
    margin-top: 0.35rem;
}

.sms-balance-badge {
    align-items: center;
    background: #e8f8ee;
    border: 1px solid #9ad9ad;
    border-radius: 999px;
    color: #127230;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    margin-left: 0.45rem;
    padding: 0.35rem 0.55rem;
    vertical-align: middle;
    white-space: nowrap;
}

@media (max-width: 980px) {
    .admin-products-filter-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .admin-products-editor-head {
        flex-direction: column;
        align-items: stretch;
    }

    .product-variation-stock-head {
        flex-direction: column;
    }
}

.catalog-summary-grid {
    margin-top: 1rem;
}

.catalog-products-table td {
    vertical-align: top;
}

.catalog-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
}

.catalog-status-pill.is-ok {
    background: #dcfce7;
    color: #166534;
}

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

.catalog-status-pill.is-warn {
    background: #fef3c7;
    color: #92400e;
}

.catalog-status-pill.is-error {
    background: #fee2e2;
    color: #991b1b;
}

.catalog-status-pill.is-muted {
    background: #e5e7eb;
    color: #374151;
}

.catalog-progress-box {
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    background: #f8fbff;
    padding: 1rem;
    margin-bottom: 1rem;
}

.catalog-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.55rem;
    color: #163b66;
}

.catalog-progress-bar {
    height: 14px;
    border-radius: 999px;
    background: #dbeafe;
    overflow: hidden;
}

.catalog-progress-bar span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #1d4ed8, #16a34a);
    transition: width 0.45s ease;
}

.catalog-progress-note {
    margin-top: 0.5rem;
    color: #64748b;
    font-size: 0.92rem;
}

.catalog-progress-box.is-running .catalog-progress-bar span {
    transition: width 0.7s ease;
}

.catalog-company-guard {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.8rem;
    padding: 0.85rem 1rem;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    background: #f0fdf4;
    color: #14532d;
}

.catalog-company-guard span {
    display: inline-flex;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: #dcfce7;
    font-weight: 700;
    font-size: 0.86rem;
}

.catalog-company-guard small {
    flex-basis: 100%;
    color: #166534;
}

.btn-success {
    background: #16834c;
    color: #fff;
    border: 0;
    border-radius: 12px;
    padding: 0.75rem 1.2rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 22px rgba(22, 131, 76, 0.18);
}

.btn-success:hover {
    background: #0f6b3d;
}

.btn-success:disabled,
.btn-danger:disabled,
.btn-primary:disabled,
.btn-secondary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-small {
    padding: 0.5rem 0.8rem;
    border-radius: 10px;
    font-size: 0.9rem;
}

.product-catalog-card {
    border-color: #bfdbfe;
    background: #f8fbff;
}

.marketing-store-card,
.store-admin-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    margin: 0.75rem 0 1rem;
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    background: linear-gradient(135deg, #eff6ff, #f8fafc);
}

.store-admin-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.store-admin-form label {
    margin-top: 0.85rem;
}

.store-admin-section {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #d7e6f5;
    border-radius: 18px;
    background: #f8fbff;
}

.store-admin-section h3 {
    margin: 0 0 0.35rem;
    color: #123c69;
}

.store-banner-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 0.75rem;
    margin-top: 0.9rem;
}

.store-banner-media-card {
    display: grid;
    gap: 0.55rem;
    align-content: start;
    padding: 0.75rem;
    border: 1px solid #c7d9ec;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(18, 60, 105, 0.06);
}

.store-banner-media-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    background: #eaf2fb;
}

.store-banner-media-card strong {
    color: #123c69;
    font-size: 0.98rem;
}

.store-banner-media-card small {
    color: #64748b;
    font-size: 0.83rem;
    word-break: break-word;
}

.store-banner-media-card__remove {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #b91c1c;
    font-size: 0.9rem;
    font-weight: 700;
}

.btn-secondary--small {
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    font-size: 0.82rem;
}

.store-banner-media-card__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.store-banner-preview-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.95fr);
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #c7d9ec;
    border-radius: 20px;
    background: linear-gradient(135deg, #eff6ff, #f8fbff);
    box-shadow: 0 10px 26px rgba(18, 60, 105, 0.06);
}

.store-banner-preview-panel__copy h3 {
    margin: 0.2rem 0 0.35rem;
    color: #123c69;
    font-size: 1.3rem;
}

.store-banner-preview-panel__copy p {
    margin: 0;
    color: #475569;
}

.store-banner-preview-panel__media {
    min-height: 180px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #ecfeff);
}

.store-banner-preview-panel__media img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    display: block;
}

.store-banner-preview-panel__empty {
    display: grid;
    place-items: center;
    min-height: 180px;
    color: #123c69;
    font-weight: 700;
}

.store-banner-draft-list {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.75rem;
}

.store-banner-draft-item {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.7rem;
    border: 1px solid #d7e6f5;
    border-radius: 16px;
    background: #fff;
}

.store-banner-draft-item img {
    width: 82px;
    height: 62px;
    object-fit: cover;
    border-radius: 12px;
    background: #eaf2fb;
}

.store-banner-draft-item__body {
    display: grid;
    gap: 0.25rem;
}

.store-banner-draft-item__body strong {
    color: #123c69;
}

.store-banner-draft-item__body small {
    color: #64748b;
}

.store-admin-mode-card {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #c7d9ec;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(18, 60, 105, 0.05);
}

.store-admin-mode-card h4 {
    margin: 0 0 0.85rem;
    color: #123c69;
    font-size: 1.02rem;
}

.store-admin-mode-card .grid-1 {
    display: grid;
    gap: 0.85rem;
}

.store-admin-mode-card .full-width {
    grid-column: 1 / -1;
}

.store-discount-rules {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.store-installment-rules {
    display: grid;
    gap: 0.75rem;
    padding: 0.9rem;
    border: 1px solid #d7e6f5;
    border-radius: 16px;
    background: #f7fbff;
}

.store-installment-rules__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.store-installment-rules__item {
    display: grid;
    gap: 0.55rem;
    padding: 0.85rem;
    border: 1px solid #cfe0f2;
    border-radius: 14px;
    background: #fff;
}

.store-discount-rule {
    display: grid;
    gap: 0.55rem;
    padding: 0.85rem;
    border: 1px solid #c7d9ec;
    border-radius: 16px;
    background: #fff;
}

.store-discount-rule strong {
    color: #123c69;
}

.storefront-page {
    margin: 0;
    min-height: 100vh;
    color: #10233f;
    background:
        radial-gradient(circle at 15% 12%, rgba(245, 158, 11, 0.18), transparent 30rem),
        radial-gradient(circle at 88% 18%, rgba(20, 184, 166, 0.16), transparent 28rem),
        linear-gradient(180deg, #f8fafc 0%, #eef5ff 55%, #fff7ed 100%);
}

.storefront-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(220px, 0.7fr) minmax(320px, 1.15fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem clamp(1rem, 4vw, 4.5rem);
    border-bottom: 1px solid rgba(18, 60, 105, 0.12);
    background: rgba(248, 250, 252, 0.9);
    backdrop-filter: blur(18px);
}

.storefront-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: #123c69;
    text-decoration: none;
}

.storefront-brand-mark {
    display: inline-grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 1rem;
    color: #fff;
    font-weight: 900;
    letter-spacing: -0.06em;
    background: linear-gradient(135deg, #123c69, #0f766e);
    box-shadow: 0 14px 30px rgba(18, 60, 105, 0.24);
}

.storefront-brand strong,
.storefront-brand small {
    display: block;
}

.storefront-brand small {
    color: #64748b;
    font-size: 0.8rem;
}

.storefront-nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.storefront-nav-logout {
    display: inline-flex;
    margin: 0;
}

.storefront-nav-links a,
.storefront-nav-button,
.storefront-cart-toggle,
.storefront-clear {
    color: #123c69;
    font-weight: 800;
    text-decoration: none;
}

.storefront-nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    cursor: pointer;
    background: #fff;
}

.storefront-nav-button--muted {
    color: #475569 !important;
    background: #f8fafc;
}

.storefront-category-menu {
    position: relative;
}

.storefront-category-dropdown {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    z-index: 30;
    display: none;
    width: min(320px, 90vw);
    max-height: 420px;
    overflow: auto;
    padding: 0.45rem;
    border: 1px solid rgba(18, 60, 105, 0.16);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.16);
}

.storefront-category-dropdown.is-open {
    display: grid;
    gap: 0.3rem;
}

.storefront-category-dropdown a {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    color: #123c69;
    text-decoration: none;
}

.storefront-category-dropdown a:hover,
.storefront-category-dropdown a.is-active {
    background: #eff6ff;
}

.storefront-category-dropdown small,
.storefront-customer-pill {
    color: #64748b;
    font-weight: 800;
}

.storefront-customer-pill {
    max-width: 160px;
    overflow: hidden;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: #ecfdf5;
}

.storefront-cart-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    cursor: pointer;
    background: #eff6ff;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.storefront-cart-toggle span {
    display: inline-grid;
    min-width: 1.35rem;
    min-height: 1.35rem;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    font-size: 0.78rem;
    background: #123c69;
}

.storefront-cart-toggle.has-items {
    border-color: rgba(21, 128, 61, 0.28);
    background: linear-gradient(135deg, #ecfdf5, #dcfce7);
    box-shadow: 0 12px 24px rgba(21, 128, 61, 0.12);
}

.storefront-cart-toggle.is-highlighted {
    animation: storefrontCartButtonPulse 0.62s ease;
}

.storefront-cart-toggle.is-highlighted span {
    animation: storefrontCartBadgePop 0.62s ease;
}

@keyframes storefrontCartButtonPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(21, 128, 61, 0);
    }
    35% {
        transform: scale(1.06);
        box-shadow: 0 0 0 0.28rem rgba(21, 128, 61, 0.18);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(21, 128, 61, 0);
    }
}

@keyframes storefrontCartBadgePop {
    0% {
        transform: scale(1);
    }
    35% {
        transform: scale(1.18);
    }
    100% {
        transform: scale(1);
    }
}

.storefront-cart-toast {
    position: fixed;
    z-index: 130;
    max-width: 240px;
    padding: 0.72rem 0.9rem;
    border: 1px solid rgba(21, 128, 61, 0.22);
    border-radius: 14px;
    background: rgba(236, 253, 245, 0.98);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
    color: #14532d;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.25;
    pointer-events: none;
    opacity: 0;
    transform: translateY(8px) scale(0.98);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.storefront-cart-toast.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.storefront-whatsapp,
.storefront-product-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.72rem 1rem;
    border-radius: 999px;
    color: #fff !important;
    font-weight: 900;
    text-decoration: none;
    background: #15803d;
    box-shadow: 0 12px 22px rgba(21, 128, 61, 0.2);
}

.storefront-whatsapp-float {
    position: fixed;
    right: clamp(0.85rem, 2vw, 1.25rem);
    bottom: clamp(0.85rem, 2vw, 1.25rem);
    z-index: 120;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 18px 34px rgba(18, 140, 126, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.storefront-whatsapp-float:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 22px 40px rgba(18, 140, 126, 0.34);
    filter: brightness(1.03);
}

.storefront-whatsapp-float:focus-visible {
    outline: 3px solid rgba(37, 211, 102, 0.35);
    outline-offset: 3px;
}

.storefront-whatsapp-float svg {
    width: 1.85rem;
    height: 1.85rem;
    fill: currentColor;
}

.storefront-product-cta {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.storefront-shell {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1rem 0 3rem;
}

.storefront-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
    gap: 0.85rem;
    align-items: stretch;
    padding: clamp(0.85rem, 2vw, 1.25rem);
    border: 1px solid rgba(18, 60, 105, 0.12);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(18, 60, 105, 0.96), rgba(15, 118, 110, 0.9)),
        #123c69;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
    overflow: hidden;
}

.storefront-hero-copy {
    color: #fff;
}

.storefront-kicker {
    display: inline-flex;
    margin-bottom: 0.45rem;
    color: #f59e0b;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.storefront-hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(1.55rem, 3.4vw, 3.1rem);
    line-height: 1;
    letter-spacing: -0.065em;
}

.storefront-hero p {
    max-width: 720px;
    margin: 0.55rem 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.98rem;
}

.storefront-search {
    display: flex;
    gap: 0.65rem;
    max-width: 700px;
    margin-top: 1.4rem;
    padding: 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.storefront-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    border-radius: 999px;
    padding: 0.95rem 1.1rem;
    font-size: 1rem;
    background: #fff;
}

.storefront-search button {
    border: 0;
    border-radius: 999px;
    padding: 0.95rem 1.35rem;
    color: #10233f;
    font-weight: 900;
    background: #fbbf24;
    cursor: pointer;
}

.storefront-products-search-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.storefront-search--products {
    flex: 1;
    max-width: none;
    margin-top: 0;
    background: #eef5ff;
    border: 1px solid #c7d9ec;
}

.storefront-search--nav {
    width: min(640px, 100%);
    justify-self: center;
    margin-top: 0;
    background: #eef5ff;
    border: 1px solid #c7d9ec;
    box-shadow: 0 10px 26px rgba(18, 60, 105, 0.08);
}

.storefront-search--nav input {
    padding: 0.78rem 1rem;
}

.storefront-search--nav button,
.storefront-search--products button {
    color: #fff;
    background: linear-gradient(135deg, #123c69, #0f766e);
}

.storefront-banner-card {
    position: relative;
    display: flex;
    min-height: 220px;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.45rem;
    padding: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 20px;
    color: #fff;
    overflow: hidden;
    background:
        linear-gradient(160deg, rgba(251, 191, 36, 0.9), rgba(20, 184, 166, 0.7)),
        repeating-linear-gradient(45deg, rgba(255,255,255,0.2) 0 8px, transparent 8px 16px);
}

.storefront-banner-card--slider {
    padding: 0;
    background: linear-gradient(160deg, #123c69, #0f766e);
}

.storefront-banner-slides {
    position: absolute;
    inset: 0;
}

.storefront-banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.9s ease, transform 7s ease;
    will-change: opacity, transform;
}

.storefront-banner-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.storefront-banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.08);
    transition: transform 7s ease;
}

.storefront-banner-slide.is-active img {
    transform: scale(1);
}

.storefront-banner-slide__overlay {
    position: absolute;
    inset: auto 0 0 0;
    display: grid;
    gap: 0.35rem;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(7, 14, 25, 0) 0%, rgba(7, 14, 25, 0.78) 100%);
}

.storefront-banner-slide__overlay span {
    align-self: flex-start;
    width: fit-content;
    padding: 0.22rem 0.58rem;
    border-radius: 999px;
    color: #123c69;
    font-size: 0.78rem;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.9);
}

.storefront-banner-slide__overlay strong {
    max-width: 92%;
    color: #fff;
    font-size: clamp(1rem, 2vw, 1.45rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.storefront-banner-overlay {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 150px;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.45rem;
    padding: 0.95rem;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(7, 14, 25, 0.08) 0%, rgba(7, 14, 25, 0.36) 100%);
}

.storefront-banner-card small {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.82rem;
    font-weight: 800;
}

.storefront-banner-dots {
    position: absolute;
    right: 0.9rem;
    bottom: 0.85rem;
    z-index: 2;
    display: flex;
    gap: 0.35rem;
}

.storefront-banner-dot {
    width: 0.68rem;
    height: 0.68rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
    cursor: pointer;
}

.storefront-banner-dot.is-active {
    background: #fff;
}

.storefront-products-section,
.storefront-contact-card {
    margin-top: 0.75rem;
    padding: clamp(0.75rem, 2vw, 1.1rem);
    border: 1px solid rgba(18, 60, 105, 0.12);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.storefront-contact-note {
    display: inline-block;
    margin-top: 0.45rem;
    color: #475569;
    font-size: 0.9rem;
}

.storefront-section-head,
.storefront-contact-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.storefront-section-head h2,
.storefront-contact-card h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    letter-spacing: -0.05em;
}

.storefront-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.storefront-product-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(18, 60, 105, 0.12);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.storefront-product-image {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #dbeafe, #fff7ed);
    overflow: hidden;
}

.storefront-product-image--link {
    color: inherit;
    text-decoration: none;
}

.storefront-product-image--link:hover img {
    transform: scale(1.03);
}

.storefront-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.storefront-product-image span {
    color: #123c69;
    font-weight: 900;
}

.storefront-product-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1rem;
}

.storefront-product-tag {
    align-self: flex-start;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    color: #0f766e;
    font-size: 0.78rem;
    font-weight: 900;
    background: #ccfbf1;
}

.storefront-product-body h3 {
    margin: 0;
    color: #0f2745;
    font-size: 1.15rem;
    line-height: 1.1;
}

.storefront-product-body h3 a {
    color: inherit;
    text-decoration: none;
}

.storefront-product-body h3 a:hover {
    color: #123c69;
    text-decoration: underline;
}

.storefront-product-body p {
    margin: 0;
    color: #64748b;
    line-height: 1.35;
}

.storefront-product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    margin-top: auto;
}

.storefront-product-meta strong {
    color: #123c69;
    font-size: 1.12rem;
}

.storefront-product-meta span {
    color: #64748b;
    font-size: 0.86rem;
}

.storefront-product-meta--locked {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
}

.storefront-product-meta--locked strong {
    color: #b45309;
}

.storefront-product-cta {
    width: 100%;
    margin-top: 0.2rem;
}

.storefront-product-register,
.storefront-product-login {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    padding: 0.72rem 1rem;
    border-radius: 999px;
    font-weight: 900;
    text-decoration: none;
}

.storefront-product-register {
    color: #fff !important;
    background: #123c69;
    box-shadow: 0 12px 22px rgba(18, 60, 105, 0.18);
}

.storefront-product-login {
    color: #123c69 !important;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
}

.storefront-product-cta.is-disabled {
    background: #94a3b8;
}

.storefront-results-count {
    margin-top: 0.8rem;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 700;
}

.storefront-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 1.35rem;
}

.storefront-page-link,
.storefront-page-ellipsis {
    min-width: 2.35rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(18, 60, 105, 0.16);
    border-radius: 999px;
    color: #123c69;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
    background: #fff;
}

.storefront-page-link:hover {
    border-color: rgba(18, 60, 105, 0.42);
    transform: translateY(-1px);
}

.storefront-page-link.is-current {
    border-color: #123c69;
    color: #fff;
    background: #123c69;
}

.storefront-page-link.is-disabled {
    color: #94a3b8;
    background: #f1f5f9;
    cursor: not-allowed;
}

.storefront-page-ellipsis {
    border-color: transparent;
    background: transparent;
}

.storefront-cart {
    position: fixed;
    right: 1rem;
    top: 5.65rem;
    z-index: 40;
    width: min(380px, calc(100% - 2rem));
    max-height: min(520px, calc(100vh - 7rem));
    display: none;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1rem;
    border: 1px solid rgba(18, 60, 105, 0.14);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
    transform: translateY(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.storefront-cart.is-open {
    display: flex;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.storefront-cart-head,
.storefront-cart-total,
.storefront-cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.storefront-cart-thumb {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 42px;
    height: 42px;
    overflow: hidden;
    border: 1px solid #d7e6f5;
    border-radius: 12px;
    background: linear-gradient(135deg, #eff6ff, #f8fafc);
}

.storefront-cart-thumb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.storefront-cart-thumb-fallback {
    color: #123c69;
    font-size: 1rem;
    font-weight: 900;
}

.storefront-cart-item-info {
    min-width: 0;
    flex: 1;
}

.storefront-cart-head strong {
    color: #0f2745;
    font-size: 1.1rem;
}

.storefront-cart-head button,
.storefront-cart-item button {
    border: 0;
    color: #dc2626;
    font-weight: 900;
    cursor: pointer;
    background: transparent;
}

.storefront-cart-items {
    max-height: 300px;
    overflow: auto;
    color: #64748b;
}

.storefront-cart-item {
    padding: 0.65rem 0;
    border-top: 1px solid #e2e8f0;
}

.storefront-cart-item strong {
    display: block;
    color: #0f2745;
    font-size: 0.92rem;
}

.storefront-cart-item small {
    color: #64748b;
}

.storefront-cart-total {
    padding-top: 0.85rem;
    border-top: 1px solid #bfdbfe;
    color: #123c69;
    font-weight: 900;
}

.storefront-cart-finish {
    display: inline-flex;
    justify-content: center;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    color: #fff;
    font-weight: 900;
    text-decoration: none;
    background: #15803d;
}

.storefront-cart-finish.is-disabled {
    background: #94a3b8;
}

.storefront-checkout-qty-wrap {
    display: grid;
    gap: 0.45rem;
    min-width: 120px;
}

.storefront-checkout-qty-input {
    width: 88px;
    min-height: 38px;
    padding: 0 0.45rem;
    border: 1px solid #bfd6ee;
    border-radius: 12px;
    text-align: center;
    font-weight: 800;
    color: #123c69;
    background: #fff;
}

.storefront-checkout-remove {
    padding: 0;
    border: 0;
    color: #dc2626;
    font-weight: 900;
    text-align: left;
    cursor: pointer;
    background: transparent;
}

.storefront-qty-popover {
    position: fixed;
    z-index: 60;
    width: min(260px, calc(100vw - 24px));
    padding: 0.85rem;
    border: 1px solid rgba(18, 60, 105, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
}

.storefront-qty-popover__title {
    margin: 0 0 0.65rem;
    color: #123c69;
    font-size: 0.95rem;
    font-weight: 900;
}

.storefront-qty-popover__row {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 0.65rem;
    align-items: end;
}

.storefront-qty-popover__row label {
    margin: 0;
    font-size: 0.85rem;
}

.storefront-qty-popover__actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.storefront-qty-popover__actions button {
    flex: 1;
    min-width: 0;
    padding: 0.62rem 0.75rem;
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.storefront-qty-popover__confirm {
    background: linear-gradient(135deg, #15803d, #0f766e);
}

.storefront-qty-popover__cancel {
    background: #ef4444;
}

.storefront-qty-popover__qty {
    width: 100%;
    text-align: center;
}

.storefront-empty {
    padding: 2rem;
    border: 1px dashed #bfdbfe;
    border-radius: 20px;
    color: #64748b;
    text-align: center;
    background: #f8fafc;
}

.storefront-back-link {
    display: inline-flex;
    margin: 1rem 0 0.75rem;
}

.storefront-product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: clamp(1rem, 3vw, 2rem);
    margin-bottom: 2rem;
    padding: clamp(1rem, 3vw, 1.5rem);
    border: 1px solid #dbe7f3;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 22px 60px rgba(15, 39, 69, 0.1);
}

.storefront-product-gallery {
    display: grid;
    gap: 0.85rem;
}

.storefront-product-main-image {
    display: grid;
    place-items: center;
    min-height: 470px;
    overflow: hidden;
    border: 1px solid #dbe7f3;
    border-radius: 22px;
    background: #f8fafc;
    touch-action: pan-y pinch-zoom;
    -webkit-user-select: none;
    user-select: none;
}

.storefront-product-main-image img {
    width: 100%;
    height: 100%;
    max-height: 560px;
    object-fit: contain;
    -webkit-user-drag: none;
    user-select: none;
}

.storefront-product-main-image span {
    color: #123c69;
    font-weight: 900;
}

.storefront-product-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: 0.6rem;
}

.storefront-product-thumbs button {
    height: 84px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
}

.storefront-product-thumbs button.is-active {
    border-color: #123c69;
}

.storefront-product-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.storefront-product-detail-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.storefront-product-detail-info h1 {
    margin: 0;
    color: #0f2745;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.02;
}

.storefront-product-sku {
    margin: -0.4rem 0 0;
    color: #64748b;
    font-weight: 800;
}

.storefront-product-description {
    padding: 1rem;
    border: 1px solid #dbe7f3;
    border-radius: 18px;
    color: #334155;
    line-height: 1.55;
    background: #f8fafc;
}

.storefront-product-detail-price {
    display: grid;
    gap: 0.25rem;
    padding: 1rem;
    border-radius: 20px;
    background: linear-gradient(135deg, #eff6ff, #ecfdf5);
}

.storefront-product-detail-price span,
.storefront-product-detail-price small {
    color: #64748b;
    font-weight: 800;
}

.storefront-product-detail-price strong {
    color: #123c69;
    font-size: 2rem;
}

.storefront-product-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.storefront-product-detail-actions .storefront-product-cta,
.storefront-product-detail-actions .storefront-product-register,
.storefront-product-detail-actions .storefront-product-login {
    width: auto;
    min-width: 190px;
    padding-inline: 1.25rem;
}

.storefront-product-cta--finish {
    background: linear-gradient(135deg, #15803d, #0f766e);
}

.storefront-product-detail-locked {
    padding: 1rem;
    border: 1px solid #fed7aa;
    border-radius: 18px;
    background: #fff7ed;
}

.storefront-auth-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 2rem 1rem;
}

.storefront-orders-shell {
    min-height: calc(100vh - 80px);
}

.storefront-auth-card {
    width: min(760px, 100%);
    padding: clamp(1.25rem, 4vw, 2rem);
    border: 1px solid rgba(18, 60, 105, 0.13);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.14);
}

.storefront-orders-card {
    width: min(1040px, 100%);
}

.storefront-auth-brand {
    margin-bottom: 1.2rem;
}

.storefront-auth-card h1 {
    margin: 0;
    color: #0f2745;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    letter-spacing: -0.05em;
}

.storefront-auth-intro {
    margin: 0.5rem 0 1.25rem;
    color: #64748b;
}

.storefront-auth-alert {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    font-weight: 700;
}

.storefront-auth-alert p {
    margin: 0;
}

.storefront-auth-alert p + p {
    margin-top: 0.35rem;
}

.storefront-auth-alert--error {
    color: #b91c1c;
    background: #fee2e2;
}

.storefront-auth-alert--success {
    color: #166534;
    background: #dcfce7;
}

.storefront-checkout-flow {
    display: grid;
    gap: 1rem;
}

.storefront-checkout-flow-card {
    padding: 1rem;
    border: 1px solid #c7d9ec;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    box-shadow: 0 10px 24px rgba(18, 60, 105, 0.05);
}

.storefront-checkout-flow-card--active {
    border-color: #0f766e;
    background: linear-gradient(180deg, #f0fdfa, #ecfeff);
    box-shadow: 0 14px 28px rgba(15, 118, 110, 0.12);
}

.storefront-checkout-flow-card[data-payment-mode="avista"] {
    border-color: #0f766e;
}

.storefront-checkout-flow-card[data-payment-mode="prazo"] {
    border-color: #1d4ed8;
    background: linear-gradient(180deg, #eff6ff, #f8fbff);
    box-shadow: 0 14px 28px rgba(29, 78, 216, 0.12);
}

.storefront-checkout-flow-card--warning {
    border-color: #f59e0b;
    background: linear-gradient(180deg, #fff7ed, #fffbeb);
    box-shadow: 0 14px 28px rgba(245, 158, 11, 0.16);
}

.storefront-checkout-flow-step {
    display: grid;
    gap: 0.65rem;
}

.storefront-checkout-flow-step-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.storefront-checkout-flow-step-head strong {
    font-size: 0.98rem;
}

.storefront-checkout-flow-step-head small {
    font-size: 0.82rem;
    color: #6b7280;
    font-weight: 600;
    text-align: right;
}

.storefront-checkout-flow-step select,
.storefront-checkout-flow-step input {
    width: 100%;
}

.storefront-checkout-flow-step small[data-checkout-payment-message],
.storefront-checkout-flow-step small[data-checkout-entry-message],
.storefront-checkout-flow-step small[data-checkout-installment-message] {
    display: block;
}

.storefront-auth-notice {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid #fed7aa;
    border-radius: 16px;
    color: #92400e;
    font-weight: 800;
    background: #fff7ed;
}

.storefront-auth-form {
    display: grid;
    gap: 0.85rem;
}

.storefront-auth-form--wide {
    gap: 1rem;
}

.storefront-auth-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.storefront-auth-fieldset {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid #dbe7f3;
    border-radius: 20px;
    background: #f8fbff;
}

.storefront-auth-fieldset > strong {
    color: #0f2745;
    font-size: 1.05rem;
}

.storefront-auth-fieldset > small {
    margin-top: -0.65rem;
    color: #64748b;
    font-weight: 700;
}

.storefront-auth-form label {
    display: grid;
    gap: 0.35rem;
    color: #123c69;
    font-weight: 900;
}

.storefront-auth-form input,
.storefront-auth-form textarea {
    width: 100%;
    border: 1px solid #c7d9ec;
    border-radius: 14px;
    padding: 0.85rem 1rem;
    color: #10233f;
    font: inherit;
    background: #fff;
}

.storefront-auth-form textarea {
    min-height: 70px;
    resize: vertical;
}

.storefront-auth-form button {
    border: 0;
    border-radius: 16px;
    padding: 0.95rem 1.15rem;
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(135deg, #123c69 0%, #0f766e 55%, #0b5f8e 100%);
    box-shadow: 0 16px 30px rgba(18, 60, 105, 0.18);
    min-height: 48px;
    letter-spacing: 0.02em;
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.storefront-auth-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 36px rgba(18, 60, 105, 0.24);
    filter: saturate(1.05);
}

.storefront-auth-form button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.18), 0 20px 36px rgba(18, 60, 105, 0.24);
}

.storefront-auth-form--wide button {
    width: 100%;
}

.storefront-auth-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(18, 60, 105, 0.14);
    background: #fff;
    color: #123c69;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.storefront-auth-links a:hover {
    transform: translateY(-1px);
    background: #eff6ff;
    color: #0f3d71;
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.1);
}

.storefront-auth-links a:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(18, 60, 105, 0.18), 0 12px 22px rgba(15, 23, 42, 0.1);
}

.storefront-email-hint {
    min-height: 1.1rem;
    color: #64748b;
    font-size: 0.86rem;
    font-weight: 700;
}

.storefront-email-hint--warning {
    color: #b45309;
}

.storefront-email-hint--ok {
    color: #15803d;
}

.storefront-reset-code-panel {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #dbe7f3;
}

.storefront-auth-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

.storefront-auth-links a {
    font-weight: 800;
}

body.admin-page #topo-cadastro-cliente .crud-actions .btn-primary,
body.admin-page #topo-cadastro-cliente .crud-actions .btn-secondary,
body.admin-page #topo-cadastro-cliente .crud-actions button,
body.admin-page .admin-customers-actions .btn-primary,
body.admin-page .admin-customers-actions .btn-secondary,
body.admin-page .admin-customers-actions button {
    min-height: 44px;
    border-radius: 14px;
    padding-inline: 1rem;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

body.admin-page #topo-cadastro-cliente .btn-primary,
body.admin-page .admin-customers-actions .btn-primary {
    background: linear-gradient(135deg, #1f7ae0 0%, #155db7 100%);
}

body.admin-page #topo-cadastro-cliente .btn-secondary,
body.admin-page .admin-customers-actions .btn-secondary {
    background: linear-gradient(135deg, #1f9d59 0%, #157a43 100%);
}

body.admin-page #topo-cadastro-cliente .btn-primary:hover,
body.admin-page #topo-cadastro-cliente .btn-secondary:hover,
body.admin-page .admin-customers-actions .btn-primary:hover,
body.admin-page .admin-customers-actions .btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
}

@media (max-width: 720px) {
    .storefront-auth-grid {
        grid-template-columns: 1fr;
    }
}

.storefront-orders-table-wrap {
    overflow: auto;
    border: 1px solid #dbe7f3;
    border-radius: 18px;
}

.storefront-orders-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 780px;
}

.storefront-orders-table th,
.storefront-orders-table td {
    padding: 0.85rem 0.95rem;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

.storefront-orders-table th {
    color: #123c69;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: #eff6ff;
}

.storefront-orders-table td {
    color: #334155;
    background: #fff;
}

.storefront-checkout-shell {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0 3rem;
}

.storefront-checkout-card {
    padding: clamp(1rem, 2.5vw, 1.5rem);
    border: 1px solid rgba(18, 60, 105, 0.14);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

.storefront-checkout-title h1 {
    margin: 0;
    color: #0f2745;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 0.98;
    letter-spacing: -0.065em;
}

.storefront-checkout-title p {
    margin: 0.65rem 0 0;
    color: #64748b;
}

.storefront-checkout-discount-notice {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(34, 197, 94, 0.28);
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.98), rgba(220, 252, 231, 0.94));
    color: #166534;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(34, 197, 94, 0.12);
}

.storefront-checkout-header,
.storefront-checkout-customer,
.storefront-checkout-items,
.storefront-checkout-notes,
.storefront-checkout-totals {
    margin-top: 1rem;
    border: 1px solid #c7d9ec;
    border-radius: 20px;
    background: #fff;
}

.storefront-checkout-header {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 1rem;
    padding: 1rem;
}

.storefront-checkout-header strong,
.storefront-checkout-header span {
    display: block;
}

.storefront-checkout-header strong {
    color: #123c69;
    font-size: 1.05rem;
}

.storefront-checkout-header span {
    margin-top: 0.2rem;
    color: #334155;
}

.storefront-checkout-customer,
.storefront-checkout-items,
.storefront-checkout-notes {
    padding: 1rem;
}

.storefront-checkout-customer h2,
.storefront-checkout-items h2 {
    margin: 0 0 0.75rem;
    color: #123c69;
    font-size: 1.15rem;
}

.storefront-checkout-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}

.storefront-checkout-grid p {
    margin: 0;
    padding: 0.65rem;
    border-radius: 14px;
    background: #f1f7ff;
}

.storefront-checkout-grid span {
    display: block;
    margin-bottom: 0.2rem;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.storefront-checkout-grid-wide {
    grid-column: 1 / -1;
}

.storefront-checkout-table-wrap {
    overflow-x: auto;
}

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

.storefront-checkout-table th,
.storefront-checkout-table td {
    padding: 0.75rem;
    border: 1px solid #d7e6f5;
    text-align: left;
}

.storefront-checkout-table th:first-child,
.storefront-checkout-table td:first-child {
    width: 72px;
    text-align: center;
}

.storefront-checkout-thumb {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #d7e6f5;
    border-radius: 14px;
    background: linear-gradient(135deg, #eff6ff, #f8fafc);
}

.storefront-checkout-thumb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.storefront-checkout-thumb-fallback {
    color: #123c69;
    font-size: 1.05rem;
    font-weight: 900;
}

.storefront-checkout-table th {
    color: #123c69;
    background: #eaf3ff;
}

.storefront-checkout-table td:nth-child(2),
.storefront-checkout-table td:nth-child(3),
.storefront-checkout-table td:nth-child(4),
.storefront-checkout-table td:nth-child(5) {
    white-space: nowrap;
}

.storefront-checkout-totals {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
}

.storefront-checkout-totals > div {
    padding: 1rem;
    border-right: 1px solid #d7e6f5;
}

.storefront-checkout-totals > div:last-child {
    border-right: 0;
}

.storefront-checkout-totals span,
.storefront-checkout-totals small {
    display: block;
    color: #64748b;
    font-weight: 800;
}

.storefront-checkout-totals strong {
    display: block;
    margin-top: 0.25rem;
    color: #123c69;
    font-size: 1.45rem;
}

.storefront-checkout-total-final {
    background: linear-gradient(135deg, #123c69, #0f766e);
}

.storefront-checkout-total-final span,
.storefront-checkout-total-final strong {
    color: #fff;
}

.storefront-checkout-notes strong {
    color: #123c69;
}

.storefront-checkout-notes p {
    margin: 0.45rem 0 0;
    color: #334155;
}

.storefront-checkout-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1rem;
}

.storefront-checkout-actions form {
    margin: 0;
}

.storefront-checkout-actions button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.storefront-mobile-actions {
    display: none;
}

@media (max-width: 760px) {
    body.storefront-page {
        padding-bottom: calc(5.4rem + env(safe-area-inset-bottom));
    }

    .storefront-nav {
        grid-template-columns: 1fr;
        gap: 0.7rem;
        padding: 0.75rem 0.85rem;
    }

    .storefront-brand {
        width: 100%;
    }

    .storefront-brand small {
        font-size: 0.74rem;
    }

    .storefront-search {
        width: 100%;
    }

    .storefront-search--nav {
        justify-self: stretch;
    }

    .storefront-search--nav input,
    .storefront-search--nav button {
        min-height: 44px;
    }

    .storefront-nav-links {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
        justify-content: stretch;
    }

    .storefront-nav-links > * {
        min-width: 0;
    }

    .storefront-nav-links .storefront-nav-button,
    .storefront-nav-links .storefront-cart-toggle,
    .storefront-nav-links .storefront-customer-pill {
        width: 100%;
        min-width: 0;
        justify-content: center;
    }

    .storefront-nav-logout {
        width: 100%;
    }

    .storefront-category-menu {
        width: 100%;
    }

    .storefront-category-dropdown {
        position: fixed;
        top: 5.7rem;
        left: 0.75rem;
        right: 0.75rem;
        width: auto;
        max-height: min(58vh, 420px);
    }

    .storefront-section-head,
    .storefront-contact-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .storefront-hero {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .storefront-banner-card {
        min-height: 180px;
    }

    .storefront-banner-overlay {
        min-height: 110px;
    }

    .storefront-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .storefront-product-card {
        border-radius: 20px;
    }

    .storefront-product-body {
        padding: 0.85rem;
    }

    .storefront-product-image {
        aspect-ratio: 1 / 1;
    }

    .storefront-product-detail {
        grid-template-columns: 1fr;
        gap: 0.9rem;
        margin-bottom: 1.25rem;
    }

    .storefront-product-main-image {
        min-height: 300px;
    }

    .storefront-product-thumbs {
        grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
    }

    .storefront-product-detail-info h1 {
        font-size: clamp(1.55rem, 8vw, 2.3rem);
    }

    .storefront-product-detail-actions .storefront-product-cta,
    .storefront-product-detail-actions .storefront-product-register,
    .storefront-product-detail-actions .storefront-product-login {
        width: 100%;
        min-width: 0;
    }

    .storefront-cart {
        right: 0.75rem;
        left: 0.75rem;
        top: auto;
        bottom: calc(5.1rem + env(safe-area-inset-bottom));
        width: auto;
        max-height: min(62vh, calc(100vh - 8rem));
        border-radius: 24px 24px 18px 18px;
    }

    .storefront-mobile-actions {
        position: fixed;
        right: 0.75rem;
        bottom: max(0.75rem, env(safe-area-inset-bottom));
        left: 0.75rem;
        z-index: 42;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.45rem;
        padding: 0.5rem;
        border: 1px solid rgba(18, 60, 105, 0.14);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
        backdrop-filter: blur(14px);
    }

    .storefront-mobile-actions__item {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 46px;
        padding: 0.7rem 0.4rem;
        border: 1px solid #bfdbfe;
        border-radius: 14px;
        color: #123c69;
        font-size: 0.85rem;
        font-weight: 900;
        text-align: center;
        text-decoration: none;
        background: #eff6ff;
        cursor: pointer;
    }

    .storefront-mobile-actions__item span {
        display: block;
        line-height: 1.05;
    }

    .storefront-mobile-actions__icon {
        margin-bottom: 0.2rem;
        font-size: 1rem;
    }

    .storefront-mobile-actions__item--primary {
        color: #fff;
        background: linear-gradient(135deg, #123c69, #0f766e);
    }

    .storefront-search {
        align-items: stretch;
        flex-direction: column;
        border-radius: 22px;
    }

    .storefront-products-search-row {
        align-items: stretch;
        flex-direction: column;
    }

    .store-discount-rules,
    .store-installment-rules__grid,
    .storefront-checkout-header,
    .storefront-checkout-grid,
    .storefront-checkout-totals {
        grid-template-columns: 1fr;
    }

    .storefront-checkout-totals > div {
        border-right: 0;
        border-bottom: 1px solid #d7e6f5;
    }

    .storefront-checkout-totals > div:last-child {
        border-bottom: 0;
    }

    .storefront-checkout-actions {
        flex-direction: column;
    }

    .storefront-checkout-header,
    .storefront-checkout-grid,
    .storefront-checkout-totals {
        grid-template-columns: 1fr;
    }

    .storefront-checkout-header {
        padding: 0.85rem;
    }

    .storefront-checkout-table-wrap {
        margin-right: -0.35rem;
        margin-left: -0.35rem;
    }
}

@media (max-width: 480px) {
    .storefront-nav-links {
        grid-template-columns: 1fr 1fr;
    }

    .storefront-grid {
        grid-template-columns: 1fr;
    }

    .storefront-banner-card {
        min-height: 160px;
    }

    .storefront-banner-overlay {
        min-height: 96px;
    }

    .storefront-product-main-image {
        min-height: 240px;
    }

    .storefront-product-description,
    .storefront-product-detail-price,
    .storefront-product-detail-locked {
        padding: 0.85rem;
    }

    .storefront-checkout-shell {
        width: min(100%, calc(100% - 1rem));
        padding-top: 1rem;
        padding-bottom: 5.75rem;
    }

    .storefront-checkout-card {
        border-radius: 22px;
    }

    .storefront-checkout-title h1 {
        font-size: clamp(1.65rem, 10vw, 2.6rem);
    }

    .storefront-checkout-flow-step-head {
        gap: 0.45rem;
    }

    .storefront-checkout-flow-step-head small {
        text-align: left;
    }

    .storefront-mobile-actions {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .storefront-mobile-actions__item {
        min-height: 42px;
        padding: 0.55rem 0.25rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 360px) {
    .storefront-nav {
        padding: 0.7rem 0.7rem 0.75rem;
    }

    .storefront-brand {
        gap: 0.55rem;
    }

    .storefront-brand-mark {
        width: 2.45rem;
        height: 2.45rem;
        border-radius: 0.85rem;
        font-size: 0.9rem;
    }

    .storefront-brand small {
        display: none;
    }

    .storefront-nav-links {
        gap: 0.45rem;
    }

    .storefront-nav-links .storefront-nav-button,
    .storefront-nav-links .storefront-cart-toggle,
    .storefront-nav-links .storefront-customer-pill {
        min-height: 42px;
        padding-inline: 0.55rem;
        font-size: 0.8rem;
    }

    .storefront-search--nav input,
    .storefront-search--nav button {
        min-height: 42px;
        padding-block: 0.62rem;
        font-size: 0.92rem;
    }

    .storefront-banner-card {
        min-height: 150px;
    }

    .storefront-banner-overlay {
        min-height: 88px;
    }

    .storefront-products-section,
    .storefront-contact-card,
    .storefront-product-detail,
    .storefront-checkout-card,
    .storefront-auth-card {
        border-radius: 20px;
    }

    .storefront-product-detail-info h1,
    .storefront-checkout-title h1 {
        letter-spacing: -0.04em;
    }

    .storefront-product-main-image {
        min-height: 220px;
    }

    .storefront-product-thumbs {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }

    .storefront-mobile-actions {
        right: 0.5rem;
        left: 0.5rem;
        gap: 0.35rem;
        padding: 0.42rem;
        border-radius: 16px;
    }

    .storefront-mobile-actions__item {
        min-height: 40px;
        padding: 0.5rem 0.2rem;
        font-size: 0.72rem;
        border-radius: 12px;
    }

    .storefront-mobile-actions__icon {
        margin-bottom: 0.12rem;
        font-size: 0.92rem;
    }

    .storefront-cart {
        right: 0.5rem;
        left: 0.5rem;
        bottom: calc(5rem + env(safe-area-inset-bottom));
        padding: 0.85rem;
    }
}
