:root {
    color-scheme: dark;
    --bg: #080c13;
    --surface: #101824;
    --surface-2: #152030;
    --surface-3: #1c2b40;
    --line: #26364c;
    --text: #f0f5fc;
    --muted: #9aabc2;
    --primary: #2684ff;
    --primary-2: #1761cc;
    --accent: #164d91;
    --green: #35cf91;
    --red: #ff6472;
    --yellow: #ffb347;
    --blue: #68adff;
    --radius: 16px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body {
    margin: 0; color: var(--text); line-height: 1.55;
    background:
        radial-gradient(circle at 82% 8%, rgba(22,77,145,.16), transparent 28rem),
        radial-gradient(circle at 18% 92%, rgba(38,132,255,.09), transparent 30rem),
        var(--bg);
    background-attachment: fixed;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: #76b7ff; text-decoration: none; }
a:hover { color: #acd3ff; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 4px; font-size: 1.75rem; line-height: 1.2; }
h2 { margin-bottom: 4px; font-size: 1.3rem; }
h3 { margin-bottom: 5px; font-size: 1.2rem; }
small { display: block; color: var(--muted); font-size: .88rem; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 270px minmax(0, 1fr); }
.sidebar {
    position: sticky; top: 0; height: 100vh; padding: 24px 18px;
    background:
        linear-gradient(180deg, rgba(22,77,145,.13), transparent 32%),
        linear-gradient(180deg, #0b111c 0%, #080c13 100%);
    border-right: 1px solid #23344e;
    display: flex; flex-direction: column; gap: 28px; z-index: 20;
}
.brand { display: flex; gap: 12px; align-items: center; }
.brand strong { font-size: 1.08rem; display: block; }
.brand-mark {
    width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
    background: var(--primary); color: white; font-weight: 800; overflow: hidden;
    box-shadow: 0 10px 28px rgba(38,132,255,.28);
}
.brand-mark img { display: block; width: 100%; height: 100%; }
.nav-label { color: #64728b; font-size: .8rem; font-weight: 800; letter-spacing: .13em; margin: 0 10px 10px; }
.nav-link {
    display: flex; align-items: center; gap: 14px; min-height: 52px;
    padding: 0 14px; margin: 4px 0; border-radius: 12px; color: #b6c0d2; font-weight: 650;
}
.nav-link span { font-size: 1.3rem; width: 24px; text-align: center; }
.nav-link:hover, .nav-link.active { background: rgba(38,132,255,.14); color: white; }
.nav-link.active { box-shadow: inset 3px 0 0 var(--primary); }
.system-status {
    display: flex; gap: 10px; align-items: flex-start; padding: 14px;
    border: 1px solid var(--line); border-radius: 12px; margin-top: auto; background: rgba(31,209,160,.05);
}
.system-status strong { font-size: .9rem; display: block; }
.status-dot { width: 10px; height: 10px; margin-top: 6px; border-radius: 99px; background: var(--green); box-shadow: 0 0 0 5px rgba(31,209,160,.12); }
.user-box { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; }
.user-box strong { font-size: .92rem; }
.avatar { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 800; }
.icon-button { color: var(--muted); background: transparent; border: 0; cursor: pointer; padding: 10px; font-size: 1.2rem; }

.main-content { min-width: 0; padding: 0 30px 50px; }
.topbar {
    position: relative; min-height: 96px; display: flex; align-items: center; justify-content: space-between;
    gap: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line);
}
.topbar::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(38,132,255,.65), rgba(60,140,240,.45), transparent);
    pointer-events: none;
}
.topbar p { margin: 0; color: var(--muted); font-size: .92rem; }
.top-actions { display: flex; gap: 12px; align-items: center; flex-shrink: 0; }
.new-call-icon { font-size: 1.5rem; line-height: 1; }
.menu-button { display: none; border: 1px solid var(--line); background: var(--surface); color: white; border-radius: 10px; padding: 10px 13px; }
.search {
    display: flex; align-items: center; gap: 9px; min-width: 280px; min-height: 48px;
    padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
}
.search input { width: 100%; border: 0; outline: 0; color: white; background: transparent; }
.search input::placeholder { color: #71809a; }
.inner-search { min-width: 320px; }

.btn {
    min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 1px solid transparent; border-radius: 11px; padding: 0 18px;
    font-weight: 750; cursor: pointer; transition: .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, #2684ff, #165bd0); color: white; box-shadow: 0 10px 25px rgba(38,132,255,.24); }
.btn-primary:hover { background: #4196ff; color: white; }
.btn-secondary { background: var(--surface-3); border-color: var(--line); color: white; }
.btn-edit {
    color: #ecc7ff; border-color: rgba(80,150,245,.42);
    background: linear-gradient(135deg, rgba(22,77,145,.62), rgba(64,22,75,.72));
}
.btn-edit:hover { color: white; background: linear-gradient(135deg, #7e2291, #551563); box-shadow: 0 8px 24px rgba(22,77,145,.28); }
.btn-receipt {
    color: #8ff1ce; border-color: rgba(53,207,145,.4);
    background: linear-gradient(135deg, rgba(20,111,82,.48), rgba(10,67,53,.62));
}
.btn-receipt:hover, .btn-print:hover { color: white; background: #147d60; box-shadow: 0 8px 24px rgba(53,207,145,.2); }
.btn-print {
    color: #8ff1ce; border-color: rgba(53,207,145,.4);
    background: rgba(53,207,145,.12);
}
.btn-export-csv {
    color: #8ff1ce; border-color: rgba(53,207,145,.38);
    background: linear-gradient(135deg, rgba(20,111,82,.46), rgba(9,55,45,.7));
}
.btn-export-pdf {
    color: #ffabb3; border-color: rgba(255,100,114,.38);
    background: linear-gradient(135deg, rgba(130,38,49,.46), rgba(69,20,28,.7));
}
.btn-export-csv:hover, .btn-export-pdf:hover { color: white; filter: brightness(1.2); box-shadow: 0 8px 24px rgba(0,0,0,.24); }
.btn-danger { background: rgba(255,93,104,.14); border-color: rgba(255,93,104,.45); color: #ff8a92; }
.btn-danger:hover { background: rgba(255,93,104,.24); }
.btn-small { min-height: 38px; padding: 8px 12px; font-size: .88rem; }
.row-actions { display: flex; align-items: center; gap: 8px; }
.row-actions form { margin: 0; }
.receipt-preview { width: min(100%, 420px); margin: 12px auto; padding: 28px 24px; color: #111; background: #fff; font: 16px/1.35 "Courier New", monospace; box-shadow: 0 15px 50px rgba(0,0,0,.3); }
.receipt-preview header, .receipt-preview footer { display: grid; gap: 5px; text-align: center; }
.receipt-preview header strong { font-size: 1.25rem; text-transform: uppercase; }
.receipt-rule { margin: 14px 0; border-top: 2px dashed #222; }
.receipt-item { display: grid; gap: 3px; margin: 10px 0; }
.receipt-item span { text-align: right; }
.receipt-totals { display: grid; gap: 7px; }
.receipt-totals span { display: flex; justify-content: space-between; gap: 20px; }
.receipt-total { padding-top: 7px; border-top: 1px solid #222; font-size: 1.15rem; }

.alert { padding: 15px 18px; margin-bottom: 20px; border-radius: 12px; border: 1px solid; font-weight: 650; }
.alert-success { color: #a4f3da; background: rgba(31,209,160,.10); border-color: rgba(31,209,160,.3); }
.alert-error { color: #ffadb4; background: rgba(255,93,104,.10); border-color: rgba(255,93,104,.3); }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.metric-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric-card {
    min-height: 155px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius);
    position: relative; overflow: hidden;
    background: linear-gradient(145deg, #152132, #101824);
    display: flex; flex-direction: column; justify-content: center;
}
.metric-card::after {
    content: ""; position: absolute; width: 120px; height: 120px; right: -50px; top: -58px;
    border-radius: 50%; background: rgba(38,132,255,.10); filter: blur(2px);
}
.metric-card:nth-child(2) { background: linear-gradient(145deg, #10251f, #101512); border-color: #245842; }
.metric-card:nth-child(2)::after { background: rgba(53,207,145,.14); }
.metric-card:nth-child(3) { background: linear-gradient(145deg, #281416, #160e0e); border-color: #613039; }
.metric-card:nth-child(3)::after { background: rgba(255,100,114,.12); }
.metric-card:nth-child(4) { background: linear-gradient(145deg, #14243a, #0e1726); border-color: #274366; }
.metric-card:nth-child(4)::after { background: rgba(80,150,245,.13); }
.metric-card span { color: var(--muted); font-weight: 650; }
.metric-card strong, .metric-card span, .metric-card small { position: relative; z-index: 1; }
.metric-card strong { display: block; margin: 8px 0; font-size: 1.8rem; line-height: 1.2; }
.metric-highlight {
    background: linear-gradient(135deg, #247cf0 0%, #155bc4 48%, #10243c 120%);
    border-color: rgba(255,138,80,.55);
    box-shadow: 0 16px 42px rgba(20,90,190,.18);
}
.metric-highlight span, .metric-highlight small { color: rgba(255,255,255,.78); }
.positive { color: var(--green) !important; }
.negative { color: var(--red) !important; }

.panel {
    margin-bottom: 20px; padding: 24px; border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(16,24,36,.97), rgba(12,19,30,.98));
    box-shadow: 0 18px 55px rgba(0,0,0,.13);
}
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; }
.panel-heading p, .config-heading p { margin: 0; color: var(--muted); }
.flow-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.flow-grid > div { min-height: 145px; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); }
.flow-grid span { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: rgba(22,77,145,.35); color: #e7aaf2; font-weight: 800; }
.flow-grid strong { display: block; margin: 15px 0 5px; }

.badge { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 11px; border-radius: 99px; background: #26334e; color: #c9d2e4; font-size: .82rem; font-weight: 800; white-space: nowrap; }
.badge-success, .badge-paid, .badge-delivered { color: #69e9c1; background: rgba(31,209,160,.13); }
.badge-awaiting_payment { color: #ffd37a; background: rgba(255,191,75,.13); }
.badge-preparing { color: #e6a8f1; background: rgba(22,77,145,.34); }
.badge-ready, .badge-out_for_delivery { color: #8ecaff; background: rgba(78,167,255,.15); }
.badge-cancelled { color: #ff9da5; background: rgba(255,93,104,.13); }

.table-wrap { overflow-x: auto; border: 1px solid #26364c; border-radius: 13px; background: rgba(9,6,5,.46); }
.data-table { width: 100%; border-collapse: collapse; min-width: 860px; }
.data-table th { padding: 15px 17px; color: #94abc8; background: #0c1420; text-align: left; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.data-table td { padding: 17px; border-top: 1px solid var(--line); vertical-align: middle; }
.data-table tbody tr:hover { background: rgba(38,132,255,.05); }
.data-table td small { margin-top: 2px; }
.customer-search { margin: 0 0 18px auto; }
.customer-table { min-width: 1050px; }
.customer-address { min-width: 260px; max-width: 420px; }
.customer-form-panel { max-width: 1050px; }
.muted-text { color: var(--muted); }
.empty { padding: 30px !important; text-align: center; color: var(--muted); }
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.filter-tabs button {
    min-height: 42px; padding: 0 14px; color: #aeb9cb; border: 1px solid transparent;
    border-radius: 10px; background: transparent; cursor: pointer; font-weight: 650;
}
.filter-tabs button:hover { color: #acd3ff; background: rgba(38,132,255,.08); border-color: rgba(38,132,255,.18); }
.filter-tabs button.active {
    color: white; border-color: rgba(80,150,245,.5);
    background: linear-gradient(135deg, rgba(22,77,145,.72), rgba(81,21,94,.42));
    box-shadow: 0 8px 22px rgba(22,77,145,.2);
}

.two-columns { display: grid; grid-template-columns: minmax(360px, .8fr) minmax(480px, 1.2fr); gap: 20px; align-items: start; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.form-stack { display: grid; gap: 17px; }
.form-grid label, .form-stack label { display: grid; gap: 7px; }
.form-grid label > span, .form-stack label > span { font-weight: 700; color: #dfe4ef; }
.form-grid .full { grid-column: 1 / -1; }
input, select, textarea {
    width: 100%; color: white; background: #0b111c; border: 1px solid #2b3e59;
    border-radius: 10px; padding: 13px 14px; outline: none;
}
input, select { min-height: 51px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(38,132,255,.15); }
.money-input { display: flex; align-items: center; min-height: 51px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); }
.money-input:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(38,132,255,.15); }
.money-input > span { padding-left: 16px; color: #9aabd0; font-weight: 700; }
.money-input input { min-height: 49px; border: 0; box-shadow: none; background: transparent; }
.money-input input:focus { border: 0; box-shadow: none; }
.pix-layout { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 28px; align-items: start; }
.pix-qr { display: block; width: 100%; max-width: 320px; padding: 14px; border-radius: 18px; background: white; }
.pix-details { display: grid; gap: 18px; }
.pix-details > strong { font-size: 2rem; color: var(--success); }
.pix-details label { display: grid; gap: 7px; }
.pix-details label > span { font-weight: 700; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.report-filter-panel { max-width: 820px; }
.report-filter { display: grid; grid-template-columns: 1fr 1fr auto; gap: 16px; align-items: end; }
.report-filter label { display: grid; gap: 7px; }
.report-filter label > span { color: #dfe4ef; font-weight: 700; }
.report-filter .btn { min-height: 51px; }
.report-export-actions { display: flex; gap: 12px; margin: 18px 0; }
.report-summary { display: grid; grid-template-columns: repeat(3, 1fr); }
.report-summary > div { display: flex; justify-content: space-between; padding: 18px 22px; border-right: 1px solid var(--line); }
.report-summary > div:last-child { border-right: 0; }
.report-summary span { color: #9eb0d3; }
.report-summary strong { font-size: 1.35rem; }
.report-balance { border-top: 1px solid transparent; }
.badge-income { color: #5ce4c4; background: rgba(34,197,148,.14); }
.badge-expense { color: #ff8795; background: rgba(255,74,96,.14); }
.report-table td:last-child, .report-table th:last-child { text-align: right; }
.transaction-list { display: grid; gap: 10px; }
.transaction-list article { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 13px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.transaction-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; font-weight: 900; }
.positive-bg { color: var(--green); background: rgba(31,209,160,.12); }
.negative-bg { color: var(--red); background: rgba(255,93,104,.12); }
.report-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.report-grid article { padding: 22px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); }
.report-grid span { color: var(--muted); }
.report-grid strong { display: block; margin-top: 8px; font-size: 1.5rem; }
.report-note { margin-top: 18px; padding: 18px; border-left: 4px solid var(--primary); background: rgba(38,132,255,.08); }
.report-note p { margin: 5px 0 0; color: var(--muted); }

.integration-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 24px; padding-bottom: 1px; border-bottom: 1px solid var(--line); }
.integration-tabs a { padding: 13px 18px; border-bottom: 3px solid transparent; color: #9ba8bd; font-weight: 750; white-space: nowrap; }
.integration-tabs a.active { color: white; border-bottom-color: var(--primary); }
.integration-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.integration-cards article { min-height: 210px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.integration-cards article > strong { display: block; margin: 14px 0 10px; font-size: 1.05rem; }
.integration-cards article p { color: var(--muted); min-height: 52px; }
.integration-logo { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: rgba(22,77,145,.35); color: #e7aaf2; font-weight: 900; }
.config-heading { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin: 6px 0 20px; }
.credential-alert { margin-bottom: 20px; padding: 18px; border: 1px solid rgba(255,191,75,.3); border-radius: 12px; background: rgba(255,191,75,.07); }
.credential-alert strong { color: #ffd27a; }
.credential-alert p { margin: 5px 0 0; color: #c9bd9e; }
.integration-form { max-width: 980px; }
.inline-form { margin-top: -48px; width: fit-content; }
.workflow-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.workflow-summary article { padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.workflow-summary span { color: #76b7ff; font-weight: 900; }
.workflow-summary strong { display: block; margin: 8px 0 4px; }
.workflow-summary p { margin: 0; color: var(--muted); }

.whatsapp-panel { max-width: 1180px; }
.whatsapp-layout { display: grid; grid-template-columns: minmax(420px, 1.15fr) minmax(300px, .85fr); gap: 24px; align-items: stretch; }
.whatsapp-config { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.whatsapp-connection-form small { color: var(--muted); }
.whatsapp-instance-summary { display: grid; gap: 10px; margin: 4px 0; }
.whatsapp-instance-summary > div { display: grid; gap: 4px; padding: 13px 15px; border: 1px solid rgba(255,255,255,.06); border-radius: 10px; background: rgba(7,5,4,.34); }
.whatsapp-instance-summary span { color: var(--muted); font-size: .82rem; }
.whatsapp-instance-summary strong { overflow-wrap: anywhere; }
.whatsapp-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 3px; }
.whatsapp-actions .btn { flex: 1; min-width: 180px; }
.whatsapp-actions .btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.whatsapp-qr-card { min-height: 430px; padding: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 1px dashed rgba(31,209,160,.38); border-radius: 16px; background: radial-gradient(circle at top, rgba(31,209,160,.10), rgba(7,12,10,.34) 62%); }
.whatsapp-qr-card h3 { margin: 14px 0 6px; }
.whatsapp-qr-card p, .whatsapp-qr-card small { color: var(--muted); }
.whatsapp-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; color: #71e7c2; background: rgba(31,209,160,.14); font-size: 1.7rem; }
.whatsapp-qr { width: min(320px, 100%); aspect-ratio: 1; object-fit: contain; margin: 18px 0; padding: 12px; border-radius: 15px; background: white; }
.whatsapp-result { max-width: 760px; }

.login-body { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at top, #133765, var(--bg) 55%); }
.login-card { width: min(460px, 100%); padding: 36px; border: 1px solid var(--line); border-radius: 20px; background: rgba(15,26,46,.96); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.login-card .brand-mark { margin-bottom: 24px; }
.login-card > p { color: var(--muted); margin-bottom: 25px; }
.empty-state { text-align: center; padding: 70px 25px; }
.empty-icon { font-size: 3rem; font-weight: 900; color: var(--primary); }

@media (max-width: 1180px) {
    .metric-grid { grid-template-columns: repeat(2, 1fr); }
    .flow-grid { grid-template-columns: repeat(3, 1fr); }
    .integration-cards { grid-template-columns: repeat(2, 1fr); }
    .two-columns { grid-template-columns: 1fr; }
    .whatsapp-layout { grid-template-columns: 1fr; }
    .report-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 850px) {
    .pix-layout { grid-template-columns: 1fr; }
    :root { font-size: 16px; }
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { position: fixed; left: -290px; width: 270px; transition: left .2s ease; box-shadow: 12px 0 45px rgba(0,0,0,.4); }
    .sidebar.open { left: 0; }
    .main-content { padding: 0 18px 35px; }
    .topbar { min-height: 84px; }
    .menu-button { display: block; }
    .topbar > div:first-of-type { flex: 1; min-width: 0; }
    .menu-button { flex-shrink: 0; }
    .top-actions .search { display: none; }
    .flow-grid, .workflow-summary { grid-template-columns: repeat(2, 1fr); }
    .report-filter { grid-template-columns: 1fr 1fr; }
    .report-filter .btn { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
    .main-content { padding-inline: 13px; }
    .topbar { gap: 10px; }
    .topbar h1 { font-size: 1.35rem; }
    .topbar .new-call-button { width: 44px; min-width: 44px; min-height: 44px; padding: 0; gap: 0; }
    .topbar .new-call-label { display: none; }
    .topbar .new-call-icon { display: block; font-size: 1.75rem; line-height: 1; }
    .topbar p { font-size: .78rem; overflow-wrap: anywhere; }
    .metric-grid, .metric-grid.three, .flow-grid, .integration-cards, .workflow-summary, .report-grid, .form-grid { grid-template-columns: 1fr; }
    .metric-card { min-height: 130px; }
    .panel { padding: 18px; }
    .panel-heading, .config-heading { align-items: flex-start; flex-direction: column; }
    .inner-search { min-width: 100%; width: 100%; }
    .form-grid .full { grid-column: auto; }
    .inline-form { margin-top: 10px; }
    .transaction-list article { grid-template-columns: 44px 1fr; }
    .transaction-list article > strong:last-child { grid-column: 2; }
    .report-filter, .report-summary { grid-template-columns: 1fr; }
    .report-filter .btn { grid-column: auto; }
    .report-export-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .report-summary > div { border-right: 0; border-bottom: 1px solid var(--line); }
    .report-summary > div:last-child { border-bottom: 0; }
    .whatsapp-config, .whatsapp-qr-card { padding: 18px; }
    .whatsapp-actions { display: grid; }
}

@media print {
    .sidebar, .topbar, .btn, .integration-tabs, .no-print { display: none !important; }
    .app-shell { display: block; }
    .main-content { padding: 0; }
    body, .panel, .metric-card { background: white; color: black; border-color: #ccc; }
    .receipt-page { padding: 0; border: 0; }
    .receipt-preview { width: 80mm; margin: 0 auto; padding: 4mm; box-shadow: none; }
}

/* Fernanvel operation center */
.hero-operation { display:flex; justify-content:space-between; gap:30px; align-items:center; padding:34px; margin-bottom:24px; border:1px solid #2b4a72; border-radius:18px; background:radial-gradient(ellipse at right, #153e70 0%, transparent 65%), #101c2d; }
.hero-operation h2 {font-size:clamp(1.6rem,3vw,2.3rem); max-width:650px; line-height:1.2; margin:12px 0;}
.hero-operation p {color:var(--muted); max-width:610px; margin-bottom:20px;}
.eyebrow {font-size:.75rem; letter-spacing:.17em; color:#79b9ff; font-weight:800;}
.hero-symbol {width:155px; opacity:.85; flex-shrink:0;}
.quick-grid {display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-bottom:24px;}
.quick-card {padding:23px; border:1px solid var(--line); border-radius:14px; background:var(--surface); color:var(--text);}
.quick-card strong {display:block; margin-bottom:7px;}
.quote-result {padding:24px; background:#102c4b; border:1px solid #3171ba; border-radius:14px; margin-bottom:20px;}
.quote-result strong {font-size:2rem; display:block;}
:focus-visible {outline:2px solid #80bdff; outline-offset:3px;}
@media(max-width:700px){.hero-operation{padding:24px}.hero-symbol{display:none}.quick-grid{grid-template-columns:1fr}}
.btn-edit, .filter-tabs button.active {color:#b9daff; border-color:#315d91; background:#17375b; box-shadow:none;}
.btn-edit:hover {background:#215187; box-shadow:none;}
.badge-preparing {color:#a7d4ff; background:#17385a;}
.flow-grid span, .integration-logo {color:#a7d4ff; background:#183a61;}
.brand-mark {box-shadow:0 8px 25px #1460ba33;}
.metric-card:nth-child(4)::after {background:#2684ff22;}
.photo-gallery {display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,220px)); gap:16px; margin:12px 0 24px;}
.photo-gallery:empty {display:none;}
.photo-gallery figure {margin:0; min-width:0;}
.photo-gallery img {width:100%; height:160px; object-fit:cover; border:1px solid var(--line); border-radius:12px;}
.photo-gallery figcaption {font-size:.8rem; color:var(--muted); overflow-wrap:anywhere;}
