:root{--bg:#f5f7fb;--card:#fff;--text:#172033;--muted:#697386;--blue:#1569ff;--line:#e7ecf5;--green:#14a44d;--shadow:0 12px 32px rgba(18,32,64,.08)}*{box-sizing:border-box}body{margin:0;font-family:Inter,Arial,sans-serif;background:var(--bg);color:var(--text)}a{text-decoration:none;color:inherit}.top{height:68px;background:#0d172b;color:white;display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:10}.brand{font-size:22px;font-weight:800}.brand span{color:#6ea8ff}.top nav{display:flex;gap:16px;align-items:center}.top nav a{font-size:14px;color:#dbe7ff}.wrap{max-width:1180px;margin:0 auto;padding:28px}.login-card{max-width:960px;margin:32px auto}.login-card.small{max-width:420px}.login-card h1,section h1{font-size:34px;margin:0 0 8px}.login-card p,section>p{color:var(--muted);margin-top:0}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:20px}.box,.card,.checkout,.order-head{background:var(--card);border:1px solid var(--line);border-radius:20px;padding:20px;box-shadow:var(--shadow)}.box h2{margin-top:0}label{display:block;font-size:13px;font-weight:700;color:#334;margin:10px 0}input,select,textarea{width:100%;border:1px solid var(--line);border-radius:12px;padding:12px 13px;margin-top:6px;background:#fff;font-size:15px}button,.button{display:inline-flex;justify-content:center;align-items:center;border:0;background:var(--blue);color:white;border-radius:13px;padding:12px 18px;font-weight:800;cursor:pointer}.alert{background:#fff4d9;border:1px solid #ffdc7a;border-radius:12px;padding:12px;margin:12px 0}.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:18px;margin-top:22px}.card{text-align:center;transition:.2s}.card:hover{transform:translateY(-2px);border-color:#bcd1ff}.card h2{font-size:20px}.rep-logo{max-width:170px;height:88px;object-fit:contain}.rep-logo-lg{max-width:210px;height:95px;object-fit:contain}.logo-placeholder{margin:0 auto;width:100px;height:80px;border-radius:18px;background:#e8f0ff;color:#1569ff;display:grid;place-items:center;font-size:30px;font-weight:900}.back{display:inline-block;margin-bottom:14px;color:var(--blue);font-weight:800}.order-head{margin-bottom:18px}.filters{display:grid;grid-template-columns:2fr 1fr;gap:12px;margin:18px 0}.table{background:white;border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:var(--shadow)}.thead,.row{display:grid;grid-template-columns:80px minmax(280px,1fr) 90px 75px 100px 145px;gap:12px;align-items:center;padding:12px 16px;border-bottom:1px solid var(--line)}.thead{background:#f0f4fb;font-size:12px;font-weight:900;color:var(--muted);text-transform:uppercase}.row small{display:block;color:var(--muted);margin-top:4px}.prod-img,.noimg{width:60px;height:60px;border-radius:13px;object-fit:cover;background:#eef3fb;display:grid;place-items:center;color:#8a95a8;font-size:12px}.qty{display:flex;align-items:center;gap:7px}.qty button{width:34px;height:34px;border-radius:50%;padding:0;font-size:20px}.qty input{width:52px;text-align:center;margin:0;padding:9px}.checkout{display:grid;grid-template-columns:1fr 260px;gap:20px;margin-top:18px}.totalbox{background:#0d172b;color:white;border-radius:18px;padding:18px}.totalbox p{margin:0;color:#b9c7e4}.totalbox strong{display:block;font-size:28px;margin:10px 0 18px}.send{width:100%;background:var(--green)}.done{text-align:center;max-width:760px;margin:40px auto}.done .button,.done button{margin:6px}.receipt{text-align:left;background:white;border:1px solid var(--line);border-radius:18px;padding:18px;margin-top:20px}.admin .dash{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:20px 0}.dash div{background:white;border:1px solid var(--line);border-radius:18px;padding:22px;box-shadow:var(--shadow)}.dash b{font-size:34px;display:block;color:var(--blue)}.dash span{color:var(--muted)}.list-item{display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid var(--line);border-radius:14px;padding:13px;margin:9px 0;background:#fff}.list-item span{font-weight:800}.list-item small{color:var(--muted)}.checks{display:flex;gap:12px;flex-wrap:wrap}.checks label{font-weight:600}.checks input{width:auto}.admin-tabs{display:grid;grid-template-columns:1fr 1fr;gap:18px}.wide{grid-column:1/-1}.inline{display:flex;gap:10px;align-items:end}.inline input{margin-top:0}.prod-form{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.prod-form input,.prod-form select{margin-top:0}.import label{font-size:13px}.mini-table div{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding:10px}.order-detail{background:white;border:1px solid var(--line);border-radius:14px;padding:14px;margin:10px 0}summary{cursor:pointer;font-weight:800}@media(max-width:850px){.grid2,.checkout,.admin-tabs{grid-template-columns:1fr}.top{height:auto;gap:12px;flex-direction:column;align-items:flex-start;padding:16px}.top nav{flex-wrap:wrap}.wrap{padding:18px}.thead{display:none}.row{grid-template-columns:62px 1fr;position:relative}.row span:nth-child(3),.row span:nth-child(4),.row span:nth-child(5){font-size:13px}.qty{grid-column:1/-1;justify-content:flex-end}.filters{grid-template-columns:1fr}.admin .dash{grid-template-columns:1fr 1fr}.prod-form{grid-template-columns:1fr}.login-card h1,section h1{font-size:28px}}

/* Pedido 1.3 - grade/lista */
.order-tools{grid-template-columns:2fr 1fr auto;align-items:end}.view-toggle{display:flex;gap:8px;align-items:center;justify-content:flex-end}.view-toggle button{background:#eef3fb;color:#23324f;border:1px solid var(--line);padding:11px 14px;border-radius:12px}.view-toggle button.active{background:var(--blue);color:#fff;border-color:var(--blue)}.products.grade-view{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:16px;background:transparent;border:0;box-shadow:none;overflow:visible}.products.grade-view .thead{display:none}.products.grade-view .product-row{display:flex!important;flex-direction:column;gap:8px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px;box-shadow:var(--shadow);min-height:315px;position:relative;transition:.18s}.products.grade-view .product-row.selected{border-color:#22c55e;box-shadow:0 12px 32px rgba(20,164,77,.16)}.products.grade-view .product-row>span{display:block}.products.grade-view .product-row>span:first-child{text-align:center}.products.grade-view .prod-img,.products.grade-view .noimg{width:100%;height:135px;border-radius:16px}.products.grade-view .product-row span:nth-child(2) b{font-size:15px;line-height:1.25}.products.grade-view .product-row span:nth-child(2) small{font-size:12px;line-height:1.35}.products.grade-view .product-row span:nth-child(3)::before{content:'Caixa: ';font-weight:800;color:var(--muted)}.products.grade-view .product-row span:nth-child(4)::before{content:'Múltiplo: ';font-weight:800;color:var(--muted)}.products.grade-view .product-row span:nth-child(5){font-size:20px;font-weight:900;color:#0d172b}.products.grade-view .qty{margin-top:auto;justify-content:center;background:#f6f8fc;border-radius:16px;padding:8px}.products.grade-view .qty button{width:38px;height:38px}.products.grade-view .qty input{font-weight:900;background:#fff}.products.list-view{background:white;border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:var(--shadow)}.products.list-view .thead,.products.list-view .product-row{display:grid;grid-template-columns:80px minmax(280px,1fr) 90px 75px 100px 145px;gap:12px;align-items:center;padding:12px 16px;border-bottom:1px solid var(--line)}.products.list-view .thead{background:#f0f4fb;font-size:12px;font-weight:900;color:var(--muted);text-transform:uppercase}.products.list-view .product-row.selected{background:#f4fff8}.sticky-checkout{position:sticky;bottom:12px;z-index:8;border-color:#dce8ff}@media(max-width:850px){.order-tools{grid-template-columns:1fr}.view-toggle{justify-content:stretch}.view-toggle button{flex:1}.products.grade-view{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.products.grade-view .prod-img,.products.grade-view .noimg{height:105px}.products.grade-view .product-row{padding:10px;min-height:290px}.products.list-view .thead{display:none}.products.list-view .product-row{grid-template-columns:62px 1fr}.products.list-view .product-row span:nth-child(3),.products.list-view .product-row span:nth-child(4),.products.list-view .product-row span:nth-child(5){font-size:13px}.products.list-view .qty{grid-column:1/-1;justify-content:flex-end}.sticky-checkout{position:static}}
