.settings-help{margin:8px 0 18px;padding:10px 12px;border-left:3px solid #6d5dfc;background:#f7f6ff}.help-toggle{font-weight:600}.help-copy{padding:9px 2px 2px;color:#555;line-height:1.5}.settings-table{overflow:auto}.settings-table .row{min-width:740px}.settings-form{max-width:720px;padding:18px}.settings-form form{max-width:540px}.inbox-filter{max-width:340px}.inline-toggle{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}.inline-toggle input{width:auto}.label-swatch{display:inline-block;width:12px;height:12px;margin-right:8px;border-radius:50%;background:var(--label-color,#64748b);vertical-align:middle}.danger{color:#a12c2c;border-color:#eccaca}.event-options{display:flex;flex-wrap:wrap;gap:12px;border:1px solid #ddd;border-radius:6px;padding:10px}.event-options legend{padding:0 5px;color:#555}.modal fieldset{min-width:0}.modal .settings-table .row{min-width:580px}.field input[type=color]{width:56px;height:38px;padding:3px}.field[hidden]{display:none!important}.settings-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.allowlist-filters{display:grid;grid-template-columns:minmax(150px,.7fr) minmax(170px,.8fr) minmax(220px,1.2fr);align-items:end;gap:12px;margin-bottom:14px}.allowlist-filters .field{margin:0}.company-row{grid-template-columns:minmax(150px,1.3fr) minmax(120px,1fr) 80px auto;min-width:580px}@media(max-width:900px){.settings-table .row{min-width:660px}.settings-heading{flex-wrap:wrap}.form-actions{flex-wrap:wrap}}@media(max-width:560px){.settings-help{margin-bottom:12px}.settings-form{padding:14px}.modal .settings-table .row{min-width:520px}.allowlist-filters{grid-template-columns:1fr}.settings-actions{justify-content:flex-start}}
/* Keep every settings table column in its own lane, even when a section has more than five columns. */
.settings-table .row{grid-template-columns:repeat(var(--settings-cols,5),minmax(130px,1fr));min-width:max(740px,calc(var(--settings-cols,5) * 150px))}
.settings-table .row>div{min-width:0;overflow-wrap:anywhere;word-break:break-word}
.settings-table .row>div:last-child .form-actions{justify-content:flex-start}
/* Keep Settings table action buttons readable */
.settings-table .actions,
.settings-table .row-actions,
.settings-table .table-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
}

.settings-table .actions button,
.settings-table .row-actions button,
.settings-table .table-actions button {
    width: auto;
    min-width: max-content;
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
    flex-shrink: 0;
}
.settings-table button,
.settings-table .btn {
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
}
.settings-table {
    overflow-x: auto;
}

.settings-table .table-row,
.settings-table .table-head {
    min-width: max-content;
}

/* Inbox table: stable columns and readable action buttons. */
.settings-table .inbox-actions{display:flex;gap:8px;align-items:center;justify-content:flex-start;flex-wrap:nowrap}
.settings-table .inbox-actions .btn{white-space:nowrap;word-break:normal;overflow-wrap:normal;flex:0 0 auto}
.side-channel-filter{display:flex;flex-direction:column;gap:5px;margin:0 8px 10px;color:#777;font-size:12px}
.side-channel-filter select{width:100%;padding:7px 8px;border:1px solid #ddd;border-radius:7px;background:#fff;font:inherit}
.conversation-header-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.allow-permission-input{width:100%;min-width:150px;padding:7px 8px;border:1px solid #ddd;border-radius:6px;font:inherit}

/* Safer destructive-action confirmation */
.destructive-warning{margin:14px 0;padding:12px 14px;border:1px solid rgba(220,38,38,.35);}
.destructive-details{margin:10px 0 14px;padding-left:22px;}
.destructive-details li{margin:5px 0;}
.email-password-help-wrap{position:relative;min-width:0}
.email-password-label-row{display:flex;align-items:center;gap:7px}
.email-password-label-row label{font:inherit}
.email-password-help-button{width:20px;height:20px;padding:0;border:1px solid #aaa;border-radius:50%;background:#fff;color:#555;font-size:12px;font-weight:700;line-height:18px;cursor:pointer}
.email-password-help-button:hover,.email-password-help-button:focus{border-color:#6d5dfc;color:#5143ca}
.email-password-help-popover{position:absolute;z-index:20;bottom:calc(100% + 6px);left:0;width:min(390px,calc(100vw - 48px));max-height:55vh;overflow:auto;padding:14px 15px;border:1px solid #d9d7e6;border-radius:9px;background:#fff;color:#333;box-shadow:0 10px 30px #17171b2b;font-size:13px;line-height:1.5}
.email-password-help-popover[hidden]{display:none}
.email-password-help-popover>div{margin:0 0 10px}
.email-password-help-popover a{color:#5143ca;text-decoration:underline}
.email-password-help-close{margin-top:2px;padding:5px 10px}
.destructive-confirm-modal .form-actions{margin-top:16px;}

.agent-permission-form{max-height:42vh;overflow:auto;border:1px solid #e4e4ea;border-radius:8px;padding:12px;margin:12px 0}.agent-permission-form h3{margin:4px 0}.agent-permission-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 16px;border:1px solid #e7e7ec;border-radius:7px;margin:10px 0;padding:10px}.agent-permission-group legend{padding:0 6px;font-weight:650}.agent-permission-group .checkbox-field{display:flex;align-items:center;gap:8px;font-weight:400}.agent-permission-group input:disabled+span{opacity:.55}@media(max-width:560px){.agent-permission-group{grid-template-columns:1fr}}

.inbox-scope-group [id$='inbox-scope-options']{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 16px}.inbox-scope-group [id$='inbox-scope-options'][hidden]{display:none!important}
.channel-group-card{margin:12px 0;padding:14px}.channel-group-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.channel-group-participants{display:grid;gap:7px;margin-top:14px}.channel-group-participants .inline-toggle{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.group-message-author{font-size:.82em;font-weight:700;color:#6557d2;margin:0 0 5px}
.whatsapp-discovery-modal .destructive-warning{padding:10px 12px}.whatsapp-discovery-modal .field{margin:8px 0}.discovered-group-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0}.discovered-group-list{display:grid;gap:7px;max-height:min(48vh,520px);overflow:auto}.discovered-group-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 12px;border:1px solid #e7e7ec;border-radius:8px;cursor:pointer}.discovered-group-row[hidden]{display:none!important}.discovered-group-row input{width:18px;height:18px}.discovered-group-name{display:grid;gap:3px;min-width:0}.discovered-group-name b,.discovered-group-name small{overflow-wrap:anywhere}.discovered-group-name small{color:#777;font-size:12px}.whatsapp-discovery-modal .form-actions{flex-wrap:wrap}
.channel-group-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px}.channel-group-details h2{overflow-wrap:anywhere}.channel-group-detail-list{display:grid;gap:8px;max-height:min(60vh,620px);overflow:auto}.channel-group-person{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:10px;border:1px solid #e7e7ec;border-radius:8px}.channel-group-person code{overflow-wrap:anywhere}.group-approved{background:#eaf8ef;color:#237b45}.group-unapproved{background:#f2f2f4;color:#666}@media(max-width:560px){.channel-group-person{grid-template-columns:minmax(0,1fr) auto;gap:8px}.channel-group-person .pill{grid-column:1}.channel-group-person .btn{grid-column:2;grid-row:1/3}}
