/* Organizer ERP — visual de site de PDA, 2001 */
:root {
  --lime: #dcec5a;
  --lime-soft: #eef7a6;
  --green-1: #a9d52f;
  --green-2: #8dc121;
  --green-3: #78b217;
  --green-dark: #3f5f0c;
  --edge: #8fb52f;
  --ink: #2e3a12;
  --grey: #6b6f63;
  --paper: #ffffff;
  --row: #f5fadf;
  --warn: #b3361b;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #fff; }
body {
  font-family: Verdana, Tahoma, Geneva, sans-serif;
  font-size: 11px;
  color: var(--ink);
  line-height: 1.45;
}
a { color: #4d7a0a; }
button, input, select, textarea { font-family: inherit; font-size: 11px; color: var(--ink); }

.page { max-width: 1060px; margin: 0 auto; }

/* ---------- topo ---------- */
.top { display: flex; align-items: flex-end; justify-content: space-between; padding: 16px 18px 8px; }
.logo { font-family: 'Trebuchet MS', Verdana, sans-serif; font-size: 25px; font-weight: bold; letter-spacing: 3px; color: #5a5d55; }
.logo em { font-style: normal; color: #7cb518; }
.tagline { flex: 1; margin-left: 14px; font-size: 14px; letter-spacing: 1px; color: #6e8f28; padding-bottom: 3px; }
.brand { font-family: 'Times New Roman', serif; font-weight: bold; font-size: 20px; letter-spacing: 3px; color: #222; padding-bottom: 2px; }

/* ---------- abas ---------- */
.tabs { display: flex; gap: 3px; padding: 0 12px; flex-wrap: wrap; }
.tab {
  appearance: none; cursor: pointer;
  padding: 3px 13px 2px; margin: 0;
  background: linear-gradient(#fbfdea, #dbeb9f);
  border: 1px solid #a7c24a; border-bottom: 0; border-radius: 7px 7px 0 0;
  font-size: 10px; letter-spacing: .5px; text-transform: uppercase; color: #3f4f12;
}
.tab:hover { background: linear-gradient(#ffffff, #e9f4b6); }
.tab.on { background: linear-gradient(#e9f7a0, #b9dc3b); font-weight: bold; color: #2a3a05; }
.tab .n { background: #c0391b; color: #fff; border-radius: 8px; padding: 0 5px; margin-left: 4px; font-size: 9px; }

/* ---------- faixa verde (palco) ---------- */
.stage {
  position: relative;
  padding: 22px 28px 26px;
  min-height: 150px;
  background:
    repeating-linear-gradient(to bottom, rgba(255,255,255,.09) 0 1px, transparent 1px 3px),
    linear-gradient(to bottom,
      #b5da3d 0%, #a2cf2a 16%, #95c723 30%, #88bd1d 48%,
      #7ab218 62%, #8fc41f 74%, #b6dc3a 88%, #dcec72 94%, #e9f49a 100%);
  border-top: 1px solid #6d9f12;
  border-bottom: 1px solid #c3d96a;
}
.stage h1 { margin: 0 0 4px; font-family: 'Trebuchet MS', Verdana, sans-serif; font-size: 25px; letter-spacing: .5px; color: var(--lime); text-shadow: 0 1px 0 rgba(40,70,0,.35); }
.stage .sub { color: #e6f28b; font-size: 11px; max-width: 520px; }
.stage .sub b { color: #fff; }
.stage .actions { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.new-badge { display: inline-block; border: 1px solid #f1f9a4; color: #f1f9a4; background: #55820f; padding: 0 5px; font-size: 9px; font-weight: bold; margin-left: 6px; vertical-align: middle; letter-spacing: 1px; }

/* medidores do início, como as legendas dos modelos na foto */
.gauges { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 6px; }
.gauge .v { font-family: 'Trebuchet MS', Verdana, sans-serif; font-size: 22px; font-weight: bold; color: var(--lime); text-shadow: 0 1px 0 rgba(40,70,0,.35); }
.gauge .l { color: #eef8a8; font-size: 10px; }
.gauge.warn .v { color: #fff3a0; }

/* ---------- botões ---------- */
.btn {
  display: inline-block; cursor: pointer; text-decoration: none;
  padding: 2px 11px; border: 1px solid #6f9511; border-radius: 2px;
  background: linear-gradient(#d9f25c, #b6d933);
  color: #2b3c05; font-weight: bold; font-size: 10px; letter-spacing: .6px;
}
.btn:hover { background: linear-gradient(#e6f87a, #c4e642); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.alt { background: linear-gradient(#f4f6ea, #d6dac6); border-color: #9aa383; color: #444a35; }
.btn.danger { background: linear-gradient(#fbe3dc, #ecb4a6); border-color: #b3604c; color: #7c200c; }
.btn.sm { padding: 0 7px; font-size: 9px; }
:focus-visible { outline: 2px solid #2f6b00; outline-offset: 1px; }

/* ---------- conteúdo ---------- */
.content { padding: 18px 22px 30px; min-height: 260px; }
.bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.bar .grow { flex: 1; }
.seg { display: inline-flex; border: 1px solid #8fb52f; border-radius: 2px; overflow: hidden; }
.seg button { border: 0; border-right: 1px solid #b4cf63; background: #f2f9d2; padding: 2px 10px; cursor: pointer; font-size: 10px; }
.seg button:last-child { border-right: 0; }
.seg button.on { background: #b9dc3b; font-weight: bold; }

input[type=text], input[type=password], input[type=number], input[type=date], input[type=time], input[type=search], select, textarea {
  border: 1px solid #a9bf6a; background: #fff; padding: 3px 5px; border-radius: 1px; min-width: 0;
}
input:focus, select:focus, textarea:focus { border-color: #5f8f0a; background: #fcfff0; }
textarea { width: 100%; resize: vertical; }

table.t { width: 100%; border-collapse: collapse; border: 1px solid #a9c455; }
.t th {
  background: linear-gradient(#e8f5a8, #c6e04f); color: #34470a; text-align: left;
  padding: 4px 8px; font-size: 10px; border-bottom: 1px solid #8fb52f; white-space: nowrap;
}
.t td { padding: 4px 8px; border-bottom: 1px solid #dfeaaf; vertical-align: middle; }
.t tr:nth-child(even) td { background: var(--row); }
.t tr:hover td { background: #ecf6bd; }
.t .r { text-align: right; white-space: nowrap; }
.t .acts { white-space: nowrap; text-align: right; }
.t .acts .btn { margin-left: 3px; }
.t tr.off td { color: #999; }
.empty { text-align: center; padding: 28px; color: var(--grey); border: 1px dashed #b7cf6a; background: #fbfdf0; }

.pill { display: inline-block; padding: 0 6px; border-radius: 8px; font-size: 9px; font-weight: bold; border: 1px solid; }
.pill.ok { background: #e3f6b1; border-color: #8cb528; color: #3b5d00; }
.pill.wait { background: #fff6c9; border-color: #d1b23b; color: #7a5f00; }
.pill.bad { background: #fde0d8; border-color: #c46b55; color: #8b2410; }
.pill.mute { background: #eee; border-color: #bbb; color: #666; }
.money-bad { color: var(--warn); font-weight: bold; }

.cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
@media (max-width: 800px) { .cols { grid-template-columns: 1fr; } }
.box { border: 1px solid #a9c455; background: #fff; }
.box > h3 { margin: 0; padding: 3px 8px; font-size: 11px; background: linear-gradient(#e8f5a8, #c6e04f); border-bottom: 1px solid #8fb52f; color: #34470a; }
.box > .in { padding: 8px 10px; }
.box + .box { margin-top: 14px; }

.bars { display: flex; align-items: flex-end; gap: 10px; height: 130px; padding: 4px 6px 0; border-bottom: 2px solid #8fb52f; }
.bars .b { flex: 1; text-align: center; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.bars .b i { display: block; background: linear-gradient(#cfe95c, #7db31a); border: 1px solid #6a9812; min-height: 2px; }
.bars .b span { font-size: 9px; color: var(--grey); margin-top: 2px; }
.barlbl { display: flex; gap: 10px; padding: 2px 6px; }
.barlbl div { flex: 1; text-align: center; font-size: 9px; color: var(--grey); }
.barlbl small { display: block; color: var(--green-dark); font-weight: bold; }

/* ---------- formulário em janela ---------- */
.veil { position: fixed; inset: 0; background: rgba(45, 75, 5, .55); display: flex; align-items: flex-start; justify-content: center; padding: 40px 12px; overflow: auto; z-index: 50; }
.win { background: #fff; border: 2px solid #5f8c0b; width: 100%; max-width: 560px; box-shadow: 4px 4px 0 rgba(30,50,0,.35); }
.win.wide { max-width: 760px; }
.win > h2 { margin: 0; padding: 5px 10px; font-size: 12px; color: #f1fba0; background: linear-gradient(#97c924, #6d9f12); display: flex; justify-content: space-between; }
.win > h2 button { background: none; border: 0; color: #f1fba0; cursor: pointer; font-weight: bold; }
.win .body { padding: 12px 14px; }
.win .foot { padding: 8px 14px; background: #f1f8d0; border-top: 1px solid #c4d97a; display: flex; justify-content: flex-end; gap: 8px; }
.frm { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.frm .f { display: flex; flex-direction: column; gap: 2px; }
.frm .f.full { grid-column: 1 / -1; }
.frm label { font-size: 10px; color: #4b5d1b; font-weight: bold; }
.frm .chk { flex-direction: row; align-items: center; gap: 6px; }
.frm .chk label { font-weight: normal; font-size: 11px; }
.hint { font-size: 10px; color: var(--grey); }
.err { color: var(--warn); font-weight: bold; margin-top: 8px; }

/* linhas de itens da venda */
.items { width: 100%; border-collapse: collapse; margin: 4px 0; }
.items td { padding: 2px 3px 2px 0; }
.items input, .items select { width: 100%; }
.total { text-align: right; font-size: 14px; font-weight: bold; color: #35550a; margin-top: 6px; }

/* ---------- conversas ---------- */
.chat { display: grid; grid-template-columns: 270px 1fr; border: 1px solid #a9c455; height: 540px; background: #fff; }
@media (max-width: 800px) { .chat { grid-template-columns: 1fr; height: auto; } }
.chat .list { border-right: 1px solid #a9c455; overflow: auto; background: #f8fcea; max-height: 540px; }
.chat .li { padding: 6px 9px; border-bottom: 1px solid #dfeaaf; cursor: pointer; }
.chat .li:hover { background: #eef7be; }
.chat .li.on { background: #d9ec80; }
.chat .li .nm { font-weight: bold; display: flex; justify-content: space-between; gap: 6px; }
.chat .li .pv { color: var(--grey); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 10px; }
.chat .li .px { background: #c0391b; color: #fff; border-radius: 8px; padding: 0 5px; font-size: 9px; }
.chat .pane { display: flex; flex-direction: column; min-height: 0; }
.chat .head { padding: 5px 10px; background: linear-gradient(#e8f5a8, #c6e04f); border-bottom: 1px solid #8fb52f; font-weight: bold; display: flex; justify-content: space-between; align-items: center; }
.chat .msgs { flex: 1; overflow: auto; padding: 10px; background: #fbfdf2; display: flex; flex-direction: column; gap: 6px; }
.chat .send { display: flex; gap: 6px; padding: 6px; border-top: 1px solid #a9c455; background: #f1f8d0; }
.chat .send input { flex: 1; }
.bub { max-width: 74%; padding: 5px 8px; border: 1px solid #c9d88f; background: #fff; border-radius: 2px 8px 8px 8px; word-wrap: break-word; white-space: normal; }
.bub .tx { white-space: pre-wrap; }
.bub.me { align-self: flex-end; background: #e5f4ac; border-color: #a9c455; border-radius: 8px 2px 8px 8px; }
.bub.pix { border: 2px solid #d9a520; background: #fffbe0; }
.bub .tm { display: block; font-size: 9px; color: var(--grey); margin-top: 2px; }
.bub img { max-width: 220px; max-height: 260px; display: block; margin-bottom: 4px; border: 1px solid #bbb; }
.bub .pixbar { margin-top: 4px; display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.nochat { margin: auto; color: var(--grey); text-align: center; padding: 20px; }

/* ---------- WhatsApp ---------- */
.wa { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.qr { width: 300px; height: 300px; border: 1px solid #8fb52f; background: #fff; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--grey); padding: 8px; }
.qr img { width: 100%; height: 100%; }

/* ---------- rodapé em três colunas ---------- */
.foot3 { display: grid; grid-template-columns: 1fr 1.2fr 1fr; border-top: 1px solid #cfd8b0; margin-top: 8px; }
.foot3 > div { padding: 22px 20px; border-right: 1px solid #cfd8b0; min-height: 120px; }
.foot3 > div:last-child { border-right: 0; }
@media (max-width: 700px) { .foot3 { grid-template-columns: 1fr; } .foot3 > div { border-right: 0; border-bottom: 1px solid #cfd8b0; min-height: 0; } }
.foot3 h4 { margin: 0 0 6px; font-size: 20px; font-family: 'Trebuchet MS', Verdana, sans-serif; color: #4d5f1b; letter-spacing: 1px; }
.foot3 .go { display: flex; gap: 10px; align-items: flex-start; }
.foot3 p { margin: 0; }
.sticker { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 112px; height: 52px; border: 2px solid #9a9a92; border-radius: 26px; color: #7b7b73; font-weight: bold; font-family: 'Trebuchet MS', sans-serif; line-height: 1.05; text-align: center; font-size: 12px; margin-top: 12px; }
.sticker small { font-size: 9px; font-weight: normal; letter-spacing: 1px; }
.chip { display: inline-block; margin-top: 10px; padding: 8px 12px; background: linear-gradient(#cfcfc9, #8f8f88); color: #fff; font-weight: bold; font-size: 10px; border-radius: 3px; letter-spacing: .5px; }
.copy { text-align: right; padding: 8px 22px 22px; color: #555; font-size: 10px; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; background: #bbb; }
.status-dot.ok { background: #5fb800; }
.status-dot.wait { background: #e6b800; }
.status-dot.bad { background: #c0391b; }

/* ---------- login: PDA de CSS ---------- */
.login-stage { min-height: 520px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 12px 36px; }
.login-title { text-align: center; margin-bottom: 18px; }
.login-title h1 { margin: 0; }
.pda {
  width: 300px; padding: 20px 16px 16px; border-radius: 26px 26px 34px 34px;
  background: linear-gradient(135deg, #f4f4f2 0%, #bfc1bd 45%, #e3e4e1 70%, #9fa29d 100%);
  border: 1px solid #7b7e78; box-shadow: 6px 10px 18px rgba(30,60,0,.45), inset 0 1px 0 #fff;
}
.pda .brandline { text-align: center; font-family: 'Times New Roman', serif; font-size: 11px; letter-spacing: 3px; color: #555; margin-bottom: 6px; }
.pda .lcd { background: #eef2f7; border: 2px solid #56595a; border-radius: 3px; padding: 0; box-shadow: inset 0 0 6px rgba(0,0,0,.35); }
.pda .lcd .sb { background: #2d3556; color: #fff; padding: 1px 6px; font-size: 10px; display: flex; justify-content: space-between; }
.pda .lcd .in { padding: 12px 14px 14px; }
.pda .lcd label { display: block; font-size: 10px; margin-top: 8px; color: #222; }
.pda .lcd input { width: 100%; border: 1px solid #66708c; background: #fff; }
.pda .lcd .btn { margin-top: 12px; width: 100%; padding: 4px; }
.pda .keys { display: flex; justify-content: center; gap: 12px; margin-top: 14px; }
.pda .keys i { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #b9bbb6 70%); border: 1px solid #777; }
.pda .keys i.pill2 { width: 58px; border-radius: 13px; }
