/* Sidebar shape remains rounded regardless of the optional dashboard card radius. */
#sidebar-menu #side-menu{padding:8px 8px 20px!important}
#sidebar-menu #side-menu li>a{border-radius:5px!important;margin:3px 0!important;width:auto!important;border-left:0!important}
#sidebar-menu #side-menu>li>a{padding:11px 12px!important}
#sidebar-menu #side-menu li>a:before{border-left:0!important}
.ewy-dashboard{display:grid;grid-template-columns:minmax(0,2.05fr) minmax(290px,1fr);gap:22px;align-items:start;color:#344054;font-size:13px;line-height:1.6;padding:0 0 24px}
.ewy-dashboard-main,.ewy-dashboard-aside{display:grid;gap:22px;min-width:0}
.ewy-dashboard .ewy-panel{min-width:0;background:#fff;border:1px solid #f0f2f5;border-radius:var(--ewy-card-radius,2px)!important;padding:18px;box-shadow:0 1px 2px rgba(25,40,70,.025);overflow:hidden}
.ewy-dashboard h2{display:flex;align-items:center;justify-content:space-between;margin:0 0 18px;font-size:14px;font-weight:600;line-height:1.2;color:#253449;border-left:3px solid var(--theme-color-3);padding-left:7px}
.ewy-dashboard a{text-decoration:none}
.ewy-dashboard .ewy-more{font-size:11px;font-weight:400;color:#8792a2;white-space:nowrap}
.ewy-dashboard a:hover,.ewy-dashboard .ewy-more:hover{color:var(--theme-color-3)}
.ewy-caption{display:block;margin:12px 0 8px;font-size:11px;color:#939dab}
.ewy-quick-links{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
.ewy-quick-links a{border:1px solid #edf0f4;border-radius:3px;padding:6px 9px;font-size:12px;color:#637083;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ewy-recent-chip{display:flex;min-width:0;border:1px solid #edf0f4;border-radius:3px;align-items:center}
.ewy-recent-chip a{flex:1;min-width:0;border:0}
.ewy-recent-chip form{margin:0;flex:none}
.ewy-recent-chip button{border:0;background:transparent;color:#9099a8;padding:6px 8px;cursor:pointer}
.ewy-quick-links a:hover,.ewy-recent-chip:hover a,.ewy-recent-chip button:hover{color:var(--theme-color-3)}
.ewy-recent-chip button:disabled{color:#c9ced6;cursor:not-allowed}
.ewy-nav-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:#cad1db;margin-right:7px;vertical-align:middle}
.ewy-quick-editor{margin-top:8px}
.ewy-quick-editor summary{display:inline-block;cursor:pointer;border:1px dashed #dbe1e9;border-radius:3px;padding:6px 14px;min-width:130px;font-size:12px;color:#6b7787}
.ewy-quick-editor summary::marker{content:''}
.ewy-quick-editor[open] summary{color:var(--theme-color-3)}
.ewy-quick-editor form{margin-top:14px;border-top:1px solid #edf0f4;padding-top:4px}
.ewy-navigation-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0 18px}
.ewy-navigation-options label{margin:0;cursor:pointer}.ewy-navigation-options input{accent-color:var(--theme-color-3)}
.ewy-save-notice{font-size:12px;margin:10px 0 0}
.ewy-dashboard .ewy-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;padding:14px}
.ewy-stat{border:1px solid #edf0f4;border-radius:var(--ewy-card-radius,2px);padding:14px 14px 8px;min-width:0}
.ewy-stat>span{font-size:11px;color:#909aa9;display:flex;justify-content:space-between;gap:5px}.ewy-stat i{font-size:16px;color:#bdc6d2}
.ewy-stat>strong{position:relative;display:block;margin-top:12px;font-size:26px;line-height:1.25;color:#233044;font-weight:600}
.ewy-stat>strong:before{content:'';position:absolute;top:-6px;width:21px;height:2px;background:var(--theme-color-3)}
.ewy-stat:nth-child(2)>strong:before{background:#ff9a41}.ewy-stat:nth-child(3)>strong:before{background:#37bd84}.ewy-stat:nth-child(4)>strong:before{background:#f27e8b}
.ewy-stat strong small{font-size:10px;font-weight:400;color:#8590a0;margin-left:5px}
.ewy-stat footer{display:flex;flex-wrap:wrap;gap:10px;border-top:1px solid #f1f3f6;margin-top:8px;padding-top:8px;font-size:10px}.ewy-stat footer a{color:#7c8796}
.ewy-products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.ewy-products>a{display:flex;align-items:center;gap:9px;border:1px solid #edf0f4;border-radius:3px;padding:10px;color:#647185;font-size:12px;min-width:0}
.ewy-products>a>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ewy-products i,.ewy-help i{color:var(--theme-color-3);font-size:16px}.ewy-products small{margin-left:auto;color:#919bad}
.ewy-dashboard .ewy-account{padding:16px}.ewy-account-head{display:flex;align-items:center;gap:10px;position:relative}
.ewy-account-head .avatar{width:44px;height:44px;flex:0 0 44px;overflow:hidden}.ewy-account-head img{width:100%;height:100%;object-fit:cover}
.ewy-dashboard .ewy-account-head .avatar,.ewy-dashboard .ewy-account-head .avatar img{border-radius:var(--ewy-avatar-radius,50%)!important;background:none!important;border:0!important;box-shadow:none!important;outline:0;padding:0;display:block}
.ewy-account-name{min-width:0;flex:1}.ewy-account-name>strong{font-size:12px;font-weight:500;word-break:break-all}.ewy-account-name>small{font-size:10px;color:#929bab;margin-left:8px}
.ewy-account-name>small{display:inline-block;background:#f3f5f8;padding:2px 5px;border-radius:2px}.ewy-account-name>.ewy-account-group{color:var(--theme-color-3)}
.ewy-account-head>.ewy-more{align-self:flex-start;font-size:10px}.ewy-verification{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}
.ewy-verification a{font-size:9px;padding:1px 5px;background:#f1f3f6;color:#8490a0;border-radius:2px}.ewy-verification a.is-verified{color:#35ab66;background:#eafbef}
.ewy-account-totals{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid #edf0f4;margin-top:16px;padding-top:14px;text-align:center}
.ewy-account-totals strong{display:block;color:#28364a;font-size:16px;font-weight:600}.ewy-account-totals span{font-size:10px;color:#939daa}
.ewy-balance{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.ewy-balance .ewy-caption{margin:0 0 3px}.ewy-balance strong{display:block;font-size:21px;line-height:1.5;color:#263348}
.ewy-dashboard .btn-primary{background:var(--theme-color-3)!important;border-color:var(--theme-color-3)!important;color:white!important}
.ewy-finance-totals{display:grid;grid-template-columns:1fr 1fr;gap:8px}.ewy-finance-totals a{display:block;background:#f6f7fa;padding:10px;border-radius:3px}
.ewy-finance-totals span{display:block;color:#919baa;font-size:10px}.ewy-finance-totals strong{color:#3c495c;font-size:13px;font-weight:500}
.ewy-feed{list-style:none;margin:0;padding:0}.ewy-feed li{display:flex;align-items:center;gap:8px;border-bottom:1px solid #f1f3f6;padding:10px 0;font-size:12px;min-width:0}.ewy-feed li:last-child{border:0}
.ewy-feed li>a{color:#647083;min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ewy-feed time{color:#919cac;font-size:10px;white-space:nowrap}
.ewy-feed-tag{background:#f2f4f7;color:#8b95a2;font-size:9px;padding:1px 5px;white-space:nowrap}.ewy-help .ewy-feed-tag{color:var(--theme-color-3);background:color-mix(in srgb,var(--theme-color-3) 7%,white)}
.ewy-empty{color:#929cac;padding:16px 0;margin:0;font-size:12px;grid-column:1/-1}
.ewy-resources .card-title{font-size:14px;margin:0 0 16px!important;border-left:3px solid var(--theme-color-3);padding-left:7px}.ewy-resources .user-center_resources{overflow-x:auto}
.ewy-resources table{min-width:580px;border:0!important;font-size:12px;table-layout:auto}.ewy-resources .table td,.ewy-resources .table th{border:0!important;border-bottom:1px solid #edf0f4!important;padding:10px 12px!important}
.ewy-resources .table th{background:#f2f4f7;color:#556172;font-size:11px;font-weight:600;white-space:nowrap}.ewy-resources .table td{color:#576479}
.ewy-resources .table-footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;margin-top:16px;font-size:11px}.ewy-resources .table-pagination{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:flex-end}.ewy-resources .pagination{margin:0}
.ewy-resources .page-item.active .page-link{background:var(--theme-color-3);border-color:var(--theme-color-3)}
#sourceListBox.ewy-resources .table-footer{display:flex}
#sourceListBox .table-pagination{width:100%;min-width:0}
#sourceListBox.ewy-resources .user-center_resources{height:auto;max-height:none}
/* Keep the picker outside the table's horizontal scrolling area. */
.ewy-dashboard #sourceListBox.ewy-resources{overflow:visible}
#sourceListBox .table-pageinfo,#sourceListBox .table-pageinfo>.mx-2{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#sourceListBox .table-pageinfo{color:#8592a5;margin-right:auto}
#sourceListBox .bootstrap-select:not([class*="col-"]):not([class*="form-control"]):not(.input-group-btn){width:78px!important;min-width:78px;max-width:78px;flex:0 0 78px;background:none!important}
#sourceListBox .bootstrap-select>.ewy-resource-select-button{min-height:36px;padding:7px 12px;border:1px solid #dce3ee;border-radius:6px!important;background:#fff;box-shadow:none;color:#53647a;font-size:13px;line-height:20px}
#sourceListBox .bootstrap-select>.ewy-resource-select-button:hover,#sourceListBox .bootstrap-select.show>.ewy-resource-select-button{border-color:var(--theme-color-3,#0064ff);background:#f7faff;color:var(--theme-color-3,#0064ff)}
#sourceListBox .bootstrap-select>.dropdown-toggle::after{content:''!important;display:block!important;position:absolute;right:12px;top:12px;width:6px;height:6px;margin:0;border:0;border-right:1.5px solid;border-bottom:1.5px solid;transform:rotate(45deg)}
#sourceListBox .bootstrap-select>.dropdown-toggle:focus{outline:0!important}
#sourceListBox .bootstrap-select>.dropdown-toggle:focus-visible{outline:2px solid var(--theme-color-3,#0064ff)!important;outline-offset:2px}
#sourceListBox .bootstrap-select>.dropdown-menu{top:100%!important;bottom:auto!important;left:0!important;transform:none!important;min-width:100%;padding:5px;margin:6px 0 0!important;border:1px solid #e4eaf2;border-radius:8px!important;box-shadow:0 8px 24px rgba(30,50,80,.12)}
#sourceListBox .bootstrap-select.dropup>.dropdown-menu{top:auto!important;bottom:100%!important;margin:0 0 6px!important}
#sourceListBox .bootstrap-select .inner{border:0;box-shadow:none}
#sourceListBox .bootstrap-select .dropdown-item{padding:7px 12px;border-radius:4px;color:#53647a;font-size:13px;line-height:20px}
#sourceListBox .bootstrap-select .dropdown-item:hover,#sourceListBox .bootstrap-select .dropdown-item:focus{background:#f1f6ff;color:var(--theme-color-3,#0064ff)}
#sourceListBox .bootstrap-select .dropdown-item.active{background:var(--theme-color-3,#0064ff);color:#fff}
#sourceListBox .pagination{gap:5px;flex-wrap:wrap;justify-content:flex-end;max-width:100%;margin-left:auto}
#sourceListBox .page-link{display:inline-flex;align-items:center;justify-content:center;min-width:34px;min-height:36px;margin:0;border:1px solid #e1e7f0;border-radius:6px!important;color:#64748b;font-size:13px}
#sourceListBox .active .page-link{color:#fff}
#sourceListBox .disabled .page-link{background:#f8fafc;color:#bac4d1}
.ewy-host-status{padding:2px 6px;background:#fff3e8;color:#c68034;font-size:10px;white-space:nowrap}.ewy-host-status.is-active{background:#eafbef;color:#35ad66}
.footer.ewy-client-footer{height:auto;min-height:45px;padding:14px 20px;background:#fff;text-align:right;font-size:11px;line-height:1.7;color:#939dac;overflow-wrap:anywhere}
.ewy-client-footer .ewy-footer-line{margin:0}.ewy-client-footer span+span:before{content:' | ';white-space:pre;color:#b0b7c2}
/* Readable dashboard scale, without scaling the entire page or changing sidebar colors. */
.ewy-dashboard{font-size:14px}
.ewy-dashboard h2,.ewy-resources .card-title{font-size:16px}
.ewy-dashboard .ewy-panel{padding:22px}
.ewy-dashboard .ewy-caption,.ewy-stat>span,.ewy-stat footer,.ewy-account-totals span,.ewy-finance-totals span{font-size:13px}
.ewy-quick-links a,.ewy-quick-editor summary,.ewy-products>a,.ewy-feed li,.ewy-resources table,.ewy-resources .table th{font-size:14px}
.ewy-dashboard .ewy-more,.ewy-feed time,.ewy-resources .table-footer{font-size:12px}
.ewy-feed li{padding:12px 0}.ewy-feed-tag,.ewy-pin-tag{font-size:11px;max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex-shrink:0}
.ewy-pin-tag{color:#e46b77;background:#fff0f2;padding:2px 5px}
.ewy-stat>strong{font-size:30px}.ewy-stat strong small{font-size:12px}.ewy-account-name>strong{font-size:14px}.ewy-account-name>small{font-size:12px}.ewy-verification a{font-size:11px}
.ewy-finance-totals strong{font-size:15px}.ewy-balance strong{font-size:24px}
.ewy-empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:120px;width:100%;grid-column:1/-1;padding:20px;color:#969ca6;text-align:center}
.ewy-empty-state img{width:56px;height:46px;object-fit:contain}.ewy-empty-state p{font-size:13px;margin:0}.ewy-feed li.ewy-feed-empty{display:block;padding:0;border:0}
@media(max-width:1200px){.ewy-dashboard{gap:16px;grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr)}.ewy-dashboard-main,.ewy-dashboard-aside{gap:16px}.ewy-quick-links{grid-template-columns:repeat(3,minmax(0,1fr))}.ewy-dashboard .ewy-stats{gap:8px}.ewy-stat{padding:10px 8px}.ewy-products{grid-template-columns:repeat(2,minmax(0,1fr))}.ewy-account-head>.ewy-more{display:none}}
@media(max-width:991px){.ewy-dashboard{grid-template-columns:1fr}.ewy-dashboard-aside{grid-template-columns:repeat(2,minmax(0,1fr))}.ewy-account-head>.ewy-more{display:block}}
@media(max-width:575px){.ewy-dashboard-aside{grid-template-columns:1fr}.ewy-dashboard .ewy-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.ewy-quick-links{grid-template-columns:repeat(2,minmax(0,1fr))}.ewy-navigation-options{grid-template-columns:repeat(2,minmax(0,1fr))}.ewy-dashboard .ewy-panel{padding:14px}.ewy-products{grid-template-columns:1fr}.footer.ewy-client-footer{text-align:center;padding:12px}}

/* Mobile resource pagination shares the service list's fixed right edge. */
@media(max-width:768px){
  #sourceListBox.ewy-resources .table-footer{align-items:stretch}
  #sourceListBox .table-pagination{flex-direction:column;align-items:flex-end;gap:8px;width:100%;min-width:0}
  #sourceListBox .table-pageinfo{justify-content:space-between;gap:8px;width:100%;margin:0!important}
  #sourceListBox .table-pageinfo>.mx-2{margin:0!important}
  #sourceListBox .pagination{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:5px;width:max-content;max-width:100%;padding:0;margin:0 0 0 auto}
}
