.lbhl{max-width:1100px}.lbhl-table{width:100%;border-collapse:collapse;background:#fff}.lbhl-table th,.lbhl-table td{padding:12px;border-bottom:1px solid #ddd;text-align:left}.lbhl-table th{background:#f5f6f8}.lbhl-message{padding:15px;margin:12px 0;border:1px solid #d8dde4;border-radius:6px;background:#fff}.lbhl-message small{color:#666}.lbhl input[type=search],.lbhl input[name=subject],.lbhl textarea{box-sizing:border-box;max-width:100%;width:100%;padding:9px}.lbhl-domain{max-width:520px;margin:18px 0}.lbhl-domain>label{display:inline-block;margin:6px 9px 6px 0}.lbhl-domain>label:first-child{display:block}.lbhl-domain #lbhl-domain-results{border:1px solid #ddd}.lbhl-domain #lbhl-domain-results:empty{display:none}.lbhl-domain #lbhl-domain-results button{display:block;width:100%;padding:9px;border:0;background:#fff;text-align:left;cursor:pointer}.lbhl-domain #lbhl-domain-results button:hover{background:#eef4ff}.lbhl-tabs{margin:20px 0}.lbhl-tabs a{padding:8px 12px;display:inline-block}.lbhl-tabs .active{background:#fff;font-weight:700;border-bottom:2px solid #2271b1}.lbhl-notice{padding:12px;background:#e7f6ea;border-left:4px solid #2a7c38}

/* v0.1.4: chat-style ticket conversation, scoped to Helpdesk */
.lbhl-thread{display:flex;flex-direction:column;gap:12px;margin:14px 0 24px;align-items:stretch}
.lbhl-thread .lbhl-bubble{box-sizing:border-box;width:fit-content;max-width:min(82%,760px);margin:0;padding:12px 15px;border:1px solid #d9e0e8;border-radius:15px;background:#f3f5f7;color:#25313f;overflow-wrap:anywhere;line-height:1.5}
.lbhl-thread .lbhl-bubble--mine{align-self:flex-end;background:#e1efff;border-color:#c8def7;border-bottom-right-radius:4px;color:#19334e}
.lbhl-thread .lbhl-bubble--theirs{align-self:flex-start;border-bottom-left-radius:4px}
.lbhl-thread .lbhl-bubble--note{background:#fff5d9;border-color:#ecd59d;color:#4d3d1c}
.lbhl-thread .lbhl-bubble-meta{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;font-size:12px;margin-bottom:5px;color:#526274}
.lbhl-thread .lbhl-bubble-meta time{font-size:11px;color:#637386}
.lbhl-thread .lbhl-bubble-body p:first-child{margin-top:0}.lbhl-thread .lbhl-bubble-body p:last-child{margin-bottom:0}
.lbhl-reply{margin:20px 0 28px}.lbhl-reply textarea{width:100%;box-sizing:border-box}
.lbhl-domain #lbhl-domain-results button{color:#202a35!important;background:#fff!important;opacity:1!important;visibility:visible!important}
.lbhl-domain #lbhl-domain-results button:hover,.lbhl-domain #lbhl-domain-results button:focus{background:#e7f0ff!important;color:#102e51!important}
.lbhl-domain #lbhl-domain-results{position:relative;z-index:10;background:#fff;color:#202a35}
@media(max-width:600px){.lbhl-thread .lbhl-bubble{max-width:92%;padding:10px 12px}.lbhl-thread .lbhl-bubble-meta{gap:5px}}

/* v0.1.5: compact domain control and single submit row */
.lbhl-submit-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:15px 0 12px}
.lbhl-submit-row select{min-width:110px}
.lbhl-domain-compact{border-top:1px solid #dce0e5;margin-top:15px;padding-top:9px}
.lbhl-domain-compact .lbhl-domain{max-width:none;margin:0;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.lbhl-domain-compact .lbhl-domain>label:first-child{display:inline-block;margin:0;white-space:nowrap;font-size:13px}
.lbhl-domain-compact .lbhl-domain input[type=search]{width:240px;max-width:100%;font-size:13px;padding:5px 8px}
.lbhl-domain-compact .lbhl-domain>label:not(:first-child){font-size:12px;margin:0 3px 0 0;white-space:nowrap}
.lbhl-domain-compact .lbhl-domain #lbhl-domain-results{flex-basis:100%;order:9;max-width:360px}

/* v0.2.5: administrator bulk actions */
.lbhl-bulk-toolbar{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin:12px 0}
.lbhl-bulk-toolbar select{min-width:175px}
.lbhl-bulk-toolbar #lbhl-selected-count{color:#50575e;margin-right:8px}
.lbhl-table .lbhl-check-col{width:32px}
.lbhl-table tr.lbhl-row-selected td{background:#e5f3ff}

/* v0.2.6: compact admin ticket */
.lbhl-ticket-page{max-width:850px}.lbhl-ticket-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;border-bottom:1px solid #dcdcde;padding:0 0 10px}.lbhl-ticket-head h2{margin:0 0 7px;font-size:19px}.lbhl-ticket-head p{margin:4px 0}.lbhl-muted{color:#646970;font-size:12px}.lbhl-header-delete{white-space:nowrap}.lbhl-back{margin-bottom:12px}.lbhl-admin-domain{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid #dcdcde}.lbhl-admin-domain .lbhl-domain{margin:0;position:relative;flex:1;max-width:330px;min-width:200px}.lbhl-admin-domain .lbhl-domain input[type=search]{width:100%;padding:5px 8px}.lbhl-admin-domain #lbhl-domain-results{position:absolute;top:100%;left:0;right:0;z-index:20;max-height:220px;overflow:auto;box-shadow:0 3px 8px #0002}.lbhl-admin-domain #lbhl-domain-feedback{font-size:12px;color:#50575e}.lbhl-ticket-page .lbhl-reply{margin:14px 0 18px}.lbhl-ticket-page .lbhl-reply h3{margin:0 0 8px}.lbhl-ticket-page .wp-editor-container textarea{min-height:140px!important}.lbhl-ticket-page .lbhl-submit-row{margin:10px 0}.lbhl-conversation-title{border-top:1px solid #dcdcde;padding-top:14px;margin:12px 0}.lbhl-ticket-page .lbhl-thread{gap:9px}.lbhl-ticket-page .lbhl-bubble{padding:9px 12px;max-width:78%}.lbhl-quoted{margin-top:7px;border-top:1px solid #dcdcde;padding-top:6px;font-size:12px}.lbhl-quoted summary{cursor:pointer;color:#2271b1}@media(max-width:600px){.lbhl-ticket-head{flex-direction:column}.lbhl-ticket-page .lbhl-bubble{max-width:94%}}

.lbhl-admin-domain #lbhl-admin-domain-input{width:100%;padding:5px 8px}

/* Compact administrative ticket list */
.lbhl .lbhl-compact-table th,.lbhl .lbhl-compact-table td{padding:10px 12px;vertical-align:middle}
.lbhl .lbhl-compact-table td a{text-decoration:none}
.lbhl .lbhl-compact-table td a:hover{text-decoration:underline}
.lbhl .lbhl-compact-table .lbhl-check-col{width:34px}

.lbhl-attachment-picker{margin:12px 0;display:flex;flex-direction:column;align-items:flex-start;gap:7px}.lbhl-attachment-rows{width:100%;display:flex;flex-direction:column;gap:7px}.lbhl-attachment-row{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.lbhl-attachment-row input{max-width:100%}.lbhl-attachment-add,.lbhl-attachment-remove{cursor:pointer}.lbhl-attachment-picker small{color:#646970}

.lbhl-attachment-warning{margin-top:9px;padding:9px 11px;border:1px solid #e7c987;border-left:3px solid #b77912;border-radius:6px;background:#fff8e8;color:#493612;font-size:12px}.lbhl-attachment-warning p{margin:5px 0}.lbhl-attachment-warning p:first-child{margin-top:0}.lbhl-attachment-warning p:last-child{margin-bottom:0}.lbhl-attachment-warning ul{margin:5px 0 6px 18px;padding:0}.lbhl-attachment-warning li{margin:3px 0}
.lbhl-template-select{position:relative;margin:0 0 10px}.lbhl-template-menu{position:absolute;z-index:100;background:#fff;border:1px solid #c3c4c7;box-shadow:0 3px 12px #0002;padding:10px;width:300px;max-width:90vw;max-height:300px;overflow:auto}.lbhl-template-menu[hidden]{display:none}.lbhl-template-menu input{width:100%;margin-bottom:8px}.lbhl-template-option{display:block;border:0;background:transparent;text-align:left;width:100%;padding:8px;cursor:pointer}.lbhl-template-option:hover,.lbhl-template-option:focus{background:#eef4fc}.lbhl-search-form{margin:15px 0}.lbhl-stats{padding:8px 0}

/* v0.4.0-dev: compact ticket search toolbar */
.lbhl-search-form{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:14px 0 10px}.lbhl-search-form input[type=search]{box-sizing:border-box;min-width:0;width:auto;margin:0;min-height:32px}.lbhl-search-form input[name=s]{flex:2 1 280px}.lbhl-search-form input[name=domain]{flex:1 1 170px;max-width:320px}.lbhl-search-form .button{flex:0 0 auto;min-height:32px;margin:0}@media(max-width:700px){.lbhl-search-form input[name=domain]{max-width:none}.lbhl-search-form .button{width:100%}}

.lbhl-customer-services{margin:14px 0 18px}.lbhl-customer-services h3{margin:0 0 8px;font-size:15px}.lbhl-services-scroll{overflow-x:auto}.lbhl-customer-services table{width:100%;font-size:13px}.lbhl-customer-services td,.lbhl-customer-services th{padding:7px 10px}.lbhl-customer-services td:last-child{white-space:nowrap}

/* v0.4.3-dev: show formatted support replies in admin and customer conversations. */
.lbhl-thread .lbhl-bubble-body p{margin:0 0 0.9em}
.lbhl-thread .lbhl-bubble-body p:last-child{margin-bottom:0}
.lbhl-thread .lbhl-bubble-body ul{list-style:disc outside;margin:0.5em 0 0.8em 1.5em;padding:0}
.lbhl-thread .lbhl-bubble-body ol{list-style:decimal outside;margin:0.5em 0 0.8em 1.5em;padding:0}
.lbhl-thread .lbhl-bubble-body li{margin:0.2em 0}
.lbhl-thread .lbhl-bubble-body a{overflow-wrap:anywhere}

.lbhl-association{margin:16px 0;padding:12px 14px;border:1px solid #dcdcde;background:#fff;max-width:950px}.lbhl-association h3{margin:0 0 8px}.lbhl-association-search{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.lbhl-association-search input{min-width:250px}.lbhl-association-result{border-top:1px solid #ddd;margin-top:12px;padding-top:8px}.lbhl-association-result label{display:block;max-width:760px;line-height:1.5}

/* v0.4.5: keep customer management next to existing customer identity */
.lbhl-customer-manage{margin-top:3px}.lbhl-customer-manage .lbhl-association{margin:0;padding:0;border:0;background:transparent;max-width:none}.lbhl-customer-manage .lbhl-association summary{display:inline-block;color:#2271b1;cursor:pointer;text-decoration:underline;font-size:12px;list-style:none}.lbhl-customer-manage .lbhl-association summary::-webkit-details-marker{display:none}.lbhl-customer-manage .lbhl-association-content{margin-top:10px;padding:12px 14px;border:1px solid #dcdcde;background:#fff;max-width:760px}.lbhl-customer-manage .lbhl-association-search{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.lbhl-customer-manage .lbhl-association-search label{width:100%}.lbhl-customer-manage .lbhl-association-search input{flex:1;min-width:220px}
