/* Visual das telas de cadastro e relatório: cabeçalho em faixa, barra de busca e tabelas com cara de sistema.
   Carrega por último; só mexe nas telas (.view), não no caixa nem nas janelas. */

/* ---- Cabeçalho da tela ---- */
.view>header{position:relative;overflow:hidden;display:flex;justify-content:flex-start;align-items:center;gap:clamp(14px,1.4vw,22px);padding:clamp(18px,1.6vw,28px) clamp(20px,2vw,34px);margin-bottom:clamp(16px,1.4vw,22px);border-radius:18px;color:#fff;background:linear-gradient(120deg,#0f3324 0%,#1b5a3d 55%,#2a8157 100%);box-shadow:0 14px 30px rgba(18,59,42,.22)}
.view>header::before{content:"";flex:none;width:clamp(52px,4vw,68px);height:clamp(52px,4vw,68px);border-radius:16px;background:rgba(255,255,255,.14) center/54% no-repeat;border:1px solid rgba(255,255,255,.22);box-shadow:inset 0 1px 0 rgba(255,255,255,.25)}
.view>header::after{content:"";position:absolute;right:-60px;top:-80px;width:260px;height:260px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.14),rgba(255,255,255,0) 68%);pointer-events:none}
.view>header>div{min-width:0}
.view>header .eyebrow{margin:0 0 4px;color:#b9e8cd;font-size:clamp(.74rem,.8vw,.92rem);letter-spacing:.2em}
.view>header h1{margin:0;color:#fff;font-size:clamp(1.7rem,2.3vw,2.6rem);line-height:1.1;letter-spacing:-.01em;text-align:left}
.view>header>button{position:relative;z-index:1;margin-left:auto;background:#fff;color:#123b2a;border:0;border-radius:12px;padding:clamp(12px,1vw,16px) clamp(16px,1.3vw,24px);font-weight:800;box-shadow:0 6px 16px rgba(0,0,0,.2);transition:transform .12s,box-shadow .12s}
.view>header>button:hover{transform:translateY(-1px);box-shadow:0 10px 22px rgba(0,0,0,.26)}
.view>header>button kbd{margin-left:8px;color:#1f6848;border-color:#b9d6c5;background:#eef7f1}
/* ícone de cada tela (SVG simples, embutido) */
#products>header::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21 8-9-5-9 5 9 5 9-5Z'/%3E%3Cpath d='M3 8v8l9 5 9-5V8M12 13v8'/%3E%3C/svg%3E")}
#customers>header::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20c.6-3.6 3.2-5.5 6.5-5.5s5.9 1.9 6.5 5.5'/%3E%3Cpath d='M16 4.6a3.5 3.5 0 0 1 0 6.8M18 14.8c1.8.7 3 2.4 3.5 5.2'/%3E%3C/svg%3E")}
#credit>header::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='5' width='19' height='14' rx='2.5'/%3E%3Cpath d='M2.5 10h19M6.5 15h4'/%3E%3C/svg%3E")}
#stock>header::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9.5 12 4l9 5.5V20H3V9.5Z'/%3E%3Cpath d='M9 20v-6h6v6'/%3E%3C/svg%3E")}
#reports>header::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20V10M10 20V4M16 20v-7M22 20H2'/%3E%3C/svg%3E")}

/* ---- Barra de busca / filtros ---- */
.view>.toolbar{align-items:center;gap:12px;padding:12px 14px;margin-bottom:14px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 6px 18px rgba(19,46,33,.07)}
.view>.toolbar>input{flex:1 1 320px;max-width:560px;height:clamp(46px,3.2vw,56px);padding:0 16px 0 48px;border:2px solid #d3e0d8;border-radius:12px;background:#f7faf8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f6848' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m20 20-4.2-4.2'/%3E%3C/svg%3E") 15px center/22px no-repeat;font-size:clamp(1rem,1.05vw,1.2rem);transition:border-color .15s,box-shadow .15s,background-color .15s}
.view>.toolbar>input::placeholder{color:#7d8c84}
.view>.toolbar>input:focus{border-color:var(--green2);background-color:#fff;box-shadow:0 0 0 4px rgba(31,104,72,.14)}
.view>.toolbar.dates label{display:flex;align-items:center;gap:8px;font-weight:700;color:var(--green)}
.view>.toolbar.dates input{width:auto;height:clamp(44px,3vw,52px);padding:0 12px;border:2px solid #d3e0d8;border-radius:12px;background:#f7faf8}
.view>.toolbar.dates input:focus{border-color:var(--green2);box-shadow:0 0 0 4px rgba(31,104,72,.14)}
.view>.toolbar .primary{height:clamp(44px,3vw,52px);border-radius:12px}
.view>.toolbar .tabs{margin-left:auto;padding:4px;background:#eef3f0;border-radius:12px}
.view>.toolbar .tabs button{border:0;background:transparent;border-radius:9px}
.view>.toolbar .tabs button.active{background:var(--green2);box-shadow:0 3px 8px rgba(31,104,72,.3)}

/* ---- Dica de teclas ---- */
.view>.list-tip{margin:0 0 14px;padding:8px 14px;background:#eef6f1;border:1px dashed #b9d6c5;border-radius:10px}

/* ---- Cartões de resumo ---- */
.view .summary-cards article{position:relative;overflow:hidden;padding:clamp(16px,1.3vw,22px) clamp(18px,1.5vw,24px);border:1px solid var(--line);border-top:4px solid var(--green2);border-radius:14px}
.view .summary-cards article span{display:block;color:var(--muted);font-weight:700;text-transform:uppercase;font-size:.78rem;letter-spacing:.06em}
.view .summary-cards article strong{display:block;margin-top:6px;color:#123b2a;font-size:clamp(1.6rem,2vw,2.3rem);letter-spacing:-.01em}

/* ---- Tabelas ---- */
.view .table-card{border-radius:16px;border:1px solid #d6e2db;box-shadow:0 10px 26px rgba(19,46,33,.09)}
.view .table th{background:linear-gradient(#f3f8f5,#e9f1ec);color:#2c4a3b;border-bottom:2px solid #c9dbd0;font-weight:800;position:sticky;top:0}
.view .table tbody tr{transition:background-color .1s}
.view .table tbody tr:nth-child(even){background:#fafcfb}
.view .table tbody tr:hover{background:#eef7f2}
.view .table tbody td:first-child{font-weight:700;color:#17211c}

/* ---- Títulos de seção dentro da tela ---- */
.view>h2{display:flex;align-items:center;gap:10px;margin:28px 0 12px;font-size:clamp(1.1rem,1.4vw,1.5rem);color:#123b2a}
.view>h2::before{content:"";width:5px;height:1.2em;border-radius:3px;background:linear-gradient(#34c27a,#1f6848)}

@media (max-width:760px){.view>header{flex-wrap:wrap}.view>header>button{margin-left:0;width:100%}.view>.toolbar{flex-wrap:wrap}.view>.toolbar .tabs{margin-left:0}}
@media print{.view>header::before,.view>header::after{display:none}}

/* =====================================================================
   JANELAS DE CADASTRO (Novo produto, Novo cliente, Registrar entrada, etc.)
   ===================================================================== */
dialog:not(.error-dialog):not(.co-dialog):not(.sale-view){border-radius:18px;overflow:hidden;box-shadow:0 30px 90px rgba(0,0,0,.4);background:#fff}
dialog:not(.error-dialog):not(.co-dialog):not(.sale-view)::backdrop{background:rgba(4,20,12,.66);backdrop-filter:blur(2px)}
dialog:not(.error-dialog):not(.co-dialog):not(.sale-view)>form{max-height:calc(100vh - 28px);overflow:auto}
/* faixa de título */
dialog:not(.error-dialog):not(.co-dialog):not(.sale-view)>form>header{position:sticky;top:-22px;z-index:3;margin:-22px -22px 20px;padding:18px 22px;color:#fff;background:linear-gradient(120deg,#0f3324 0%,#1b5a3d 60%,#2a8157 100%);box-shadow:0 6px 16px rgba(18,59,42,.2)}
dialog:not(.error-dialog):not(.co-dialog):not(.sale-view)>form>header small{display:block;color:#b9e8cd;font-weight:800;letter-spacing:.18em;font-size:.72rem;text-transform:uppercase}
dialog:not(.error-dialog):not(.co-dialog):not(.sale-view)>form>header h2{margin:2px 0 0;color:#fff;font-size:clamp(1.3rem,1.6vw,1.8rem);letter-spacing:-.01em}
dialog:not(.error-dialog):not(.co-dialog):not(.sale-view)>form>header>button{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.16);color:#fff;font-size:1.5rem;line-height:1;transition:background .12s}
dialog:not(.error-dialog):not(.co-dialog):not(.sale-view)>form>header>button:hover{background:rgba(255,255,255,.3)}
/* campos */
dialog:not(.error-dialog):not(.co-dialog):not(.sale-view) label{color:#2c4a3b;font-weight:750;font-size:.9rem}
dialog:not(.error-dialog):not(.co-dialog):not(.sale-view) input:not([type=checkbox]):not([type=radio]),dialog:not(.error-dialog):not(.co-dialog):not(.sale-view) select,dialog:not(.error-dialog):not(.co-dialog):not(.sale-view) textarea{border:2px solid #d3e0d8;border-radius:11px;background:#f7faf8;padding:12px 14px;font-size:1rem;transition:border-color .15s,box-shadow .15s,background-color .15s}
dialog:not(.error-dialog):not(.co-dialog):not(.sale-view) input:focus:not([type=checkbox]),dialog:not(.error-dialog):not(.co-dialog):not(.sale-view) select:focus,dialog:not(.error-dialog):not(.co-dialog):not(.sale-view) textarea:focus{border-color:var(--green2);background:#fff;box-shadow:0 0 0 4px rgba(31,104,72,.14)}
dialog:not(.error-dialog):not(.co-dialog):not(.sale-view) input::placeholder{color:#8a998f}
dialog:not(.error-dialog):not(.co-dialog):not(.sale-view) .form-grid{gap:16px}
dialog:not(.error-dialog):not(.co-dialog):not(.sale-view) fieldset{border:2px solid #d3e0d8;border-radius:12px;background:#f7faf8}
dialog:not(.error-dialog):not(.co-dialog):not(.sale-view) legend{padding:0 8px;color:#2c4a3b;font-weight:800}
/* avisos dentro da janela */
dialog .auto-code-note,dialog .entry-guidance,dialog .edit-note,dialog .entry-selected{border-radius:12px}
dialog .auto-code-note{border:1px solid #a8d7bb;background:linear-gradient(#f4faf6,#eaf6ee)}
/* rodapé fixo com os botões */
dialog:not(.error-dialog):not(.co-dialog):not(.sale-view)>form>footer{position:sticky;bottom:-22px;z-index:3;margin:22px -22px -22px;padding:14px 22px;background:#f3f8f5;border-top:1px solid #dce8e1}
dialog:not(.error-dialog):not(.co-dialog):not(.sale-view)>form>footer .primary{padding:13px 24px;border-radius:12px;background:linear-gradient(#2a8157,#1f6848);box-shadow:0 6px 14px rgba(31,104,72,.32);font-weight:800}
dialog:not(.error-dialog):not(.co-dialog):not(.sale-view)>form>footer .primary:hover{filter:brightness(1.08)}
dialog:not(.error-dialog):not(.co-dialog):not(.sale-view)>form>footer .ghost{border-radius:12px;background:#e4ece7}
dialog:not(.error-dialog):not(.co-dialog):not(.sale-view)>form>footer .keyboard-tip{margin-right:auto;font-size:.8rem}
/* janela do comprovante */
.sale-view{border-radius:18px;overflow:hidden}
.sale-view .sv-top{background:linear-gradient(120deg,#0f3324,#1b5a3d 60%,#2a8157);color:#fff;border:0}
.sale-view .sv-top h2{color:#fff}.sale-view .sv-top button{color:#fff;width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.16)}
.sale-view .sv-actions{background:#f3f8f5}

/* =====================================================================
   MENU INICIAL
   ===================================================================== */
#home.active{background:radial-gradient(1200px 520px at 15% -10%,#1c5a3f 0%,rgba(28,90,63,0) 60%),radial-gradient(900px 480px at 100% 110%,#17503a 0%,rgba(23,80,58,0) 60%),#0b2418}
.home-top{padding:14px clamp(18px,2vw,32px);background:linear-gradient(120deg,#0f3324,#1b5a3d 70%,#23724c);border-bottom:1px solid rgba(255,255,255,.1);box-shadow:0 8px 22px rgba(0,0,0,.28)}
.home-brand strong{font-size:clamp(1.2rem,1.5vw,1.7rem);letter-spacing:-.01em}
.home-brand svg.berry{filter:drop-shadow(0 3px 5px rgba(0,0,0,.35))}
.home-clock b{font-size:clamp(1.4rem,1.8vw,2rem)}
.home-top .status{padding:7px 14px;border-radius:999px;background:rgba(79,191,127,.16);border:1px solid rgba(79,191,127,.4);color:#c9f2da;font-weight:700}
.home-top .ghost.small{background:rgba(255,255,255,.12);color:#fff;border:1px solid rgba(255,255,255,.18);border-radius:10px}
.home-top .ghost.small:hover{background:rgba(255,255,255,.22)}
.home-grid{gap:clamp(10px,1vw,16px);padding:clamp(12px,1.2vw,20px)}
.home-grid button{border-radius:20px;overflow:hidden;box-shadow:0 14px 28px rgba(0,0,0,.32),inset 0 1px 0 rgba(255,255,255,.22);transition:transform .15s,box-shadow .15s,filter .15s}
.home-grid button::after{content:"";position:absolute;right:-50px;top:-60px;width:200px;height:200px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.2),rgba(255,255,255,0) 68%);pointer-events:none}
.home-grid button:hover{transform:translateY(-3px);filter:brightness(1.07);box-shadow:0 20px 36px rgba(0,0,0,.4),inset 0 1px 0 rgba(255,255,255,.3)}
.home-grid button:active{transform:translateY(0) scale(.99)}
.home-grid button:focus-visible,.home-grid button.focused{box-shadow:0 0 0 4px #ffd84d,0 0 0 8px rgba(255,216,77,.28),0 18px 34px rgba(0,0,0,.4);transform:translateY(-3px)}
.tile{border-radius:20px;gap:10px}
.tile svg{padding:clamp(10px,1vw,16px);box-sizing:content-box;border-radius:24px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.2);width:clamp(40px,5.4vw,72px);height:clamp(40px,5.4vw,72px)}
.tile-main svg{width:clamp(64px,9vw,120px);height:clamp(64px,9vw,120px);padding:clamp(16px,1.6vw,26px);border-radius:34px}
.tile b{letter-spacing:.06em;text-shadow:0 2px 6px rgba(0,0,0,.25)}
.tile-red{background:linear-gradient(150deg,#f0485a,#c21f35 70%,#a3182b)}
.tile-green{background:linear-gradient(150deg,#38b072,#1f7a4a 70%,#18623c)}
.tile-dark{background:linear-gradient(150deg,#2a8157,#154d35 70%,#10402c)}
.home-list{gap:clamp(6px,.6vw,10px)}
.bar{border-radius:14px;padding:8px 16px;gap:14px}
.bar svg{box-sizing:content-box;width:24px;height:24px;padding:9px;border-radius:12px;background:rgba(255,255,255,.16)}
.bar span{font-size:clamp(.88rem,.95vw,1.08rem)}
.bar-1{background:linear-gradient(120deg,#38a06c,#2a7d55)}
.bar-2{background:linear-gradient(120deg,#26866f,#1b6454)}
.bar-3{background:linear-gradient(120deg,#12929f,#0b6672)}
.bar-4{background:linear-gradient(120deg,#d9692a,#b24a14)}
.bar-5{background:linear-gradient(120deg,#6d5bd0,#4c3da0)}
.bar-6{background:linear-gradient(120deg,#58766c,#3e5a50)}
.bar-7{background:linear-gradient(120deg,#7a8a83,#5b6b64)}
.home-uso{border-radius:16px;background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.16);box-shadow:0 8px 20px rgba(0,0,0,.2)}
.home-tip{padding-bottom:14px}

dialog .form-grid{align-items:start}

/* Estoque: preço editável na linha */
.price-edit{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-weight:700}.price-edit i{font-style:normal}
input.stock-price{width:7.5rem;padding:9px 12px;border:2px solid #d3e0d8;border-radius:9px;background:#f7faf8;font:inherit;font-weight:700;color:#123b2a;text-align:right}
input.stock-price:focus{outline:0;border-color:var(--green2);background:#fff;box-shadow:0 0 0 4px rgba(31,104,72,.14)}

/* ---- Estoque: mais espaço para a lista (20/10/2026) ---- */
body[data-view=stock] .app-top{padding:6px clamp(14px,1.6vw,28px)}
body[data-view=stock] .top-nav{gap:4px;margin-left:4px}
body[data-view=stock] .top-nav button{padding:5px 10px}
body[data-view=stock] main{padding:12px clamp(12px,1.4vw,28px)}
#stock>header{padding:8px 16px;margin-bottom:8px;border-radius:12px;gap:12px}
#stock>header::before,#stock>header::after{display:none}
#stock>header .eyebrow{display:none}
#stock>header h1{font-size:clamp(1.2rem,1.6vw,1.6rem)}
#stock>header>button{padding:8px 14px;border-radius:10px}
#stock>.toolbar{padding:6px 10px;margin-bottom:8px;border-radius:10px}
#stock>.toolbar>input{height:40px}
#stock-table{max-height:calc(100vh - 170px);min-height:320px}
#stock-table .table th,#stock-table .table td{padding:6px 10px}
#stock-table .table th{font-size:.72rem;z-index:2}
#stock-table .table td{font-size:.95rem}
#stock-table .table td:first-child,#stock-table .table th:first-child{position:sticky;left:0;z-index:1;background:#fff;box-shadow:1px 0 0 #dce8e1}
#stock-table .table th:first-child{z-index:3;background:#e9f1ec}
#stock-table .table tbody tr:nth-child(even) td:first-child{background:#fafcfb}
#stock-table .table tbody tr:hover td:first-child{background:#eef7f2}
#stock-table .last-entry{grid-template-columns:auto auto;column-gap:6px;align-items:baseline}
#stock-table .last-entry .muted{grid-column:1/-1}
#stock-table input.stock-price{width:6rem;padding:6px 9px}
#stock-table input.stock-add{width:7rem;padding:6px 9px}
@media(max-width:1500px){#stock-table .table th:nth-child(2),#stock-table .table td:nth-child(2){display:none}}

/* ---- Tabelas com cores mais fortes (20/10/2026) ---- */
.view .table th{background:#1f6848;color:#fff;border-bottom:0;letter-spacing:.06em}
.view .table td{border-bottom:1px solid #b9cfc2}
.view .table tbody tr:nth-child(odd){background:#fff}
.view .table tbody tr:nth-child(even){background:#e3f1e9}
.view .table tbody tr:hover{background:#c9e6d6}
.view .table tbody tr.selected{background:#bfe0cf;outline:2px solid #1f6848;outline-offset:-2px}
.view .table-card{border:2px solid #9fc2ae}
#stock-table .table th:first-child{background:#164f37;color:#fff}
#stock-table .table td:first-child{background:#fff}
#stock-table .table tbody tr:nth-child(even) td:first-child{background:#e3f1e9}
#stock-table .table tbody tr:hover td:first-child{background:#c9e6d6}
/* tabelas de baixo do Estoque com cor própria, para não confundir com a lista principal */
#stock-lots-table .table th{background:#b45f06}
#stock-lots-table .table tbody tr:nth-child(even){background:#fdeed9}
#stock-lots-table .table tbody tr:hover{background:#f9d9ae}
#stock-entries-table .table th{background:#2a5db0}
#stock-entries-table .table tbody tr:nth-child(even){background:#e2ecfb}
#stock-entries-table .table tbody tr:hover{background:#c8dbf6}
#lots-title{color:#b45f06}#lots-title::before{background:#b45f06!important}
#credit-table .table th{background:#8a2c2c}
#credit-table .table tbody tr:nth-child(even){background:#fbe9e9}
#credit-table .table tbody tr:hover{background:#f4cccc}
#payment-report .table th{background:#2a5db0}
#payment-report .table tbody tr:nth-child(even){background:#e2ecfb}
#top-report .table th{background:#b45f06}
#top-report .table tbody tr:nth-child(even){background:#fdeed9}

/* ---- Produtos e Clientes: mesma compactação do Estoque ---- */
body[data-view=products] .app-top,body[data-view=customers] .app-top{padding:6px clamp(14px,1.6vw,28px)}
body[data-view=products] .top-nav,body[data-view=customers] .top-nav{gap:4px;margin-left:4px}
body[data-view=products] .top-nav button,body[data-view=customers] .top-nav button{padding:5px 10px}
body[data-view=products] main,body[data-view=customers] main{padding:12px clamp(12px,1.4vw,28px)}
#products>header,#customers>header{padding:8px 16px;margin-bottom:8px;border-radius:12px;gap:12px}
#products>header::before,#products>header::after,#customers>header::before,#customers>header::after{display:none}
#products>header .eyebrow,#customers>header .eyebrow{display:none}
#products>header h1,#customers>header h1{font-size:clamp(1.2rem,1.6vw,1.6rem)}
#products>header>button,#customers>header>button{padding:8px 14px;border-radius:10px}
#products>.toolbar,#customers>.toolbar{padding:6px 10px;margin-bottom:8px;border-radius:10px}
#products>.toolbar>input,#customers>.toolbar>input{height:40px}
#products>.list-tip,#customers>.list-tip{margin:0 0 8px;padding:4px 12px}
#products-table,#customers-table{max-height:calc(100vh - 215px);min-height:300px}
#products-table .table th,#products-table .table td,#customers-table .table th,#customers-table .table td{padding:6px 10px}
#products-table .table th,#customers-table .table th{font-size:.72rem;z-index:2}
#products-table .table td,#customers-table .table td{font-size:.95rem}
@media(max-width:1500px){#products-table .table th:nth-child(3),#products-table .table td:nth-child(3){display:none}}

/* ---- Compactação geral das tabelas e telas (20/10/2026, 2ª rodada) ---- */
.view .table th,.view .table td{padding:4px 9px;line-height:1.2}
.view .table th{font-size:.7rem}
.view .table td{font-size:.92rem}
.view .table td .tag{padding:1px 8px;font-size:.72rem}
.view .table button.small,.view .table .ghost.small,.view .table .primary.small{padding:3px 10px;font-size:.82rem;border-radius:8px}
#stock-table .table th,#stock-table .table td,#products-table .table th,#products-table .table td,#customers-table .table th,#customers-table .table td{padding:4px 9px}
#stock-table .last-entry{display:flex;flex-wrap:nowrap;gap:6px;align-items:baseline}
#stock-table .last-entry small{font-size:.78rem}
#stock-table input.stock-price,#stock-table input.stock-add{padding:3px 8px;font-size:.9rem;border-radius:7px}
#stock-table input.stock-price{width:5.2rem}
#stock-table input.stock-add{width:6rem}
#stock-table,#products-table,#customers-table{max-height:calc(100vh - 150px)}
.view .summary-cards article{padding:10px 14px}
.view .summary-cards article strong{font-size:clamp(1.2rem,1.6vw,1.8rem);margin-top:2px}
body[data-view=credit] main,body[data-view=reports] main{padding:12px clamp(12px,1.4vw,28px)}
body[data-view=credit] .app-top,body[data-view=reports] .app-top{padding:6px clamp(14px,1.6vw,28px)}
body[data-view=credit] .top-nav button,body[data-view=reports] .top-nav button{padding:5px 10px}
#credit>header,#reports>header{padding:8px 16px;margin-bottom:8px;border-radius:12px}
#credit>header::before,#credit>header::after,#reports>header::before,#reports>header::after{display:none}
#credit>header .eyebrow,#reports>header .eyebrow{display:none}
#credit>header h1,#reports>header h1{font-size:clamp(1.2rem,1.6vw,1.6rem)}
.view>h2{margin:16px 0 8px}
.view>.list-tip{margin:0 0 8px;padding:4px 12px}

/* ---- Logo nova do Varejão do Morango ---- */
.home-brand img.logo-img,.login-brand img.logo-img{height:clamp(54px,4.2vw,88px);width:auto;background:#fff;border-radius:12px;padding:4px 12px;box-shadow:0 3px 10px rgba(0,0,0,.25);flex:none}
.login-brand img.logo-img{height:72px;box-shadow:none;padding:0}
.home-brand small{align-self:center}

/* Ordenação da tabela de estoque */
#stock-table .sort-h{cursor:pointer;user-select:none;white-space:nowrap}
#stock-table .sort-h:hover{text-decoration:underline}
#stock-table .sort-h::after{content:"\2195";margin-left:.35em;opacity:.45;font-size:.85em}
#stock-table .sort-h.asc::after{content:"\25B2";opacity:1}
#stock-table .sort-h.desc::after{content:"\25BC";opacity:1}
