.rm-bell{position:relative;flex-shrink:0}
.agency-desktop #rm-bell-button{position:relative;display:flex;align-items:center;justify-content:center;width:42px;height:42px;padding:0;border:1px solid #dfe5ef;background:white;color:#36558e;border-radius:50%}
#rm-bell-button:hover,#rm-bell-button[aria-expanded=true]{background:#eef2fc}
#rm-bell-button .ui-icon{width:22px;height:22px}
.rm-bell-count{position:absolute;top:-5px;right:-5px;min-width:20px;height:20px;border-radius:10px;background:#c9424c;color:white;font-size:10px;font-weight:700;display:flex;align-items:center;justify-content:center;padding:0 4px;border:2px solid white}
.rm-bell-count[hidden],.rm-bell-panel[hidden]{display:none}
.rm-bell-panel{position:absolute;top:calc(100% + 14px);right:0;width:410px;border:1px solid #dce2eb;border-radius:10px;background:white;box-shadow:0 12px 38px #152b4b24;color:#24334b;overflow:hidden;z-index:20}
.rm-bell-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:17px 18px;border-bottom:1px solid #e7ebf3}
.rm-bell-heading h2{font-size:17px;margin:0 0 4px}
.rm-bell-heading small{font-size:11px;color:#718096}
.rm-bell-heading button{font-size:22px;width:36px;height:36px;padding:0}
.rm-alert-scroll{max-height:min(460px,calc(100dvh - 260px));overflow-y:auto;overscroll-behavior:contain}
.rm-alert-group h3{display:flex;justify-content:space-between;align-items:center;margin:0;padding:12px 18px;background:#f5f7fb;font-size:12px}
.rm-alert-group h3 span{border-radius:10px;background:#e8edf7;padding:1px 8px;font-size:11px}
.rm-alert-group:first-child h3{background:#fff5f4;color:#a13c45}
.rm-alert{display:block;width:100%;text-align:left;border:0;border-radius:0;border-bottom:1px solid #eef1f6;padding:12px 18px;white-space:normal!important;background:white}
.rm-alert strong{display:block;font-size:12px;overflow-wrap:anywhere}
.rm-alert span{display:block;margin-top:5px;font-size:11px;color:#6e7d96}
.rm-alert-empty{padding:12px 18px;color:#78859b;font-size:12px;margin:0}
.rm-bell-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 18px;border-top:1px solid #e7ebf3;background:#fbfcfe;font-size:12px}
.rm-bell-footer a{font-weight:600;text-decoration:none}
.rm-alert-error{padding:10px 18px;margin:0;background:#fff4da;font-size:12px}
.rm-workspace{min-width:0}
.rm-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin:0 0 18px}
.rm-metric{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:17px 19px;border:1px solid #dce2eb;border-top:3px solid #5663a6;border-radius:6px;background:white;text-align:left;color:#334462}
.rm-metric span{font-size:12px}
.rm-metric strong{font-size:28px;line-height:1.2}
.rm-metric-overdue{border-top-color:#cc5960}
.rm-metric-overdue strong{color:#b8404a}
.rm-metric-today{border-top-color:#d69b44}
.rm-metric-completed{border-top-color:#439780}
.rm-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;background:white;border:1px solid #dce2eb;border-radius:6px;padding:16px}
.rm-filters label{margin:0;min-width:0}
.rm-filters input,.rm-filters select{width:100%;margin-top:5px;max-width:100%}
.rm-filters button{align-self:end;min-height:36px}
.rm-results-line{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:11px;color:#6b7b94;padding:13px 2px}
.rm-table-wrap{border:1px solid #dce2eb;background:white;border-radius:6px 6px 0 0}
.rm-table{width:100%;table-layout:auto}
.rm-table td{vertical-align:middle}
.rm-table .rm-title{font-size:12px;font-weight:600;text-align:left;white-space:normal;overflow-wrap:anywhere;max-width:360px}
.rm-note{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:360px;color:#7a879d;font-size:11px;margin-top:4px;white-space:pre-wrap;overflow-wrap:anywhere}
.rm-table td:nth-last-child(-n+4){white-space:nowrap}
.rm-table td:last-child .actions{flex-wrap:nowrap}
.rm-status{display:inline-block;padding:4px 8px;border-radius:12px;font-size:10px;background:#edf0f7;color:#62738d;font-weight:600}
.rm-overdue{background:#fbecef;color:#b33a48}
.rm-today{background:#fff3df;color:#996013}
.rm-upcoming{background:#ebeffd;color:#4b60a4}
.rm-completed{background:#e6f4ee;color:#257457}
.rm-pagination{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;padding:12px 15px;border:1px solid #dce2eb;border-top:0;background:white;font-size:11px;border-radius:0 0 6px 6px}
.rm-footnote{font-size:11px;color:#718096;line-height:1.6;margin:12px 0}
#rm-form fieldset{border:0;padding:0;margin:0;min-width:0}
#rm-form fieldset:disabled input,#rm-form fieldset:disabled textarea,#rm-form fieldset:disabled select{color:#334462;opacity:1;background:#f7f9fc}
#agent-panel .rm-workspace>.card-heading{margin-bottom:16px;padding:0 0 16px;background:white}
.agency-desktop .top-actions .user-meta{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(min-width:761px) and (max-width:950px){.agency-desktop .workspace-brand{width:220px}.agency-desktop .top-actions>.avatar{display:none}}
@media(max-width:1100px){.rm-metrics{gap:10px}.rm-metric{padding:14px 12px}.rm-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
 .agency-desktop .topbar .top-actions{gap:7px}
 .agency-desktop #rm-bell-button{width:40px;height:40px;min-height:40px}
 .agency-desktop .workspace-brand .logo-topbar{object-fit:contain;height:auto;max-height:54px}
 .rm-bell-panel{position:fixed;top:calc(var(--workspace-header-height) + 5px);left:10px;right:10px;width:auto;max-height:calc(100dvh - var(--workspace-header-height) - 82px)}
 .rm-alert-scroll{max-height:calc(100dvh - var(--workspace-header-height) - 228px)}
 .rm-alert{min-height:60px}.rm-bell-heading button,.rm-bell-footer button{min-height:44px}
 .rm-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .rm-metric:first-child{grid-column:1/-1;flex-direction:row;justify-content:space-between;align-items:center}
 .rm-metric{min-height:72px;padding:12px 15px}
 .rm-metric strong{font-size:25px}
 .rm-filters{padding:12px;gap:12px 9px}
 .rm-filters label:first-child{grid-column:1/-1}
 .rm-filters input,.rm-filters select{font-size:16px;min-height:44px}
 .rm-filters button{min-height:44px}
 .rm-table,.rm-table tbody,.rm-table tr,.rm-table td{display:block;width:100%;white-space:normal}
 .rm-table thead{display:none}
 .rm-table tr{margin-bottom:10px;border:1px solid #dce2eb;border-radius:6px;background:white;overflow:hidden}
 .rm-table td{border:0;padding:8px 12px}
 .rm-table td::before{content:attr(data-label);display:block;color:#77849a;font-size:10px;margin-bottom:4px}
 .rm-table .rm-title,.rm-note{max-width:none}
 .rm-table td:first-child{padding-top:12px}.rm-table td:last-child{padding-bottom:12px}
 .rm-table td:last-child button{min-height:44px}
 .rm-table-wrap{border:0;background:transparent}
 .rm-pagination{border-top:1px solid #dce2eb}
 .rm-pagination>.actions{width:100%;justify-content:space-between}.rm-pagination button{min-height:44px}
 .rm-results-line{font-size:11px}
}
@media print{.rm-bell,.rm-filters,.rm-pagination,.rm-table td:last-child,.rm-table th:last-child{display:none!important}}
