/* RYR redesign overlay v1 */
:root{--rd-bg:#f3f5f9;--rd-card:#fff;--rd-line:#e4e8f0;--rd-text:#17213a;--rd-mute:#6b7690;--rd-blue:#1d6fe0;--rd-navy:#0e2a5c;--rd-radius:12px}
body{background:var(--rd-bg)!important;color:var(--rd-text)}
.ryr-tabs{display:none!important}
/* sidebar */
.sidebar{background:#fff!important;border-right:1px solid var(--rd-line)!important;color:var(--rd-text)!important}
.sidebar .brand-title{color:var(--rd-navy)!important;font-weight:800!important;font-size:17px!important;letter-spacing:-.01em}
.sidebar .brand-sub{color:var(--rd-mute)!important;font-size:11px!important}
.sidebar .nav-section{color:#97a1b6!important;font-size:10.5px!important;font-weight:700!important;letter-spacing:.09em;text-transform:uppercase;margin:16px 14px 6px!important}
.sidebar .nav-item{display:flex!important;align-items:center;gap:11px;color:#46516b!important;background:transparent!important;border-radius:9px!important;font-weight:600!important;font-size:14px!important;padding:9px 12px!important;margin:1px 8px!important;width:calc(100% - 16px);text-align:left;border:0!important}
.sidebar .nav-item::before{display:none!important}
.sidebar .nav-item:hover{background:#f1f4fa!important}
.sidebar .nav-item.active{background:#e8f0fd!important;color:var(--rd-blue)!important}
.sidebar .nav-item.active .ri{color:var(--rd-blue)}
/* header + filter bar */
.top{background:#fff!important;border-bottom:1px solid var(--rd-line)!important;box-shadow:none!important;min-height:60px}
.top .title{font-size:19px!important;font-weight:800!important;color:var(--rd-text)!important}
.top .title::before{display:none!important}
.ribbon{background:transparent!important;border:0!important;padding:14px 28px 0!important;box-shadow:none!important}
.ribbon .actions{display:none!important}
.ribbon .select{background:#fff;border:1px solid var(--rd-line);border-radius:9px;padding:9px 12px;font-weight:600;min-width:230px}
.period{background:#fff!important;border:1px solid var(--rd-line)!important;border-radius:9px!important;padding:3px!important}
.period .period-btn{border-radius:7px!important}
.period .period-btn.active{background:#e8f0fd!important;color:var(--rd-blue)!important}
.content{padding:6px 28px 40px!important}
/* new menu */
.rd-new{position:relative;margin-right:6px}
.rd-new-btn{background:var(--rd-blue)!important;color:#fff!important;border:0!important;font-weight:700!important;border-radius:9px!important;padding:9px 16px!important}
.rd-menu{position:absolute;right:0;top:44px;background:#fff;border:1px solid var(--rd-line);border-radius:12px;box-shadow:0 14px 40px rgba(14,42,92,.18);padding:6px;min-width:200px;z-index:60}
.rd-menu.hidden{display:none}
.rd-menu button{display:block;width:100%;text-align:left;background:none;border:0;padding:10px 12px;border-radius:8px;font-weight:600;font-size:14px;color:var(--rd-text);cursor:pointer}
.rd-menu button:hover{background:#eef3fc;color:var(--rd-blue)}
/* dashboard */
.rd-dash{display:flex;flex-direction:column;gap:16px;padding-top:14px}
.rd-kpis{display:grid;grid-template-columns:1.35fr repeat(3,1fr);gap:14px}
.rd-kpi{background:var(--rd-card);border:1px solid var(--rd-line);border-radius:var(--rd-radius);padding:16px 18px;box-shadow:0 1px 2px rgba(14,42,92,.04)}
.rd-kpi.hero{background:linear-gradient(135deg,#0e2a5c,#1d4fa8);color:#fff;border:0;grid-row:span 1}
.rd-kl{font-size:12px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--rd-mute)}
.hero .rd-kl{color:#b8cdf2}
.rd-kv{font-size:25px;font-weight:800;margin-top:6px;letter-spacing:-.02em;white-space:nowrap}
.hero .rd-kv{font-size:30px}
.rd-ks{font-size:12.5px;color:var(--rd-mute);margin-top:4px}
.hero .rd-ks{color:#b8cdf2}
.rd-ks select{width:100%;font-size:12px;padding:5px 6px;border:1px solid var(--rd-line);border-radius:7px;background:#f7f9fc}
.rd-row{display:grid;grid-template-columns:1fr 360px;gap:16px}
.rd-w2{min-width:0}
.rd-card{background:var(--rd-card);border:1px solid var(--rd-line);border-radius:var(--rd-radius);padding:18px 20px;box-shadow:0 1px 2px rgba(14,42,92,.04);min-width:0}
.rd-col{display:flex;flex-direction:column;gap:16px;min-width:0}
.rd-ch{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;font-size:15px}
.rd-leg{font-size:12.5px;color:var(--rd-mute);display:flex;align-items:center;gap:6px}.rd-leg i{width:10px;height:10px;border-radius:3px;display:inline-block;margin-left:8px}.rd-leg small{margin-left:12px}
.rd-grid{stroke:#e8ecf3}.rd-ax{font-size:11px;fill:#8791a8}.rd-dn{font-size:19px;font-weight:800;fill:#17213a}
.rd-dnwrap{display:flex;align-items:center;gap:18px}.rd-dleg{flex:1;font-size:13px}.rd-dleg div{display:flex;align-items:center;gap:8px;padding:7px 0;border-bottom:1px solid #f0f2f7}.rd-dleg i{width:10px;height:10px;border-radius:3px}.rd-dleg b{margin-left:auto}
.rd-t{width:100%;border-collapse:collapse;font-size:13.5px}
.rd-t th{text-align:left;font-size:11.5px;color:var(--rd-mute);font-weight:700;text-transform:uppercase;letter-spacing:.04em;padding:9px 10px;background:#f7f9fc;border-bottom:1px solid var(--rd-line)}
.rd-t td{padding:11px 10px;border-bottom:1px solid #eef1f6;vertical-align:middle}
.rd-t td small,.rd-att small{display:block;color:var(--rd-mute);font-size:12px;margin-top:2px;font-weight:400}
.rd-t .money,.rd-t th.money{text-align:right;font-variant-numeric:tabular-nums}
.rd-click tbody tr{cursor:pointer}.rd-click tbody tr:hover{background:#f5f8fe}
.rd-pn{font-weight:700}
.rd-pos{color:#0f8a5f;font-weight:700}
.rd-tag{display:inline-block;padding:3px 10px;border-radius:20px;font-size:12px;font-weight:700;background:#eef2f9;color:#3b4a6b;white-space:nowrap}
.rd-tag.ok{background:#e2f5ec;color:#0f8a5f}.rd-tag.warn{background:#fdf0d9;color:#a6690a}.rd-tag.bad{background:#fdecea;color:#c0392b}
.rd-ltv{height:6px;background:#e8ecf3;border-radius:4px;width:100%}.rd-ltv i{display:block;height:6px;border-radius:4px}
.rd-att{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #eef1f6;font-size:13.5px;cursor:default}
.rd-att[data-go]{cursor:pointer}.rd-att[data-go]:hover{background:#f7f9fd}
.rd-att .rd-go{margin-left:auto;color:#9aa5bb;font-size:18px}
.rd-link{background:none;border:0;color:var(--rd-blue);font-weight:700;font-size:13px;cursor:pointer}
.rd-count{background:#fdecea;color:#c0392b;font-weight:800;font-size:12px;border-radius:12px;padding:2px 9px}
.rd-empty{color:var(--rd-mute);padding:12px 0;font-size:13.5px}
@media(max-width:1100px){.rd-kpis{grid-template-columns:repeat(2,1fr)}.rd-row{grid-template-columns:1fr}}
@media(max-width:700px){.content{padding:6px 12px 40px!important}.rd-kv{font-size:21px}.rd-dnwrap{flex-direction:column}}

.sidebar .nav-item .ni{display:inline-flex;color:#7f8aa3}.sidebar .nav-item.active .ni{color:var(--rd-blue)}
.rd-kpis{grid-template-columns:repeat(4,1fr)}.rd-kpi.hero{background:linear-gradient(135deg,#0e2a5c,#1d4fa8)}
/* generic polish for all existing pages */
.panel{background:#fff!important;border:1px solid var(--rd-line)!important;border-radius:12px!important;box-shadow:0 1px 2px rgba(14,42,92,.04)!important;overflow:hidden}
.panel-head{padding:16px 20px!important;border-bottom:1px solid var(--rd-line)!important;background:#fff!important}
.panel-title{font-size:15px!important;font-weight:800!important;color:var(--rd-text)!important}
.table-wrap{max-height:none!important;overflow-x:auto!important;overflow-y:visible!important}
.table-wrap table,.panel table{width:100%;border-collapse:collapse}
.table-wrap th,.panel table th{background:#f7f9fc!important;color:var(--rd-mute)!important;font-size:11.5px!important;font-weight:700!important;text-transform:uppercase;letter-spacing:.04em;padding:10px 12px!important;border-bottom:1px solid var(--rd-line)!important;position:static!important}
.table-wrap td,.panel table td{padding:12px!important;border-bottom:1px solid #eef1f6!important;font-size:13.5px}
.table-wrap tbody tr:hover{background:#f5f8fe}
.table-wrap td:last-child .btn{display:inline-block;margin:0 4px 0 0}
.btn{border-radius:8px!important;border:1px solid #d3dae6!important;background:#fff!important;color:var(--rd-text)!important;font-weight:600!important}
.btn.primary{background:var(--rd-blue)!important;color:#fff!important;border-color:var(--rd-blue)!important}
.btn.small{padding:5px 10px!important;font-size:12.5px!important}
.btn.danger,.btn.small.danger{color:#c0392b!important;background:#fff!important}
.card{border-radius:12px!important;border:1px solid var(--rd-line)!important;background:#fff!important}
.grid.kpis .card{box-shadow:0 1px 2px rgba(14,42,92,.04)}
.k-label{font-size:12px!important;font-weight:700!important;color:var(--rd-mute)!important;text-transform:uppercase;letter-spacing:.05em}
.k-value{font-weight:800!important}
select,input,textarea{border-radius:8px}
.modal-card{border-radius:14px!important}

.rd-strip{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin:14px 0}
.rd-strip .rd-kv{font-size:21px}
.table-wrap td,.panel table td{padding:9px 12px!important}
.table-wrap td:first-child{min-width:150px}
@media(max-width:900px){.rd-strip{grid-template-columns:repeat(2,1fr)}}

.sidebar .brand-sub{display:none!important}
.rd-nav{padding:6px 10px}
.rd-ni{display:flex;align-items:center;gap:12px;width:100%;padding:11px 12px;margin:2px 0;border:0;background:transparent;border-radius:10px;font-size:14.5px;font-weight:600;color:#46516b;cursor:pointer;text-align:left}
.rd-ni .rd-nic{display:inline-flex;color:#7f8aa3}
.rd-ni:hover{background:#f1f4fa}.rd-ni.active{background:#e8f0fd;color:var(--rd-blue)}.rd-ni.active .rd-nic{color:var(--rd-blue)}
.rd-nb{margin-left:auto;background:#f0a23a;color:#fff;border-radius:10px;font-size:11px;font-weight:800;padding:1px 7px}
.rd-nb:empty{display:none}
.rd-tabbar{background:#fff;border-bottom:1px solid var(--rd-line);padding:12px 28px 0;display:flex;align-items:flex-end;gap:28px;flex-wrap:wrap}
.rd-hubtitle{font-size:20px;font-weight:800;padding-bottom:10px;color:var(--rd-text)}
.rd-tabs{display:flex;gap:4px}
.rd-tab{background:none;border:0;padding:10px 14px;font-size:14px;font-weight:600;color:var(--rd-mute);border-bottom:3px solid transparent;cursor:pointer}
.rd-tab:hover{color:var(--rd-text)}.rd-tab.active{color:var(--rd-blue);border-bottom-color:var(--rd-blue)}

.rd-hint{color:var(--rd-mute);font-size:12.5px;padding-top:10px}
.rd-back{margin:12px 0 -4px}
.rd-phead{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin:8px 0 14px;flex-wrap:wrap}
.rd-ptitle{font-size:24px;font-weight:800;letter-spacing:-.02em}.rd-psub{color:var(--rd-mute);font-size:13.5px;margin-top:6px}.rd-pact{display:flex;gap:8px}
.rd-k4{margin-bottom:0}
#properties>.rd-strip,#properties>.rd-card,#properties>.rd-row,#properties>.rd-kpis{margin-bottom:16px}

.rd-tc{background:#f0a23a;color:#fff;border-radius:10px;font-size:11px;font-weight:800;padding:1px 7px;margin-left:4px}

@media(max-width:700px){
.ryr-actions-toggle{display:none!important}
.top .title{display:none!important}
.rd-hubtitle{display:none}
.rd-tabbar{padding:6px 10px 0;gap:0}
.rd-tabs{overflow-x:auto;white-space:nowrap;max-width:100%;scrollbar-width:none}
.rd-tab{white-space:nowrap;padding:10px 12px}
.rd-plist th:nth-child(2),.rd-plist td:nth-child(2),.rd-plist th:nth-child(3),.rd-plist td:nth-child(3),.rd-plist th:nth-child(5),.rd-plist td:nth-child(5),.rd-plist th:nth-child(6),.rd-plist td:nth-child(6),.rd-plist th:nth-child(7),.rd-plist td:nth-child(7),.rd-plist th:nth-child(9),.rd-plist td:nth-child(9){display:none}
.rd-plist th:nth-child(4),.rd-plist td:nth-child(4),.rd-plist th:nth-child(8),.rd-plist td:nth-child(8){display:table-cell}
.rd-phead{flex-direction:column}.rd-ptitle{font-size:19px}
.rd-pact{width:100%}.rd-pact .btn{flex:1}
}

.rd-rep{max-width:1100px}
.rd-rep-h{margin:6px 0 18px}.rd-sub{color:#64748b;font-size:14px;margin-top:4px}
.rd-rep-sec{margin-bottom:22px}
.rd-rep-st{font-weight:700;font-size:15px;color:#0f1f3d;margin-bottom:10px;display:flex;align-items:baseline;gap:10px}
.rd-rep-st span{font-weight:400;font-size:13px;color:#64748b}
.rd-rep-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px}
.rd-rep-card{display:flex;flex-direction:column;justify-content:space-between;gap:12px;min-height:120px}
.rd-rep-card h3{margin:0 0 4px;font-size:15px}.rd-rep-card p{margin:0;color:#64748b;font-size:13px}
.rd-rep-card .btn{align-self:flex-start}
@media(max-width:700px){.rd-rep-grid{grid-template-columns:1fr}.rd-rep-card{min-height:0}.rd-rep-st{flex-direction:column;gap:0}}

body[data-rdpage=settings] .ribbon .ribbon-left,body[data-rdpage=settings] .ribbon>*:not(.rd-keep),body[data-rdpage=audit] .ribbon>*:not(.rd-keep),body[data-rdpage=help] .ribbon>*:not(.rd-keep){display:none!important}
body[data-rdpage=settings] .ribbon,body[data-rdpage=audit] .ribbon,body[data-rdpage=help] .ribbon{min-height:0;padding:0;border:0}
body[data-rdpage=settings] .ribbon,body[data-rdpage=audit] .ribbon,body[data-rdpage=help] .ribbon{display:none!important}
body[data-rdpage=settings] .page#settings{padding-top:16px}

body.rd-hide .rd-m{filter:blur(7px);user-select:none}
#rdEye.on{background:#e8f0fe;color:#1a56db}
.rd-sw{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:6px 0;cursor:pointer}
.rd-sw small{display:block;color:#64748b;font-weight:400;margin-top:3px;max-width:520px}
.rd-sw input{width:22px;height:22px;flex:none}
body.rd-hide svg text{filter:blur(5px)}
body.rd-hide .rd-donut-c,body.rd-hide .rd-dc{filter:blur(7px)}
@media(max-width:1100px){.rd-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}.rd-kpi.hero{grid-column:1/-1}}
@media(max-width:700px){.rd-kpis{gap:10px}.rd-kv{font-size:19px!important}.rd-kpi{min-width:0;padding:14px}.rd-kpi.hero .rd-kv{font-size:26px!important}}

/* SKIN E - iOS native: grouped inset, SF type, system blue, large titles */
:root{--rd-bg:#f2f2f7;--rd-card:#fff;--rd-line:#e5e5ea;--rd-text:#000;--rd-mute:#8e8e93;--rd-blue:#007aff;--rd-navy:#000;--rd-radius:14px}
html,body{background:#f2f2f7!important;color:#000!important;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",system-ui,sans-serif!important}
.main,.content,.page{background:transparent!important}
.sidebar{background:rgba(249,249,251,.92)!important;border-right:1px solid #d9d9de!important;backdrop-filter:blur(20px)}
.sidebar .brand-title{color:#000!important;font-size:17px!important;font-weight:700!important}
.rd-ni{color:#000!important;border-radius:10px!important;font-size:15px!important;font-weight:400!important;padding:10px 12px!important}
.rd-ni .rd-nic{color:#007aff!important}
.rd-ni:hover{background:#e9e9ee!important}
.rd-ni.active{background:#007aff!important;color:#fff!important;font-weight:600!important}
.rd-ni.active .rd-nic{color:#fff!important}
.rd-nb,.rd-tc{background:#ff3b30;color:#fff}
.top{background:rgba(242,242,247,.9)!important;border:0!important;backdrop-filter:blur(20px)}
.ryr-gtxt{font-size:15px!important;color:#8e8e93!important}.ryr-gtxt b{color:#000!important}
.rd-tabbar{background:#f2f2f7!important;border:0!important;flex-direction:column;align-items:flex-start!important;gap:6px!important;padding-bottom:10px}
.rd-hubtitle{font-size:34px!important;font-weight:800!important;letter-spacing:-.02em;padding-bottom:0!important}
.rd-tabs{background:#e3e3e8;border-radius:9px;padding:2px;gap:0}
.rd-tab{border:0!important;border-radius:7px!important;padding:6px 14px!important;font-size:13.5px!important;font-weight:500!important;color:#000!important}
.rd-tab.active{background:#fff!important;color:#000!important;font-weight:600!important;box-shadow:0 1px 3px rgba(0,0,0,.15)}
.rd-kpi,.rd-card,.panel,.card{background:#fff!important;border:0!important;border-radius:14px!important;box-shadow:none!important}
.rd-kpi{padding:14px 16px!important}
.rd-kpi.hero{background:#007aff!important;color:#fff!important}
.rd-kpi.hero .rd-kl,.rd-kpi.hero .rd-ks{color:rgba(255,255,255,.8)!important}
.rd-kl,.k-label{color:#8e8e93!important;font-size:13px!important;text-transform:none!important;letter-spacing:0!important;font-weight:500!important}
.rd-kv,.k-value{font-size:28px!important;font-weight:700!important;letter-spacing:-.02em!important}
.rd-ks,.rd-psub,.rd-sub,.rd-hint,.rd-leg,.rd-rep-card p{color:#8e8e93!important}
.panel-head{background:transparent!important;border:0!important;padding:16px 18px 4px!important}
.panel-title,.rd-ch b{font-size:20px!important;font-weight:700!important}
.rd-t th,.table-wrap th,.panel table th{background:transparent!important;color:#8e8e93!important;font-size:12px!important;text-transform:uppercase;letter-spacing:.02em!important;font-weight:500!important;border-bottom:.5px solid #d1d1d6!important}
.rd-t td,.table-wrap td,.panel table td,.rd-att,.rd-dleg div{border-bottom:.5px solid #e5e5ea!important}
.rd-click tbody tr:hover,.table-wrap tbody tr:hover,.rd-att[data-go]:hover{background:#f2f2f7!important}
.btn{background:#e9f2ff!important;color:#007aff!important;border:0!important;border-radius:999px!important;font-weight:600!important}
.btn.primary,.rd-new-btn{background:#007aff!important;color:#fff!important;border-radius:999px!important}
.btn.danger,.btn.small.danger{background:#ffeceb!important;color:#ff3b30!important}
.rd-link{color:#007aff!important;font-weight:500!important}
.rd-tag{background:#e9e9ee;color:#3c3c43;border-radius:7px;font-weight:600}
.rd-tag.ok{background:#e0f7e6;color:#1f9d3f}.rd-tag.warn{background:#fff1d6;color:#c77700}.rd-tag.bad{background:#ffeceb;color:#ff3b30}
.rd-pos{color:#1f9d3f!important}.rd-count{background:#ff3b30;color:#fff}
.rd-ltv{background:#e9e9ee}.rd-ltv i[style*="1d6fe0"]{background:#007aff!important}
select,input,textarea{background:#f2f2f7!important;border:0!important;border-radius:10px!important}
.ribbon .select,.period{background:#e3e3e8!important;border:0!important;border-radius:9px!important}
.period .period-btn{border-radius:7px!important}.period .period-btn.active{background:#fff!important;color:#000!important;box-shadow:0 1px 3px rgba(0,0,0,.15)}
.rd-menu,.modal-card{background:rgba(255,255,255,.96)!important;border:0!important;border-radius:16px!important;box-shadow:0 18px 50px rgba(0,0,0,.2)!important}
.rd-menu button:hover{background:#f2f2f7!important;color:#007aff!important}
.rd-grid{stroke:#ececf0!important}.rd-ax{fill:#8e8e93!important}
[fill="#1d6fe0"]{fill:#007aff!important}[stroke="#1d6fe0"]{stroke:#007aff!important}
[fill="#f0a23a"]{fill:#ff9f0a!important}[stroke="#f0a23a"]{stroke:#ff9f0a!important}
[fill="#b9c4d6"]{fill:#c7c7cc!important}[stroke="#b9c4d6"]{stroke:#c7c7cc!important}
.rd-leg i[style*="1d6fe0"],.rd-dleg i[style*="1d6fe0"]{background:#007aff!important;border-radius:50%!important}
.rd-leg i[style*="f0a23a"],.rd-dleg i[style*="f0a23a"]{background:#ff9f0a!important;border-radius:50%!important}
.account-card{background:#fff!important;border:0!important;border-radius:12px!important}
.account-avatar{background:#007aff!important;color:#fff!important;border-radius:50%!important}
.brand{background:transparent!important;border:0!important;box-shadow:none!important}
#rdEye.on{background:#e9f2ff!important;color:#007aff!important}
@media(max-width:700px){.rd-hubtitle{display:block!important;font-size:28px!important}.rd-kv{font-size:22px!important}.rd-kpi.hero .rd-kv{font-size:30px!important}}


.rd-kpi,.rd-card,.panel,.card{border-radius:30px!important}.account-card{border-radius:26px!important}
.rd-kpi{padding:18px 22px!important}
.panel-head{padding:20px 24px 6px!important}
.btn,.btn.primary,.rd-new-btn,.btn.danger{border-radius:999px!important}
.rd-ni,.rd-ni.active{border-radius:999px!important;padding-left:16px!important}
select,input,textarea,.ribbon .select,.period,.rd-tabs,.rd-tab,.period .period-btn,.rd-tag{border-radius:999px!important}
.rd-menu,.modal-card{border-radius:28px!important}
.rd-kpi select{width:100%!important;padding-left:14px!important;padding-right:28px!important}
.rd-kpi select{max-width:100%!important;box-sizing:border-box!important}
@media(max-width:700px){.tx-stat-card{flex-direction:column!important;align-items:flex-start!important;gap:2px!important;min-width:0!important;padding:10px 12px!important}.tx-stat-card *{min-width:0!important;max-width:100%!important}.tx-stat-card [class*=value],.tx-stat-card strong,.tx-stat-card b{font-size:17px!important;white-space:normal!important;overflow-wrap:anywhere}}
@media(max-width:700px){.tx-stat-card{flex-wrap:wrap!important;gap:0 8px!important}.tx-stat-card>*{flex:0 0 100%!important}.tx-stat-card [class*=value],.tx-stat-card strong,.tx-stat-card b{font-size:16px!important;white-space:nowrap!important;overflow-wrap:normal!important}}
@media(max-width:700px){
.rd-tabs{padding:3px!important;gap:0!important;display:flex!important;width:100%!important;box-sizing:border-box}
.rd-tab{padding:7px 4px!important;font-size:12.5px!important;flex:1 1 auto;text-align:center}
.tx-card,.tx-card *{max-width:100%!important;box-sizing:border-box}
.tx-card-foot{flex-wrap:wrap!important;justify-content:flex-end!important;gap:8px!important}
.tx-card-top{flex-wrap:wrap!important;gap:6px!important}
.tx-card-chips{flex-wrap:wrap!important}
.rd-t th:nth-child(3),.rd-t td:nth-child(3){display:none}
}
@media(max-width:700px){
.rd-ch{flex-wrap:wrap!important;gap:4px 12px!important}
.rd-ch>b{flex:1 1 100%;font-size:16px}
.rd-ch>*:not(b){font-size:12px!important}
.rd-dn{font-size:15px!important}
/* dashboard recent table -> rows */
.rd-t:not(.rd-plist) thead{display:none}
.rd-t:not(.rd-plist),.rd-t:not(.rd-plist) tbody{display:block;width:100%}
.rd-t:not(.rd-plist) tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;padding:10px 2px;border-bottom:.5px solid #e5e5ea}
.rd-t:not(.rd-plist) td{display:block;border:0!important;padding:0!important;min-width:0}
.rd-t:not(.rd-plist) td:nth-child(2){grid-column:1;grid-row:1}
.rd-t:not(.rd-plist) td:nth-child(4){grid-column:2;grid-row:1;text-align:right;font-weight:700}
.rd-t:not(.rd-plist) td:nth-child(1){grid-column:1;grid-row:2;font-size:12px;color:#8e8e93}
.rd-t:not(.rd-plist) td:nth-child(3){display:none}
.rd-t:not(.rd-plist) td:nth-child(5){grid-column:2;grid-row:2;text-align:right}
/* properties list */
.rd-plist thead{display:none}
.rd-plist,.rd-plist tbody{display:block;width:100%}
.rd-plist tr{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;padding:12px 2px;border-bottom:.5px solid #e5e5ea}
.rd-plist td{border:0!important;padding:0!important;min-width:0!important}
.rd-plist td:nth-child(1){grid-column:1;grid-row:1}
.rd-plist td:nth-child(4){grid-column:2;grid-row:1;text-align:right;font-weight:700}
.rd-plist td:nth-child(8){grid-column:1/-1;grid-row:2;display:flex!important;align-items:center;gap:10px}
.rd-plist td:nth-child(8) .rd-ltv{flex:1}
.rd-plist td:nth-child(8) small{white-space:nowrap}
}
@media(max-width:700px){
.top{top:0!important}
.rd-kpis:has(.hero) .rd-kpi:last-child:nth-child(even),.rd-kpis:not(:has(.hero)) .rd-kpi:last-child:nth-child(odd){grid-column:1/-1}
.rd-kpi select{text-overflow:ellipsis;font-size:13px!important}
}
@media(max-width:700px){html body .top,body .top{top:0!important}}
@media(max-width:759px){html body .main > .top{top:0!important}}
@media(max-width:759px){.tx-cards{grid-template-columns:minmax(0,1fr)!important;padding:10px 8px!important}.tx-card{width:auto!important}}
@media(max-width:759px){
.page.active .empty{padding:20px 16px!important;min-height:0!important}
.page.active .empty h3,.page.active .empty .empty-title{font-size:16px!important}
.settings-grid{grid-template-columns:1fr 1fr!important;gap:10px!important}
.setting-card{padding:12px!important;min-height:0!important;gap:6px!important}
.setting-card h3,.setting-card .setting-title{font-size:14px!important}
.setting-card p,.setting-card .muted{font-size:12px!important;margin:0!important}
.setting-card button,.setting-card .btn{padding:6px 10px!important;font-size:12px!important;width:100%}
.doc-stats{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:8px!important}
.doc-stats>*{padding:10px!important;min-width:0!important}
}
@media(max-width:759px){.doc-card,.doc-card-grid{min-width:0!important}.doc-card-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}}
@media(max-width:759px){
.panel>.table-wrap{border:0!important;background:transparent!important;padding:0 4px 8px!important;box-shadow:none!important}
.panel>.panel-head{margin-bottom:8px!important;padding-bottom:0!important;border:0!important}
.panel>.table-wrap tbody tr:last-child{margin-bottom:0!important}
.panel>.table-wrap tbody tr td:last-child{border-bottom:0!important}
}
@media(min-width:760px){
.page.active .table-wrap table td:nth-child(2){min-width:170px}
.page.active .table-wrap table td{vertical-align:middle}
}
.period-display{display:none!important}
.period-btn{white-space:nowrap!important}
@media(min-width:760px){.page.active .table-wrap table th,.page.active .table-wrap table td{padding-left:8px!important;padding-right:8px!important;font-size:12.5px}}
@media(max-width:759px){.rd-ch:has(.rd-link){flex-wrap:nowrap!important;align-items:center!important;gap:8px!important}.rd-ch:has(.rd-link)>:first-child{flex:1 1 auto;min-width:0}.rd-ch .rd-link{white-space:nowrap;flex:none;margin-left:auto}}
.rd-ch .rd-count{margin-left:8px}
.rd-ch:has(.rd-count){flex-wrap:nowrap!important;align-items:center}
@media(min-width:760px){
.page.active .table-wrap{overflow-x:auto!important;max-width:100%;
background:linear-gradient(to right,#fff 30%,rgba(255,255,255,0)) left center/40px 100% no-repeat local,linear-gradient(to left,#fff 30%,rgba(255,255,255,0)) right center/40px 100% no-repeat local,linear-gradient(to right,rgba(0,0,0,.14),rgba(0,0,0,0)) left center/12px 100% no-repeat scroll,linear-gradient(to left,rgba(0,0,0,.14),rgba(0,0,0,0)) right center/12px 100% no-repeat scroll}
.page.active .table-wrap::-webkit-scrollbar{height:10px}
.page.active .table-wrap::-webkit-scrollbar-thumb{background:#b8bfcc;border-radius:6px}
}

html,body,body *:not(svg):not(path){font-family:'Inter',-apple-system,system-ui,sans-serif!important}
svg text{font-family:'Inter',sans-serif!important}
.mk{max-width:none;margin:8px 0 0;padding:4px 0 30px;font-family:Inter,sans-serif}
.mk-me{display:flex;gap:12px;align-items:center;background:#fff;border-radius:20px;padding:14px 16px;margin-bottom:12px}
.mk-me b{display:block;font-size:16px}.mk-me span{font-size:13px;color:#6b7280}
.mk-s{background:#e9eaf0!important;width:100%;box-sizing:border-box;border:0;background:#e9eaf0;border-radius:14px;padding:12px 16px;font:inherit;font-size:15px;margin-bottom:6px}
.mk-gt{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#6b7280;margin:20px 8px 8px}
.mk-ic{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:13px;flex:none}
.mk-ic.s{width:32px;height:32px;border-radius:10px}.mk-ic.big{width:60px;height:60px;border-radius:18px}
.mk-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.mk-card{background:#fff;border-radius:20px;padding:16px;display:flex;flex-direction:column;gap:4px;min-height:118px}
.mk-card .mk-ic{margin-bottom:8px}.mk-card b{font-size:15px}.mk-card i{font-style:normal;font-size:12.5px;color:#6b7280;line-height:1.35}
.mk-list,.mk-acc{background:#fff;border-radius:20px;overflow:hidden}
.mk-row,.mk-arow{display:flex;align-items:center;gap:12px;padding:11px 16px;border-top:1px solid #eef0f4}
.mk-row:first-child{border-top:0}
.mk-l{flex:1;min-width:0;display:flex;flex-direction:column}.mk-l b{font-size:15px;font-weight:600}.mk-l i{font-style:normal;font-size:12.5px;color:#6b7280}
.mk-tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:18px 12px;background:#fff;border-radius:20px;padding:20px 12px}
.mk-tile{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}.mk-tile b{font-size:13px;font-weight:600}
.mk-acc{margin-bottom:12px}.mk-ah{display:flex;align-items:center;gap:8px;padding:16px;font-weight:700;font-size:15px}
.mk-ah span{flex:1}.mk-ah em{font-style:normal;background:#eef0f4;color:#6b7280;font-size:12px;border-radius:10px;padding:2px 9px}
.mk-acc.open .mk-ah .cv{transform:rotate(180deg)}.mk-arow.on{background:#eef4ff}
.mk-det{padding:4px 12px 14px;background:#fafbfd;border-top:1px solid #eef0f4}
.mk-det .settings-modern-panel,.mk-det .panel{box-shadow:none!important}
@media(max-width:759px){.mk-grid{grid-template-columns:repeat(2,1fr);gap:10px}.mk-tiles{grid-template-columns:repeat(3,1fr);gap:16px 6px;padding:16px 6px}.mk-card{min-height:104px;padding:14px}.mk-tile b{font-size:12px}}
.sx.mk-drill{display:block!important}.sx.mk-drill .sx-nav{display:none!important}.sx.mk-drill .sx-main{width:100%!important;max-width:none!important}
#mkback{display:inline-flex;align-items:center;gap:2px;color:#007aff;font-weight:600;font-size:17px;padding:6px 4px 10px;cursor:pointer}
@media(max-width:700px){
.mk-drill .category-command-head{display:block!important;padding:18px 16px 8px!important}
.mk-drill .category-command-head h2{font-size:22px!important}
.mk-drill .category-count-grid{display:grid!important;grid-template-columns:repeat(5,1fr)!important;gap:6px!important;margin-top:14px!important}
.mk-drill .category-count-grid>span{min-width:0!important;width:auto!important;padding:8px 2px!important;border-radius:14px!important;text-align:center!important}
.mk-drill .category-count-grid>span{font-size:9.5px!important}.mk-drill .category-count-grid b{display:block;font-size:17px!important;color:#007aff!important}
.mk-drill .category-builder-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important}
.mk-drill .category-builder-grid>label:first-child,.mk-drill .category-builder-grid .btn{grid-column:1/-1!important}
.mk-drill .category-output-header{display:none!important}
.mk-drill .category-output-list{border:0!important;padding:0!important;box-shadow:none!important;background:transparent!important;margin:12px 0!important}
.mk-drill .category-output-row{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;background:#fff!important;border-radius:20px!important;padding:16px!important;margin:0 0 12px!important;border:0!important;box-shadow:0 0 0 1px #e5e5ea!important;width:auto!important}
.mk-drill .category-output-row .rule-name-cell,.mk-drill .category-output-row .rule-preview-cell,.mk-drill .category-output-row .rule-actions-cell{grid-column:1/-1!important}
.mk-drill .category-output-row .rule-name-cell input{font-weight:700!important;font-size:16px!important}
.mk-drill .category-output-row .rule-select-cell,.mk-drill .category-output-row .rule-select-cell *{min-width:0!important;max-width:100%!important;box-sizing:border-box}
.mk-drill .category-output-row .rule-preview-cell{display:flex!important;flex-wrap:wrap!important;gap:6px!important}
.mk-drill .category-output-row .rule-actions-cell{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important}
.mk-drill .category-output-row .rule-actions-cell .btn{width:100%!important;justify-content:center}
.mk-drill .category-tools-bar{margin:12px 0!important}
}
.mk-drill .sx-main,.mk-drill .sx-main>*{border-radius:22px!important}
.mk-drill .sx-main{background:transparent!important;box-shadow:none!important;border:0!important;padding:0!important}
.mk-drill .sx-main section,.mk-drill .sx-main .panel,.mk-drill .sx-main .pro-settings-panel,.mk-drill .sx-main [class*=card],.mk-drill .sx-main [class*=-head],.mk-drill .sx-main .card{border-radius:22px!important;overflow:hidden}
.mk-drill .sx-main input,.mk-drill .sx-main select,.mk-drill .sx-main textarea,.mk-drill .sx-main .bb-custom-select-opener,.mk-drill .sx-main .bb-custom-select-container{border-radius:999px!important}
.mk-drill .sx-main input,.mk-drill .sx-main select,.mk-drill .sx-main .bb-custom-select-opener{padding-left:16px!important;min-height:38px!important;height:38px!important;font-size:14.5px!important}
.mk-drill .sx-main button,.mk-drill .sx-main .btn,.mk-drill .sx-main [class*=chip],.mk-drill .sx-main .category-count-grid>span{border-radius:999px!important}
.mk-drill .sx-main .category-count-grid>span{border-radius:16px!important}
.mk-drill .sx-main label{margin:0 0 3px!important;display:block}
.mk-drill .sx-main label>span:first-child,.mk-drill .sx-main label{font-size:11.5px!important}
.mk-drill .sx-main h2,.mk-drill .sx-main h3{margin:0 0 4px!important}
.mk-drill .sx-main p{margin:0 0 8px!important}
.mk-drill .sx-main section,.mk-drill .sx-main .panel{padding:14px 18px!important;margin:0 0 10px!important}
.mk-drill .sx-main>*{margin-bottom:10px!important;padding-top:0}
.mk-drill .category-builder-card,.mk-drill .category-tools-bar{padding:12px 14px!important;margin:8px 0!important;border-radius:20px!important}
.mk-drill .category-builder-grid,.mk-drill .category-output-row{gap:8px 10px!important}
.mk-drill .category-output-row{padding:12px 14px!important;margin-bottom:8px!important;border-radius:20px!important}
.mk-drill .category-output-list{margin:8px 0!important}
.mk-drill .category-command-head{padding:14px 18px 6px!important}
.mk-drill .sx-main .select,.mk-drill .sx-main .bb-custom-select-container{margin:0!important}
.mk-drill .sx-main .rule-feed-chip,.mk-drill .sx-main .noi-chip{border-radius:999px!important;padding:3px 10px!important}
.mk-drill .settings-modern-panel,.mk-drill .pro-settings-panel{background:transparent!important;padding:0!important;margin:0!important;box-shadow:none!important;border:0!important;overflow:visible!important}
.mk-drill .settings-modern-head{background:#fff!important;border-radius:22px!important;padding:12px 18px!important;margin:0 0 8px!important;min-height:0!important;border:0!important}
.mk-drill .settings-modern-head h2{margin:0!important;font-size:20px!important}
.mk-drill .settings-modern-head .btn{height:34px!important;padding:0 18px!important}
.mk-drill .settings-modern-section{background:#fff!important;border-radius:22px!important;padding:14px 18px!important;margin:0 0 8px!important;width:auto!important;max-width:none!important;border:0!important;box-shadow:none!important}
.mk-drill .settings-modern-section h3{font-size:16px!important;margin:0 0 2px!important}
.mk-drill .settings-modern-section p{margin:0 0 8px!important;font-size:13px!important}
.mk-drill .settings-modern-control{display:flex!important;flex-direction:column!important;gap:3px!important;max-width:520px}
.mk-drill .panel{background:#fff!important;border-radius:22px!important;padding:6px 18px 14px!important;margin:0 0 8px!important;border:0!important}
.mk-drill .panel-head{padding:10px 0 4px!important}.mk-drill .panel-body{padding:0!important}
.mk-drill .panel .field{display:flex!important;flex-direction:column!important;gap:3px!important;max-width:520px;margin:0 0 8px!important}
.mk-drill .panel-actions{margin:0!important}
.mk-drill .category-control-panel{overflow:visible!important}
.mk-drill .category-command-head{background:#fff!important;border-radius:22px!important;margin:0 0 8px!important;padding:14px 18px!important}
.mk-drill .category-builder-card{background:#fff!important;border:0!important;border-radius:22px!important;margin:0 0 8px!important}
.mk-drill .category-tools-bar{background:#fff!important;border:0!important;border-radius:22px!important;margin:0 0 8px!important}
.mk-drill .category-output-list{margin:0!important}
.mk-drill .builder-title-row{margin:0 0 8px!important;padding:0!important;border:0!important;background:transparent!important}
@media(max-width:700px){.mk-drill .category-command-head{padding:14px 16px!important}.mk-drill .settings-modern-section,.mk-drill .panel{padding:12px 14px!important}}
.mk-drill .settings-modern-content{padding:0!important;margin:0!important}
.mk-drill .category-count-grid b{display:block;color:#007aff!important;font-size:17px!important}
@media(min-width:701px){
.mk-drill .category-output-header{display:none!important}
.mk-drill .category-output-list{border:0!important;padding:0!important;background:transparent!important;box-shadow:none!important}
.mk-drill .category-output-row{display:grid!important;grid-template-columns:1.5fr repeat(4,1fr)!important;gap:8px 12px!important;background:#fff!important;border-radius:22px!important;padding:12px 16px!important;margin:0 0 8px!important;border:0!important;box-shadow:0 0 0 1px #e5e5ea!important;width:auto!important}
.mk-drill .category-output-row .rule-preview-cell{grid-column:1/5!important;display:flex!important;flex-wrap:wrap!important;gap:6px!important;align-items:center}
.mk-drill .category-output-row .rule-actions-cell{grid-column:5!important;display:flex!important;gap:8px!important;justify-content:flex-end}
.mk-drill .category-output-row .rule-select-cell,.mk-drill .category-output-row .rule-select-cell *{min-width:0!important;max-width:100%!important;box-sizing:border-box}
}
.mk-drill .sx-main section.pro-settings-panel,.mk-drill .sx-main section.settings-modern-panel{padding:0!important;margin:0!important;background:transparent!important}
@media(min-width:701px){
.mk-drill .category-output-row{grid-template-columns:1.2fr 1fr 1fr 1.55fr 1fr!important}
.mk-drill .category-output-row .rule-preview-cell{grid-column:1/5!important}
.mk-drill .category-builder-grid{grid-template-columns:1.2fr 1fr 1fr 1.55fr 1fr!important}
.mk-drill .category-builder-grid .btn{grid-column:1/-1!important;justify-self:start}
.mk-drill .sx-main select{padding-right:30px!important;text-overflow:clip!important}
}
@media(max-width:700px){
.mk-drill .category-output-row .rule-select-cell:nth-child(4),.mk-drill .category-builder-grid>label:nth-child(4){grid-column:1/-1!important}
}
@media(max-width:700px){.mk-drill .category-output-row .rule-select-cell:nth-child(5),.mk-drill .category-builder-grid>label:nth-child(5){grid-column:1/-1!important}}
.mk-row{padding:6px 14px!important;gap:11px!important;min-height:0!important}
.mk-row .mk-ic.s{width:30px!important;height:30px!important;border-radius:999px!important}
.mk-row .mk-l{gap:0!important;line-height:1.2!important}.mk-row .mk-l b{font-size:14.5px!important;line-height:1.2!important;margin:0!important}.mk-row .mk-l i{font-size:12px!important;line-height:1.2!important;margin:0!important}
.mk-gt{margin:12px 8px 5px!important}.mk-list{border-radius:22px!important}
.mk-me{padding:10px 14px!important;margin-bottom:8px!important;border-radius:22px!important}.mk-s{margin-bottom:2px!important;border-radius:999px!important}
.mk-drill .sx-main{display:flex!important;flex-direction:column!important}
.mk-drill .sx-main>main,.mk-drill .sx-main>.settings-modern-content{order:1}
.mk-drill .sx-main>.panel{order:2}
.mk-drill .panel-title{font-size:16px!important;font-weight:700!important}
.mk-drill .panel-head{padding:8px 0 2px!important;margin:0!important}
.mk-drill .panel{padding:10px 18px 14px!important}
.mk-drill .panel .field>span{font-size:13px!important;font-weight:400!important;color:#6b7280}
.mk-drill .sx-main:has(.settings-modern-section){display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;align-items:stretch}
.mk-drill .sx-main:has(.settings-modern-section) main.settings-modern-content,.mk-drill .sx-main:has(.settings-modern-section) section.settings-modern-panel{display:contents!important}
.mk-drill .sx-main:has(.settings-modern-section) .settings-modern-head{grid-column:1/-1;order:0;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:12px 18px;border-radius:22px;margin:0!important}
.mk-drill .sx-main:has(.settings-modern-section) .settings-modern-section{order:1;background:#fff!important;border-radius:22px!important;padding:16px 18px!important;margin:0!important;display:flex;flex-direction:column;border:0!important}
.mk-drill .sx-main:has(.settings-modern-section)>.panel{order:2;margin:0!important;padding:16px 18px!important;display:flex;flex-direction:column}
.mk-drill .sx-main:has(.settings-modern-section) label,.mk-drill .sx-main:has(.settings-modern-section) .bb-custom-select-container,.mk-drill .sx-main:has(.settings-modern-section) input,.mk-drill .sx-main:has(.settings-modern-section) select,.mk-drill .sx-main:has(.settings-modern-section) .bb-custom-select-opener{width:100%!important;max-width:none!important;box-sizing:border-box}
.mk-drill .sx-main:has(.settings-modern-section) .settings-modern-section label{margin-top:auto!important}
@media(max-width:800px){.mk-drill .sx-main:has(.settings-modern-section){grid-template-columns:1fr!important}}
.mk-drill .sx-main:has(.settings-modern-list){grid-template-columns:minmax(0,1fr) minmax(0,2fr)!important;align-items:start!important}
.mk-drill .sx-main:has(.settings-modern-list) .settings-modern-section:has(.settings-modern-list){grid-column:2}
.mk-drill .sx-main:has(.settings-modern-list) .settings-modern-section:has(.settings-modern-add){grid-column:1;grid-row:2}
.mk-drill .sx-main:has(.settings-modern-list) .settings-modern-section:has(.settings-modern-list){grid-row:2}
.mk-drill .settings-modern-list{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px 12px!important}
.mk-drill .settings-modern-list>*{min-width:0!important;margin:0!important}
.mk-drill .sx-main:has(form.settings-modern-form){grid-template-columns:1fr 1fr!important}
.mk-drill .sx-main:has(.settings-modern-actions){grid-template-columns:1fr!important}
.mk-drill .sx-main>div.settings-modern-panel{display:grid!important;grid-template-columns:1fr 1fr 1fr;gap:12px;background:transparent!important}
.mk-drill .sx-main>div.settings-modern-panel>.settings-modern-head{grid-column:1/-1;background:#fff;border-radius:22px;padding:12px 18px}
.mk-drill .sx-main>div.settings-modern-panel>.settings-modern-section{background:#fff;border-radius:22px;padding:16px 18px}
.mk-drill .settings-modern-add{display:flex!important;gap:8px;align-items:center}.mk-drill .settings-modern-add input{flex:1}
@media(max-width:800px){.mk-drill .sx-main:has(.settings-modern-list),.mk-drill .sx-main:has(form.settings-modern-form){grid-template-columns:1fr!important}.mk-drill .sx-main:has(.settings-modern-list) .settings-modern-section{grid-column:1!important;grid-row:auto!important}.mk-drill .settings-modern-list{grid-template-columns:1fr!important}.mk-drill .sx-main>div.settings-modern-panel{grid-template-columns:1fr}}
.mk-drill .sx-main:has(.settings-modern-list){grid-template-columns:1fr!important}
.mk-drill .sx-main:has(.settings-modern-list) .settings-modern-section:has(.settings-modern-list),.mk-drill .sx-main:has(.settings-modern-list) .settings-modern-section:has(.settings-modern-add){grid-column:1!important;grid-row:auto!important}
.mk-drill .sx-main:has(.settings-modern-list) .settings-modern-section:has(.settings-modern-add){order:1}
.mk-drill .sx-main:has(.settings-modern-list) .settings-modern-section:has(.settings-modern-list){order:2}
.mk-drill .sx-main:has(.settings-modern-list) .settings-modern-add{max-width:620px}
.mk-drill .settings-modern-form label:has(input[type=checkbox]){display:flex!important;align-items:center;justify-content:space-between;border:0!important;background:#f2f2f7;border-radius:999px;padding:8px 16px!important;margin:0 0 8px!important;font-size:14px!important;min-height:0!important;height:auto!important;flex-direction:row-reverse}
.mk-drill .settings-modern-form input[type=checkbox]{width:22px!important;height:22px!important;flex:none;margin:0}
.mk-drill .sx-main>div.settings-modern-panel{width:100%!important;max-width:none!important;padding:0!important;box-shadow:none!important;border:0!important}
.mk-drill .sx-main>div.settings-modern-panel>.settings-modern-head{display:block!important}
.mk-drill .sx-main>div.settings-modern-panel>.settings-modern-head h2{display:block!important;margin:0 0 2px!important}
.mk-drill .sx-main>div.settings-modern-panel{grid-column:1/-1!important;grid-template-columns:1fr!important}
.mk-drill .settings-modern-form label:has(input[type=checkbox]){flex-direction:row!important}
.mk-drill .settings-modern-list{width:100%!important;max-width:none!important}.mk-drill .settings-modern-list>*{width:auto!important;max-width:none!important}
.mk-drill .sx-main>div.settings-modern-panel,.mk-drill .sx-main>div.settings-modern-panel>*{min-width:0!important;max-width:100%!important;box-sizing:border-box}
.mk-drill .sx-main pre,.mk-drill .sx-main code{max-width:100%!important;overflow-x:auto!important;white-space:pre-wrap!important;word-break:break-all}
@media(max-width:800px){.mk-drill .sx-main{width:100%!important;max-width:100vw!important;overflow-x:hidden}.mk-drill .sx-main>div.settings-modern-panel{grid-column:1/-1}}
@media(max-width:800px){.mk-drill .sx-main>div.settings-modern-panel *{white-space:normal!important;overflow:visible!important;text-overflow:clip!important}.mk-drill .sx-main pre{overflow-x:auto!important;white-space:pre-wrap!important}}

/* Loans card: fit five columns without clipping (side column) */
.rd-row{grid-template-columns:minmax(0,1fr) minmax(400px,34%)!important}
@media(max-width:1100px){.rd-row{grid-template-columns:1fr!important}}
.rd-row>.rd-card,.rd-row>.rd-col{min-width:0}
.rd-row>.rd-card:nth-child(2){overflow:hidden}
.rd-row>.rd-card:nth-child(2) .rd-t th,.rd-row>.rd-card:nth-child(2) .rd-t td{padding-left:6px!important;padding-right:6px!important}
.rd-row>.rd-card:nth-child(2) .rd-t th{font-size:10.5px!important;letter-spacing:0!important;white-space:nowrap}
.rd-row>.rd-card:nth-child(2) .rd-t td{font-size:13px;white-space:nowrap}
.rd-row>.rd-card:nth-child(2) .rd-t td:first-child{white-space:normal;min-width:90px}
.rd-row>.rd-card:nth-child(2) .rd-t th:first-child,.rd-row>.rd-card:nth-child(2) .rd-t td:first-child{padding-left:0!important}
.rd-row>.rd-card:nth-child(2) .rd-t th:last-child,.rd-row>.rd-card:nth-child(2) .rd-t td:last-child{padding-right:0!important}

/* Inbox reply box: readable rounded field, Send button clear of it */
#inboxPanel .inbox-actions textarea{display:block!important;width:100%;min-height:104px;border-radius:20px!important;padding:12px 16px!important;line-height:1.4;resize:vertical;margin:0 0 12px!important}
#inboxPanel .inbox-actions textarea::placeholder{font-weight:400}
#inboxPanel .inbox-actions .btn{min-height:34px;padding:0 18px!important;display:inline-flex;align-items:center;justify-content:center;margin:0 8px 8px 0!important}
#inboxPanel .inbox-actions h4{margin:14px 0 10px!important}

/* All multi-line fields (e.g. scheduled email Message box): rounded box, not a pill */
textarea{border-radius:20px!important;padding:12px 16px!important;line-height:1.4}

/* Transactions: remove Comfortable/Compact toggle (Compact is fixed); hide bulk buttons until 2+ selected */
.tx-seg:has([data-tx-density]){display:none!important}
.rd-bulk-hide{display:none!important}

/* Remove the top-bar eye (Hide numbers) button; the same switch stays in Settings > Privacy */
#rdEye{display:none!important}
.tx-ins-grid,.tx-ins-pivot,[id^="txInsBody"]{max-height:none!important;overflow:visible!important}
/* Portfolio switcher as a top-right round icon (same select inside, so the menu is unchanged) */
.top-right .portfolio-mini.account-card{position:relative!important;display:flex!important;align-items:center;justify-content:center;width:36px!important;height:36px!important;min-width:36px;padding:0!important;margin:0 2px;border:0!important;border-radius:50%!important;background:rgba(0,122,255,.1)!important;box-shadow:none!important;overflow:visible!important;flex:0 0 auto}
.top-right .portfolio-mini.account-card::before,.top-right .portfolio-mini.account-card::after{display:none!important}
.top-right .portfolio-mini .account-meta,.top-right .portfolio-mini .account-chevron{display:none!important}
.top-right .portfolio-mini .account-avatar{width:24px!important;height:24px!important;min-width:24px;font-size:11px!important;margin:0!important;display:flex;align-items:center;justify-content:center}
.top-right .portfolio-mini .account-select,.top-right .portfolio-mini .workspace-select{position:absolute!important;inset:0;width:100%!important;height:100%!important;opacity:0!important;cursor:pointer;margin:0;padding:0}
.top-right .portfolio-mini.account-card{min-height:0!important;max-height:36px!important;box-sizing:border-box}
.top-right .portfolio-mini select#portfolioSwitch{top:0!important;left:0!important;width:36px!important;height:36px!important;min-height:36px!important;max-height:36px!important;display:block!important}
.top-right .portfolio-mini.account-card select#portfolioSwitch.workspace-select{position:absolute!important;top:0!important;left:0!important;right:auto!important;margin:0!important;transform:none!important;width:36px!important;min-width:0!important;box-sizing:border-box!important;opacity:0!important}
.top-right .portfolio-mini .bb-custom-select-container{position:absolute!important;top:0;left:0;width:36px!important;height:36px!important;margin:0!important}
.top-right .portfolio-mini .bb-custom-select-opener{display:none!important}
.ryr-att-modal{border-radius:20px;transition:background .12s,box-shadow .12s}
.ryr-att-modal.rd-drag{background:rgba(0,122,255,.08)!important;box-shadow:inset 0 0 0 2px #007aff}
/* Detail view = full page, not a popup */
#detailsPanel:not(.hidden){position:fixed!important;left:var(--rd-dl,0)!important;top:var(--rd-dt,0)!important;right:0!important;bottom:0!important;width:auto!important;max-width:none!important;height:auto!important;max-height:none!important;border-radius:0!important;border:0!important;box-shadow:none!important;animation:none!important;background:#fff!important;z-index:60;display:flex!important;flex-direction:column}
#detailsPanel .details-head{display:flex;align-items:center;gap:14px;padding:14px max(24px,calc((100% - 1040px)/2))!important}
#detailsPanel .details-head>div:not(.rd-back){flex:1;min-width:0}
#detailsPanel .details-title{font-size:26px!important;font-weight:800}
#detailsPanel .rd-back{display:inline-flex;align-items:center;gap:4px;height:34px;padding:0 14px 0 10px;border:0;border-radius:999px;background:rgba(0,122,255,.1);color:#007aff;font:700 13px Inter,system-ui,sans-serif;cursor:pointer;flex:none}
#detailsPanel .rd-back:hover{background:rgba(0,122,255,.18)}
#detailsPanel #detailsActions,#detailsPanel .tabs{padding-left:max(24px,calc((100% - 1040px)/2))!important;padding-right:max(24px,calc((100% - 1040px)/2))!important}
#detailsPanel .details-body{flex:1 1 auto;min-height:0;overflow:auto;padding:16px max(24px,calc((100% - 1040px)/2))!important;background:#fff}

/* filters live in the page-title row */
.rd-tabbar{flex-direction:row!important;flex-wrap:wrap;align-items:center!important;column-gap:12px!important}
.rd-tabbar::after{content:"";flex-basis:100%;height:0;order:3}
.rd-hubtitle{order:1;flex:1 1 auto}
.rd-filters{order:2;display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.rd-tabs{order:4}
.rd-filters .select{min-width:200px;max-width:260px}
.ribbon.rd-empty{padding:0!important;height:0!important;min-height:0!important;overflow:hidden!important;margin:0!important}
@media(max-width:759px){.rd-filters{flex-basis:100%;order:3;justify-content:flex-start}.rd-tabbar::after{display:none}.rd-tabs{order:4}.rd-filters .select{flex:1;min-width:0;max-width:none}}
@media(min-width:760px){.rd-filters{flex-wrap:nowrap;flex:none}.rd-filters .select{width:240px!important;flex:none;margin:0!important}.rd-filters .period{flex:none;margin:0!important}.rd-tabbar{width:100%;box-sizing:border-box}}
.rd-filters .select{background:#e3e3e8!important;border:0!important;border-radius:999px!important;padding:9px 14px!important;font-weight:600}

/* hide original nav on all sizes; hub nav replaces it */
.sidebar > .nav,.sidebar .nav{display:none!important}
.app.mobile-nav-open .sidebar .nav,.mobile-nav-open .sidebar .nav{display:none!important}
