.chat-workspace{padding:20px;max-width:1400px;margin:auto;color:var(--ink,#213020)}.chat-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}.chat-heading h1{font-size:26px;margin:0}.chat-heading p{margin:6px 0;color:#687365}.chat-tools{display:flex;gap:8px}.chat-layout{display:grid;grid-template-columns:minmax(250px,340px) minmax(0,1fr);border:1px solid #dce2d8;border-radius:16px;background:white;overflow:hidden;min-height:62vh}.chat-list{border-right:1px solid #dce2d8;max-height:70vh;overflow:auto}.chat-tabs{display:flex;flex-wrap:wrap;gap:6px;padding:12px;background:#f5f7f2}.chat-tabs button{border:1px solid #dae0d4;border-radius:9px;background:white;padding:9px;font-size:13px;color:#42543c}.chat-tabs [aria-pressed=true]{background:#49683b;color:white}.chat-row{display:grid;grid-template-columns:1fr auto;text-align:left;width:100%;padding:16px;gap:8px;border:0;border-bottom:1px solid #e5e8e1;background:white;color:inherit}.chat-row.selected{background:#edf4e7;border-left:4px solid #49683b}.chat-row time,.chat-row span{font-size:12px;color:#677461}.chat-unread{font-size:11px;color:#49683b}.chat-empty{padding:35px 20px;color:#6c7666;text-align:center}.chat-detail{min-width:0;display:flex;flex-direction:column}.chat-person{display:flex;align-items:center;gap:12px;padding:16px;border-bottom:1px solid #e5e8e1}.chat-person h2{margin:0 0 5px;font-size:18px}.chat-person span{font-size:13px;color:#64705d}.chat-status{font-size:12px;margin-left:auto;border-radius:20px;padding:7px 10px;background:#edf3e6;white-space:nowrap}.chat-context{padding:10px 16px;background:#fafbf8;font-size:13px;display:flex;flex-wrap:wrap;gap:12px;align-items:center}.chat-context>div{margin-left:auto;display:flex;gap:6px}.chat-messages{height:350px;overflow-y:auto;overscroll-behavior:contain;padding:18px;display:flex;flex-direction:column;gap:12px;background:#f8f9f5}.chat-bubble{max-width:85%;align-self:flex-start;padding:12px 14px;border:1px solid #e0e4da;background:white;border-radius:12px;flex-shrink:0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}.chat-bubble.out{align-self:flex-end;background:#edf4e7;border-color:#d4e0c8}.chat-bubble.event{align-self:center;border:0;background:transparent;font-size:12px;color:#6a7564}.chat-bubble small{display:block;font-size:11px;color:#687761;margin-top:7px}.chat-compose{padding:14px 16px;border-top:1px solid #e0e4da}.chat-compose label{display:block;font-weight:600;font-size:13px;margin-bottom:7px}.chat-compose textarea{box-sizing:border-box;width:100%;resize:vertical;min-height:76px;font:inherit;font-size:16px;border:1px solid #cbd4c2;border-radius:9px;padding:10px;background:white;color:#213020}.chat-compose>div{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:8px}.chat-compose small{font-size:12px;color:#66715e}.chat-orders{padding:10px 16px;font-size:13px}.chat-orders p{color:#687761}.chat-orders button{margin:5px}.chat-error{padding:12px;background:#fff4e2;color:#775120;border-radius:8px}.chat-back{display:none}.chat-workspace button:disabled{opacity:.55;cursor:default}
@media(max-width:700px){.chat-workspace{padding:10px}.chat-heading{align-items:flex-start;flex-direction:column;gap:10px}.chat-heading h1{font-size:22px}.chat-tools{flex-wrap:wrap}.chat-tools button{font-size:12px;padding:10px}.chat-layout{display:block;min-height:55vh}.chat-list{max-height:none;border:0}.chat-detail{display:none}.chat-selected .chat-list{display:none}.chat-selected .chat-detail{display:flex}.chat-back{display:block;font-size:12px;padding:8px}.chat-person{flex-wrap:wrap;padding:12px}.chat-person h2{font-size:16px}.chat-status{margin-left:0}.chat-context{padding:10px}.chat-messages{height:38dvh;min-height:210px;padding:12px}.chat-bubble{max-width:92%;font-size:15px}.chat-compose{padding:12px}.chat-compose small{max-width:64%}.chat-context button{font-size:12px;padding:9px}}
@media(max-width:700px){.chat-workspace:has(.chat-selected) .chat-heading{display:none}.chat-selected .chat-detail{height:calc(100dvh - 175px);min-height:420px}.chat-selected .chat-messages{flex:1;height:auto;min-height:100px}.chat-person{gap:8px}.chat-context{gap:6px}.chat-context>div{margin-left:0}.chat-context button{padding:8px}.chat-compose textarea{min-height:60px}.chat-compose{padding:10px}}
@media(min-width:701px){.chat-layout{height:calc(100dvh - 250px);min-height:420px}.chat-detail{min-height:0}.chat-messages{flex:1;min-height:100px;height:auto}.chat-person,.chat-context,.chat-compose{flex-shrink:0}}

.whatsapp-shortcut{position:relative;color:var(--accent,#49683b)}.whatsapp-shortcut svg{width:23px;height:23px}.whatsapp-count{position:absolute;top:-5px;right:-5px;min-width:17px;height:17px;padding:0 3px;box-sizing:border-box;border-radius:10px;background:#49683b;color:white;font-size:10px;line-height:17px;text-align:center;border:1px solid white}.whatsapp-count[hidden]{display:none}
