:root {
    --bg: #f7f3ed;
    --panel: #ffffff;
    --text: #302d29;
    --muted: #817a72;
    --accent: #a48157;
    --accent-dark: #765c3f;
    --border: #e9e0d5;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    background: #26221e;
    color: white;
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 38px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--accent);
    display: grid;
    place-items: center;
    font-size: 22px;
    font-weight: 700;
}

.brand span {
    display: block;
    color: #b9b2aa;
    font-size: 12px;
    margin-top: 3px;
}

nav {
    display: grid;
    gap: 8px;
}

nav a {
    text-decoration: none;
    color: #ddd6cf;
    padding: 12px 14px;
    border-radius: 10px;
}

nav a:hover {
    background: #3a342f;
    color: white;
}

.status {
    margin-top: auto;
    font-size: 13px;
    color: #b9b2aa;
}

.dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #6bc48d;
    margin-right: 6px;
}

.content {
    margin-left: 240px;
    width: calc(100% - 240px);
    padding: 36px;
}

h1 { margin-bottom: 4px; }
h2 { margin-top: 0; font-size: 18px; }
.muted { color: var(--muted); }

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    margin: 30px 0;
}

.card, .panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 5px 18px rgba(30,20,10,.04);
}

.card span {
    color: var(--muted);
    font-size: 14px;
}

.card strong {
    display: block;
    margin-top: 10px;
    font-size: 32px;
}

.panel { margin-top: 20px; }

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

th, td {
    text-align: left;
    padding: 13px 10px;
    border-bottom: 1px solid var(--border);
}

th {
    color: var(--muted);
    font-size: 13px;
}

.badge {
    background: #f1e9df;
    color: var(--accent-dark);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
}

.btn-link {
    color: var(--accent-dark);
    text-decoration: none;
    font-weight: 600;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 10px;
}

input, button {
    font: inherit;
    border-radius: 10px;
    border: 1px solid var(--border);
    padding: 12px 14px;
}

button {
    background: var(--accent);
    color: white;
    border: 0;
    cursor: pointer;
    font-weight: 600;
}

button:hover { background: var(--accent-dark); }

.conversation-list {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.conversation-card {
    display: block;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    text-decoration: none;
    color: var(--text);
    background: white;
}

.conversation-card span,
.conversation-card small {
    color: var(--muted);
    font-size: 12px;
    margin-left: 8px;
}

.conversation-card p {
    color: var(--muted);
    margin: 10px 0 6px;
}

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

.ai-toggle {
    background: #efe6da;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 13px;
}

.chat-box {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    min-height: 440px;
    margin: 18px 0;
}

.message {
    max-width: 72%;
    margin: 12px 0;
}

.message small {
    display: block;
    color: var(--muted);
    margin-bottom: 4px;
}

.message div {
    padding: 12px 14px;
    border-radius: 14px;
    background: #f0ece6;
}

.message.humano {
    margin-left: auto;
}

.message.humano div {
    background: #dfe9dc;
}

.chat-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

@media (max-width: 900px) {
    .sidebar {
        position: static;
        width: 100%;
    }
    body { display: block; }
    .content {
        margin-left: 0;
        width: 100%;
        padding: 20px;
    }
    .cards { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
}

.flash { padding: 12px 14px; border-radius: 10px; margin-bottom: 18px; }
.flash.ok { background: #e7f3e9; }
.flash.erro { background: #f8e3e0; }
.stack-form { display: grid; gap: 10px; }
.stack-form label { font-size: 13px; font-weight: 650; margin-top: 4px; }
textarea { width: 100%; resize: vertical; font: inherit; border-radius: 10px; border: 1px solid var(--border); padding: 12px 14px; }
.section-gap { margin-top: 24px; }
.inline-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.form-grid-2 { display:grid; grid-template-columns: 1fr 1fr; gap:10px; }
.form-grid-3 { display:grid; grid-template-columns: 2fr 1fr 1fr; gap:10px; }
.form-grid-2 > div, .form-grid-3 > div { display:grid; gap:6px; }
.product-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap:16px; margin-top:22px; }
.product-card { background:white; border:1px solid var(--border); border-radius:16px; overflow:hidden; text-decoration:none; color:var(--text); }
.product-card img, .no-image { width:100%; aspect-ratio:1/1; object-fit:cover; background:#ede7df; display:grid; place-items:center; color:var(--muted); }
.product-card-body { padding:14px; display:grid; gap:6px; }
.product-card-body span, .product-card-body small { color:var(--muted); }
.product-editor { display:grid; grid-template-columns: minmax(250px, .75fr) minmax(420px, 1.5fr); gap:18px; align-items:start; }
.product-main-image { width:100%; max-height:520px; object-fit:contain; border-radius:12px; background:#f4f0eb; margin-bottom:12px; }
.no-image.big { aspect-ratio:1/1; border-radius:12px; margin-bottom:12px; }
.wide { width:100%; }
.mini { font-size:12px; }
.knowledge-box { white-space:pre-wrap; line-height:1.55; }
.page-title-row { display:flex; justify-content:space-between; align-items:center; }
.checkbox { display:flex !important; align-items:center; gap:8px; }
.checkbox input { width:auto; }
.ai-toggle { border:0; }
.ai-toggle.on { background:#dfeedd; color:#274d2d; }
.ai-toggle.off { background:#eee7df; color:#695f55; }
.message.ia { margin-left:auto; }
.message.ia div { background:#e6efe3; }
.chat-form { grid-template-columns:1fr auto auto; }
button.secondary { background:#6c665f; }
code { background:#eee8e0; padding:2px 6px; border-radius:5px; }
@media (max-width: 900px) {
  .form-grid-2, .form-grid-3, .product-editor, .inline-form, .chat-form { grid-template-columns:1fr; }
}


.page-head { display:flex; justify-content:space-between; gap:16px; align-items:center; }
.secondary-btn { background:#4b4640; }
.log-error { margin-top:6px; font-size:11px; color:#a33; max-width:260px; }
.small-strong { font-size:18px !important; word-break:break-word; }
.payload-box { white-space:pre-wrap; word-break:break-word; background:#25221f; color:#f4eee7; padding:18px; border-radius:12px; overflow:auto; max-height:520px; }
.error-panel { border-color:#e8b3b3; }
.error-panel pre { white-space:pre-wrap; color:#8f2727; }

select {
    width: 100%;
    font: inherit;
    border-radius: 10px;
    border: 1px solid var(--border);
    padding: 12px 14px;
    background: white;
    color: var(--text);
}
.align-end { display: flex; align-items: end; }
.align-end button { width: 100%; }


.learn-sale-panel{margin-top:18px}.learn-sale-panel h3{margin-top:0}.learn-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.learn-text{white-space:pre-wrap;line-height:1.55}.media-note{background:#eef5eb!important;border:1px dashed #b7caae;font-size:14px}.message.midia{margin-left:auto}.message.midia div{background:#eef5eb}

/* V4.4 - prontidão comercial */
.readiness-panel { margin-bottom: 22px; }
.readiness-head { display:flex; justify-content:space-between; gap:20px; align-items:center; }
.readiness-score { min-width:72px; height:72px; border-radius:50%; display:grid; place-items:center; font-size:20px; font-weight:800; background:#f1e9df; color:#765c3f; }
.readiness-score.ready { background:#dfe9dc; color:#335d3d; }
.progress, .mini-progress { width:100%; background:#eee7df; border-radius:999px; overflow:hidden; }
.progress { height:12px; margin:14px 0; }
.mini-progress { height:7px; margin-top:10px; }
.progress span, .mini-progress span { display:block; height:100%; background:#a48157; }
.missing-list { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.missing-list span { background:#fff4e8; border:1px solid #ead7c1; padding:6px 9px; border-radius:999px; font-size:12px; }
.ready-message { background:#eef7ec; border:1px solid #d3e7cf; padding:10px 12px; border-radius:10px; color:#365b3b; }
.release-box { border:1px solid var(--border); background:#faf7f2; padding:14px; border-radius:12px; display:grid; gap:8px; }
.score-pill { display:inline-block; min-width:54px; text-align:center; padding:6px 9px; border-radius:999px; background:#f1e9df; font-weight:700; }
.score-pill.ok, .ok-badge { background:#dfe9dc !important; color:#335d3d !important; }


.chat-actions { display:flex; gap:8px; flex-wrap:wrap; }
.message.followup { margin-left:auto; }
.message.followup div { background:#f6eadb; border:1px dashed #c9a776; }
.gallery-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:14px; }
.gallery-item { border:1px solid var(--border); border-radius:12px; padding:10px; background:#fff; }
.gallery-item img { width:100%; aspect-ratio:1/1; object-fit:cover; border-radius:9px; margin-bottom:8px; }
.small-btn { padding:8px 10px; font-size:12px; width:100%; }
.danger { background:#8a4f4b; }
.notice { padding:12px 16px; border-radius:12px; margin:18px 0; border:1px solid var(--border); }
.notice.ok { background:#eef6ee; }
.notice.warn { background:#fff4df; }
.message-cell { max-width:520px; white-space:normal; }
.error-text { color:#a33; font-size:12px; margin-top:5px; }
.card small { display:block; color:var(--muted); margin-top:6px; }


/* V4.7.3 - intervenção humana de frete */
.intervention-panel {
    border: 2px solid #d98b3a;
    background: #fff7eb;
    margin: 18px 0;
}
.intervention-title {
    font-size: 18px;
    font-weight: 800;
    color: #8b4b10;
    margin-bottom: 8px;
}
.manual-freight-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
    margin-top: 14px;
}
.manual-freight-form label { font-size: 12px; color: var(--muted); font-weight: 600; }
.manual-freight-form input { width: 100%; display: block; margin-top: 5px; background: white; }
.manual-freight-form .check-row { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; color: var(--text); }
.manual-freight-form .check-row input { width: auto; margin: 0; }
.manual-freight-form button { grid-column: 1 / -1; justify-self: start; }
.error-detail { white-space: pre-wrap; background: rgba(0,0,0,.04); padding: 10px; border-radius: 8px; font-size: 12px; }
.attention-badge { display: inline-block; margin-top: 7px; padding: 5px 8px; border-radius: 999px; background: #fff0df; color: #9a4f0a; font-size: 11px; font-weight: 800; }
.attention-card { border-color: #e7a45e; background: #fff8ef; }
.attention-card strong { color: #9a4f0a; }
.manual-freight-active { border-left: 4px solid #6f9b6b; }
.compact-freight-panel { padding-top: 14px; padding-bottom: 14px; }
.compact-freight-panel summary { cursor: pointer; font-weight: 700; }
@media (max-width: 900px) {
    .manual-freight-form { grid-template-columns: 1fr; }
    .manual-freight-form .check-row, .manual-freight-form button { grid-column: 1; }
}


/* V4.8 - personalização por peça */
.component-card { position:relative; border:1px solid var(--border); border-radius:14px; padding:16px; margin:14px 0; background:#fbf9f6; }
.component-actions { display:flex; flex-wrap:wrap; gap:14px; align-items:center; }
.delete-component-form { position:absolute; top:12px; right:12px; }
.component-new-box { margin-top:22px; padding:18px; border:1px dashed #cdbda8; border-radius:14px; background:#faf6f0; }
.tip-box { margin-top:16px; padding:14px; border-radius:12px; background:#f0ebe4; line-height:1.55; font-size:13px; }
.personalization-panel { border-left:4px solid #a48157; }
.personalization-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:12px; margin-top:14px; }
.personalization-grid label { display:grid; gap:6px; font-size:13px; font-weight:650; }
.personalization-grid select { font:inherit; border:1px solid var(--border); border-radius:10px; padding:11px 12px; background:white; }
.personalization-grid small { font-weight:400; }
.full-row { grid-column:1/-1; }
.ready-badge { background:#dfeedd; color:#274d2d; }
.pending-badge { background:#fff0d8; color:#805d22; }
.ok-text { color:#2f6f3b; }
@media (max-width:900px){ .delete-component-form { position:static; margin-top:10px; } .component-actions { align-items:flex-start; } }

/* V4.8.1 - takeover humano por conversa */
.takeover-btn { background:#2f2924; color:#fff; border:0; }
.takeover-btn:hover { background:#181512; }
.return-ai-btn { background:#4f7d58; color:#fff; border:0; }
.return-ai-btn:hover { background:#3e6546; }
.ai-status { display:inline-flex; align-items:center; padding:10px 13px; border-radius:999px; font-size:13px; font-weight:700; }
.ai-status.active { background:#dfeedd; color:#274d2d; }
.ai-status.human { background:#f3e4c8; color:#6e4b19; }
.human-mode-panel { display:flex; gap:8px; align-items:center; flex-wrap:wrap; border-color:#e6c98e; background:#fff8e9; }
.human-mode-panel span { color:#765c35; }
.human-badge, .ia-badge { display:inline-block; margin-left:8px; padding:4px 8px; border-radius:999px; font-size:11px; font-weight:700; }
.human-badge { background:#fff0d6; color:#78521f; }
.ia-badge { background:#e3f1e0; color:#315c38; }


/* V4.8.3 — edição de pedido dentro da conversa */
.order-cards { display:grid; gap:14px; margin-top:14px; }
.order-card { border:1px solid var(--border); border-radius:14px; padding:16px; background:#fff; }
.order-card-head { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; }
.order-edit-details { margin-top:12px; }
.order-edit-details summary { cursor:pointer; font-weight:700; color:var(--accent-dark); }
.order-edit-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:14px; }
.order-edit-grid label { display:grid; gap:6px; font-size:13px; }
.order-edit-grid select, .order-edit-grid input { width:100%; }
.order-edit-grid .full-row { grid-column:1/-1; }
.order-total-preview { padding:10px 12px; border-radius:10px; background:#f7f3ed; color:var(--muted); font-size:13px; }
.order-link-actions { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-top:14px; }
.order-link-actions form { margin:0; }
.paid-lock { margin-top:12px; padding:10px 12px; border-radius:10px; background:#e7f3e9; }
.order-error { margin-top:10px; padding:10px 12px; border-radius:10px; background:#f8e3e0; font-size:13px; }
@media (max-width: 900px) { .order-edit-grid { grid-template-columns:1fr; } .order-edit-grid .full-row { grid-column:auto; } }

/* V4.8.4 - editor de pedidos com múltiplos produtos */
.order-items-editor { border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin-top: 12px; }
.order-items-title { display:flex; justify-content:space-between; gap:12px; align-items:center; margin-bottom:10px; }
.order-item-list { display:grid; gap:10px; }
.order-item-row { display:grid; grid-template-columns:minmax(210px,2fr) 90px 130px minmax(220px,2fr) 46px; gap:10px; align-items:end; padding:12px; background:#faf7f2; border:1px solid var(--border); border-radius:12px; }
.order-item-row label { margin:0; }
.order-item-row input, .order-item-row select { width:100%; }
.remove-order-item { height:44px; padding:0; }
.add-order-item { margin-top:10px; }
.order-delivery-grid { margin-top:14px; }
.order-delivery-grid textarea { width:100%; resize:vertical; font:inherit; border-radius:10px; border:1px solid var(--border); padding:12px 14px; }
.order-total-preview { margin:12px 0; padding:12px; border-radius:10px; background:#f7f1e8; font-weight:600; }
@media (max-width: 1000px) { .order-item-row { grid-template-columns:1fr 1fr; } .order-item-row .item-product, .order-item-row .item-note { grid-column:1/-1; } }

/* V4.8.4 - editor de pedidos com múltiplos produtos */
.order-items-editor { border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin-top: 12px; }
.order-items-title { display:flex; justify-content:space-between; gap:12px; align-items:center; margin-bottom:10px; }
.order-item-list { display:grid; gap:10px; }
.order-item-row { display:grid; grid-template-columns:minmax(210px,2fr) 90px 130px minmax(220px,2fr) 46px; gap:10px; align-items:end; padding:12px; background:#faf7f2; border:1px solid var(--border); border-radius:12px; }
.order-item-row label { margin:0; }
.order-item-row input, .order-item-row select { width:100%; }
.remove-order-item { height:44px; padding:0; }
.add-order-item { margin-top:10px; }
.order-delivery-grid { margin-top:14px; }
.order-delivery-grid textarea { width:100%; resize:vertical; font:inherit; border-radius:10px; border:1px solid var(--border); padding:12px 14px; }
.order-total-preview { margin:12px 0; padding:12px; border-radius:10px; background:#f7f1e8; font-weight:600; }
@media (max-width: 1000px) { .order-item-row { grid-template-columns:1fr 1fr; } .order-item-row .item-product, .order-item-row .item-note { grid-column:1/-1; } }

/* V4.8.5 — respeito ao pedido de pausa/retomada futura */
.pause-badge { display:inline-block; margin-top:7px; padding:5px 8px; border-radius:999px; background:#ece8f7; color:#574781; font-size:11px; font-weight:800; }
.pause-client-panel { border-left:4px solid #8b79b4; background:#f8f5ff; }
.pause-client-panel.due { border-left-color:#d2913d; background:#fff9ee; }
.pause-client-title { font-weight:800; font-size:16px; margin-bottom:6px; }
.compact-pause-panel { padding-top:14px; padding-bottom:14px; }
.compact-pause-panel summary { cursor:pointer; font-weight:700; }
.pause-client-form { display:grid; grid-template-columns:1fr 2fr auto; gap:10px; align-items:end; margin-top:12px; }
.pause-client-form label { display:grid; gap:6px; font-size:12px; color:var(--muted); font-weight:600; }
.pause-client-form input { width:100%; background:white; }
@media (max-width:900px){ .pause-client-form { grid-template-columns:1fr; } }
.ai-status.paused { background:#ece8f7; color:#574781; }


/* V4.8.7 - criação manual de pedido + dados de envio */
.manual-order-create-panel { border-left:4px solid #8d6e4b; }
.manual-order-create-panel summary { cursor:pointer; font-weight:800; }
.manual-order-create-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-top:14px; }
.manual-order-create-grid label { display:grid; gap:6px; font-size:13px; font-weight:650; }
.shipping-data-status { margin-top:12px; padding:9px 11px; border-radius:10px; font-size:12px; font-weight:700; }
.shipping-data-status.complete { background:#e7f3e9; color:#315c38; }
.shipping-data-status.pending { background:#fff4df; color:#77551f; }
.message.sistema { margin-left:auto; }
.message.sistema div { background:#eef1f4; border:1px dashed #b8c0c8; }
@media (max-width:900px){ .manual-order-create-grid { grid-template-columns:1fr; } }

/* V4.8.9 - gestão de pedidos + PDF */
.page-head { display:flex; justify-content:space-between; align-items:flex-start; gap:18px; margin-bottom:18px; }
.button-link { display:inline-flex; align-items:center; justify-content:center; gap:6px; text-decoration:none; background:var(--accent); color:#fff; border-radius:10px; padding:11px 14px; font-weight:700; }
.button-link:hover { background:var(--accent-dark); }
.button-link.secondary, a.secondary.button-link { background:#756d65; color:#fff; }
.order-stats { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; margin:18px 0; }
.order-stat { background:#fff; border:1px solid var(--border); border-radius:14px; padding:16px; }
.order-stat span { color:var(--muted); font-size:12px; display:block; }
.order-stat strong { display:block; margin-top:6px; font-size:26px; }
.order-filter-bar { display:grid; grid-template-columns:2fr 1fr 1fr auto auto; gap:10px; align-items:center; }
.order-table-wrap { overflow-x:auto; }
.orders-table { min-width:1050px; }
.order-actions-cell { white-space:nowrap; }
.order-actions-cell .btn-link { margin-right:10px; }
.paid-badge { background:#dcefdc; color:#24552b; }
.ops-badge { background:#eee8df; color:#604d38; }
.order-detail-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.order-detail-head { align-items:center; }
.detail-head-actions { display:flex; gap:10px; flex-wrap:wrap; }
.order-money-total { font-size:34px; font-weight:800; margin:4px 0 16px; }
.detail-kv { display:flex; justify-content:space-between; gap:20px; padding:9px 0; border-bottom:1px solid var(--border); }
.detail-kv span { color:var(--muted); }
.detail-kv strong { text-align:right; }
.full-action { width:100%; margin-top:14px; }
.section-title-row { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.order-note { margin-top:14px; padding:12px; border-radius:10px; background:#f7f3ed; }
.order-control-form { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.order-control-form label { display:grid; gap:6px; font-size:13px; font-weight:650; }
.order-control-form textarea { width:100%; resize:vertical; font:inherit; border-radius:10px; border:1px solid var(--border); padding:12px 14px; }
.order-control-form .full-row { grid-column:1/-1; }
.order-control-form button { grid-column:1/-1; justify-self:start; }
.order-management-actions { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.order-management-actions form { margin:0; }
@media (max-width:1000px) {
  .order-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .order-filter-bar { grid-template-columns:1fr; }
  .order-detail-grid { grid-template-columns:1fr; }
}
@media (max-width:650px) { .order-stats { grid-template-columns:1fr; } .page-head { flex-direction:column; } .order-control-form { grid-template-columns:1fr; } .order-control-form .full-row,.order-control-form button { grid-column:auto; } }

/* V4.9.0 - pagamentos manuais + painel de vendas */
.sales-hero-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; margin:22px 0; }
.sales-hero-card { background:#fff; border:1px solid var(--border); border-radius:16px; padding:18px; box-shadow:0 5px 18px rgba(30,20,10,.04); }
.sales-hero-card span { color:var(--muted); font-size:12px; font-weight:700; }
.sales-hero-card strong { display:block; font-size:27px; margin:7px 0 3px; }
.sales-hero-card small { color:var(--muted); }
.dashboard-sales-grid { display:grid; grid-template-columns:2fr 1fr; gap:16px; align-items:start; }
.sales-source-row { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 0; border-bottom:1px solid var(--border); }
.sales-source-row div { display:grid; gap:3px; }
.sales-source-row small { color:var(--muted); }
.manual-payment-panel { border-left:4px solid #4f8b59; }
.manual-payment-form { display:grid; grid-template-columns:1fr 1fr 1fr; gap:12px; }
.manual-payment-form label { display:grid; gap:6px; font-size:13px; font-weight:650; }
.manual-payment-form textarea { width:100%; resize:vertical; font:inherit; border-radius:10px; border:1px solid var(--border); padding:12px 14px; }
.manual-payment-form .full-row, .manual-payment-form .manual-payment-check, .manual-payment-form .paid-action { grid-column:1/-1; }
.manual-payment-check { display:flex !important; grid-template-columns:auto 1fr !important; align-items:center; justify-content:flex-start; gap:8px !important; font-weight:500 !important; }
.manual-payment-check input { width:auto; }
.paid-action { background:#3f7a49; }
.paid-action:hover { background:#315f39; }
@media (max-width:1100px) { .sales-hero-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .dashboard-sales-grid { grid-template-columns:1fr; } }
@media (max-width:760px) { .sales-hero-grid,.manual-payment-form { grid-template-columns:1fr; } .manual-payment-form .full-row,.manual-payment-form .manual-payment-check,.manual-payment-form .paid-action { grid-column:auto; } }

/* V4.9.3 — termômetro comercial dos leads */
.lead-temp {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    border: 1px solid transparent;
}
.lead-temp.big { font-size: 14px; padding: 8px 12px; }
.temp-frio { background: #eef4fb; color: #355d85; border-color: #d7e5f4; }
.temp-morno { background: #fff6d9; color: #856716; border-color: #f2dfa0; }
.temp-quente { background: #ffe8dc; color: #a4471f; border-color: #f3c4ae; }
.temp-iminente { background: #f6e7f6; color: #7c3e7a; border-color: #e4c5e3; }
.temp-cliente { background: #e4f4e8; color: #317047; border-color: #c7e7d0; }

.lead-temperature-panel { border-left: 4px solid var(--accent); }
.lead-temperature-top {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    align-items: flex-start;
}
.lead-temperature-title { font-size: 17px; font-weight: 800; margin-bottom: 9px; }
.lead-temperature-current { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.lead-temperature-reason { margin-top: 8px; max-width: 760px; }
.temperature-form { display: flex; align-items: end; gap: 8px; flex-wrap: wrap; min-width: 320px; }
.temperature-form label { flex: 1; min-width: 205px; }
.temperature-form select { width: 100%; margin-top: 6px; }
.temperature-meter {
    width: 100%;
    height: 11px;
    background: #ece6de;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 17px;
}
.temperature-meter span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #8aaac8 0%, #e1bd56 38%, #d77b47 67%, #8b598b 88%, #5f9a70 100%);
    border-radius: inherit;
}
.temperature-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; margin-top: 5px; }
.temperature-actions { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.temperature-history { display: grid; gap: 8px; margin-top: 10px; min-width: min(680px, 80vw); }
.temperature-history > div { padding: 9px 11px; border-radius: 9px; background: #faf7f3; border: 1px solid var(--border); }

.thermometer-title-row { margin-top: 28px; }
.thermometer-cards {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin: 15px 0 28px;
}
.thermometer-card {
    border-radius: 15px;
    border: 1px solid;
    padding: 17px;
    min-height: 115px;
}
.thermometer-card span { font-weight: 800; font-size: 13px; }
.thermometer-card strong { display: block; font-size: 30px; margin: 9px 0 2px; }
.thermometer-card small { opacity: .72; }
.priority-leads-panel { margin-bottom: 24px; }

@media (max-width: 1050px) {
    .thermometer-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lead-temperature-top { flex-direction: column; }
    .temperature-form { width: 100%; min-width: 0; }
}
@media (max-width: 620px) {
    .thermometer-cards { grid-template-columns: 1fr; }
    .temperature-scale span:nth-child(2), .temperature-scale span:nth-child(4) { display: none; }
}


/* ===== Devocional ALENTO ===== */
.devotional-stats { grid-template-columns: repeat(4,minmax(0,1fr)); }
.devotional-days-admin{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:16px}.dev-day-admin{display:flex;flex-direction:column;gap:5px;text-decoration:none;color:var(--text);background:#faf7f2;border:1px solid var(--border);border-radius:12px;padding:14px}.dev-day-admin span{font-size:12px;color:var(--accent-dark);font-weight:700}.dev-day-admin strong{font-size:14px}.dev-day-admin em{font-style:normal;font-size:12px;color:var(--muted)}.audio-state.pronto{color:#3a7d53}.audio-state.erro{color:#a04444}.devotional-access-form{grid-template-columns:repeat(2,minmax(0,1fr))}.row-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.small-btn{padding:7px 9px;font-size:12px}.link-btn{display:inline-block;background:var(--accent);color:#fff;border-radius:8px;text-decoration:none}.dev-audio{width:100%;margin:10px 0}.devotional-order-panel{border-left:4px solid #a48157}
.dev-public-body{display:block;min-height:100vh;background:linear-gradient(180deg,#f8f3eb 0%,#f3ece2 100%);font-family:Georgia,'Times New Roman',serif;color:#342f2a}.dev-public-shell{max-width:820px;margin:0 auto;padding:28px 18px 70px}.dev-login-card{max-width:520px;margin:8vh auto 0;background:rgba(255,255,255,.92);border:1px solid #e4d8c7;border-radius:26px;padding:42px 34px;text-align:center;box-shadow:0 20px 60px rgba(69,52,34,.08)}.dev-cross{font-size:28px;color:#a48157}.dev-brand{font-family:Arial,sans-serif;letter-spacing:.22em;font-size:13px;font-weight:800;color:#8a6946}.dev-login-card h1{font-size:36px;font-weight:500;margin:14px 0 4px}.dev-subtitle{font-style:italic;color:#776a5c}.dev-welcome{line-height:1.65;color:#62594f;margin:26px auto;max-width:390px}.dev-code-form{text-align:left}.dev-code-form label{font-family:Arial,sans-serif;font-size:13px;font-weight:700}.dev-code-form input{width:100%;margin-top:7px;background:#fff;font-family:Arial,sans-serif;text-transform:uppercase;letter-spacing:.08em}.dev-code-form button{width:100%;margin-top:12px;padding:14px}.dev-help{font-family:Arial,sans-serif;font-size:12px;color:#8a8178;margin-top:18px}.dev-home-head,.dev-day-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.dev-home-head h1{font-size:40px;font-weight:500;margin:8px 0 2px}.dev-home-head p{margin:0;color:#766a5d;font-style:italic}.dev-home-head>a,.dev-day-head>a{font-family:Arial,sans-serif;font-size:12px;color:#7a6144}.dev-progress-card{margin:28px 0;display:grid;grid-template-columns:auto 1fr auto;gap:18px;align-items:center;background:#fff;border:1px solid #e5d9ca;border-radius:18px;padding:20px}.dev-progress-card div:first-child{display:flex;flex-direction:column}.dev-progress-card span{font-size:12px;color:#81776d}.dev-progress{height:9px;background:#eee5d9;border-radius:999px;overflow:hidden}.dev-progress i{display:block;height:100%;background:#a48157;border-radius:999px}.dev-continue{display:block;text-decoration:none;color:#fff;background:#5f574d;border-radius:20px;padding:22px 24px;margin-bottom:24px}.dev-continue span{display:block;font-family:Arial,sans-serif;font-size:11px;letter-spacing:.12em;text-transform:uppercase;opacity:.75}.dev-continue strong{display:block;font-size:21px;margin:7px 0}.dev-continue em{font-size:13px;font-style:normal;opacity:.85}.dev-intro{background:rgba(255,255,255,.65);border-radius:18px;padding:24px;margin:22px 0;line-height:1.72}.dev-intro h2{font-size:24px;font-weight:500}.dev-intro details{border-top:1px solid #e6dacb;padding-top:14px;margin-top:16px}.dev-intro summary{cursor:pointer;font-weight:700;color:#725f49}.dev-days-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.dev-day-card{display:flex;align-items:center;gap:14px;text-decoration:none;color:#3b352e;background:#fff;border:1px solid #e7dbcd;border-radius:16px;padding:16px}.dev-day-card.done{background:#f0f4ec;border-color:#d6dfcf}.dev-day-num{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#f1e8dc;color:#886c4e;font-family:Arial,sans-serif;font-weight:800}.dev-day-card div{display:flex;flex-direction:column;gap:4px}.dev-day-card strong{font-size:15px}.dev-day-card small{font-family:Arial,sans-serif;font-size:11px;color:#84796d}.dev-pdf-link{text-align:center;margin:28px 0}.dev-pdf-link a{color:#775f45;font-size:13px}.dev-day-head{font-family:Arial,sans-serif;font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#887c70;padding-bottom:18px;border-bottom:1px solid #dfd3c3}.dev-reading{max-width:680px;margin:35px auto}.dev-day-kicker{font-family:Arial,sans-serif;color:#9a7956;font-size:12px;font-weight:800;letter-spacing:.16em}.dev-reading>h1{font-weight:500;font-size:42px;line-height:1.15;margin:8px 0 26px}.dev-reading section{margin:30px 0}.dev-reading section h2{font-size:18px;font-weight:500;color:#755f49}.dev-reading section p,.dev-prayer p{font-size:18px;line-height:1.82}.dev-prayer{margin:32px 0;padding:24px 26px;border-left:3px solid #a48157;background:#fffaf4;border-radius:0 18px 18px 0}.dev-prayer span{font-family:Arial,sans-serif;font-size:10px;font-weight:800;letter-spacing:.16em;color:#987653}.dev-practice{background:#eee6dc;border-radius:18px;padding:18px 22px}.dev-audio-card{background:#fff;border:1px solid #e3d6c6;border-radius:18px;padding:18px;margin:20px 0}.dev-audio-card>div{display:flex;flex-direction:column;gap:3px}.dev-audio-card span,.dev-audio-card small{font-family:Arial,sans-serif;font-size:11px;color:#81766a}.dev-audio-card audio{width:100%;margin:12px 0 5px}.dev-intention{border-top:1px solid #ded2c3;margin-top:34px;padding-top:24px}.dev-intention label{font-size:18px}.dev-intention textarea{width:100%;margin-top:9px;background:#fffdf9;min-height:100px}.dev-form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:10px}.dev-day-nav{display:flex;justify-content:space-between;margin-top:34px;padding-top:20px;border-top:1px solid #ded2c3}.dev-day-nav a{color:#765d43;text-decoration:none;font-size:13px}
@media(max-width:800px){.devotional-stats{grid-template-columns:1fr 1fr}.devotional-days-admin{grid-template-columns:1fr 1fr}.devotional-access-form{grid-template-columns:1fr}.dev-days-grid{grid-template-columns:1fr}.dev-home-head h1{font-size:32px}.dev-reading>h1{font-size:34px}.dev-reading section p,.dev-prayer p{font-size:17px}.dev-progress-card{grid-template-columns:1fr auto}.dev-progress-card .dev-progress{grid-column:1/3}.dev-login-card{padding:32px 22px}}

/* ===== Catálogo público ALENTO ===== */
.catalog-body{margin:0;background:#f6f0e8;color:#312921;font-family:Inter,Arial,sans-serif;min-height:100vh}.catalog-shell{max-width:1120px;margin:auto;padding:24px 18px 80px}.catalog-hero{text-align:center;padding:34px 18px 26px}.catalog-brand{letter-spacing:.38em;font-weight:700;color:#9b7653;font-size:17px}.catalog-hero h1,.catalog-done-card h1{font-family:Georgia,serif;font-weight:500;font-size:38px;margin:14px 0 8px;color:#4c382b}.catalog-hero p{max-width:650px;margin:0 auto;color:#796b60;line-height:1.55}.catalog-welcome{display:inline-block;margin-top:16px;background:#fff8f0;border:1px solid #ead9c9;border-radius:999px;padding:8px 14px;color:#8b6749}.catalog-alert{padding:13px 16px;border-radius:12px;margin:10px 0 18px}.catalog-alert.ok{background:#eaf5ea;color:#456647}.catalog-alert.error{background:#fdeaea;color:#8c4040}.catalog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(255px,1fr));gap:18px}.catalog-card{background:#fff;border:1px solid #eadfd3;border-radius:20px;overflow:hidden;box-shadow:0 8px 26px rgba(68,46,28,.06)}.catalog-card>img{width:100%;height:245px;object-fit:cover;background:#eee}.catalog-no-image{height:245px;display:grid;place-items:center;background:#eee4da;color:#9f8064;font-family:Georgia,serif;font-size:22px}.catalog-card-body{padding:17px}.catalog-card-top{display:flex;gap:12px;justify-content:space-between;align-items:start}.catalog-card-top h2{font-size:18px;margin:0}.catalog-card-top strong{white-space:nowrap;color:#96704d}.catalog-card-body p{font-size:14px;line-height:1.5;color:#76695f;min-height:42px}.catalog-meta{font-size:13px;color:#76695f;margin:10px 0}.catalog-qty,.catalog-customize label{display:grid;gap:6px;font-size:13px;font-weight:600;margin-top:12px}.catalog-qty input,.catalog-customize select,.catalog-cep-row input{border:1px solid #ddd0c4;border-radius:12px;padding:11px;background:#fff;font-size:16px}.catalog-customize{border-top:1px solid #eee3da;margin-top:14px;padding-top:12px}.catalog-customize>strong{font-size:13px;color:#8a684c}.catalog-cart-box,.catalog-shipping,.catalog-finish{background:#fff;border:1px solid #eadfd3;border-radius:18px;padding:20px;margin-top:22px}.catalog-cart-box{display:flex;justify-content:space-between;align-items:center;gap:16px}.catalog-cart-box span{display:block;color:#7e7065;font-size:13px}.catalog-cart-box strong{font-size:26px}.catalog-secondary-btn,.catalog-cep-row button,.catalog-finish-btn{border:0;border-radius:12px;padding:13px 18px;font-weight:700;cursor:pointer}.catalog-secondary-btn{background:#eee4da;color:#6b4f39}.catalog-section-title{display:flex;gap:10px;align-items:start}.catalog-section-title h2,.catalog-finish h2{margin:0;font-size:20px}.catalog-section-title p{margin:4px 0 0;color:#87796d}.catalog-cep-row{display:grid;grid-template-columns:1fr auto;gap:10px;margin-top:16px}.catalog-cep-row button,.catalog-finish-btn{background:#aa835d;color:white}.catalog-freight-list{display:grid;gap:10px;margin-top:14px}.catalog-freight-option{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;border:1px solid #e5d8cc;border-radius:14px;padding:13px;cursor:pointer}.catalog-freight-option div span,.catalog-freight-option div small{display:block;color:#857669;font-size:12px;margin-top:3px}.catalog-final-total{display:flex;justify-content:space-between;padding:16px 2px 10px;font-size:18px}.catalog-finish-btn{width:100%;font-size:16px}.catalog-safe-note{text-align:center;color:#8d8075;font-size:12px;line-height:1.5;margin:12px 0 0}.catalog-done-card{max-width:560px;margin:9vh auto;background:#fff;border:1px solid #eadfd3;border-radius:24px;padding:42px 30px;text-align:center;box-shadow:0 16px 50px rgba(68,46,28,.08)}.catalog-done-icon{width:62px;height:62px;border-radius:50%;display:grid;place-items:center;margin:0 auto 18px;background:#e5f1e4;color:#568159;font-size:30px}.catalog-done-card p{line-height:1.6;color:#76695f}.catalog-done-total{background:#f8f1e9;border-radius:14px;padding:14px;margin:20px 0;font-size:18px}.catalog-empty{grid-column:1/-1;background:#fff;padding:30px;text-align:center;border-radius:16px;color:#87796d}@media(max-width:640px){.catalog-shell{padding:10px 12px 60px}.catalog-hero{padding:26px 10px 20px}.catalog-hero h1{font-size:30px}.catalog-grid{grid-template-columns:1fr}.catalog-card>img,.catalog-no-image{height:300px}.catalog-cart-box{align-items:stretch;flex-direction:column}.catalog-cep-row{grid-template-columns:1fr}.catalog-freight-option{grid-template-columns:auto 1fr}.catalog-freight-option>b{grid-column:2}.catalog-done-card{margin:4vh 12px;padding:34px 22px}}
