/* Drongo v5.27.0: manager pages on phones.
   Loaded with media="(max-width:760px)" and every rule is also inside @media(max-width:760px)
   and scoped to body.drongo-manager-refresh, so desktop and the agent dialler are untouched.
   M = html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh (beats page-specific !important rules). */
@media (max-width:760px){
/* ---- page scroll: no trapped content ---- */
html:has(body.drongo-manager-refresh){overflow-x:auto!important;overflow-y:auto!important;height:auto!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh{overflow:visible!important;height:auto!important;min-height:100vh!important;padding:0!important;margin:0!important;max-width:100vw}

/* ---- top bar: small logo, avatar visible, menu button ---- */
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .drongo-topbar{position:sticky!important;top:0!important;left:0!important;right:0!important;z-index:1500!important;height:58px!important;min-height:58px!important;margin:0!important;padding:0 8px 0 12px!important;border-radius:0!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;width:auto!important;box-sizing:border-box!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .drongo-brand{flex:0 1 auto!important;min-width:0!important;margin:0!important;padding:0!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .drongo-brand img{width:118px!important;max-width:38vw!important;height:auto!important;max-height:44px!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .drongo-agent-chip{flex:0 0 auto!important;gap:8px!important;margin:0!important;min-width:0!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .drongo-agent-chip .drongo-agent-name{display:none!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .drongo-avatar{width:36px!important;height:36px!important;min-width:36px!important;flex:0 0 36px!important;margin:0!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .drongo-avatar img{width:100%!important;height:100%!important;object-fit:contain!important}
.dm-menu-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:44px;height:44px;padding:0 12px;margin:0 0 0 4px;border:1px solid #2E3F4B;border-radius:10px;background:#2E3F4B;color:#fff;font:900 12px/1 Inter,Segoe UI,Arial,sans-serif;letter-spacing:.04em;cursor:pointer;-webkit-tap-highlight-color:transparent}
.dm-menu-btn svg{width:18px;height:18px;display:block}
body.dm-nav-open .dm-menu-btn{background:#FFB133;border-color:#FFB133;color:#101820}

/* ---- one column: content first, right column after; nav becomes a drop-down ---- */
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell{display:flex!important;flex-direction:column!important;grid-template-columns:none!important;width:100%!important;max-width:100%!important;min-width:0!important;height:auto!important;min-height:0!important;margin:0!important;padding:10px 10px 24px!important;gap:12px!important;box-sizing:border-box!important;overflow:visible!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell>main,
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell>.main{order:1!important;width:100%!important;max-width:100%!important;min-width:0!important;height:auto!important;min-height:0!important;margin:0!important;padding:14px 12px!important;position:static!important;overflow:visible!important;box-sizing:border-box!important;border-radius:12px!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell>.right-sidebar{order:2!important;display:block!important;position:static!important;top:auto!important;width:100%!important;max-width:100%!important;min-width:0!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;padding:18px 14px!important;overflow:visible!important;border-radius:12px!important;box-sizing:border-box!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell>.right-sidebar:empty{display:none!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-left-rail{display:none!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh.dm-nav-open .manager-left-rail{display:flex!important;flex-direction:column!important;position:fixed!important;z-index:1490!important;top:58px!important;left:0!important;right:0!important;bottom:auto!important;width:auto!important;height:auto!important;min-height:0!important;max-height:calc(100vh - 58px)!important;max-height:calc(100dvh - 58px)!important;overflow-y:auto!important;margin:0!important;padding:14px 14px 18px!important;border-radius:0 0 14px 14px!important;box-shadow:0 14px 30px rgba(0,0,0,.35)!important;box-sizing:border-box!important}
body.dm-nav-open .manager-left-rail .bird-switcher,body.dm-nav-open .manager-left-rail .drongo-bird-art{display:none!important}
body.dm-nav-open .manager-left-rail .dmnav{gap:8px!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-left-rail .dmnav-logout{margin:6px 0 0!important;padding-top:8px!important}
.dm-nav-scrim{display:none}
body.dm-nav-open .dm-nav-scrim{display:block;position:fixed;z-index:1480;inset:58px 0 0 0;background:rgba(10,14,17,.45)}

/* inner page grids/cards: never wider than the screen */
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell>main *{max-width:100%;box-sizing:border-box}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell>main [class*="grid"]:not(table):not(canvas):not(.schedule-grid-wrap):not(.schedule-grid-wrap *){grid-template-columns:minmax(0,1fr)!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell>main .metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell>main .messages-card{grid-template-columns:minmax(0,1fr)!important;min-height:0!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell>main .messages-card .message-list{border-right:0!important;border-bottom:1px solid #e1e6e9!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell>main .messages-card .message-viewer{padding:16px!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell img,
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell canvas{max-width:100%!important}
/* wide tables scroll inside their own box instead of pushing the page */
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell table{display:block!important;width:100%!important;max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell table>thead,
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell table>tbody{max-width:none!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell table th,
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell table td{max-width:none!important}

/* ---- tap targets >= 44px (phones only) ---- */
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell button,
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell .button,
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell [role=button],
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell input[type=submit],
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell input[type=button],
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-left-rail button.dmnav-btn.dmnav-btn.dmnav-btn.dmnav-btn{min-height:44px!important;min-width:44px!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=color]),
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell select{min-height:44px!important;font-size:16px!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell textarea{font-size:16px!important;min-height:88px}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell input[type=checkbox],
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell input[type=radio]{width:24px!important;height:24px!important;min-width:24px!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell label:has(>input[type=checkbox]),
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell label:has(>input[type=radio]){min-height:44px!important;display:inline-flex!important;align-items:center!important;gap:8px}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell input[type=range]{min-height:44px!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell a.manager-nav-link>button,
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell table a{display:inline-flex;align-items:center;min-height:40px}

/* button-style links */
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell>main a[class]:not(.message-item):not(.manager-nav-link),
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell>.right-sidebar a[class]:not(.manager-nav-link){min-height:44px!important}
/* Call Library rows: wrap instead of a 6-column desktop grid */
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell>main .call-row{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px 12px!important;grid-template-columns:none!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell>main .call-row>*{min-width:0!important;flex:1 1 40%!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell>main .call-row>.mini-player-wrap{flex:1 1 100%!important;order:5}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell>main .call-row>.call-open{flex:0 0 auto!important;margin-left:auto!important;order:6;justify-content:center!important;min-width:88px!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell>main .library-list-shell,html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell>main .library-call-list{height:auto!important;max-height:none!important;min-height:0!important;overflow:visible!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell>main .library-pager{display:flex!important;flex-wrap:wrap!important;gap:8px!important;justify-content:space-between!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell>main .library-pager>*{flex:1 1 30%!important;min-width:0!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell>main .library-pager>:not(a):not(button){flex-basis:100%!important;order:-1;text-align:center!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell>main .attendance-summary{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell>main .library-pager button,html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell>main .library-pager a{min-width:88px!important;width:100%!important}
/* ---- Live Dashboard: one card per agent (same DOM and JS as the desktop table) ---- */
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell>main .ld-card{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;overflow:visible!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell>main .ld-table{display:block!important;overflow:visible!important;border:0!important;background:transparent!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell>main .ld-table thead{display:none!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell>main .ld-table tbody{display:flex!important;flex-direction:column!important;gap:10px!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell>main .ld-table tbody tr{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:6px 10px!important;align-items:center!important;background:#fff!important;border:1px solid #DCE2E6!important;border-radius:12px!important;padding:12px 14px!important;box-shadow:0 1px 2px rgba(16,24,32,.04)!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell>main .ld-table tbody tr.ld-req{background:#FFF4DC!important;border-color:#FFB133!important;box-shadow:inset 4px 0 0 #FFB133!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell>main .ld-table tbody tr.ld-req-escalation{background:#FDE8E6!important;border-color:#c73b43!important;box-shadow:inset 4px 0 0 #c73b43!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell>main .ld-table tbody td{display:block!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;min-width:0!important;white-space:normal!important;text-align:left!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell>main .ld-table tbody td:nth-child(n+5):nth-child(-n+10){display:none!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell>main .ld-table tbody td:nth-child(1){grid-column:1!important;grid-row:1!important;font-size:16px!important;font-weight:900!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell>main .ld-table tbody td:nth-child(2){grid-column:2!important;grid-row:1!important;justify-self:end!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell>main .ld-table tbody td:nth-child(3),html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell>main .ld-table tbody td:nth-child(4){grid-column:1 / -1!important;display:flex!important;justify-content:space-between!important;gap:10px!important;font-size:14px!important;color:#2E3F4B!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell>main .ld-table tbody td:nth-child(3)::before{content:"Time in state";color:#71818a;font-weight:700}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell>main .ld-table tbody td:nth-child(4)::before{content:"Campaign";color:#71818a;font-weight:700;flex:0 0 auto}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell>main .ld-table tbody td:nth-child(4){text-align:right!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell>main .ld-table tbody td:nth-child(11){grid-column:1 / -1!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell>main .ld-table tbody td:nth-child(11)>.ld-muted{display:none!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell>main .ld-table tbody td[colspan]{grid-column:1 / -1!important;display:block!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell>main .ld-table .ld-mon{width:100%!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;margin-top:4px!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell>main .ld-table .ld-mon button{padding:0 6px!important;min-height:44px!important;width:100%!important;margin:0!important;font-size:13px!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell>main .ld-table .ld-reqb[role=button]{display:inline-flex!important;align-items:center!important;min-height:44px!important;padding:0 12px!important;margin:6px 6px 0 0!important}
/* sticky monitoring bar at the bottom */
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell>main .ld-panel.show{position:fixed!important;z-index:1400!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;margin:0!important;border-radius:14px 14px 0 0!important;border-width:2px 0 0!important;padding:10px 12px calc(10px + env(safe-area-inset-bottom))!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:6px 10px!important;box-shadow:0 -8px 24px rgba(0,0,0,.18)!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell>main .ld-panel .who{grid-column:1!important;font-size:16px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell>main .ld-panel #ldPanelStatus{grid-column:1!important;grid-row:2!important;font-size:13px!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell>main .ld-panel .stop{grid-column:2!important;grid-row:1 / span 2!important;min-height:52px!important;min-width:84px!important;margin:0!important;font-size:14px!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell>main .ld-panel .mode{grid-column:1 / -1!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell>main .ld-panel .mode button{min-height:44px!important;width:100%!important;margin:0!important;font-size:13px!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh:has(.ld-panel.show) .manager-agent-shell{padding-bottom:170px!important}
html body.drongo-manager-refresh.drongo-manager-refresh.drongo-manager-refresh .manager-agent-shell>main .ld-table .ld-reqb [data-tk]{margin-left:.3em}
}
