/* Complaints — E_Complaints design (desktop, non-managing roles) */
html:root.mr-desktop-ui #tab-complaints{--t-sf:#fff;--t-fg:#0A0A0A;--t-mu:#5F5F5F;--t-ln:#E4E4E4;--t-ln2:#D9D9D9;--t-ct:#8A8A8A;--t-pb:#0A0A0A;--t-pf:#fff;--t-okb:#DDF3E8;--t-okf:#1D6B43;--t-medb:#FDF0CF;--t-medf:#7A4F00;--t-hib:#FDE3E0;--t-hif:#A3261E}
html[data-theme="dark"]:root.mr-desktop-ui #tab-complaints{--t-sf:#151515;--t-fg:#F2F2F2;--t-mu:#A3A3A3;--t-ln:#262626;--t-ln2:#303030;--t-ct:#6E6E6E;--t-pb:#F2F2F2;--t-pf:#0A0A0A;--t-okb:#12301F;--t-okf:#7FD6A5;--t-medb:#3A2F12;--t-medf:#F0C25B;--t-hib:#401A18;--t-hif:#FF9C90}
.atc-page{display:flex;flex-direction:column;gap:24px}
.atc-sec{display:flex;flex-wrap:wrap;gap:20px;align-items:flex-start}
.atc-card{box-sizing:border-box;background:var(--t-sf);border:1px solid var(--t-ln2);border-radius:6px;color:var(--t-fg)}
.atc-form{flex:7 1 460px;min-width:0;padding:28px;display:flex;flex-direction:column;gap:22px}
.atc-side{flex:5 1 340px;min-width:0;padding:24px}
.atc-form fieldset{border:0;margin:0;padding:0;min-width:0}
.atc-form legend{padding:0;font-size:14px;font-weight:500;margin-bottom:10px}
.atc-opts{display:flex;flex-wrap:wrap;gap:12px}
.atc-opt{flex:1 1 200px;display:flex;align-items:center;gap:12px;height:50px;padding:0 16px;border:1px solid var(--t-ct);border-radius:4px;cursor:pointer;font-size:15px;box-sizing:border-box;background:transparent;color:var(--t-fg)}
.atc-opt input{appearance:auto;width:20px;height:20px;margin:0;accent-color:var(--t-fg)}
.atc-opt.is-on{background:var(--t-pb);color:var(--t-pf);border-color:var(--t-pb)}
.atc-opt.is-on input{accent-color:var(--t-pf)}
.atc-hint{margin:10px 0 0;font-size:13px;color:var(--t-mu)}
.atc-f{display:flex;flex-direction:column;gap:6px}
.atc-f label{font-size:14px;font-weight:500}
.atc-f input,.atc-f textarea{box-sizing:border-box;width:100%;border:1px solid var(--t-ct);border-radius:4px;background:var(--t-sf);color:var(--t-fg);font:15px inherit;font-family:inherit;padding:0 14px}
.atc-f input{height:48px}.atc-f textarea{padding:12px 14px;resize:vertical;min-height:150px}
.atc-send{align-self:flex-start;min-width:200px;height:50px;border:0;border-radius:4px;background:var(--t-pb);color:var(--t-pf);font:600 16px inherit;font-family:inherit;cursor:pointer}
.atc-send:disabled{opacity:.5}
.atc-side h2{margin:0 0 12px;padding-bottom:12px;border-bottom:1px solid var(--t-ln);font-size:16px;font-weight:600}
.atc-item{padding:12px 0;display:flex;flex-direction:column;gap:6px;cursor:pointer}
.atc-item+.atc-item{border-top:1px solid var(--t-ln)}
.atc-i1,.atc-i2{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 12px;align-items:center}
.atc-t{font-weight:600;font-size:14px}.atc-d{font-size:12px;color:var(--t-mu)}
.atc-kind{padding:1px 12px;border:1px solid var(--t-fg);border-radius:999px;font-size:12px}
.atc-st{padding:2px 10px;border-radius:4px;font-size:13px;font-weight:600}
.atc-st.is-ok{background:var(--t-okb);color:var(--t-okf)}.atc-st.is-wait{background:var(--t-medb);color:var(--t-medf)}.atc-st.is-bad{background:var(--t-hib);color:var(--t-hif)}
.atc-none{padding:20px 0;color:var(--t-mu);font-size:14px}
html:root.mr-desktop-ui #tab-complaints .atc-page{padding:0 !important}
html:root.mr-desktop-ui #tab-complaints .panel,html:root.mr-desktop-ui #tab-complaints .rd-complaints-host,html:root.mr-desktop-ui #tab-complaints .rd-complaints-host>*:has(.atc-page){background:transparent !important;border:0 !important;box-shadow:none !important;padding:0 !important}

/* ───────── Complaints & suggestions — desktop B&W redesign (manage view + chat panel) ───────── */
html:root.mr-desktop-ui.mr-desktop-ui #tab-complaints .rd-cmpl-board{--c-fg:#0a0a0a;--c-mu:#5f5f5f;--c-ln:#d9d9d9;--c-sf:#fff;padding:0;background:transparent}
html:root.mr-desktop-ui.mr-desktop-ui #tab-complaints .rd-cmpl-intro{font:500 11px 'Courier New',monospace;letter-spacing:.2em;color:#666;text-transform:uppercase;margin:0 0 4px;direction:ltr;text-align:right}
html:root.mr-desktop-ui.mr-desktop-ui #tab-complaints .rd-cmpl-intro::before{content:"COMPLAINTS & SUGGESTIONS";display:block;font:500 11px 'Courier New',monospace;letter-spacing:.2em;color:#666;margin-bottom:2px}
html:root.mr-desktop-ui.mr-desktop-ui #tab-complaints .rd-cmpl-metrics{gap:12px}
html:root.mr-desktop-ui.mr-desktop-ui #tab-complaints .rd-cmpl-metric{border:1px solid #d9d9d9!important;border-radius:6px!important;background:#fff!important;box-shadow:none!important}
html:root.mr-desktop-ui.mr-desktop-ui #tab-complaints .rd-cmpl-metric__ico{background:#0a0a0a!important;color:#fff!important;border-radius:4px!important}
html:root.mr-desktop-ui.mr-desktop-ui #tab-complaints .rd-cmpl-metric__val{font:600 26px 'Courier New',monospace!important;color:#0a0a0a!important}
html:root.mr-desktop-ui.mr-desktop-ui #tab-complaints .rd-cmpl-metric__lbl{color:#5f5f5f!important;font-weight:600}
html:root.mr-desktop-ui.mr-desktop-ui #tab-complaints :is(.rd-cmpl-search,.rd-cmpl-date-btn,.rd-cmpl-pdf-btn,.rd-cmpl-filter){border:1px solid #0a0a0a!important;border-radius:4px!important;background:#fff!important;color:#0a0a0a!important;box-shadow:none!important;height:40px}
html:root.mr-desktop-ui.mr-desktop-ui #tab-complaints .rd-cmpl-filter.active,html:root.mr-desktop-ui.mr-desktop-ui #tab-complaints .rd-cmpl-filter.is-active{background:#0a0a0a!important;color:#fff!important}
html:root.mr-desktop-ui.mr-desktop-ui #tab-complaints .rd-cmpl-pdf-btn i,html:root.mr-desktop-ui.mr-desktop-ui #tab-complaints .rd-cmpl-date-btn i{color:#0a0a0a!important}
html:root.mr-desktop-ui.mr-desktop-ui #tab-complaints .rd-cmpl-list{gap:0;border:1px solid #d9d9d9;border-radius:6px;background:#fff;overflow:hidden}
html:root.mr-desktop-ui.mr-desktop-ui #tab-complaints .rd-cmpl-card{border:0!important;border-bottom:1px solid #e4e4e4!important;border-radius:0!important;box-shadow:none!important;background:#fff!important;transition:background .12s}
html:root.mr-desktop-ui.mr-desktop-ui #tab-complaints .rd-cmpl-card:last-child{border-bottom:0!important}
html:root.mr-desktop-ui.mr-desktop-ui #tab-complaints .rd-cmpl-card:hover{background:#f6f6f6!important}
html:root.mr-desktop-ui.mr-desktop-ui #tab-complaints .rd-cmpl-card__icon{background:#0a0a0a!important;color:#fff!important;border-radius:4px!important}
html:root.mr-desktop-ui.mr-desktop-ui :is(#tab-complaints,#rdCmplOverlayHost) :is(.rd-cmpl-card__kind,.rd-cmpl-card__status,.rd-cmpl-panel__status,.rd-cmpl-status,.rd-cmpl-kind){background:#fff!important;color:#0a0a0a!important;border:1px solid #0a0a0a!important;border-radius:3px!important;font-weight:700}
html:root.mr-desktop-ui.mr-desktop-ui #tab-complaints .rd-cmpl-card__num{font:600 12px 'Courier New',monospace!important;color:#666!important;letter-spacing:.06em}
html:root.mr-desktop-ui.mr-desktop-ui #tab-complaints .rd-cmpl-card__sub{color:#5f5f5f!important}
/* chat panel */
html:root.mr-desktop-ui.mr-desktop-ui #rdCmplOverlayHost .rd-cmpl-overlay__scrim{background:rgba(0,0,0,.45)!important}
html:root.mr-desktop-ui.mr-desktop-ui #rdCmplOverlayHost .rd-cmpl-panel{background:#fff!important;border:0!important;border-inline-end:1px solid #0a0a0a!important;border-radius:0!important;box-shadow:0 0 40px rgba(0,0,0,.25)!important;color:#0a0a0a}
html:root.mr-desktop-ui.mr-desktop-ui #rdCmplOverlayHost .rd-cmpl-panel__head{padding-bottom:12px;margin-bottom:12px;border-bottom:2px solid #0a0a0a}
html:root.mr-desktop-ui.mr-desktop-ui #rdCmplOverlayHost .rd-cmpl-panel__title{font-size:20px!important;font-weight:800!important}
html:root.mr-desktop-ui.mr-desktop-ui #rdCmplOverlayHost :is(.rd-cmpl-panel__print-btn,.rd-cmpl-panel__close){border:1px solid #0a0a0a!important;border-radius:4px!important;background:#fff!important;color:#0a0a0a!important;box-shadow:none!important}
html:root.mr-desktop-ui.mr-desktop-ui #rdCmplOverlayHost .rd-cmpl-panel__desc{border:1px solid #d9d9d9!important;border-radius:6px!important;background:#fafafa!important}
html:root.mr-desktop-ui.mr-desktop-ui #rdCmplOverlayHost .rd-cmpl-thread{display:flex;flex-direction:column;gap:10px;padding:4px 0}
html:root.mr-desktop-ui.mr-desktop-ui #rdCmplOverlayHost .rd-cmpl-thread-bubble{max-width:86%;border:1px solid #d9d9d9!important;border-radius:10px 10px 10px 2px!important;background:#fff!important;box-shadow:none!important;padding:9px 12px}
html:root.mr-desktop-ui.mr-desktop-ui #rdCmplOverlayHost .rd-cmpl-thread-msg{display:flex}
html:root.mr-desktop-ui.mr-desktop-ui #rdCmplOverlayHost .rd-cmpl-thread-bubble.is-admin{margin-inline-start:auto;background:#0a0a0a!important;color:#fff!important;border-color:#0a0a0a!important;border-radius:10px 10px 2px 10px!important}
html:root.mr-desktop-ui.mr-desktop-ui #rdCmplOverlayHost .rd-cmpl-thread-bubble.is-admin :is(.rd-cmpl-thread-author,.rd-cmpl-thread-time,.rd-cmpl-thread-text,.rd-cmpl-thread-author-ic){color:#fff!important}
html:root.mr-desktop-ui.mr-desktop-ui #rdCmplOverlayHost .rd-cmpl-thread-meta{font-size:11px;opacity:.85}
html:root.mr-desktop-ui.mr-desktop-ui #rdCmplOverlayHost .rd-cmpl-textarea{border:1px solid #0a0a0a!important;border-radius:6px!important;background:#fff!important;color:#0a0a0a!important;min-height:44px}
html:root.mr-desktop-ui.mr-desktop-ui #rdCmplOverlayHost .rd-cmpl-btn{border-radius:4px!important;box-shadow:none!important;font-weight:700}
html:root.mr-desktop-ui.mr-desktop-ui #rdCmplOverlayHost .rd-cmpl-btn--primary{background:#0a0a0a!important;color:#fff!important;border:1px solid #0a0a0a!important}
html:root.mr-desktop-ui.mr-desktop-ui #rdCmplOverlayHost .rd-cmpl-btn--success{background:#fff!important;color:#0a0a0a!important;border:1px solid #0a0a0a!important}
html:root.mr-desktop-ui.mr-desktop-ui #rdCmplOverlayHost .rd-cmpl-attach{border:1px solid #0a0a0a!important;border-radius:4px!important;background:#fff!important;color:#0a0a0a!important}
/* dark */
html[data-theme="dark"]:root.mr-desktop-ui.mr-desktop-ui #tab-complaints .rd-cmpl-metric,html[data-theme="dark"]:root.mr-desktop-ui.mr-desktop-ui #tab-complaints .rd-cmpl-card,html[data-theme="dark"]:root.mr-desktop-ui.mr-desktop-ui #tab-complaints .rd-cmpl-list{background:#141414!important;border-color:#3a3a3a!important}
html[data-theme="dark"]:root.mr-desktop-ui.mr-desktop-ui #tab-complaints .rd-cmpl-card:hover{background:#1d1d1d!important}
html[data-theme="dark"]:root.mr-desktop-ui.mr-desktop-ui #tab-complaints .rd-cmpl-metric__val{color:#f2f2f2!important}
html[data-theme="dark"]:root.mr-desktop-ui.mr-desktop-ui #tab-complaints :is(.rd-cmpl-metric__ico,.rd-cmpl-card__icon){background:#f2f2f2!important;color:#0a0a0a!important}
html[data-theme="dark"]:root.mr-desktop-ui.mr-desktop-ui #tab-complaints :is(.rd-cmpl-search,.rd-cmpl-date-btn,.rd-cmpl-pdf-btn,.rd-cmpl-filter){background:#141414!important;color:#f2f2f2!important;border-color:#f2f2f2!important}
html[data-theme="dark"]:root.mr-desktop-ui.mr-desktop-ui #tab-complaints .rd-cmpl-filter.active,html[data-theme="dark"]:root.mr-desktop-ui.mr-desktop-ui #tab-complaints .rd-cmpl-filter.is-active{background:#f2f2f2!important;color:#0a0a0a!important}
html[data-theme="dark"]:root.mr-desktop-ui.mr-desktop-ui :is(#tab-complaints,#rdCmplOverlayHost) :is(.rd-cmpl-card__kind,.rd-cmpl-card__status,.rd-cmpl-status,.rd-cmpl-kind){background:#141414!important;color:#f2f2f2!important;border-color:#f2f2f2!important}
html[data-theme="dark"]:root.mr-desktop-ui.mr-desktop-ui #rdCmplOverlayHost .rd-cmpl-panel{background:#141414!important;color:#f2f2f2;border-color:#f2f2f2!important}
html[data-theme="dark"]:root.mr-desktop-ui.mr-desktop-ui #rdCmplOverlayHost .rd-cmpl-panel__head{border-bottom-color:#f2f2f2}
html[data-theme="dark"]:root.mr-desktop-ui.mr-desktop-ui #rdCmplOverlayHost .rd-cmpl-thread-bubble{background:#1a1a1a!important;border-color:#3a3a3a!important;color:#f2f2f2}
html[data-theme="dark"]:root.mr-desktop-ui.mr-desktop-ui #rdCmplOverlayHost .rd-cmpl-thread-bubble.is-admin{background:#f2f2f2!important;color:#0a0a0a!important}
html[data-theme="dark"]:root.mr-desktop-ui.mr-desktop-ui #rdCmplOverlayHost .rd-cmpl-thread-bubble.is-admin :is(.rd-cmpl-thread-author,.rd-cmpl-thread-time,.rd-cmpl-thread-text,.rd-cmpl-thread-author-ic){color:#0a0a0a!important}
html[data-theme="dark"]:root.mr-desktop-ui.mr-desktop-ui #rdCmplOverlayHost .rd-cmpl-textarea{background:#141414!important;color:#f2f2f2!important;border-color:#f2f2f2!important}
html[data-theme="dark"]:root.mr-desktop-ui.mr-desktop-ui #rdCmplOverlayHost .rd-cmpl-btn--primary{background:#f2f2f2!important;color:#0a0a0a!important;border-color:#f2f2f2!important}
html[data-theme="dark"]:root.mr-desktop-ui.mr-desktop-ui #rdCmplOverlayHost :is(.rd-cmpl-btn--success,.rd-cmpl-attach,.rd-cmpl-panel__print-btn,.rd-cmpl-panel__close){background:#141414!important;color:#f2f2f2!important;border-color:#f2f2f2!important}
html[data-theme="dark"]:root.mr-desktop-ui.mr-desktop-ui #rdCmplOverlayHost .rd-cmpl-panel__desc{background:#1a1a1a!important;border-color:#3a3a3a!important}
html:root.mr-desktop-ui.mr-desktop-ui #tab-complaints :is(.rd-cmpl-metric__ico,.rd-cmpl-card__icon) :is(i,svg){color:#fff!important;fill:currentColor}
html[data-theme="dark"]:root.mr-desktop-ui.mr-desktop-ui #tab-complaints :is(.rd-cmpl-metric__ico,.rd-cmpl-card__icon) :is(i,svg){color:#0a0a0a!important}
html:root.mr-desktop-ui.mr-desktop-ui #tab-complaints .rd-cmpl-search input{border:0!important;box-shadow:none!important;background:transparent!important;height:auto}
html:root.mr-desktop-ui.mr-desktop-ui #tab-complaints .rd-cmpl-intro::before{content:"COMPLAINTS"}
html:root.mr-desktop-ui.mr-desktop-ui #tab-complaints .rd-cmpl-intro{direction:rtl;text-align:right;font:500 12px inherit;letter-spacing:0;color:#5f5f5f}
html:root.mr-desktop-ui.mr-desktop-ui #tab-complaints .rd-cmpl-search{border:0!important;background:transparent!important;padding:0!important}
html:root.mr-desktop-ui.mr-desktop-ui #tab-complaints .rd-cmpl-search input{border:1px solid #0a0a0a!important;border-radius:4px!important;background:#fff!important;height:40px!important}
html[data-theme="dark"]:root.mr-desktop-ui.mr-desktop-ui #tab-complaints .rd-cmpl-search input{background:#141414!important;border-color:#f2f2f2!important;color:#f2f2f2!important}
html:root.mr-desktop-ui.mr-desktop-ui #tab-complaints .rd-cmpl-intro::before{content:none!important;display:none!important}

/* topic line (all layouts) */
.rd-cmpl-card__topic,.cp-card__topic{margin-top:4px;font-size:12.5px;line-height:1.5;color:#3a3a3a;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}

/* ── Attachments in complaints (new/reply): same B&W look as new-ticket files ── */
html:root.mr-desktop-ui.mr-desktop-ui :is(#cpFileArea,#cprFileArea){display:flex;flex-direction:column;gap:8px;margin:8px 0 4px;padding:0!important;background:transparent!important;border:0!important}
html:root.mr-desktop-ui.mr-desktop-ui :is(#cpFileArea,#cprFileArea):empty{display:none}
html:root.mr-desktop-ui.mr-desktop-ui :is(#cpFileArea,#cprFileArea) .file-item{display:block;padding:0!important;margin:0!important;border:1px solid #0a0a0a!important;border-radius:4px!important;background:#fff!important;box-shadow:none!important;overflow:hidden}
html:root.mr-desktop-ui.mr-desktop-ui :is(#cpFileArea,#cprFileArea) .file-item-content{display:flex;align-items:center;gap:12px;min-height:46px;padding:6px 12px;color:#0a0a0a}
html:root.mr-desktop-ui.mr-desktop-ui :is(#cpFileArea,#cprFileArea) .file-item-content>i{color:#0a0a0a!important;font-size:16px}
html:root.mr-desktop-ui.mr-desktop-ui :is(#cpFileArea,#cprFileArea) .file-item-content>span:not(.file-item-status){flex:1;min-width:0;font-size:14px;color:#0a0a0a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html:root.mr-desktop-ui.mr-desktop-ui :is(#cpFileArea,#cprFileArea) .file-item-status{font-size:12px!important;color:#6b6b6b!important}
html:root.mr-desktop-ui.mr-desktop-ui :is(#cpFileArea,#cprFileArea) .file-item-content button{flex:none;height:32px;padding:0 12px;border:1px solid #0a0a0a!important;border-radius:4px!important;background:transparent!important;color:#0a0a0a!important;font:inherit;font-size:13px;font-weight:600;cursor:pointer;box-shadow:none!important}
html:root.mr-desktop-ui.mr-desktop-ui :is(#cpFileArea,#cprFileArea) .file-item-content button:hover{background:#f2f2f2!important}
html[data-theme="dark"]:root.mr-desktop-ui.mr-desktop-ui :is(#cpFileArea,#cprFileArea) .file-item{background:#141414!important;border-color:#f2f2f2!important}
html[data-theme="dark"]:root.mr-desktop-ui.mr-desktop-ui :is(#cpFileArea,#cprFileArea) :is(.file-item-content,.file-item-content>i,.file-item-content>span:not(.file-item-status)){color:#f2f2f2!important}
html[data-theme="dark"]:root.mr-desktop-ui.mr-desktop-ui :is(#cpFileArea,#cprFileArea) .file-item-content button{border-color:#f2f2f2!important;color:#f2f2f2!important}
html[data-theme="dark"]:root.mr-desktop-ui.mr-desktop-ui :is(#cpFileArea,#cprFileArea) .file-item-content button:hover{background:#262626!important}
