#team-chat{direction:rtl;font-family:inherit;color:var(--text,#173b55);font-size:14px}
#team-chat [hidden]{display:none!important}#team-chat *{box-sizing:border-box}
#team-chat .tc-launch{position:fixed;left:16px;bottom:20px;z-index:70;display:flex;align-items:center;gap:8px;min-height:46px;border-radius:24px;box-shadow:0 5px 18px #173b5526}
#team-chat .tc-badge{background:#fff;color:#174e78;border-radius:20px;padding:1px 7px;font-size:12px}
#team-chat .tc-panel{position:fixed;z-index:71;left:16px;bottom:78px;width:390px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 95px);display:flex;flex-direction:column;background:var(--surface,#fff);border:1px solid var(--border,#c9dceb);border-radius:16px;box-shadow:0 12px 40px #173b5533;overflow:hidden}
#team-chat .tc-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;background:var(--primary,#174e78);color:#fff}
#team-chat .tc-close{color:inherit!important;min-height:38px;min-width:38px;font-size:22px;padding:0}
#team-chat .tc-controls{display:flex;align-items:end;gap:8px;padding:10px;border-bottom:1px solid #d5e3ed}#team-chat label{display:grid;gap:4px;font-size:12px}#team-chat .tc-controls label{flex:1;min-width:0}
#team-chat select,#team-chat textarea{font:inherit;font-size:16px;width:100%;min-width:0;color:inherit;background:var(--surface,#fff);border:1px solid #bdd3e3;border-radius:9px;padding:8px;min-height:42px}
#team-chat .tc-archive-tools{padding:10px;display:grid;grid-template-columns:1fr 1fr;gap:8px;background:#eef6fb}#team-chat .tc-archive-tools small{grid-column:1/-1}
#team-chat .tc-note{padding:7px 12px;font-size:12px;color:#4b667b;flex-shrink:0}
#team-chat .tc-messages{overflow:auto;overscroll-behavior:contain;min-height:100px;height:300px;padding:12px;display:flex;flex-direction:column;gap:10px;background:#f1f7fb}
#team-chat .tc-message{max-width:90%;flex-shrink:0;align-self:flex-start;background:#fff;border:1px solid #d4e3ed;border-radius:12px;padding:9px 12px;overflow-wrap:anywhere}
#team-chat .tc-own{align-self:flex-end;background:#e0f0fb}#team-chat .tc-message strong{font-size:12px;display:block;color:#176796}#team-chat .tc-message div{white-space:pre-wrap}#team-chat .tc-message small{display:block;font-size:11px;color:#567186;text-align:left;margin-top:4px}
#team-chat .tc-compose{display:flex;gap:8px;padding:10px;align-items:end;border-top:1px solid #d5e3ed}#team-chat .tc-input-label{flex:1;min-width:0}#team-chat textarea{resize:none;max-height:130px}#team-chat .tc-send{min-height:44px}#team-chat .tc-retention{padding:0 12px 9px;color:#567186;font-size:11px}#team-chat .tc-empty{text-align:center;color:#567186}#team-chat .tc-older,#team-chat .tc-latest{min-height:35px;flex-shrink:0;margin:0 10px 5px}
@media(max-width:600px){#team-chat .tc-panel{left:8px;bottom:76px;width:calc(100vw - 16px);max-width:none;max-height:calc(100dvh - 92px)}#team-chat .tc-launch{left:10px;bottom:calc(14px + env(safe-area-inset-bottom))}#team-chat .tc-head button{min-height:44px;min-width:44px}}
@media print{#team-chat{display:none!important}}
#team-chat .tc-add{font-size:26px;min-width:40px;min-height:44px;padding:3px}
#team-chat .tc-attach-menu{display:flex;gap:6px;padding:8px;flex-wrap:wrap;border-top:1px solid #d5e3ed}
#team-chat .tc-pending{display:flex;align-items:center;gap:6px;padding:6px 12px;background:#eef6fb;overflow-wrap:anywhere;font-size:12px}#team-chat .tc-pending span{flex:1;min-width:0}
#team-chat .tc-attachment{display:block;white-space:pre-wrap;overflow-wrap:anywhere;margin-top:8px;padding:10px;border:1px solid #bdd3e3;border-radius:8px;color:#17587f;background:#f8fcff;min-height:44px}
#team-chat .tc-product-dialog{position:fixed;inset:0;margin:auto;width:440px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);overflow:auto;border:1px solid #bdd3e3;border-radius:16px;padding:16px;background:#fff;color:#173b55;direction:rtl}
#team-chat .tc-product-dialog::backdrop{background:#102b4566}#team-chat .tc-product-dialog:not([open]){display:none}
#team-chat .tc-product-dialog header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
#team-chat .tc-product-dialog input{width:100%;font-size:16px;min-height:44px;border:1px solid #bdd3e3;border-radius:8px;padding:8px;background:white;color:#173b55}
#team-chat .tc-results{display:grid;gap:6px;max-height:38dvh;overflow:auto;margin-top:10px}#team-chat .tc-result{text-align:right;white-space:normal;min-height:44px;overflow-wrap:anywhere}
#team-chat .tc-quantity{display:grid;gap:12px;margin-top:12px}#team-chat .tc-quantity small{font-size:12px}
#team-chat .tc-media{display:block;width:100%;max-width:290px;max-height:260px;object-fit:contain;border-radius:10px;margin-top:10px;background:#e8eef3}#team-chat .tc-media[hidden]{display:none}
#team-chat .tc-product-quantity{display:flex;gap:14px;align-items:center;justify-content:center;padding:10px 16px;margin:10px 0 4px;background:#d4edfb;border:1px solid #93c8e8;border-radius:10px;color:#123e59}#team-chat .tc-product-quantity span{font-size:15px;font-weight:600}#team-chat .tc-product-quantity b{font-size:30px;line-height:1.15}
#team-chat .tc-notify{color:white!important;min-height:40px;min-width:40px;margin-inline-start:auto;font-size:19px}
#team-chat .tc-notify-menu{display:grid;gap:6px;padding:10px;background:#edf6fc;border-bottom:1px solid #bdd3e3;max-height:220px;overflow:auto}#team-chat .tc-notify-menu small{font-size:11px}#team-chat .tc-notify-menu button{white-space:normal;min-height:42px}
