﻿.customer-hall{padding:14px 16px;background:var(--surface-soft,#f1f5f9);border-radius:10px;color:var(--text-main,#23324a)}
.customer-table-scroll{overflow-x:auto;background:var(--surface,#fff);border:1px solid var(--border,#dde5ef);border-radius:12px}.customer-table-scroll table{width:100%;border-collapse:collapse;min-width:850px}.customer-table-scroll th,.customer-table-scroll td{padding:14px;text-align:left;border-bottom:1px solid var(--border,#dde5ef);vertical-align:middle}.customer-table-scroll td div,.customer-table-scroll td small{display:block;margin-top:5px;color:var(--text-muted,#68758b)}.customer-actions{min-width:310px}.customer-actions button{margin:3px;white-space:nowrap}.customer-checkbox{display:flex;align-items:center;gap:8px}.customer-checkbox input{width:auto;min-height:auto}.customer-pager{display:flex;gap:12px;align-items:center;justify-content:center;margin-top:16px;flex-wrap:wrap}.customer-feedback{min-height:24px;color:var(--text-muted,#68758b)}
.customer-edit-dialog{width:min(560px,calc(100vw - 32px));max-height:90vh;overflow:auto;padding:24px;border:1px solid var(--border,#dde5ef);border-radius:16px}.customer-edit-dialog form,.customer-edit-dialog [data-new]{display:grid;gap:14px}.customer-edit-dialog label{display:flex;flex-direction:column;gap:7px}.customer-edit-dialog .customer-checkbox{flex-direction:row}.customer-edit-dialog [hidden]{display:none}.customer-edit-dialog::backdrop,.customer-history-dialog::backdrop{background:rgba(16,31,51,.5)}
.customer-history-dialog{width:min(1160px,calc(100vw - 32px));max-width:1160px;max-height:94vh;overflow:auto;padding:24px;border:1px solid var(--border,#dde5ef);border-radius:16px}.customer-history-workspace{display:grid;grid-template-columns:300px minmax(0,1fr);gap:20px}.customer-history-workspace aside{min-width:0}.customer-history-workspace form{display:flex;gap:8px;align-items:end}.customer-history-workspace label{display:grid;gap:6px;flex:1;min-width:0}.customer-history-workspace input{width:100%}.customer-conversations{height:440px;overflow:auto;margin-top:12px}.customer-conversation{display:flex;flex-direction:column;width:100%;gap:7px;text-align:left;margin-bottom:8px;padding:12px;white-space:normal;overflow-wrap:anywhere}.customer-conversation span{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.customer-conversation small{color:var(--text-muted,#68758b)}.customer-history-main{min-width:0}.customer-history-log{height:470px;overflow:auto;padding:16px;background:var(--surface-soft,#f4f7fb);border-radius:10px;display:flex;flex-direction:column;gap:15px}.customer-message{max-width:88%;align-self:flex-start}.customer-message.is-outgoing{align-self:flex-end}.customer-message.is-system{align-self:center}.customer-message-meta{font-size:12px;color:var(--text-muted,#68758b);margin-bottom:6px}.customer-message-bubble{white-space:pre-wrap;overflow-wrap:anywhere;padding:12px;background:var(--surface,#fff);border:1px solid var(--border,#dde5ef);border-radius:10px}.customer-message.is-outgoing .customer-message-bubble{background:#eaf3ff}.customer-message img{display:block;max-width:100%;max-height:260px}.customer-message a{display:block}
@media(max-width:760px){.customer-history-workspace{grid-template-columns:1fr}.customer-conversations{height:180px}.customer-history-log{height:360px}.customer-history-dialog{padding:16px}.customer-history-workspace{gap:12px}}

.customer-conversation.is-active{background:var(--primary,#2563eb);color:#fff;border-color:var(--primary,#2563eb)}.customer-conversation.is-active small{color:inherit}
