textarea{display:block;width:100%;min-height:90px;resize:vertical;border:1px solid #d8dfec;border-radius:8px;padding:11px 12px;margin:7px 0 18px;font:inherit;color:#24334b;background:#fff}textarea:focus{outline:3px solid #bfc9ff;outline-offset:2px}details,details[open]{min-width:0;max-width:100%}td details .form-grid{display:block}td details .form-result{max-width:320px}td{overflow-wrap:anywhere}.form-result a{display:inline-block;margin-left:8px}
#zalo-qr-dialog{border:1px solid #e6ebf3;border-radius:16px;width:min(400px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);padding:20px;color:#24334b;background:#fff;overflow:auto;box-shadow:0 20px 60px #14213b26}#zalo-qr-dialog::backdrop{background:#14213b77}#zalo-qr-dialog .zalo-qr-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px}#zalo-qr-dialog h2{margin:0;font-size:20px;line-height:1.35;letter-spacing:-.3px}#zalo-qr-dialog .zalo-qr-close{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:0;border:1px solid #e6ebf3;border-radius:10px;background:#fff;color:#748198;cursor:pointer}#zalo-qr-dialog .zalo-qr-close:hover{background:#f4f6fa;color:#24334b}#zalo-qr-dialog .zalo-qr-close:focus-visible{outline:3px solid #bfc9ff;outline-offset:2px}#zalo-qr-dialog [role=status]{margin:0;color:#748198;font-size:14px;line-height:1.5;overflow-wrap:anywhere}#zalo-qr-dialog img{width:min(100%,280px);height:auto;margin:12px auto 0;display:block}#zalo-qr-dialog img[hidden]{display:none}@media(max-width:480px){#zalo-qr-dialog{padding:16px}#zalo-qr-dialog h2{font-size:18px}}
.channel-filter{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.channel-filter label{min-width:220px}.back-link{display:inline-block;margin-bottom:20px}.connection-table .button{white-space:nowrap}.settings-nav{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:24px}.settings-nav a{padding:8px 14px;border:1px solid #d8dfec;border-radius:8px;background:white}.settings-code{display:block;white-space:pre-wrap;overflow-wrap:anywhere;padding:15px;background:#f4f6fb;border-radius:8px;font-size:13px}.settings-status{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px}.settings-status div{padding:16px;background:#f4f6fb;border-radius:10px}.settings-status strong{display:block;margin-top:8px}.card[id]{scroll-margin-top:30px}
.connection-filter{align-items:flex-end;margin:20px 0}.connection-filter label:first-child{flex:2;min-width:260px}.connection-filter label{flex:1}.connection-filter input,.connection-filter select{margin-bottom:0}.connection-filter button,.connection-filter>a{margin-bottom:0;flex-shrink:0}.connection-table td .button{margin:3px 0;white-space:normal}.connection-table small{display:block}.connection-table{table-layout:fixed;width:100%}[data-connection-results][aria-busy=true]{opacity:.65}
@media(max-width:700px){.connection-table thead{display:none}.connection-table,.connection-table tbody,.connection-table tr,.connection-table td{display:block;width:100%;min-width:0}.connection-table tr{border:1px solid #e6ebf3;border-radius:12px;margin-bottom:16px;padding:12px}.connection-table td{border:0;padding:8px;overflow-wrap:anywhere}.connection-table td:before{content:attr(data-label);display:block;font-size:12px;color:#7c8a9d;margin-bottom:4px}.channel-filter label,.connection-filter label:first-child{min-width:0;width:100%;flex:auto}.settings-nav a{flex:1;text-align:center}.section-head{flex-wrap:wrap;gap:12px}}
.queue-content{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.7;background:#f7f9fc;padding:20px;border-radius:12px;max-height:65vh;overflow:auto}.queue-table td{vertical-align:top;overflow-wrap:anywhere}.queue-table th:first-child{width:30%}.queue-table summary{cursor:pointer;color:#4557df}.queue-delivery{padding:12px 0;border-bottom:1px solid #e6ebf3}.queue-state{padding:5px 0}.queue-state-failed,.queue-state-unknown{color:#b33e37}.queue-state-accepted_by_provider{color:#247653}.queue-state-pending,.queue-state-processing{color:#986300}.queue-deliveries{min-width:0}.queue-table details{margin-bottom:12px}
[data-proxy-credential][hidden],[data-proxy-row][hidden]{display:none!important}
.proxy-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}#proxy-import-dialog{position:fixed;inset:0;margin:auto;width:min(900px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);padding:0;border:1px solid #d8dfec;border-radius:16px;color:#24334b;background:#fff;box-shadow:0 24px 80px #14213b33;overflow:auto}#proxy-import-dialog::backdrop{background:#14213b88}.proxy-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 24px;border-bottom:1px solid #e6ebf3;background:#fff;position:sticky;top:0;z-index:1}.proxy-dialog-head h2{margin:0}.proxy-dialog-body{padding:24px}.proxy-dialog-body label{min-width:0}.proxy-dialog-body input,.proxy-dialog-body select,.proxy-dialog-body textarea{max-width:100%;box-sizing:border-box}body:has(#proxy-import-dialog[open]){overflow:hidden}@media(max-width:600px){.proxy-dialog-head{padding:16px}.proxy-dialog-body{padding:16px}#proxy-import-dialog .form-grid{grid-template-columns:1fr}.proxy-actions .button,.proxy-actions button{white-space:normal}}
#proxy-import-dialog{width:min(820px,calc(100vw - 32px));font-size:14px}#proxy-import-dialog .proxy-dialog-head{padding:14px 20px}#proxy-import-dialog .proxy-dialog-head h2{font-size:21px}#proxy-import-dialog .proxy-dialog-body{padding:16px 20px}#proxy-import-dialog .form-grid{grid-template-columns:minmax(0,1.8fr) minmax(0,1fr) minmax(0,1fr);gap:12px}#proxy-import-dialog label{margin:0 0 12px;font-size:13px}#proxy-import-dialog input,#proxy-import-dialog select,#proxy-import-dialog textarea{margin:5px 0 0;padding:9px 10px;font-size:14px}#proxy-import-dialog textarea{height:120px;min-height:100px;font-family:ui-monospace,monospace;line-height:1.5}#proxy-import-dialog button{padding:9px 16px;min-height:40px;font-size:14px}#proxy-import-dialog input[type=file]{padding:7px 10px}#proxy-import-dialog .proxy-import-help{min-width:0;max-width:none;font-size:12px;margin:4px 0 12px}#proxy-import-dialog .proxy-import-help p{margin:8px 0;line-height:1.5}#proxy-import-dialog .proxy-import-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid #e6ebf3;padding-top:12px;font-size:12px}#proxy-import-dialog .form-result:empty{display:none}@media(max-width:600px){#proxy-import-dialog .form-grid{grid-template-columns:1fr 1fr}#proxy-import-dialog .form-grid>label:first-child{grid-column:1/-1}#proxy-import-dialog .proxy-dialog-body{padding:14px 16px}#proxy-import-dialog .proxy-import-footer{flex-wrap:wrap}}
[data-proxy-admin]>.table-wrap+.proxy-actions{margin-top:28px}
[data-proxy-admin] input[type=checkbox]{display:inline-block;width:18px;height:18px;padding:0;margin:0;vertical-align:middle;cursor:pointer;accent-color:#495de7}@media(min-width:701px){[data-proxy-admin] .connection-table th:first-child,[data-proxy-admin] .connection-table td:first-child{width:46px;padding-left:14px;padding-right:14px;text-align:center}}
[data-settings-tabs]>section{display:none}[data-settings-tabs=general]>#general,[data-settings-tabs=general]>#system-smtp,[data-settings-tabs=cron]>#cron,[data-settings-tabs=alerts]>#alerts,[data-settings-tabs=alerts]>section:not([id]),[data-settings-tabs=retention]>#retention,[data-settings-tabs=security]>#security,[data-settings-tabs=zalo-chat-storage]>#zalo-chat-storage{display:block}[data-settings-tabs] .settings-nav a[aria-current]{background:#495de7;color:#fff;border-color:#495de7}
#zalo-chat-storage form+form{border-top:1px solid #e4e9f2;margin-top:24px;padding-top:20px}#zalo-chat-storage .marketing-check{display:flex;align-items:flex-start;gap:10px;font-size:14px;line-height:1.55;margin:0 0 16px}#zalo-chat-storage .marketing-check input{flex:0 0 18px;width:18px;height:18px;margin:3px 0 0}#zalo-chat-storage .marketing-check span{min-width:0}
#system-smtp .system-smtp-editor{max-width:none;min-width:0;margin:16px 0 24px;border:1px solid #e6ebf3;border-radius:10px;padding:14px 16px}#system-smtp .system-smtp-editor .form-grid{display:grid}#system-smtp .system-smtp-editor label{font-size:inherit}#system-smtp .system-smtp-editor .form-result{max-width:none}
#user-directory input[type=checkbox]{display:inline-block;width:18px;height:18px;padding:0;margin:0;vertical-align:middle;accent-color:#495de7;cursor:pointer}.user-policy-actions{margin-top:28px;padding-top:18px;border-top:1px solid #e6ebf3}.user-policy-actions .proxy-actions{align-items:flex-end}.user-policy-actions label{min-width:240px}.user-policy-actions select{margin-bottom:0}.user-policy-actions .muted{margin-top:12px}.user-table details[open]{min-width:0;width:100%;max-width:none}.user-table details input,.user-table details select{max-width:100%}@media(min-width:701px){#user-directory .user-select-cell{width:46px;text-align:center;padding-left:14px;padding-right:14px}}#user-create-dialog{position:fixed;inset:0;margin:auto;width:min(760px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);padding:0;border:1px solid #d8dfec;border-radius:16px;color:#24334b;background:#fff;overflow:auto;box-shadow:0 24px 80px #14213b33}#user-create-dialog::backdrop{background:#14213b88}.user-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;position:sticky;top:0;z-index:1;background:#fff;padding:14px 20px;border-bottom:1px solid #e6ebf3}.user-dialog-head h2{margin:0;font-size:21px}.user-dialog-body{padding:18px 20px}#user-create-dialog label{min-width:0;font-size:13px}#user-create-dialog input,#user-create-dialog select{margin:5px 0 12px;padding:9px 10px;font-size:14px}#user-create-dialog button{padding:9px 16px;min-height:40px}#user-create-dialog [hidden]{display:none!important}#user-create-dialog .form-result:empty{display:none}body:has(#user-create-dialog[open]){overflow:hidden}@media(max-width:600px){#user-create-dialog .form-grid{grid-template-columns:1fr}.user-dialog-body{padding:14px 16px}}
@media(max-width:700px){#user-directory .user-table thead:has([data-user-select-all]){display:block}#user-directory .user-table thead tr{border:0;margin:0;padding:8px}#user-directory .user-table thead th{display:none}#user-directory .user-table thead .user-select-cell{display:block;border:0;padding:8px;background:none}#user-directory .user-table thead .user-select-cell:after{content:'Chọn tất cả trên trang';margin-left:10px}.user-policy-actions label{min-width:0;width:100%}}
.user-manage-dialog{position:fixed;inset:0;margin:auto;width:min(620px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);padding:0;border:1px solid #d8dfec;border-radius:16px;color:#24334b;background:#fff;overflow:auto;box-shadow:0 24px 80px #14213b33;text-align:left}.user-manage-dialog::backdrop{background:#14213b88}.user-manage-dialog label{font-size:13px}.user-manage-dialog input,.user-manage-dialog select{margin:5px 0 12px;padding:9px 10px;font-size:14px}.user-manage-dialog form+form{border-top:1px solid #e6ebf3;margin-top:18px;padding-top:16px}.user-manage-dialog button{padding:9px 16px;min-height:40px}.user-manage-dialog .form-result:empty{display:none}body:has(.user-manage-dialog[open]){overflow:hidden}
.sidebar .marketing-nav,.sidebar .marketing-nav[open]{min-width:0;margin:0 0 4px}.sidebar .marketing-nav>summary{padding:12px 15px;border-radius:9px;display:flex;gap:13px;align-items:center;color:#6c7991;font-weight:500;list-style:none}.sidebar .marketing-nav>summary::-webkit-details-marker{display:none}.sidebar .marketing-nav>summary::after{content:'⌄';margin-left:auto}.sidebar .marketing-nav[open]>summary{color:#495de7;background:#f6f7fc}.sidebar .marketing-nav>div{border-left:1px solid #e2e7f3;margin:6px 0 10px 24px;padding-left:7px}.sidebar .marketing-nav>div>a{font-size:12px;padding:9px 10px;line-height:1.4;overflow-wrap:anywhere}
.sidebar nav{scrollbar-width:none;-ms-overflow-style:none}.sidebar nav::-webkit-scrollbar{display:none;width:0;height:0}
.sidebar>.brand+nav{margin-top:24px}
.zalo-purposes{min-width:0;border:1px solid #d8dfec;border-radius:9px;padding:12px 14px;margin:0 0 18px}.zalo-purposes legend{padding:0 5px;font-weight:500}.zalo-purposes label{display:flex;align-items:flex-start;gap:9px;margin:0 0 10px}.zalo-purposes input[type=checkbox]{flex:0 0 17px;width:17px;height:17px;padding:0;margin:3px 0 0}.zalo-purposes small{display:block}
.ui-help{margin:6px 0;color:#68758c;font-size:13px;max-width:100%;overflow-wrap:anywhere}
.ui-help>summary{display:inline-flex;align-items:center;justify-content:center;width:28px;min-height:28px;cursor:pointer;list-style:none;border-radius:6px;color:#5558eb;font-size:16px}
.ui-help>summary::-webkit-details-marker{display:none}
.ui-help>summary:focus-visible{outline:2px solid #5558eb;outline-offset:2px}
.ui-help[open]>summary{background:#efefff}
.ui-help>p{margin:6px 0;line-height:1.5}
.connection-account-profile{display:flex;align-items:center;gap:10px;min-width:0}
.connection-avatar{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:#eef0ff;color:#5558eb;flex:0 0 36px}
#delete-connection .marketing-check{display:flex;align-items:flex-start;gap:10px;margin:16px 0}
#delete-connection .marketing-check input{flex:0 0 18px;width:18px;height:18px;margin:3px 0 0}
