:root{font-family:"Microsoft YaHei UI","PingFang SC","Noto Sans CJK SC",system-ui,sans-serif;color:#253e1c;background:#fafcf8;font-size:14px;line-height:1.45}
*{box-sizing:border-box}
body{margin:0;min-width:320px}
.login-loading{min-height:100dvh;padding:40px 24px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;color:#4a7636}
.login-loading>strong,.login-brand{font-size:25px;color:#4a7636}
.login-loading h1{font-size:19px;margin:10px 0 20px}
.login-loading p{max-width:420px;line-height:1.7}
button,input,select{font:inherit}
button{cursor:pointer}
input,select{color:#253e1c}
input[type=checkbox],input[type=radio]{accent-color:#659348}
input:focus-visible,select:focus-visible,button:focus-visible,.table-scroll:focus-visible{outline:2px solid #659348;outline-offset:2px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.app-header{height:56px;padding:0 24px;background:#fff;border-bottom:1px solid #d7e5cf;display:flex;align-items:center;justify-content:space-between;gap:20px}
.brand{display:flex;align-items:baseline;gap:10px;color:#4a7636}
.brand strong{font-size:19px}
.brand-subtitle{color:#63775b;font-size:13px}
.brand-mark{font-size:27px;line-height:1;color:#5daf58;align-self:center}
.demo-tag{border-radius:4px;border:1px solid #d7e5cf;background:#f7faf5;color:#4a7636;padding:5px 10px;white-space:nowrap;font-size:12px}
.workspace{padding:18px 20px 24px;max-width:2048px;margin:auto;height:calc(100dvh - 56px);min-height:540px;display:flex;flex-direction:column}
#accountsPanel{display:flex;flex-direction:column;flex:1 1 0;min-height:0;overflow:hidden}
#accountsPanel>.table-scroll{display:block;flex:1 1 auto;min-height:0;max-height:none}
.query-panel,.account-panel{background:#fff;border:1px solid #d7e5cf;box-shadow:0 1px 3px #263b1b0a}
.query-panel{padding:16px 17px;margin-bottom:14px}
.query-grid{display:grid;grid-template-columns:minmax(170px,1fr) minmax(190px,1fr) minmax(420px,2.1fr) auto;gap:12px 19px;align-items:end}
.field{display:flex;flex-direction:column;gap:5px;min-width:0}
.field>span{font-weight:600;color:#3e662f}
.field small{font-weight:400;color:#4a7636}
.field em{color:#d24545;font-style:normal}
.field input,.field select,.date-range input,.recharge-controls input{height:36px;min-width:0;border:1px solid #d7e5cf;border-radius:3px;background:#fff;padding:6px 9px}
.field input:focus,.field select:focus,.date-range input:focus{border-color:#659348}
.date-range{display:flex;align-items:end;gap:8px;min-width:0}
.date-range>span:first-child{font-weight:600;color:#3e662f;white-space:nowrap;align-self:center}
.date-range input{min-width:0;flex:1;width:0}
.range-dash{align-self:center;color:#4a7636}
.query-actions,.toolbar-main,.recharge-controls{display:flex;align-items:center;gap:8px}
.query-actions .button{min-width:70px}
.button{min-height:32px;padding:5px 11px;border-radius:3px;border:1px solid transparent;white-space:nowrap;font-weight:500;transition:background .12s ease,box-shadow .12s ease}
.button.primary{background:#c9e1b5;color:#29471e;border-color:#c9e1b5}
.button.primary:hover:not(:disabled){background:#b6d79d}
.button.secondary{background:#fff;color:#3e662f;border-color:#d7e5cf}
.button.secondary:hover{background:#f7faf5}
.button.danger{background:#c43d3d;color:#fff;border-color:#b93232}
.button.danger:hover:not(:disabled){background:#a92d2d}
.button:disabled{background:#edf3e8;border-color:#d7e5cf;color:#87977e;cursor:not-allowed}
.account-panel{min-height:0}
.toolbar{padding:12px 11px 9px;display:flex;align-items:center;justify-content:space-between;gap:9px;flex-wrap:wrap}
.toolbar-main{flex-wrap:wrap;gap:7px}
.recharge-controls{margin-left:auto}
.recharge-controls label{white-space:nowrap;color:#3e662f}
.recharge-controls input{width:91px;height:32px;padding:4px 6px;text-align:right}
.list-meta{padding:0 12px 8px;display:flex;align-items:center;gap:15px;color:#4a7636;font-size:12px;min-height:27px}
.list-meta .meta-note{margin-left:auto;color:#63775b}
.text-button{border:0;background:transparent;color:#4a7636;padding:3px 0;white-space:nowrap}
.text-button:hover{text-decoration:underline}
.table-scroll{width:100%;overflow:auto;max-height:calc(100vh - 215px);scrollbar-color:#b6d79d #f0f7e9}
table{border-collapse:collapse;width:100%;table-layout:fixed}
.account-table{min-width:1456px;font-size:12.5px}
thead{position:sticky;top:0;z-index:1}
th{background:#c9e1b5;color:#29471e;font-weight:500;text-align:left;height:38px;padding:8px 7px;border-right:1px solid #b6d79d;white-space:nowrap}
th:last-child{border-right:0}
td{height:38px;padding:7px;border-bottom:1px solid #f0f7e9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
tbody tr:nth-child(even){background:#f7faf5}
tbody tr:hover{background:#eaf5e2}
tbody tr.selected{background:#d4e9bc}
tbody tr.selected:hover{background:#c9e0ad}
.account-table th,.account-table td{height:34px;padding:5px}
.account-table tbody tr{cursor:pointer}
.account-table th:nth-child(1),.account-table td:nth-child(1){width:34px;text-align:center}
.account-table th:nth-child(2),.account-table td:nth-child(2){width:122px}
.account-table th:nth-child(3),.account-table td:nth-child(3){width:85px}
.account-table th:nth-child(4),.account-table td:nth-child(4){width:90px}
.account-table th:nth-child(5),.account-table td:nth-child(5){width:62px}
.account-table th:nth-child(6),.account-table td:nth-child(6){width:82px}
.account-table th:nth-child(7),.account-table td:nth-child(7){width:105px}
.account-table th:nth-child(8),.account-table td:nth-child(8),.account-table th:nth-child(9),.account-table td:nth-child(9),.account-table th:nth-child(10),.account-table td:nth-child(10){width:87px}
.account-table th:nth-child(11),.account-table td:nth-child(11){width:95px}
.account-table th:nth-child(12),.account-table td:nth-child(12),.account-table th:nth-child(13),.account-table td:nth-child(13),.account-table th:nth-child(14),.account-table td:nth-child(14),.account-table th:nth-child(15),.account-table td:nth-child(15){width:70px}
.account-table th:nth-child(16),.account-table td:nth-child(16),.account-table th:nth-child(17),.account-table td:nth-child(17){width:120px}
.number-cell{text-align:right}
.check-cell input,td input[type=checkbox]{margin:0;width:16px;height:16px;accent-color:#659348;vertical-align:middle}
.status{display:inline-block;font-size:12px;border-radius:3px;padding:2px 6px}
.status.enabled{color:#197649;background:#e5f5eb}
.status.disabled{color:#a14d29;background:#fff0e5}
.status.expired{color:#b25e13;background:#fff3d9}
.status.pending{color:#6952a0;background:#f1edfa}
.sample-label{font-size:11px;color:#4a7636;background:#f0f7e9;border-radius:2px;padding:1px 3px;margin-left:4px}
.empty-state{padding:45px 20px;text-align:center;color:#4a7636}
.create-dialog,.confirm-dialog{border:1px solid #d7e5cf;border-radius:7px;box-shadow:0 20px 48px #263b1b60;padding:0;color:#253e1c;background:#fff}
.create-dialog{width:min(930px,calc(100vw - 24px));max-height:min(90vh,890px)}
.confirm-dialog{width:min(440px,calc(100vw - 24px))}
dialog::backdrop{background:#10241781}
.dialog-head{min-height:59px;padding:13px 18px;background:#c9e1b5;border-bottom:1px solid #b6d79d;display:flex;justify-content:space-between;align-items:center;gap:12px}
.dialog-head h2{font-size:17px;line-height:1.2;margin:0;color:#4a7636;font-weight:600}
.dialog-head p{margin:4px 0 0;font-size:12px;color:#4a7636}
.close-button{border:0;background:transparent;color:#3e662f;font-size:25px;line-height:1;padding:3px 7px}
.close-button:hover{color:#3e662f}
.create-dialog form{display:flex;flex-direction:column;max-height:min(90vh,890px)}
.dialog-content{padding:16px 19px;overflow:auto}
.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 14px}
.form-error{background:#fff1f1;color:#bc3232;border:1px solid #f3baba;border-radius:3px;padding:8px;margin-top:12px}
.channel-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:17px}
.channel-group{border:1px solid #d7e5cf;background:#f7faf5;border-radius:3px;min-width:0}
.channel-head{display:flex;align-items:center;justify-content:space-between;background:#f7faf5;padding:7px 10px;color:#3e662f;font-weight:600}
.select-group{font-weight:400;font-size:12px;color:#3e662f;white-space:nowrap}
.select-group input,.channel-option input{accent-color:#659348;margin:0 5px 0 0;vertical-align:middle}
.channel-grid{padding:9px 10px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.channel-option{white-space:nowrap}
.batch-edit-dialog{width:min(840px,calc(100vw - 24px))}
.batch-edit-note{margin:0 0 14px;color:#4a7636;line-height:1.6}
.batch-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.batch-field{display:flex;flex-direction:column;gap:6px;border:1px solid #d7e5cf;background:#f7faf5;border-radius:3px;padding:10px;min-width:0}
.batch-toggle{font-weight:600;color:#3e662f}
.batch-toggle input{accent-color:#659348;vertical-align:middle;margin:0 6px 0 0}
.batch-field>input,.batch-field>select{width:100%;height:36px;border:1px solid #d7e5cf;border-radius:3px;background:#fff;padding:6px 9px}
.batch-field>small{color:#4a7636}
.batch-field :disabled,.batch-channel-groups :disabled{opacity:.55;cursor:not-allowed}
.batch-channel-groups .channel-group{min-width:0}
.batch-channel-groups .channel-head{gap:10px}
.batch-channel-groups .select-group{margin-left:auto}
.dialog-footer{display:flex;justify-content:flex-end;gap:9px;border-top:1px solid #d7e5cf;padding:11px 18px;background:#f7faf5}
.confirm-text{margin:0;min-height:95px;padding:21px 19px;line-height:1.7;white-space:pre-line}
.toast{position:fixed;bottom:20px;right:20px;max-width:min(420px,calc(100vw - 30px));z-index:10;background:#4a7636;color:#fff;padding:10px 15px;border-radius:4px;box-shadow:0 8px 25px #263b1b50}
.toast.error{background:#bc4141}
.header-state{display:flex;align-items:center;flex-wrap:wrap;gap:10px;min-width:0}
.offline-tag{background:#fff1e4!important;color:#985422!important}
.connect-content{padding:18px 19px;line-height:1.6}
.connect-content p:first-child{margin:0 0 14px;color:#4a7636}
.connect-content .form-error{margin-bottom:0}
.connect-content .field+.field{margin-top:14px}
.login-dialog::backdrop{background:#fafcf8}
.login-dialog .dialog-head{padding:24px 24px 18px;background:#fff}
.login-dialog .dialog-head h2{margin-top:8px;font-size:18px}
.password-requirement{font-size:12px;color:#4a7636}
[hidden]{display:none!important}
.view-tabs{display:flex;align-items:flex-end;gap:3px;margin:0 0 10px;border-bottom:1px solid #d7e5cf;overflow-x:auto;flex:none}
.view-tab{background:transparent;border:0;border-bottom:3px solid transparent;border-radius:0;color:#4a7636;padding:8px 12px;font-size:13px;flex:none}
.view-tab.active{color:#4a7636;border-bottom-color:#659348;font-weight:600}
.view-tab:hover{color:#3e662f}
.archive-toolbar{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;padding:15px 16px 5px}
.archive-toolbar .field{width:210px}
.archive-toolbar .archive-account-field{width:170px}
.archive-toolbar>strong{align-self:center;color:#3e662f;font-size:16px}
.archive-toolbar .meta-note{margin-left:auto;padding-bottom:7px}
.archive-intro{margin:5px 16px 13px;color:#4a7636;font-size:13px}
.archive-table-scroll{max-height:calc(100vh - 245px);margin:0 16px 16px;width:calc(100% - 32px)}
#archivesPanel{display:flex;flex:1 1 0;flex-direction:column;min-height:0;overflow:hidden}
#archivesPanel>.archive-toolbar,#archivesPanel>.archive-intro,#archivesPanel>.archive-more{flex:none}
#archivesPanel>.archive-table-scroll{flex:1 1 auto;min-height:0;max-height:none}
.archive-table{width:100%;min-width:0;table-layout:fixed;font-size:12px}
.archive-table th,.archive-table td{min-width:0;height:36px;padding:4px;line-height:1.35;text-align:left}
.archive-table th{overflow:visible;white-space:normal;overflow-wrap:anywhere}
.archive-table th:nth-child(1),.archive-table td:nth-child(1){width:3%}
.archive-table th:nth-child(2),.archive-table td:nth-child(2){width:13%;white-space:normal;overflow-wrap:anywhere}
.archive-table th:nth-child(3),.archive-table td:nth-child(3){width:6%}
.archive-table th:nth-child(4),.archive-table td:nth-child(4){width:4%}
.archive-table th:nth-child(5),.archive-table td:nth-child(5){width:9%}
.archive-table th:nth-child(6),.archive-table td:nth-child(6){width:21%}
.archive-table th:nth-child(7),.archive-table td:nth-child(7){width:5%}
.archive-table th:nth-child(8),.archive-table td:nth-child(8){width:10%}
.archive-table th:nth-child(9),.archive-table td:nth-child(9){width:4%}
.archive-table th:nth-child(10),.archive-table td:nth-child(10){width:9%;white-space:normal;overflow-wrap:anywhere}
.archive-table th:nth-child(11),.archive-table td:nth-child(11){width:6%;white-space:normal;overflow-wrap:anywhere;text-align:right}
.archive-table th:nth-child(12),.archive-table td:nth-child(12){width:7%}
.archive-table th:nth-child(13),.archive-table td:nth-child(13){width:3%}
.archive-table th.archive-select-cell,.archive-table td.archive-select-cell{text-align:center}
.archive-select-cell input{width:16px;height:16px;margin:0;vertical-align:middle;accent-color:#659348}
.archive-table th.archive-delete-cell,.archive-table td.archive-delete-cell{text-align:center}
.archive-table td.archive-actions-cell,.archive-table td.archive-delete-cell{overflow:visible;white-space:normal}
.archive-actions-cell .text-button{display:block;max-width:100%;margin:0;white-space:normal;overflow-wrap:anywhere;line-height:1.25}
.archive-delete-cell .text-button{max-width:100%;color:#a13232;margin:0;padding:3px 0;white-space:normal;overflow-wrap:anywhere}
.archive-delete-cell .text-button:hover{color:#812222}
.archive-content-preview{display:block;max-width:100%;width:100%;border:0;background:transparent;color:#3e662f;text-align:left;white-space:nowrap;text-overflow:ellipsis;line-height:1.35;padding:0;cursor:pointer;overflow:hidden}
.archive-content-preview:hover{text-decoration:underline}
.archive-list-image-button{width:34px;max-width:100%;height:30px;padding:2px;border:1px solid #d7e5cf;border-radius:3px;background:#f7faf5;cursor:zoom-in}
.archive-list-image-button img{width:100%;height:100%;object-fit:contain}
.archive-detail-dialog,.archive-image-dialog{border:1px solid #d7e5cf;border-radius:7px;box-shadow:0 20px 48px #263b1b60;padding:0;color:#253e1c;background:#fff;width:min(980px,calc(100vw - 24px));max-height:92vh}
.archive-detail-body{padding:16px 18px 20px;overflow:auto;max-height:calc(92vh - 60px);font-size:13px}
.archive-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px}
.archive-detail-field{display:grid;gap:4px;min-width:0;overflow-wrap:anywhere}
.archive-detail-field strong{color:#4a7636;font-size:12px}
.archive-detail-field span,.archive-detail-field pre{margin:0;white-space:pre-wrap;word-break:break-word}
.archive-detail-field pre{background:#f7faf5;border:1px solid #f0f7e9;padding:8px;max-height:270px;overflow:auto;font:inherit}
.archive-detail-section{margin-top:17px;border-top:1px solid #d7e5cf;padding-top:12px}
.archive-content-section{margin:0 0 14px;padding:12px;border:1px solid #d7e5cf;border-radius:4px;background:#f7faf5}
.archive-content-section h3{margin-bottom:8px}
.archive-content-section .archive-detail-field{margin-top:8px}
.archive-content-section .archive-detail-field pre{max-height:360px;background:#fff}
.archive-change-summary{margin:13px 0 0;padding:9px 11px;border-left:3px solid #659348;background:#f7faf5;color:#3e662f;font-weight:600}
.archive-detail-section h3{font-size:14px;color:#4a7636;margin:0 0 10px}
.archive-detail-section p{color:#4a7636;margin:5px 0}
.archive-detail-section textarea{width:100%;height:155px;resize:vertical;background:#f7faf5;border:1px solid #f0f7e9;padding:8px;font:inherit}
.archive-attachment-grid{display:flex;flex-wrap:wrap;gap:12px}
.archive-attachment{width:142px;min-width:0;display:grid;gap:5px;overflow-wrap:anywhere;color:#4a7636;font-size:12px}
.archive-attachment button{border:1px solid #d7e5cf;background:#f7faf5;padding:4px;cursor:zoom-in;height:105px}
.archive-attachment img{width:100%;height:100%;object-fit:contain}
.archive-attachment-file{display:grid;place-items:center;border:1px solid #d7e5cf;background:#f7faf5;height:105px;padding:6px;text-align:center}
.archive-change{border:1px solid #d7e5cf;margin:7px 0;background:#f7faf5}
.archive-change summary{cursor:pointer;padding:8px 10px;color:#4a7636;font-weight:600}
.archive-change-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0 10px 10px}
.archive-image-dialog{width:min(1100px,calc(100vw - 24px))}
.archive-image-body{padding:12px;text-align:center;overflow:auto;max-height:calc(92vh - 60px)}
.archive-image-body img{max-width:100%;max-height:calc(92vh - 95px);object-fit:contain}
.archive-more{display:flex;justify-content:center;padding:0 16px 16px}
@media (max-width:900px){
  .archive-table{font-size:11.5px}
  .archive-table th,.archive-table td{padding:4px 3px}
  .archive-table th:nth-child(1),.archive-table td:nth-child(1){width:4%}
  .archive-table th:nth-child(2),.archive-table td:nth-child(2){width:11%}
  .archive-table th:nth-child(5),.archive-table td:nth-child(5){width:8%}
  .archive-table th:nth-child(6),.archive-table td:nth-child(6){width:18%}
  .archive-table th:nth-child(8),.archive-table td:nth-child(8){width:9%}
  .archive-table th:nth-child(10),.archive-table td:nth-child(10){width:10%}
  .archive-table th:nth-child(11),.archive-table td:nth-child(11){width:7%}
  .archive-table th:nth-child(12),.archive-table td:nth-child(12){width:10%}
  .archive-table th:nth-child(13),.archive-table td:nth-child(13){width:4%}
}
.online-rows{display:grid;gap:12px;padding:0 16px 16px}
.online-account{border:1px solid #d7e5cf;border-radius:4px;background:#f7faf5;min-width:0}
.online-account-head{display:flex;align-items:center;justify-content:space-between;gap:8px 20px;flex-wrap:wrap;background:#f7faf5;padding:9px 12px}
.online-account-head strong{color:#4a7636}
.online-account-activity{display:flex;flex-direction:column;align-items:flex-end;gap:5px}
.online-detail-toggle{min-height:27px;padding:3px 9px;font-size:12px}
.online-account-head span,.online-summary,.online-detail-missing{color:#4a7636;font-size:12px}
.online-summary,.online-detail-missing{margin:9px 12px}
.online-card{margin:9px 12px;padding:10px 12px;border:1px solid #d7e5cf;background:#fff;border-radius:3px;min-width:0}
.online-card>strong{color:#3e662f}
.online-card p{margin:6px 0;font-size:12px;color:#3e662f;overflow-wrap:anywhere}
.online-content-label{display:block;margin-top:9px;font-size:12px;color:#4a7636}
.online-content{margin:5px 0 0;padding:8px;white-space:pre-wrap;overflow:auto;max-height:220px;background:#f7faf5;border:1px solid #f0f7e9;border-radius:3px;font:inherit;overflow-wrap:anywhere}
.online-image-button{display:block;width:130px;height:100px;margin-top:8px;padding:4px;border:1px solid #d7e5cf;border-radius:3px;background:#f7faf5;cursor:zoom-in}
.online-image-button img{width:100%;height:100%;object-fit:contain}
.pending-panel{min-height:340px}
.pending-panel .archive-toolbar{align-items:center}
.pending-panel .archive-toolbar strong{font-size:16px;color:#3e662f}
.pending-sections{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:0 16px 16px}
.pending-sections>div{min-width:0;border:1px solid #d7e5cf;border-radius:4px}
.pending-sections h2{font-size:14px;margin:0;padding:10px 12px;background:#f7faf5;color:#3e662f}
.pending-rows{max-height:calc(100vh - 305px);min-height:150px;overflow:auto}
.pending-rows:empty::before{content:'暂无待核记录';display:block;padding:20px;color:#63775b}
.pending-card{padding:11px 12px;border-top:1px solid #f0f7e9}
.pending-summary,.pending-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.pending-summary{margin-bottom:9px}
.pending-summary span:nth-child(2){font-weight:600;color:#4a7636}
.pending-summary span:last-child{margin-left:auto;color:#4a7636}
.pending-controls select{min-height:32px;max-width:170px}
.pending-more{text-align:center;padding:9px}
.channels-panel{padding-bottom:18px;min-height:0;overflow:auto}
.channels-panel .archive-toolbar{align-items:center}
.channel-table-scroll{margin:5px 16px 12px;width:calc(100% - 32px);max-height:360px;border:1px solid #d7e5cf}
.channel-table{min-width:760px;table-layout:auto;font-size:13px}
.channel-table th,.channel-table td{height:38px;padding:7px 10px;width:auto!important}
.channel-table th:first-child,.channel-table td:first-child{width:72px!important}
.channel-table td:nth-child(2){min-width:150px}
.channel-table td:nth-child(4){min-width:190px}
.channel-table td:nth-child(3){min-width:90px}
#channelTable:not(.sms-channel-table):not(.mms1-channel-table) th:first-child,#channelTable:not(.sms-channel-table):not(.mms1-channel-table) td:first-child{width:24%!important;min-width:150px}
#channelTable:not(.sms-channel-table):not(.mms1-channel-table) td:nth-child(2){min-width:90px}
#channelTable:not(.sms-channel-table):not(.mms1-channel-table) td:nth-child(3){min-width:190px}
#channelsPanel{display:flex;flex:1 1 0;flex-direction:column;min-height:0;overflow:hidden;padding-bottom:10px}
#channelsPanel .archive-toolbar,#channelsPanel .archive-intro{flex:none}
#channelsPanel .channel-table-scroll{flex:1 1 auto;min-height:0;max-height:none;margin-bottom:0;overflow-y:auto}
#channelsPanel .sms-channel-scroll{overflow-x:hidden}
#channelsPanel .sms-channel-table{width:100%;min-width:0;table-layout:fixed;font-size:11.5px}
#channelsPanel .sms-channel-table th,#channelsPanel .sms-channel-table td{height:34px;min-width:0;padding:4px 3px;overflow:hidden;text-overflow:ellipsis}
#channelsPanel .sms-channel-table th{font-size:11px;line-height:1.2;white-space:normal;overflow-wrap:anywhere}
#channelsPanel .sms-channel-table th:nth-child(1),#channelsPanel .sms-channel-table td:nth-child(1){width:9%!important}
#channelsPanel .sms-channel-table th:nth-child(2),#channelsPanel .sms-channel-table td:nth-child(2){width:6%!important}
#channelsPanel .sms-channel-table th:nth-child(3),#channelsPanel .sms-channel-table td:nth-child(3){width:7%!important}
#channelsPanel .sms-channel-table th:nth-child(4),#channelsPanel .sms-channel-table td:nth-child(4){width:7%!important}
#channelsPanel .sms-channel-table th:nth-child(5),#channelsPanel .sms-channel-table td:nth-child(5){width:8%!important}
#channelsPanel .sms-channel-table th:nth-child(6),#channelsPanel .sms-channel-table td:nth-child(6){width:11%!important}
#channelsPanel .sms-channel-table th:nth-child(7),#channelsPanel .sms-channel-table td:nth-child(7),#channelsPanel .sms-channel-table th:nth-child(8),#channelsPanel .sms-channel-table td:nth-child(8){width:10%!important}
#channelsPanel .sms-channel-table th:nth-child(9),#channelsPanel .sms-channel-table td:nth-child(9),#channelsPanel .sms-channel-table th:nth-child(10),#channelsPanel .sms-channel-table td:nth-child(10){width:8%!important}
#channelsPanel .sms-channel-table th:nth-child(11),#channelsPanel .sms-channel-table td:nth-child(11){width:16%!important}
#channelsPanel .sms-channel-table td.channel-row-actions{white-space:normal;overflow:visible;line-height:1.4}
#channelsPanel .sms-channel-table .channel-row-actions .button{min-height:24px;margin:1px;padding:2px 4px;font-size:11px}
#channelsPanel .mms1-channel-table{width:100%;min-width:0;table-layout:fixed;font-size:12px}
#channelsPanel .mms1-channel-table th,#channelsPanel .mms1-channel-table td{width:auto!important;min-width:0;padding:5px 4px;overflow:hidden;text-overflow:ellipsis}
#channelsPanel .mms1-channel-table th{white-space:normal}
#channelsPanel .mms1-channel-table th:first-child,#channelsPanel .mms1-channel-table td:first-child{width:14%!important}
#channelsPanel .mms1-channel-table th:nth-child(2),#channelsPanel .mms1-channel-table td:nth-child(2),#channelsPanel .mms1-channel-table th:nth-child(3),#channelsPanel .mms1-channel-table td:nth-child(3){width:8%!important}
#channelsPanel .mms1-channel-table th:nth-child(n+4):nth-child(-n+7),#channelsPanel .mms1-channel-table td:nth-child(n+4):nth-child(-n+7){width:13%!important}
#channelsPanel .mms1-channel-table th:last-child,#channelsPanel .mms1-channel-table td:last-child{width:18%!important;white-space:normal;overflow:visible}
#channelsPanel .mms1-channel-table .channel-row-actions .button{min-height:26px;margin:1px;padding:3px 5px;font-size:12px}
.channel-row-actions{white-space:nowrap;overflow:visible}
.channel-row-actions .button{margin-right:6px;min-height:28px;padding:3px 8px}
.channel-row-actions .button.action-enable:not(:disabled){color:#39712f;border-color:#b6d79d;background:#f4faef}
.channel-row-actions .button.action-enable:hover:not(:disabled){background:#e7f4db}
.channel-row-actions .button.action-disable:not(:disabled),.channel-row-actions .button.action-delete:not(:disabled){color:#a13232;border-color:#edc5c5;background:#fff8f8}
#channelsPanel #channelTable.mms-tcp-channel-table{width:100%;min-width:0;table-layout:fixed;font-size:12px}
#channelsPanel #channelTable.mms-tcp-channel-table th,#channelsPanel #channelTable.mms-tcp-channel-table td{height:34px;min-width:0;padding:5px 4px;white-space:normal;overflow-wrap:anywhere}
#channelsPanel #channelTable.mms-tcp-channel-table th:nth-child(1),#channelsPanel #channelTable.mms-tcp-channel-table td:nth-child(1){width:14%!important}
#channelsPanel #channelTable.mms-tcp-channel-table th:nth-child(2),#channelsPanel #channelTable.mms-tcp-channel-table td:nth-child(2),#channelsPanel #channelTable.mms-tcp-channel-table th:nth-child(4),#channelsPanel #channelTable.mms-tcp-channel-table td:nth-child(4){width:14%!important}
#channelsPanel #channelTable.mms-tcp-channel-table th:nth-child(3),#channelsPanel #channelTable.mms-tcp-channel-table td:nth-child(3),#channelsPanel #channelTable.mms-tcp-channel-table th:nth-child(5),#channelsPanel #channelTable.mms-tcp-channel-table td:nth-child(5){width:10%!important}
#channelsPanel #channelTable.mms-tcp-channel-table th:nth-child(6),#channelsPanel #channelTable.mms-tcp-channel-table td:nth-child(6){width:6%!important}
#channelsPanel #channelTable.mms-tcp-channel-table th:nth-child(7),#channelsPanel #channelTable.mms-tcp-channel-table td:nth-child(7){width:15%!important}
#channelsPanel #channelTable.mms-tcp-channel-table th:nth-child(8),#channelsPanel #channelTable.mms-tcp-channel-table td:nth-child(8){width:17%!important;overflow:visible}
#channelsPanel #channelTable.mms-tcp-channel-table .channel-row-actions .button{min-height:26px;margin:1px;padding:3px 5px;font-size:12px}
.channel-row-actions .button.action-disable:hover:not(:disabled),.channel-row-actions .button.action-delete:hover:not(:disabled){background:#ffeded}
.channel-row-actions .button:disabled{background:#edf3e8;border-color:#d7e5cf;color:#87977e}
#phoneTypesPanel{display:flex;flex:1 1 0;flex-direction:column;min-height:0;overflow:hidden;padding-bottom:10px}
#phoneTypesPanel .archive-toolbar{flex:none}
#phoneTypesPanel .channel-table-scroll{flex:1 1 auto;min-height:0;max-height:none;margin-bottom:0;overflow-x:hidden;overflow-y:auto}
#phoneTypesPanel .channel-table{width:100%;min-width:0;table-layout:fixed}
#phoneTypesPanel .channel-table th:nth-child(1),#phoneTypesPanel .channel-table td:nth-child(1){width:60px!important}
#phoneTypesPanel .channel-table th:nth-child(2),#phoneTypesPanel .channel-table td:nth-child(2){width:19%!important;min-width:0}
#phoneTypesPanel .channel-table th:nth-child(3),#phoneTypesPanel .channel-table td:nth-child(3){width:auto!important;min-width:0}
#phoneTypesPanel .channel-table th:nth-child(4),#phoneTypesPanel .channel-table td:nth-child(4){width:145px!important;min-width:0}
#phoneTypesPanel .channel-table td:nth-child(2),#phoneTypesPanel .channel-table td:nth-child(3){white-space:normal;overflow-wrap:anywhere;word-break:break-word}
#phoneTypesPanel .channel-row-actions{white-space:nowrap;overflow:hidden;text-overflow:clip}
@media (max-width:600px){
  #phoneTypesPanel .channel-table th:nth-child(1),#phoneTypesPanel .channel-table td:nth-child(1){width:44px!important}
  #phoneTypesPanel .channel-table th:nth-child(2),#phoneTypesPanel .channel-table td:nth-child(2){width:24%!important}
  #phoneTypesPanel .channel-table th:nth-child(4),#phoneTypesPanel .channel-table td:nth-child(4){width:86px!important}
  #phoneTypesPanel .channel-row-actions .button{display:block;width:100%;margin:0 0 3px;padding:2px}
}
.channel-dialog{width:min(900px,calc(100vw - 24px));max-height:min(90dvh,780px);overflow:hidden;font-size:12px}
.channel-dialog form{max-height:min(90dvh,780px);min-height:0;overflow:hidden}
.channel-dialog .dialog-head{min-height:45px;padding:8px 13px}
.channel-dialog .dialog-head{cursor:grab;touch-action:none;user-select:none}
.channel-dialog .dialog-head button{cursor:pointer}
.channel-dialog.channel-dialog-positioned{position:fixed;inset:auto;margin:0;transform:none}
.channel-dialog.channel-dialog-dragging .dialog-head{cursor:grabbing}
.channel-dialog .dialog-head h2{font-size:15px}
.channel-dialog .dialog-head p{font-size:11px;margin-top:2px}
.channel-dialog .dialog-content{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;padding:10px 13px}
.channel-dialog .dialog-footer{padding:7px 13px}
.channel-dialog .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 10px}
.channel-dialog .field{gap:3px;font-size:12px}
.channel-dialog .field input:not([type=checkbox]),.channel-dialog .field select{height:29px;padding:3px 7px}
.channel-config-fields{margin-top:10px;border-top:1px solid #d7e5cf;padding-top:8px}
.channel-config-fields h3{font-size:13px;color:#3e662f;margin:0 0 7px}
.channel-config-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:start}
.channel-config-section{border:1px solid #f0f7e9;background:#f7faf5;border-radius:4px;padding:7px;min-width:0}
.channel-config-section h4{margin:0 0 6px;color:#3e662f;font-size:12px;line-height:1.3}
.channel-config-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 8px;align-items:end}
.channel-config-grid .field>span{font-size:11.5px;line-height:1.3;overflow-wrap:anywhere}
.channel-config-grid .channel-config-checkbox{display:flex;flex-direction:row;align-items:center;gap:5px;min-height:29px;padding:3px 6px;border:1px solid #d7e5cf;border-radius:3px;background:#fff;font-weight:400}
.channel-config-grid .channel-config-checkbox span{font-weight:400;line-height:1.25;overflow-wrap:anywhere}
.channel-config-grid .channel-config-checkbox input{width:15px;height:15px;flex:none;accent-color:#659348;margin:0}
.channel-config-grid textarea,.phone-type-dialog textarea{width:100%;min-height:62px;border:1px solid #d7e5cf;border-radius:3px;background:#fff;padding:5px 7px;font:inherit;resize:vertical}
.channel-config-grid .field:has(textarea){grid-column:1/-1}
.channel-dialog.channel-dialog-sms{width:min(780px,calc(100vw - 24px));max-height:min(88dvh,660px)}
.channel-dialog-sms form{max-height:min(88dvh,660px)}
.channel-dialog-sms .dialog-content{padding:9px 11px;scrollbar-gutter:auto}
.channel-dialog-sms .channel-config-fields{margin-top:8px;padding-top:7px}
.channel-dialog-sms .channel-config-fields>h3{display:none}
.channel-dialog-sms .channel-config-sections{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.channel-dialog-sms .channel-config-section{padding:6px}
.channel-dialog-sms .channel-config-section h4{margin-bottom:4px}
.channel-dialog-sms .channel-config-grid{gap:4px}
.channel-dialog-sms .channel-config-grid .field>span{font-size:11px}
.channel-dialog-sms .channel-sms-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:start}
.channel-dialog-sms .channel-sms-column{display:flex;flex-direction:column;gap:6px;min-width:0;align-self:start}
.channel-dialog-sms .channel-sms-task-options .channel-config-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.channel-dialog-sms .channel-sms-task-options .channel-config-checkbox{justify-content:space-between}
.channel-dialog-sms .channel-sms-task-options .channel-config-checkbox span{order:1}
.channel-dialog-sms .channel-sms-task-options .channel-config-checkbox input{order:2;margin-left:auto}
.channel-dialog-sms .channel-sms-task-options small{font-size:11px;line-height:1.35;color:#526d46}
.channel-dialog-sms .channel-sms-text-field,.channel-dialog-sms .channel-sms-insert-section .field:has(textarea),.channel-dialog-sms .channel-udh-section .field:has(textarea){grid-column:1/-1;min-width:0}
.channel-dialog-sms .channel-sms-columns textarea{width:100%;height:72px;min-height:72px;font:12px/1.35 Consolas,"Microsoft YaHei",monospace;white-space:pre-wrap;overflow-wrap:anywhere}
.channel-dialog-sms .channel-udh-section{border-color:#c6dcb8;background:#f1f8ed}
.channel-dialog-sms .channel-udh-note{font-size:10.5px;line-height:1.3;color:#526d46}
@media(max-width:600px){
  .channel-dialog-sms .channel-sms-columns{grid-template-columns:minmax(0,1fr)}
}
.channel-dialog.channel-dialog-mms1{width:min(660px,calc(100vw - 24px));height:min(88dvh,495px);max-height:min(88dvh,520px)}
.channel-dialog-mms1 form{height:100%;max-height:min(88dvh,520px)}
.channel-dialog-mms1 .dialog-content{padding:9px 11px;scrollbar-gutter:auto}
.channel-dialog-mms1 .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 10px}
.channel-dialog-mms1 .channel-config-fields{margin-top:8px;padding-top:7px}
.channel-dialog-mms1 .channel-config-fields>h3{display:none}
.channel-dialog-mms1 .channel-config-sections{grid-template-columns:1fr;gap:3px}
.channel-dialog-mms1 .channel-config-section{padding:2px 4px}
.channel-dialog-mms1 .channel-config-section h4{display:none}
.channel-dialog-mms1 .channel-config-grid{grid-template-columns:minmax(0,1.7fr) 55px minmax(0,1fr);gap:6px;align-items:end}
.channel-dialog-mms1 .channel-config-grid .field>span{font-size:11px;white-space:nowrap}
.channel-dialog-mms1 .channel-config-checkbox{min-height:29px;padding:3px 2px;font-size:11px;white-space:nowrap}
.channel-dialog-mms1 .channel-config-grid .field input:not([type=checkbox]){min-width:0}
.channel-dialog-mms1 .channel-insert-section .field:not(.channel-config-checkbox){display:grid;grid-template-columns:max-content minmax(0,1fr);gap:5px;align-items:center}
.channel-dialog-mms1 .channel-upload-section .channel-config-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.channel-dialog-mms1 .channel-mms1-encoding-section .channel-config-grid,.channel-dialog-mms1 .channel-send-options-section .channel-config-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 10px}
.channel-dialog-mms1 .channel-mms1-encoding-section .field,.channel-dialog-mms1 .channel-upload-section .field{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:5px;align-items:center}
.channel-dialog-mms1 .channel-mms1-panel{padding:0;border:0;overflow:visible}
.channel-dialog-mms1 .channel-upload-note{display:block;margin-top:3px;font-size:11px;line-height:1.3;color:#526d46}
.channel-dialog.channel-dialog-paged{width:min(960px,calc(100vw - 24px));height:min(calc(100dvh - 20px),660px);max-height:none}
.channel-dialog-paged form{height:100%;max-height:none}
.channel-dialog-paged .dialog-head{min-height:40px;padding:5px 10px}
.channel-dialog-paged .dialog-content{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;overflow:hidden;padding:6px 8px}
.channel-dialog-paged .dialog-footer{padding:5px 10px}
.channel-dialog-paged .form-grid{flex:none}
.channel-dialog-paged .channel-config-fields{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;margin-top:5px;padding-top:3px}
.channel-dialog-paged .channel-config-fields>h3{display:none}
.channel-config-tabs{display:flex;flex:none;gap:4px;margin-bottom:3px;border-bottom:1px solid #d7e5cf}
.channel-config-tab{min-height:29px;padding:4px 12px;border:1px solid #d7e5cf;border-bottom:0;border-radius:4px 4px 0 0;background:#f7faf5;color:#3e662f;font:inherit;cursor:pointer}
.channel-config-tab[aria-selected=true]{background:#c9e1b5;color:#29471e;font-weight:600}
.channel-config-panel{flex:1 1 auto;min-height:0;padding:5px;border:1px solid #d7e5cf;background:#fff;overflow-x:hidden;overflow-y:auto}
.channel-dialog-paged .channel-config-sections{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.channel-dialog-paged #channelOtherConfig .channel-other-sections{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.channel-dialog-paged #channelOtherConfig .channel-other-transport,.channel-dialog-paged #channelOtherConfig .channel-other-inserts{grid-column:1/-1}
.channel-dialog-paged #channelOtherConfig .channel-other-transport .channel-config-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.channel-dialog-paged #channelOtherConfig .channel-other-text-section .channel-config-grid{grid-template-columns:minmax(0,1fr);gap:7px}
.channel-dialog-paged #channelOtherConfig .channel-config-section{padding:8px}
.channel-dialog-paged #channelOtherConfig .channel-config-section h4{margin-bottom:7px;font-size:13px}
.channel-dialog-paged #channelOtherConfig .channel-config-grid .field>span{font-size:12px;line-height:1.3}
.channel-dialog-paged #channelOtherConfig .field input:not([type=checkbox]),.channel-dialog-paged #channelOtherConfig .field select{height:30px;padding:4px 7px;width:100%;min-width:0;font-size:12px}
.channel-dialog-paged #channelOtherConfig .channel-inline-custom{align-items:center;gap:8px}
.channel-dialog-paged #channelOtherConfig .channel-inline-custom>.field:not(.channel-config-checkbox){min-width:0}
.channel-dialog-paged #channelOtherConfig .channel-inline-custom>.channel-config-checkbox{border:0;background:transparent;padding:0;font-size:12px}
.channel-dialog-paged #channelOtherConfig .channel-insert-table{width:100%;min-width:0;table-layout:fixed;border-collapse:separate;border-spacing:0;border:1px solid #d7e5cf;border-radius:4px;overflow:hidden;font-size:12px}
.channel-dialog-paged #channelOtherConfig .channel-insert-table th,.channel-dialog-paged #channelOtherConfig .channel-insert-table td{height:auto;padding:5px 7px;text-align:left;white-space:normal;overflow:visible;text-overflow:clip;border-right:1px solid #d7e5cf;border-bottom:1px solid #d7e5cf}
.channel-dialog-paged #channelOtherConfig .channel-insert-table thead th{background:#edf5e7;color:#3e662f;font-weight:600}
.channel-dialog-paged #channelOtherConfig .channel-insert-table thead th:nth-child(1){width:16%}
.channel-dialog-paged #channelOtherConfig .channel-insert-table thead th:nth-child(2){width:35%}
.channel-dialog-paged #channelOtherConfig .channel-insert-table thead th:nth-child(3){width:14%}
.channel-dialog-paged #channelOtherConfig .channel-insert-table thead th:nth-child(4){width:35%}
.channel-dialog-paged #channelOtherConfig .channel-insert-table tbody th{background:#f7faf5;font-weight:400;overflow-wrap:anywhere}
.channel-dialog-paged #channelOtherConfig .channel-insert-table tr>:last-child{border-right:0}
.channel-dialog-paged #channelOtherConfig .channel-insert-table tbody tr:last-child>*{border-bottom:0}
.channel-dialog-paged #channelOtherConfig .channel-insert-table .field{min-width:0;margin:0}
.channel-dialog-paged #channelOtherConfig .channel-insert-table .channel-config-checkbox{display:flex;flex-direction:row;align-items:center;gap:5px;min-height:30px;font-size:12px;white-space:nowrap}
.channel-dialog-paged #channelOtherConfig .channel-insert-table input[type=checkbox]{width:15px;height:15px;flex:none;margin:0;accent-color:#659348}
.channel-dialog-paged #channelOtherConfig .channel-insert-table td::before{display:none}
.channel-dialog-paged .channel-attachment-columns{gap:6px;align-items:start}
.channel-dialog-paged .channel-attachment-column{display:flex;flex-direction:column;gap:2px;min-width:0}
.channel-dialog-paged .channel-attachment-column>h3{margin:0;padding:2px 2px 3px;border-bottom:1px solid #d7e5cf;color:#3e662f;font-size:12px;line-height:1.2}
.channel-dialog-paged .channel-config-section{padding:5px}
.channel-dialog-paged .channel-config-section h4{margin-bottom:4px}
.channel-dialog-paged .channel-config-grid{gap:4px}
.channel-dialog-paged .channel-attachment-column .channel-config-section{padding:3px}
.channel-dialog-paged .channel-attachment-column .channel-config-section h4{margin-bottom:2px}
.channel-dialog-paged .channel-attachment-column .channel-config-grid{gap:2px}
.channel-dialog-paged .channel-type-section .channel-config-grid{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
.channel-dialog-paged .channel-attachment-column .channel-common-flag{grid-column:1/-1;min-height:21px;padding:1px 3px;white-space:nowrap}
.channel-dialog-paged .channel-contact-section .channel-config-grid{grid-template-columns:1fr;gap:2px}
.channel-dialog-paged .channel-contact-section .channel-config-checkbox{min-height:21px;padding:1px 3px;white-space:nowrap}
.channel-dialog-paged .channel-node-heading{display:flex;align-items:center;justify-content:space-between;gap:2px;white-space:nowrap}
.channel-dialog-paged .channel-node-heading-options{display:inline-flex;align-items:center;gap:2px;min-width:0}
.channel-dialog-paged .channel-node-heading-options .channel-config-checkbox{display:inline-flex;flex-direction:row;align-items:center;gap:2px;min-height:18px;padding:0 1px;border:0;background:transparent;font-size:10.5px;font-weight:400;white-space:nowrap}
.channel-dialog-paged .channel-node-heading-options .channel-config-checkbox span{white-space:nowrap;line-height:1}
.channel-dialog-paged .channel-node-heading-options .channel-config-checkbox input{width:14px;height:14px;flex:0 0 14px;margin:0}
.channel-dialog-paged .channel-config-grid .field>span{font-size:10.5px;line-height:1.2}
.channel-dialog-paged .channel-config-grid .field input:not([type=checkbox]),.channel-dialog-paged .channel-config-grid .field select{height:26px;padding:2px 5px}
.channel-dialog-paged .channel-config-checkbox{min-height:26px;padding:2px 3px;font-size:10.5px}
.channel-dialog-paged .channel-inline-custom{display:flex;align-items:flex-end;gap:4px;min-width:0}
.channel-dialog-paged .channel-inline-custom>.channel-config-checkbox{flex:none;white-space:nowrap}
.channel-dialog-paged .channel-inline-custom>.channel-config-checkbox input{width:15px;height:15px;flex:0 0 15px}
.channel-dialog-paged .channel-inline-custom>.field:not(.channel-config-checkbox){flex:1 1 auto;min-width:75px}
.channel-dialog-paged .channel-inline-custom>.field input:not([type=checkbox]){width:100%;min-width:75px}
.channel-dialog-paged .channel-marker-section .channel-inline-custom{grid-column:1/-1}
.channel-dialog-paged .channel-network-wide-field{grid-column:1/-1}
.channel-dialog-paged .channel-network-wide-field input{width:100%}
.channel-dialog-paged .channel-marker-field{grid-column:1/-1}
.channel-dialog-paged .channel-marker-field select{width:100%}
.channel-dialog-paged .channel-filename-field{display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:center;gap:4px}
.channel-dialog-paged .channel-config-grid .channel-filename-field select{height:24px}
.channel-dialog-paged .channel-smil-declaration-field{grid-column:1/-1;display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:center;gap:4px}
.channel-dialog-paged .channel-packaging-field{grid-column:1/-1;display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:center;gap:8px}
.channel-dialog-paged .channel-smil-inactive{color:#82907b;background:#edf3e8}
.channel-dialog-paged .channel-smil-inactive select{background:#edf3e8;color:#82907b}
.channel-packaging-label{display:block;margin-top:2px;color:#668259;font-size:11px;white-space:nowrap}
.channel-dialog-paged .channel-config-grid .channel-smil-declaration-field select{height:24px}
.channel-dialog-paged #channelAttachmentConfig .field:has(>select[data-config-key="messageClassValue"]){grid-column:1/-1;display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:center;gap:4px}
.channel-dialog-paged #channelAttachmentConfig .field:has(>select[data-config-key="messageClassValue"])>span{white-space:nowrap}
.channel-dialog-paged #channelAttachmentConfig .field>select[data-config-key="messageClassValue"]{height:24px}
.channel-dialog-paged [data-config-key$="MarkerCustom"]:disabled{background:#edf3e8;color:#82907b}
.channel-dialog-paged [data-config-key$="Marker"]:disabled{background:#edf3e8;color:#82907b}
.phone-type-dialog{width:min(640px,calc(100vw - 24px))}
.phone-type-dialog .connect-content{display:grid;gap:14px}
.phone-type-dialog .field input{width:100%}
.workspace:has(#distributionPanel:not([hidden])){height:auto;min-height:calc(100dvh - 56px)}
.distribution-panel{display:flex;flex-direction:column;flex:1;min-height:0}
.distribution-content{display:grid;grid-template-columns:minmax(270px,.72fr) minmax(0,2fr);gap:12px;padding:10px 16px 16px;flex:1;min-height:0;align-items:start}
.distribution-create,.distribution-results{min-width:0;min-height:0;border:1px solid #d7e5cf;border-radius:4px;background:#f7faf5;padding:11px}
.distribution-create{display:flex;flex-direction:column;gap:9px;overflow:visible}
.distribution-results{display:flex;flex-direction:column;overflow:visible}
.distribution-create h2,.distribution-results h2{margin:0 0 3px;color:#3e662f;font-size:15px}
.distribution-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.distribution-create .field{font-size:12px;gap:3px}
.distribution-create .field input{height:31px;padding:4px 7px}
.distribution-create textarea{width:100%;min-height:76px;padding:7px;border:1px solid #d7e5cf;border-radius:3px;background:#fff;color:#253e1c;font:inherit;resize:vertical}
.distribution-account-list{display:flex;flex-wrap:wrap;align-content:flex-start;gap:5px;min-height:41px;max-height:none;overflow:visible;padding:6px;border:1px solid #d7e5cf;border-radius:3px;background:#fff;color:#4a7636;font-weight:400}
.distribution-account{display:inline-flex;align-items:center;gap:5px;max-width:100%;padding:3px 6px;border:1px solid #d7e5cf;border-radius:3px;background:#f7faf5;color:#3e662f;font-size:12px;overflow-wrap:anywhere}
.distribution-account input{margin:0;accent-color:#659348}
.distribution-account-inactive{background:#f7faf5;color:#4a7636;border-color:#d7e5cf;cursor:not-allowed}
.distribution-assignment{display:flex;flex:none;flex-direction:column;gap:5px;min-width:0;max-height:none;margin-top:8px;padding:8px;border:1px solid #d7e5cf;border-radius:3px;background:#fff;overflow:visible}
.distribution-assignment[hidden]{display:none!important}
.distribution-assignment h3{margin:0;color:#3e662f;font-size:13px}
.distribution-assignment .distribution-hint{font-size:11px}
.distribution-assignment .distribution-account-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(170px,100%),1fr));align-content:start;flex:1 1 auto;min-height:42px;max-height:none;overflow:visible}
.distribution-assignment .distribution-account{display:flex;flex-wrap:wrap;min-width:0}
.distribution-assignment input[type=number]{width:70px;max-width:100%;height:25px;margin-left:auto;padding:2px 4px;border:1px solid #d7e5cf;border-radius:3px;background:#fff;color:#253e1c}
.distribution-assignment .form-error{margin:0;padding:5px}
.distribution-assignment>.button{align-self:flex-end;min-height:27px;padding:3px 8px}
.distribution-import{display:inline-flex;align-items:center;gap:9px;color:#3e662f;font-size:12px}
.distribution-import input{max-width:230px;font-size:11px}
.distribution-image-wrap{display:flex;align-items:center;gap:8px;min-height:30px;color:#4a7636;font-size:12px;overflow-wrap:anywhere}
.distribution-image-wrap img{width:56px;height:48px;object-fit:contain;border:1px solid #d7e5cf;background:#fff}
.distribution-hint{margin:0;color:#a45c20;font-size:11px;line-height:1.4}
.distribution-create .form-error{margin:0}
.distribution-create>.button{align-self:flex-start}
.distribution-results>.distribution-table-scroll{flex:none;min-height:120px;max-height:none;width:100%;overflow:visible;border:1px solid #d7e5cf}
.distribution-table{width:100%;min-width:0;table-layout:fixed;font-size:12px}
.distribution-table th,.distribution-table td{height:34px;padding:5px 4px;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;vertical-align:top}
.distribution-table th:first-child,.distribution-table td:first-child{width:16%}
.distribution-table th:nth-child(2),.distribution-table td:nth-child(2){width:8%}
.distribution-table th:nth-child(n+3):nth-child(-n+9),.distribution-table td:nth-child(n+3):nth-child(-n+9){width:8%;text-align:right;font-variant-numeric:tabular-nums}
.distribution-table th:last-child,.distribution-table td:last-child{width:20%}
.distribution-table tbody tr[data-job-id]{cursor:pointer}
.distribution-table tbody tr[data-job-id]:focus-visible{outline:2px solid #659348;outline-offset:-2px}
.distribution-table tr.selected td{background:#d4e9bc}
.distribution-table tr.selected td:first-child{box-shadow:inset 3px 0 #659348}
.distribution-row-actions{white-space:normal;overflow:visible}
.distribution-row-actions select{width:100%;max-width:170px;min-width:0;height:29px;padding:3px 7px;border:1px solid #d7e5cf;border-radius:3px;background:#fff;color:#3e662f;font:inherit}
.distribution-empty{color:#4a7636;text-align:center}
.distribution-detail{flex:none;min-height:0;max-height:none;margin-top:10px;padding:10px;border:1px solid #d7e5cf;border-radius:3px;background:#fff;color:#3e662f;font-size:12px;overflow:visible;overflow-wrap:anywhere}
.distribution-detail h3{margin:0 0 5px;color:#3e662f;font-size:14px}
.distribution-detail p{margin:0 0 9px}
.distribution-detail strong{display:block;color:#3e662f;margin:8px 0 4px}
.distribution-detail pre{white-space:pre-wrap;word-break:break-word;max-height:none;overflow:visible;margin:0;padding:7px;background:#f7faf5;border:1px solid #f0f7e9;font:inherit}
.distribution-detail-image{display:block;max-width:180px;max-height:140px;object-fit:contain;border:1px solid #d7e5cf;background:#fff}
.distribution-detail-scroll{max-height:none;overflow:visible;border:1px solid #d7e5cf}
.distribution-account-table{width:100%;min-width:0;table-layout:fixed;font-size:12px}
.distribution-account-table th,.distribution-account-table td{height:32px;padding:5px 4px;white-space:normal;overflow:visible;overflow-wrap:anywhere;text-overflow:clip}
.distribution-account-table th:first-child,.distribution-account-table td:first-child{width:25%}
.distribution-account-table th:nth-child(2),.distribution-account-table td:nth-child(2){width:20%}
.distribution-account-table th:nth-child(n+3),.distribution-account-table td:nth-child(n+3){width:11%;text-align:right;font-variant-numeric:tabular-nums}
@media (max-width:1050px){.distribution-content{grid-template-columns:1fr}.distribution-results{min-height:0}}
body.channel-window-page{height:100dvh;overflow:hidden;background:#fff}
.channel-window-page>.app-header,.channel-window-page>.workspace{display:none}
.channel-window-page #channelDialog{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;border:0;border-radius:0;box-shadow:none}
.channel-window-page #channelDialog form{height:100%;max-height:none}
.channel-window-page #channelDialog .dialog-head{display:none}
.channel-window-page #channelDialog::backdrop{background:transparent}
.channel-window-loading{height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:20px;text-align:center;color:#3e662f}
@media (max-width:780px){.channel-config-sections{grid-template-columns:1fr}}
@media (max-width:850px){.pending-sections{grid-template-columns:1fr}}
@media (max-width:680px){.archive-detail-grid,.archive-change-values{grid-template-columns:1fr}}
@media (max-width:1250px){.query-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.date-range{grid-column:1/3}
.query-actions{justify-content:flex-end}
.table-scroll{max-height:calc(100vh - 265px)}
}
@media (max-width:680px){.app-header{height:auto;min-height:60px;padding:9px 12px;align-items:flex-start;flex-direction:column;gap:3px}
.brand strong{font-size:17px}
.brand-subtitle{display:none}
.workspace{padding:10px;height:auto;min-height:calc(100dvh - 60px)}
.query-panel{padding:10px}
.query-grid{grid-template-columns:1fr;gap:10px}
.date-range{grid-column:auto;flex-wrap:wrap}
.date-range>span:first-child{width:100%}
.date-range input{flex-basis:calc(50% - 15px)}
.query-actions{justify-content:stretch}
.query-actions .button{flex:1}
.toolbar{padding:10px}
.toolbar-main{width:100%}
.recharge-controls{margin-left:0;width:100%}
.list-meta{flex-wrap:wrap;gap:5px 12px}
.list-meta .meta-note{margin-left:0;width:100%}
.table-scroll{max-height:calc(100vh - 360px)}
.form-grid,.channel-groups,.batch-field-grid{grid-template-columns:1fr}
.channel-dialog .form-grid{grid-template-columns:1fr}
.channel-config-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.channel-config-grid .field:has(textarea){grid-column:auto}
.channel-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* Keep the account view dense without shrinking controls in other management views. */
#accountsQuery{padding:9px 11px;margin-bottom:9px;font-size:13px}
#accountsQuery .query-grid{grid-template-columns:minmax(145px,1fr) minmax(155px,1fr) minmax(385px,2fr) auto;gap:8px 12px}
#accountsQuery .field{gap:2px}
#accountsQuery .field input,#accountsQuery .date-range input{height:30px;padding:4px 7px}
#accountsQuery .date-range,#accountsQuery .query-actions{gap:6px}
#accountsQuery .query-actions .button{min-width:60px;min-height:30px;padding:4px 9px;font-size:12.5px}
#accountsPanel .toolbar{padding:8px 9px 6px;gap:6px}
#accountsPanel .toolbar-main,#accountsPanel .recharge-controls{gap:5px}
#accountsPanel .toolbar .button{min-height:29px;padding:4px 8px;font-size:12.5px}
#accountsPanel .recharge-controls{font-size:12.5px}
#accountsPanel .recharge-controls input{width:75px;height:29px;padding:3px 5px}
#accountsPanel .list-meta{min-height:22px;padding:0 9px 5px;gap:11px;font-size:11.5px}
#accountsPanel .account-table{min-width:1321px;font-size:12px}
#accountsPanel .account-table th,#accountsPanel .account-table td{height:30px;padding:4px}
#accountsPanel .account-table th:nth-child(1),#accountsPanel .account-table td:nth-child(1){width:30px}
#accountsPanel .account-table th:nth-child(2),#accountsPanel .account-table td:nth-child(2){width:110px}
#accountsPanel .account-table th:nth-child(3),#accountsPanel .account-table td:nth-child(3),#accountsPanel .account-table th:nth-child(4),#accountsPanel .account-table td:nth-child(4){width:78px}
#accountsPanel .account-table th:nth-child(5),#accountsPanel .account-table td:nth-child(5){width:58px}
#accountsPanel .account-table th:nth-child(6),#accountsPanel .account-table td:nth-child(6){width:80px}
#accountsPanel .account-table th:nth-child(7),#accountsPanel .account-table td:nth-child(7){width:95px}
#accountsPanel .account-table th:nth-child(8),#accountsPanel .account-table td:nth-child(8),#accountsPanel .account-table th:nth-child(9),#accountsPanel .account-table td:nth-child(9),#accountsPanel .account-table th:nth-child(10),#accountsPanel .account-table td:nth-child(10){width:78px}
#accountsPanel .account-table th:nth-child(11),#accountsPanel .account-table td:nth-child(11){width:92px}
#accountsPanel .account-table th:nth-child(12),#accountsPanel .account-table td:nth-child(12),#accountsPanel .account-table th:nth-child(13),#accountsPanel .account-table td:nth-child(13),#accountsPanel .account-table th:nth-child(14),#accountsPanel .account-table td:nth-child(14),#accountsPanel .account-table th:nth-child(15),#accountsPanel .account-table td:nth-child(15){width:64px}
#accountsPanel .account-table th:nth-child(16),#accountsPanel .account-table td:nth-child(16),#accountsPanel .account-table th:nth-child(17),#accountsPanel .account-table td:nth-child(17){width:105px}

/* Widths are set on a colgroup after the first drag; existing default layouts remain intact. */
.resizable-table th{position:relative;padding-right:12px}
.table-column-resizer{position:absolute;top:0;right:0;bottom:0;width:8px;cursor:col-resize;touch-action:none;user-select:none;z-index:2}
.table-column-resizer::after{content:"";position:absolute;top:6px;bottom:6px;right:3px;width:1px;background:#b4cba7}
.table-column-resizer:hover::after,.table-column-resizer:focus-visible::after{width:2px;background:#659348}
.table-column-resizer:focus-visible{outline:2px solid #659348;outline-offset:-2px}
.table-column-dragging,.table-column-dragging *{cursor:col-resize!important;user-select:none!important}
#accountsPanel .resizable-table-scroll,#archivesPanel .resizable-table-scroll,#channelsPanel .resizable-table-scroll{overflow-x:auto}
#accountsPanel table.table-widths-active,#archivesPanel table.table-widths-active,#channelsPanel #channelTable.table-widths-active{table-layout:fixed;min-width:0}
#accountsPanel table.table-widths-active th:nth-child(n),#accountsPanel table.table-widths-active td:nth-child(n),#archivesPanel table.table-widths-active th:nth-child(n),#archivesPanel table.table-widths-active td:nth-child(n),#channelsPanel #channelTable.table-widths-active th:nth-child(n),#channelsPanel #channelTable.table-widths-active td:nth-child(n){width:auto!important}
@media (max-width:980px){
  #accountsQuery .query-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  #accountsQuery .date-range{grid-column:1/3}
  #accountsQuery .query-actions{justify-content:flex-end}
}
@media (max-width:680px){
  #accountsQuery{padding:8px}
  #accountsQuery .query-grid{grid-template-columns:1fr}
  #accountsQuery .date-range{grid-column:auto}
  #accountsQuery .query-actions{justify-content:stretch}
  #accountsQuery .query-actions .button{flex:1}
  #accountsPanel .toolbar-main{width:100%}
  #accountsPanel .recharge-controls{margin-left:0;width:100%}
  #accountsPanel .list-meta{flex-wrap:wrap;gap:4px 10px}
  #accountsPanel .list-meta .meta-note{margin-left:0;width:100%}
}

@media (max-width:850px){
  .channel-dialog-paged .channel-config-sections{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:600px){
  .channel-dialog-mms1 .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .channel-dialog-mms1 .form-grid>.field:first-child{grid-column:1/-1}
  .channel-dialog-mms1 .channel-config-sections,.channel-dialog-paged .channel-config-sections{grid-template-columns:1fr}
  .channel-dialog-paged #channelOtherConfig .channel-other-sections{grid-template-columns:1fr}
  .channel-dialog-paged #channelOtherConfig .channel-other-transport .channel-config-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .channel-dialog-paged #channelOtherConfig .channel-insert-table,.channel-dialog-paged #channelOtherConfig .channel-insert-table tbody{display:block}
  .channel-dialog-paged #channelOtherConfig .channel-insert-table thead{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .channel-dialog-paged #channelOtherConfig .channel-insert-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) 80px;padding:5px;border-bottom:1px solid #d7e5cf;gap:5px 7px}
  .channel-dialog-paged #channelOtherConfig .channel-insert-table tbody tr:last-child{border-bottom:0}
  .channel-dialog-paged #channelOtherConfig .channel-insert-table tbody tr>*{width:auto;border:0;padding:0;min-width:0}
  .channel-dialog-paged #channelOtherConfig .channel-insert-table tbody th{grid-column:1/-1;font-weight:600;color:#3e662f}
  .channel-dialog-paged #channelOtherConfig .channel-insert-table tbody td:last-child{grid-column:1/-1}
  .channel-dialog-paged #channelOtherConfig .channel-insert-table td::before{display:block;content:attr(data-column-label);margin-bottom:3px;color:#526d46;font-size:11px;line-height:1.3}
  .channel-dialog-paged .channel-attachment-column .channel-config-grid{grid-template-columns:1fr}
  .channel-dialog-mms1 .channel-config-grid{grid-template-columns:minmax(0,1fr) 55px minmax(0,1fr)}
  .channel-dialog-mms1 .channel-insert-section .field:not(.channel-config-checkbox),.channel-dialog-mms1 .channel-mms1-encoding-section .field,.channel-dialog-mms1 .channel-upload-section .field{display:flex;flex-direction:column;align-items:stretch;gap:3px}
  .channel-dialog-paged .dialog-content{padding:7px}
}

@media (min-width:601px) and (max-width:780px){
  .channel-dialog-paged #channelOtherConfig .channel-other-transport .channel-config-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:380px){
  .channel-dialog-paged #channelOtherConfig .channel-other-transport .channel-config-grid{grid-template-columns:1fr}
}

