:root {
    --bg: #f3f5f9;
    --card: #ffffff;
    --text: #121826;
    --muted: #738197;
    --primary: #2563eb;
    --primary-soft: #eff6ff;
    --primary-strong: #1d4ed8;
    --success: #16a34a;
    --border: #e6ebf2;
    --shadow-soft: 0 10px 26px rgba(17, 24, 39, 0.08);
    --shadow-lift: 0 18px 42px rgba(37, 99, 235, 0.16);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.45;
}

a { color: var(--primary); text-decoration: none; }

body::before {
    content: "";
    position: fixed;
    inset: -20% auto auto -15%;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.14), transparent 65%);
    pointer-events: none;
    z-index: -1;
}

.hero {
    background:
        radial-gradient(circle at 10% 10%, rgba(37, 99, 235, 0.16), transparent 45%),
        radial-gradient(circle at 90% 20%, rgba(59, 130, 246, 0.12), transparent 35%),
        linear-gradient(160deg, #f7faff 0%, #f5f8ff 65%, #f3f6ff 100%);
    border-bottom: 1px solid var(--border);
}

.hero-text {
    margin: 0;
    max-width: 720px;
    color: #253246;
    font-size: 1.05rem;
}

.mock-shot {
    border: 1px dashed #c8d5ea;
    background: linear-gradient(180deg, #f8fbff 0%, #f2f7ff 100%);
    border-radius: 14px;
    padding: 14px;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.mock-shot:hover {
    transform: translateY(-2px);
    border-color: #b5c9ea;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

.landing-hero {
    padding: 22px 0 28px;
}

.landing-nav {
    margin-bottom: 4px;
}

.landing-brand-row {
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.landing-brand-logo {
    height: 40px;
    width: auto;
    max-width: min(200px, 42vw);
    object-fit: contain;
    border-radius: 10px;
}

.landing-brand {
    letter-spacing: -0.02em;
    font-size: clamp(1.4rem, 3vw, 1.8rem);
}

.landing-subtitle {
    max-width: 640px;
}

.landing-title {
    margin: 0;
    max-width: 760px;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 8px;
}

.stat-card {
    border: 1px solid #dce7fb;
    border-radius: 12px;
    background: #f8fbff;
    padding: 10px 12px;
    display: grid;
    gap: 2px;
}

.stat-card strong {
    font-size: 1.15rem;
}

.stat-card span {
    font-size: 0.82rem;
    color: #4b5b72;
}

.hero-device {
    border: 1px solid #dce7fb;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 22px 44px rgba(37, 99, 235, 0.15);
    overflow: hidden;
}

.device-top {
    display: flex;
    gap: 6px;
    padding: 10px 12px;
    border-bottom: 1px solid #e3ebf8;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #bfccdf;
}

.device-body {
    padding: 12px;
}

.landing-kpis {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.landing-showcase {
    margin-top: 4px;
}

.landing-card {
    border-radius: 20px;
    border: 1px solid #dfe7f5;
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.landing-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lift);
    border-color: #cfdcf3;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.soft-card {
    border: 1px solid #e3eaf6;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    padding: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.soft-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
}

.landing-cta-band {
    background: linear-gradient(145deg, #1f4fd6 0%, #2563eb 55%, #2d76ff 100%);
    border-color: #235ad7;
}

.landing-cta-band h2,
.landing-cta-band .muted {
    color: #f8fbff;
}

.landing-cta-band .btn-soft {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}

.landing-form {
    border-radius: 18px;
    border: 1px solid #dde5f4;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.feature-list {
    margin: 0;
    padding-left: 18px;
    color: #334155;
    display: grid;
    gap: 6px;
}

.auth-panel {
    display: none;
    padding-top: 6px;
    padding-bottom: 24px;
}

.auth-panel.is-visible {
    display: grid;
}

.hidden-panel {
    display: none;
}

.hidden-panel.is-visible {
    display: grid;
}

#notifications-panel {
    position: fixed;
    inset: 0;
    z-index: 60;
    padding: 68px 16px 16px;
    overflow: auto;
    background: rgba(15, 23, 42, 0.02);
    align-content: start;
}

#notifications-panel .card {
    width: min(980px, 100%);
    margin: 0 auto;
}

.notification-card-link {
    text-decoration: none;
    color: inherit;
}

.notification-card {
    position: relative;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.notification-card.is-unread {
    border-color: #93c5fd;
    background: linear-gradient(180deg, #f8fbff 0%, #eff6ff 100%);
}

.notification-card.is-unread::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 12px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #2563eb;
}

.notification-card.is-unread > strong,
.notification-card.is-unread > .muted {
    padding-left: 14px;
}

.notification-card.is-read {
    opacity: 0.86;
}

.notif-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.notif-icon-btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    font-size: 0.84rem;
    line-height: 1;
}

.notif-icon-btn:hover {
    color: var(--primary-strong);
    border-color: #b7cffc;
    background: var(--primary-soft);
}

.container {
    width: min(980px, 100%);
    margin: 0 auto;
    padding: 16px;
}

.card {
    background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.stack { display: grid; gap: 12px; }
.row { display: flex; gap: 10px; align-items: center; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }

h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 1.45rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 0.95rem; }

.muted { color: var(--muted); font-size: 0.9rem; }
.pill {
    display: inline-flex;
    align-items: center;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 999px;
    font-size: 0.74rem;
    padding: 5px 10px;
    border: 1px solid #d5e5ff;
}

.pill-success {
    background: #ecfdf3;
    color: #15803d;
    border-color: #bbf7d0;
}

.pill-order-not-opened {
    background: #f3f4f6;
    color: #4b5563;
    border-color: #d1d5db;
}

.pill-order-opened {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fdba74;
}

.pill-order-accepted {
    background: #ecfdf3;
    color: #15803d;
    border-color: #bbf7d0;
}

.seller-status-inactive {
    background: #f1f5f9;
    color: #475569;
    border-color: #cbd5e1;
}

input, textarea, select, button {
    width: 100%;
    font: inherit;
}

input, textarea, select {
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #9ec1ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12), 0 8px 20px rgba(37, 99, 235, 0.08);
    transform: translateY(-1px);
}

textarea { min-height: 70px; resize: vertical; }

button, .btn {
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
    color: #fff;
    padding: 11px 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.22);
}

button:hover, .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(37, 99, 235, 0.3);
    filter: saturate(1.05);
}

button:active, .btn:active {
    transform: translateY(0);
}

.btn-soft {
    background: linear-gradient(180deg, #f7fbff 0%, var(--primary-soft) 100%);
    color: var(--primary);
    border: 1px solid #d9e7ff;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.08);
}

.btn-success { background: var(--success); }

.chat-list { display: grid; gap: 10px; }
.chat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(17, 24, 39, 0.08);
}

.budget-list-card {
    gap: 6px;
}

.budget-list-card .muted {
    font-size: 0.84rem;
    line-height: 1.25;
}

.budget-card-link {
    text-decoration: none;
    color: inherit;
}

.status-card {
    border-left: 6px solid transparent;
}

.status-card span {
    font-size: 1.4rem;
    font-weight: 700;
}

.dashboard-cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.compact-status-card {
    padding: 9px 10px;
    min-height: 54px;
}

.status-card-head {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-icon {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    line-height: 1;
}

.compact-status-card strong {
    font-size: clamp(0.78rem, 2.2vw, 0.9rem);
}

.compact-status-card span {
    font-size: clamp(0.98rem, 3vw, 1.15rem);
}

.status-value-inline {
    font-size: clamp(1rem, 2.8vw, 1.15rem);
    font-weight: 700;
    color: #0f172a;
}

.status-total {
    background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
    border-left-color: #3b82f6;
}

.status-pending {
    background: linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
    border-left-color: #f97316;
}

.status-answered {
    background: linear-gradient(180deg, #ffffff 0%, #ecfdf3 100%);
    border-left-color: #22c55e;
}

.status-neutral {
    background: linear-gradient(180deg, #ffffff 0%, #f4f4f5 100%);
    border-left-color: #71717a;
}

.monthly-chart-row {
    display: grid;
    gap: 6px;
}

.monthly-chart-track {
    position: relative;
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: #eef2f7;
    overflow: hidden;
}

.monthly-chart-total {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #93c5fd 0%, #60a5fa 100%);
}

.monthly-chart-answered {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #34d399 0%, #10b981 100%);
}

.period-filter-panel {
    display: none;
}

.period-filter-panel.is-visible {
    display: block;
    overflow: visible;
}

.dashboard-action-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.dashboard-action-buttons .btn {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.admin-section-spaced {
    margin-top: 1.25rem;
}

.admin-subsection-title {
    margin: 1rem 0 0.35rem;
    font-size: 1rem;
    letter-spacing: -0.02em;
    color: #334155;
}

.admin-asset-preview {
    max-height: 56px;
    max-width: 220px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid var(--border);
    padding: 4px;
    background: #fff;
}

.admin-favicon-preview {
    max-height: 40px;
    max-width: 40px;
}

.period-filter-dates {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: end;
    min-width: 0;
}

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

.period-filter-bar.loja-period-filter-dates-row {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
}

.loja-period-filter-inner {
    min-width: 0;
    margin-bottom: 12px;
}

.loja-filter-tags-block {
    overflow: visible;
    min-width: 0;
    margin-bottom: 12px;
    padding: 2px 0;
}

.loja-period-filter-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.loja-period-filter-actions .loja-period-filter-action-btn {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
}

.loja-filter-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    overflow: visible;
}

.loja-filter-tag-btn {
    flex: 0 0 auto;
    width: max-content;
    max-width: max-content;
    margin: 0;
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 12px;
    white-space: nowrap;
    border-radius: 999px;
    border: 1px dashed var(--border);
    background: var(--card, #fff);
    color: var(--muted);
    opacity: 0.95;
    transition: border-color 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.loja-filter-tag-btn:hover {
    opacity: 1;
    border-style: solid;
}

.loja-filter-tag-btn.is-selected {
    opacity: 1;
    border-style: solid;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.loja-filter-tag-btn.loja-filter-tag-pendente.is-selected {
    background: #fffbeb;
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.45);
}

.loja-filter-tag-btn.loja-filter-tag-respondido.is-selected {
    background: #ecfdf3;
    color: #15803d;
    border-color: rgba(22, 163, 74, 0.35);
}

.loja-filter-tag-btn.loja-filter-tag-pedido.is-selected {
    background: #659663;
    color: #f8fafc;
    border-color: #547a52;
}

.loja-filter-tag-btn.loja-filter-tag-arquivado.is-selected {
    background: #f8fafc;
    color: #64748b;
    border-color: var(--border);
}

.loja-filter-status-legend {
    font-size: 0.76rem;
    color: #5b6b82;
    padding: 0;
    margin: 0 0 8px;
    font-weight: 600;
}

.compact-field {
    font-size: 0.76rem;
    color: #5b6b82;
    display: grid;
    gap: 4px;
}

.compact-field input {
    height: 34px;
    padding: 6px 10px;
    font-size: 0.84rem;
}

.compact-btn {
    width: auto;
    min-width: 84px;
    height: 34px;
    padding: 6px 10px;
    font-size: 0.82rem;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.14);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.badge {
    background: #ef4444;
    color: #fff;
    border-radius: 999px;
    font-size: 0.72rem;
    padding: 2px 8px;
}

.top-actions {
    gap: 8px;
}

.profile-avatar-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    max-width: 40px;
    border-radius: 999px;
    border: 1px solid #d7dff0;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-decoration: none;
    position: relative;
    flex-shrink: 0;
}

/* Imagem em flex: sem posicionamento absoluto a largura intrínseca estoura o botão */
.profile-avatar-btn > .profile-avatar-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    display: block;
}

.profile-avatar-fallback {
    font-size: 1.1rem;
    line-height: 1;
}

.store-top-logo {
    width: auto;
    height: 34px;
    max-width: 180px;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.profile-avatar-large {
    width: 76px;
    height: 76px;
    min-width: 76px;
    max-width: 76px;
    border-radius: 999px;
    border: 1px solid #d7dff0;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.profile-avatar-large > .profile-avatar-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    display: block;
}

.profile-upload-stack {
    min-width: min(320px, 100%);
}

.profile-crop-panel {
    display: none;
    gap: 12px;
}

.profile-crop-panel.is-visible {
    display: grid;
}

.profile-crop-frame {
    width: 220px;
    height: 220px;
    border-radius: 999px;
    overflow: hidden;
    border: 2px solid #d7dff0;
    background: #e2e8f0;
    position: relative;
}

.profile-crop-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center center;
    will-change: transform;
}

.notify-btn {
    position: relative;
    width: 46px;
    min-width: 46px;
    height: 46px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    line-height: 1;
}

.floating-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    padding: 2px 6px;
    font-size: 0.66rem;
    z-index: 2;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.qty-unit-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.item-name-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: end;
}

.cliente-item-name-label {
    min-width: 0;
}

.cliente-item-autocomplete {
    position: relative;
    display: block;
    width: 100%;
    margin-top: 6px;
}

.cliente-item-suggestions {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    margin: 0;
    padding: 4px 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    max-height: 220px;
    overflow-y: auto;
    z-index: 25;
}

.cliente-item-suggestions li {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.92rem;
    line-height: 1.3;
}

.cliente-item-suggestions li:hover,
.cliente-item-suggestions li:focus {
    background: var(--primary-soft);
    outline: none;
}

.icon-btn {
    width: 36px;
    min-width: 36px;
    height: 36px;
    border-radius: 10px;
    padding: 0;
    font-size: 1rem;
    line-height: 1;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
    color: #334155;
    border: 1px solid #d7dff0;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.mini-icon-btn {
    width: 34px;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid #d7dff0;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
    color: #334155;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0;
    cursor: pointer;
}

.mini-icon-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 14px rgba(15, 23, 42, 0.12);
}

.actions-column {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    align-content: start;
    justify-items: end;
}

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

/* Lista de usuários no admin — sem rolagem horizontal, leitura clara */
.admin-user-list {
    display: grid;
    gap: 14px;
    width: 100%;
    min-width: 0;
}

.admin-user-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.admin-user-card-header {
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.65);
    display: grid;
    gap: 8px;
}

.admin-user-role {
    display: inline-flex;
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
}

.admin-user-role--cliente {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.admin-user-role--loja {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

.admin-user-role--admin {
    background: #fffbeb;
    color: #b45309;
    border-color: #fde68a;
}

.admin-user-name {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--text);
    word-break: break-word;
}

.admin-user-dl {
    margin: 0;
    padding: 12px 16px;
    display: grid;
    gap: 12px;
}

.admin-user-dl-row {
    display: grid;
    grid-template-columns: 5.2rem 1fr;
    gap: 8px 12px;
    align-items: start;
}

.admin-user-dl dt {
    margin: 0;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.35;
    padding-top: 2px;
}

.admin-user-dl dd {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.4;
    min-width: 0;
}

.admin-user-dd-break {
    word-break: break-word;
    overflow-wrap: anywhere;
}

.admin-user-card-footer {
    padding: 12px 16px 14px;
    border-top: 1px solid var(--border);
    background: rgba(248, 250, 252, 0.85);
    display: grid;
    gap: 8px;
    min-width: 0;
}

.admin-user-footer-btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
}

.admin-user-footer-hint {
    font-size: 0.78rem;
    line-height: 1.4;
    display: block;
}

.admin-users-summary {
    margin: 0 0 14px;
    font-size: 0.92rem;
}

.admin-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    justify-content: center;
}

.admin-pagination-pages {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.admin-pagination-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 8px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
}

.admin-pagination-num:hover {
    background: var(--primary-soft);
}

.admin-pagination-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 8px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
}

.admin-pagination-muted {
    font-size: 0.88rem;
    color: var(--muted);
    padding: 8px 10px;
}

.admin-pagination-jump {
    margin-left: auto;
    align-items: flex-end;
}

@media (max-width: 640px) {
    .admin-pagination-jump {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
}

.loja-dashboard-body .container.loja-dashboard-main {
    padding-bottom: 40px;
}

.loja-dashboard-topbar {
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.loja-dashboard-topbar .store-top-logo {
    height: 48px;
    max-width: 285px;
    margin: -6px 0;
    vertical-align: middle;
    transform: none;
}

.loja-dashboard-hero {
    overflow: hidden;
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(255, 255, 255, 0.98) 48%, rgba(248, 250, 252, 1) 100%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.loja-dashboard-hero-inner {
    gap: 16px;
}

.loja-dashboard-kicker {
    margin: 0 0 4px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-strong);
}

.loja-dashboard-title {
    margin: 0 0 8px;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    letter-spacing: -0.02em;
}

.loja-dashboard-lead {
    margin: 0;
    max-width: 560px;
}

.loja-dashboard-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    max-width: 100%;
}

.loja-hero-primary-actions {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.loja-hero-primary-actions .compact-btn {
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
    white-space: nowrap;
}

.loja-hero-search-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.loja-hero-icon-search {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.72;
}

@media (max-width: 380px) {
    .loja-hero-primary-actions {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 6px;
    }
}

.loja-search-flyout .loja-search-panel-bar {
    padding-top: 2px;
}

.loja-search-flyout-hint {
    margin: 8px 0 0;
    font-size: 0.84rem;
    line-height: 1.4;
}

.cliente-filter-toggle-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.cliente-filter-toggle-row .compact-btn {
    width: 100%;
    min-width: 0;
}

.loja-flash {
    border-left: 4px solid var(--primary);
}

.loja-store-inactive {
    border-left: 4px solid #d97706;
    background: linear-gradient(90deg, rgba(254, 243, 199, 0.35) 0%, #fff 100%);
}

.loja-empty-hint ul {
    margin: 10px 0 0;
    padding-left: 1.2rem;
}

.loja-empty-hint li {
    margin-bottom: 6px;
}

.loja-js-empty {
    margin: 0 0 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px dashed var(--border);
}

.loja-kpi-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
    gap: 10px;
}

.loja-kpi-btn.loja-kpi-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px 12px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-height: 0;
    min-width: 0;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, transform 0.15s;
}

.loja-kpi-btn.loja-kpi-card:hover {
    border-color: rgba(37, 99, 235, 0.35);
    background: rgba(239, 246, 255, 0.5);
}

.loja-kpi-btn.is-active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
    background: var(--primary-soft);
}

.loja-kpi-icon {
    flex-shrink: 0;
    color: var(--primary-strong);
    display: flex;
    align-items: center;
}

.loja-kpi-svg {
    width: 22px;
    height: 22px;
    display: block;
}

.loja-kpi-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex: 1;
    min-width: 0;
    line-height: 1.2;
}

.loja-kpi-accent {
    border-color: rgba(245, 158, 11, 0.35);
    background: linear-gradient(160deg, #fffbeb 0%, #fff 100%);
}

.loja-kpi-money {
    border-color: rgba(37, 99, 235, 0.22);
    background: linear-gradient(160deg, #eff6ff 0%, #fff 100%);
}

.loja-kpi-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 48%;
}

.loja-kpi-value {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-align: right;
    flex-shrink: 0;
    max-width: 52%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.loja-kpi-value.loja-kpi-value-money {
    font-size: 0.82rem;
    font-weight: 800;
}

.loja-charts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 960px) {
    .loja-charts-grid {
        grid-template-columns: 1.4fr 1fr;
        align-items: stretch;
    }
}

.loja-chart-card {
    min-height: 320px;
}

.loja-section-title {
    margin: 0;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.loja-ranking-card {
    gap: 14px;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 46%),
        linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.loja-ranking-header {
    gap: 8px;
}

.loja-ranking-highlight {
    border: 1px solid #dbe6fb;
    border-radius: 14px;
    padding: 12px 14px;
    background: #ffffff;
    display: grid;
    gap: 2px;
}

.loja-ranking-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-strong);
}

.loja-ranking-position {
    font-size: clamp(1.4rem, 4.8vw, 2rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.loja-ranking-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.loja-ranking-metric {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.9);
    display: grid;
    gap: 3px;
}

.loja-ranking-metric strong {
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

.loja-ranking-progress {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #e7edf8;
    overflow: hidden;
}

.loja-ranking-progress-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb 0%, #16a34a 100%);
}

.loja-team-card {
    gap: 14px;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.07), transparent 42%),
        linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    overflow: hidden;
}

.loja-team-header {
    gap: 8px;
}

.loja-team-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.loja-team-table {
    width: 100%;
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.88rem;
}

.loja-team-table thead th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    background: rgba(248, 250, 252, 0.92);
    border-bottom: 1px solid var(--border);
    padding: 10px 8px;
}

.loja-team-table tbody td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.loja-team-table tbody th {
    padding: 10px 8px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5f6f87;
    background: rgba(248, 250, 252, 0.7);
    white-space: nowrap;
}

.loja-team-table tbody tr:last-child td,
.loja-team-table tbody tr:last-child th {
    border-bottom: 0;
}

.loja-team-table tbody td strong {
    line-height: 1.2;
}

@media (max-width: 980px) {
    .loja-team-table thead {
        display: none;
    }

    .loja-team-table,
    .loja-team-table tbody,
    .loja-team-table tr,
    .loja-team-table th,
    .loja-team-table td {
        display: block;
        width: 100%;
    }

    .loja-team-table tr {
        border: 0;
        border-radius: 0;
        padding: 0;
        background: transparent;
        margin: 0;
    }

    .loja-team-table th[scope="row"] {
        border: 0;
        border-top: 1px solid var(--border);
        padding: 10px 0 6px;
        background: transparent;
    }

    .loja-team-table tbody tr:first-child th[scope="row"] {
        border-top: 0;
        padding-top: 0;
    }

    .loja-team-table td {
        border: 0;
        padding: 6px 0;
        display: grid;
        grid-template-columns: minmax(96px, 38%) 1fr;
        gap: 8px;
        align-items: baseline;
    }

    .loja-team-table td::before {
        content: attr(data-label);
        font-size: 0.72rem;
        font-weight: 700;
        color: #5f6f87;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }
}

.loja-chart-caption {
    font-size: 0.82rem;
}

.loja-chart-sub {
    margin: 4px 0 0;
    font-size: 0.82rem;
}

.loja-chart-canvas-wrap {
    position: relative;
    height: 260px;
    width: 100%;
}

.loja-chart-donut .loja-chart-canvas-wrap {
    height: 280px;
}

.loja-live-search-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.seller-manage-list {
    gap: 14px;
}

.seller-manage-header {
    gap: 8px;
}

.seller-manage-section .seller-create-toggle {
    width: auto;
}

.seller-create-panel {
    border-top: 1px dashed var(--border);
    padding-top: 10px;
}

.seller-manage-item {
    padding: 0;
    gap: 12px;
}

.seller-manage-summary {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 18px;
    min-height: 64px;
    background: #fff;
    color: inherit;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    text-align: left;
}

.seller-manage-summary:hover {
    border-color: #c6d7f7;
    background: #f9fbff;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.08);
}

.seller-manage-summary-main {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.seller-manage-summary-main strong {
    font-size: 1.08rem;
    letter-spacing: -0.02em;
}

.seller-manage-summary-main .muted {
    font-size: 0.9rem;
}

.seller-manage-summary-main strong,
.seller-manage-summary-main .muted {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.seller-manage-summary[aria-expanded="true"] {
    border-color: var(--primary);
    background: #eff6ff;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.12);
}

.seller-manage-item .seller-manage-panel {
    padding: 6px 6px 2px;
}

.seller-manage-panel[hidden] {
    display: none !important;
}

.seller-create-panel[hidden] {
    display: none !important;
}

.loja-live-search-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.loja-live-search-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 12px 10px 2.25rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    font: inherit;
    font-size: 0.95rem;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23738197' stroke-width='1.7' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 21l-4.35-4.35M10.5 18a7.5 7.5 0 100-15 7.5 7.5 0 000 15z'/%3E%3C/svg%3E") no-repeat 0.65rem 50%;
    background-color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.loja-live-search-input:hover {
    border-color: #c5d4f0;
}

.loja-live-search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.loja-budget-section {
    gap: 12px;
}

.loja-proposta-items-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 0 4px;
}

.loja-proposta-items-table {
    width: 100%;
    min-width: 440px;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.loja-proposta-items-table th,
.loja-proposta-items-table td {
    border: 1px solid var(--border);
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
}

.loja-proposta-items-table th {
    background: rgba(248, 250, 252, 0.95);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.loja-proposta-items-table .loja-line-value-input,
.loja-proposta-items-table .loja-unit-value-input {
    width: 100%;
    min-width: 3.9rem;
    max-width: 6.5rem;
    padding: 5px 6px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
}

.loja-unit-cell-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.loja-skip-item-btn {
    width: 26px;
    height: 26px;
    min-width: 26px;
    padding: 0;
    border-radius: 8px;
    border: 1px solid #fecaca;
    background: #fff5f5;
    color: #b91c1c;
    font-size: 0.78rem;
    line-height: 1;
    box-shadow: none;
}

.loja-skip-item-btn:hover {
    background: #fee2e2;
    box-shadow: none;
}

.loja-skip-item-btn.is-skipped {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

.loja-item-skipped .loja-unit-value-input {
    opacity: 0.5;
}

.loja-item-skipped .loja-line-subtotal {
    color: #b91c1c;
    font-weight: 600;
}

.loja-proposta-items-table .loja-line-subtotal {
    font-weight: 600;
    white-space: nowrap;
}

.loja-line-subtotal-under {
    display: none;
}

@media (max-width: 640px) {
    .loja-items-entry-card .loja-proposta-items-table thead th:nth-child(4),
    .loja-items-entry-card .loja-proposta-items-table tbody td.loja-proposta-subtotal-cell {
        display: none;
    }

    .loja-items-entry-card .loja-line-subtotal-under {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 4px;
        margin-top: 5px;
    }

    .loja-items-entry-card .loja-line-subtotal-label {
        font-size: 0.62rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--muted);
    }

    .loja-items-entry-card .loja-proposta-items-table .loja-line-subtotal--mobile {
        font-size: 0.7rem;
        font-weight: 600;
        line-height: 1.2;
        white-space: nowrap;
    }

    .loja-items-entry-card .loja-proposta-items-table {
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .loja-proposta-items-table {
        min-width: 280px;
        font-size: 0.82rem;
    }

    .loja-items-entry-card .loja-proposta-items-table {
        min-width: 0;
    }

    .loja-proposta-items-table th,
    .loja-proposta-items-table td {
        padding: 6px 6px;
    }

    .loja-proposta-items-table .loja-line-value-input,
    .loja-proposta-items-table .loja-unit-value-input {
        min-width: 3.4rem;
        max-width: 5.5rem;
        padding: 4px 5px;
        font-size: 0.82rem;
    }
}

.loja-proposta-total-wrap {
    margin: 10px 0 0;
    font-size: 0.95rem;
}

.loja-items-entry-card {
    border: 0;
    box-shadow: none;
    padding-left: 4px;
    padding-right: 4px;
}

.loja-items-entry-card .loja-proposta-items-table-wrap {
    margin-left: -2px;
    margin-right: -2px;
}

.loja-sent-card {
    border: 0;
    box-shadow: none;
    padding-left: 4px;
    padding-right: 4px;
}

.loja-sent-card .loja-proposta-items-table-wrap {
    margin-left: -2px;
    margin-right: -2px;
}

.loja-resposta-meta-line {
    margin: 3px 0 0;
}

.loja-respond-meta-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 12px;
    align-items: end;
}

.loja-respond-meta-row > label {
    min-width: 0;
}

@media (max-width: 480px) {
    .loja-items-entry-card {
        padding-left: 2px;
        padding-right: 2px;
    }

    .loja-sent-card {
        padding-left: 2px;
        padding-right: 2px;
    }
}

.cliente-delivery-section {
    border: 0;
    padding: 0;
    margin: 18px 0 0;
    min-width: 0;
}

.cliente-fieldset-legend {
    padding: 0;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 6px;
}

.cliente-delivery-lead {
    margin: 0 0 12px;
    font-size: 0.88rem;
}

.cliente-delivery-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
    gap: 10px;
}

.cliente-delivery-card {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
    border-radius: 14px;
}

.cliente-delivery-card input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cliente-delivery-card > input + .chat-card {
    margin: 0;
    padding: 12px 14px;
    min-height: 76px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cliente-delivery-card-desc {
    font-size: 0.78rem;
    line-height: 1.35;
}

.cliente-delivery-card input:checked + .chat-card {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.28);
}

.cliente-delivery-card input:focus-visible + .chat-card {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.cliente-delivery-card:has(input:disabled) {
    cursor: not-allowed;
}

.cliente-delivery-card:has(input:disabled) > input + .chat-card {
    opacity: 0.52;
}

.cliente-delivery-card:has(input:disabled) > input + .chat-card:hover {
    transform: none;
    box-shadow: none;
}

.cliente-delivery-outro-inner {
    margin-top: 4px;
}

.cliente-delivery-outro-fields:not([hidden]) {
    margin-top: 14px;
}

.cliente-respostas-card {
    margin-top: 10px;
    border: 0;
    box-shadow: none;
    padding: 4px 0 0;
}

.cliente-resposta-loja {
    position: relative;
    margin-bottom: 8px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    padding: 10px 12px;
}

.cliente-resposta-summary {
    cursor: pointer;
    border-radius: 10px;
    padding: 2px 2px 4px;
}

.cliente-resposta-summary:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

.cliente-resposta-summary-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 4px;
    gap: 8px;
}

.cliente-resposta-summary-date {
    font-size: 0.82rem;
}

.cliente-resposta-summary-stars {
    font-size: 0.9rem;
    color: #f59e0b;
    letter-spacing: 0.04em;
}

.cliente-resposta-body {
    margin-top: 8px;
}

.cliente-partial-followup-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: rgba(15, 23, 42, 0.48);
    border-radius: inherit;
}

.cliente-partial-followup-box {
    width: min(560px, 100%);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 24px 45px rgba(15, 23, 42, 0.28);
    padding: 14px;
}

.cliente-partial-followup-box form {
    margin: 0;
}

.cliente-resposta-loja-head {
    gap: 6px;
    align-items: center;
}

.cliente-favorite-star-form {
    margin: 0;
}

.cliente-favorite-star-btn {
    border: 0;
    background: transparent;
    color: #9ca3af;
    font-size: 1.05rem;
    line-height: 1;
    padding: 0;
    width: auto;
    min-width: 0;
    cursor: pointer;
}

.cliente-favorite-star-btn.is-favorite {
    color: #f59e0b;
}

.cliente-resposta-itens-list {
    margin: 4px 0 0;
    display: grid;
    gap: 6px;
}

.cliente-resposta-item-row {
    border: 0;
    border-radius: 0;
    padding: 4px 0;
    background: transparent;
}

.cliente-resposta-item-row--with-pick {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.cliente-item-pick-label {
    flex-shrink: 0;
    padding-top: 4px;
    margin: 0;
    cursor: pointer;
}

.cliente-item-pick-label input {
    width: 1.1rem;
    height: 1.1rem;
    margin: 0;
    cursor: pointer;
}

.cliente-item-pick-label[hidden] {
    display: none !important;
}

.cliente-resposta-item-content {
    flex: 1;
    min-width: 0;
}

.cliente-pedido-all-form-hidden {
    display: none !important;
}

.cliente-pedido-row1 {
    gap: 8px;
}

.cliente-pedido-row1 > .btn {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
}

.cliente-pedido-row1 > .btn[hidden] {
    display: none !important;
}

.cliente-pedido-row1[hidden] {
    display: none !important;
}

.cliente-pedido-partial-panel {
    margin-top: 10px;
}

.cliente-pedido-partial-panel[hidden] {
    display: none !important;
}

.cliente-pedido-partial-hint {
    margin: 0 0 8px;
    font-size: 0.84rem;
}

.cliente-resposta-item-name {
    display: block;
    margin: 0 0 6px;
    line-height: 1.3;
    word-break: break-word;
}

.cliente-resposta-item-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.84rem;
    color: var(--muted);
}

.cliente-resposta-meta-line {
    margin: 4px 0 0;
}

.cliente-orcamento-nome-titulo {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.25;
}

.cliente-orcamentos-recebidos-subtitulo {
    font-size: 1.02rem;
    color: var(--muted);
    letter-spacing: 0;
}

.cliente-avaliacao-loja {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
}

.cliente-avaliacao-trigger-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}

.cliente-avaliacao-toggle-icon {
    width: 1.15em;
    height: 1.15em;
    flex-shrink: 0;
}

.cliente-avaliacao-resumo {
    font-size: 1rem;
    letter-spacing: 0.02em;
    line-height: 1;
}

.cliente-avaliacao-resumo-label {
    font-size: 0.78rem;
    margin-left: 6px;
    letter-spacing: normal;
}

.cliente-avaliacao-panel {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
}

.cliente-avaliacao-hint {
    margin: 0 0 8px;
    font-size: 0.84rem;
}

.cliente-avaliacao-form {
    gap: 10px;
}

.cliente-avaliacao-comment-label {
    gap: 6px;
}

.cliente-avaliacao-opcional {
    font-weight: normal;
    opacity: 0.85;
}

.cliente-avaliacao-textarea {
    width: 100%;
    min-height: 72px;
    resize: vertical;
    font: inherit;
}

.cliente-rating-stars {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    vertical-align: middle;
}

.cliente-rating-star {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    border-radius: 0;
    padding: 0 2px;
    margin: 0;
    background: transparent !important;
    box-shadow: none !important;
    filter: none;
    cursor: pointer;
    font-size: 1.75rem;
    line-height: 1;
    color: #94a3b8;
    transition: color 0.15s ease, transform 0.12s ease;
}

.cliente-rating-star:hover {
    color: #ca8a04;
    transform: scale(1.08);
    box-shadow: none !important;
    filter: none;
}

.cliente-rating-star:active {
    transform: scale(1.05);
    box-shadow: none !important;
    filter: none;
}

.cliente-rating-star.is-filled {
    color: #ca8a04;
}

.cliente-rating-star:focus-visible {
    outline: 2px solid var(--accent, #2563eb);
    outline-offset: 2px;
    border-radius: 4px;
}

.cliente-avaliacao-submit {
    align-self: flex-start;
}

@media (max-width: 560px) {
    .cliente-resposta-loja {
        padding: 8px 10px;
    }

    .cliente-resposta-item-meta {
        font-size: 0.78rem;
    }
}

.loja-proposta-items-table tbody tr.loja-item-fora-do-pedido {
    opacity: 0.45;
}

.loja-proposta-items-table tbody tr.loja-item-fora-do-pedido td {
    text-decoration: line-through;
    text-decoration-color: rgba(148, 163, 184, 0.7);
}

.loja-budget-block {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card);
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.loja-budget-block.is-open {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: var(--shadow-lift);
}

.loja-budget-summary {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px 14px;
    align-items: center;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    background: rgba(248, 250, 252, 0.65);
}

.loja-budget-summary:hover {
    background: var(--primary-soft);
}

.loja-budget-summary-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.loja-budget-summary-main strong {
    font-size: 1rem;
}

.loja-budget-summary-meta {
    gap: 8px;
    justify-content: flex-end;
}

.loja-budget-chevron {
    font-size: 0.85rem;
    color: var(--muted);
    justify-self: end;
}

.loja-status-pendente {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.45);
}

.loja-status-respondido {
    background: #ecfdf3;
    color: #15803d;
    border: 1px solid rgba(22, 163, 74, 0.35);
}

.loja-status-pedido-efetuado {
    background: #659663;
    color: #f8fafc;
    border: 1px solid #547a52;
}

.loja-status-ignorado {
    background: #f8fafc;
    color: var(--muted);
    border: 1px solid var(--border);
}

.loja-budget-detail {
    padding: 0 16px 18px;
    border-top: 1px solid var(--border);
    background: #fff;
}

.loja-budget-block:not(.is-open) .loja-budget-detail {
    display: none;
}

.loja-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    font-size: 0.88rem;
}

.loja-subheading {
    margin: 0 0 8px;
    font-size: 0.95rem;
}

.loja-items-card {
    margin-top: 8px;
}

.loja-items-list {
    margin: 0;
    padding-left: 1.15rem;
}

.loja-items-list li {
    margin-bottom: 6px;
    font-size: 0.88rem;
}

.loja-sent-card {
    border-color: rgba(22, 163, 74, 0.22);
    background: rgba(236, 253, 245, 0.35);
}

.loja-respond-form {
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
}

.loja-ignore-form {
    margin-top: 10px;
}

.loja-budget-detail-actions {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.loja-budget-detail-actions > button,
.loja-budget-detail-actions > .btn,
.loja-budget-detail-actions > a.btn {
    width: auto;
    flex: 0 1 auto;
    min-width: 0;
}

.loja-budget-detail-actions .loja-ignore-form {
    margin-top: 0;
    display: inline-flex;
    width: auto;
    flex: 0 1 auto;
    min-width: 0;
}

.loja-budget-detail-actions .loja-ignore-form button {
    width: auto;
}

.loja-budget-detail-actions .loja-close-detail {
    margin-top: 0;
}

.loja-close-detail {
    margin-top: 12px;
    display: inline-flex;
}

.loja-notif-card {
    margin-bottom: 8px;
}

.pill-soft {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-strong);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.pill-quote-pendente {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fdba74;
}

.pill-quote-respondida {
    background: #ecfdf3;
    color: #15803d;
    border-color: #86efac;
}

.pill-quote-ignorada {
    background: #f1f5f9;
    color: #475569;
    border-color: #cbd5e1;
}

.pill-quote-venda {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #93c5fd;
}

@media (max-width: 640px) {
    .loja-budget-summary {
        grid-template-columns: 1fr auto;
    }

    .loja-budget-chevron {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: start;
    }

    .loja-budget-summary-meta {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

@media (max-width: 420px) {
    .admin-user-dl-row {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .admin-user-dl dt {
        padding-top: 0;
    }
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

th, td {
    border-bottom: 1px solid var(--border);
    text-align: left;
    padding: 9px 6px;
    font-size: 0.9rem;
}

/* Mantém a tabela de desempenho realmente fluida no mobile */
.loja-team-table {
    min-width: 0;
    table-layout: fixed;
}

.loja-team-table th,
.loja-team-table td {
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (min-width: 860px) {
    .grid-2 { grid-template-columns: 1fr 1fr; }
    .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
    .landing-hero {
        padding: 32px 0 40px;
    }
    .hero-grid {
        grid-template-columns: 1.05fr 0.95fr;
        align-items: center;
        gap: 20px;
    }
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 720px) {
    .loja-team-table {
        min-width: 0;
    }

    .loja-team-table td {
        grid-template-columns: minmax(84px, 34%) 1fr;
        min-width: 0;
    }

    .loja-team-table td > * {
        min-width: 0;
    }
}

@media (max-width: 520px) {
    .loja-team-table tr {
        padding: 8px 9px;
    }

    .loja-team-table td {
        grid-template-columns: 1fr;
        gap: 3px;
        padding: 5px 0;
    }

    .loja-team-table td::before {
        display: block;
        margin: 0;
    }

    .loja-team-table th[scope="row"] {
        font-size: 0.7rem;
    }
}

@media (max-width: 380px) {
    .loja-team-table {
        font-size: 0.84rem;
    }

    .loja-team-table td::before {
        font-size: 0.68rem;
        letter-spacing: 0.03em;
    }
}

@media (max-width: 640px) {
    .period-filter-bar {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .period-filter-dates {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .compact-btn {
        min-width: 100%;
        font-size: 0.78rem;
    }

    .loja-period-filter-actions .loja-period-filter-action-btn.compact-btn {
        min-width: 0;
        flex: 1 1 0;
        width: auto;
        font-size: 0.76rem;
        padding-left: 8px;
        padding-right: 8px;
    }
}
