/* Constrain grid items at tablet widths; fixed-width tables must not stretch cards. */
.template .yzy-dashboard-grid,.template .yzy-dashboard-main,.template .yzy-dashboard-side,.template .yzy-dashboard-main>.yzy-panel{min-width:0!important;max-width:100%!important}
.template .yzy-account-copy{max-width:100%;overflow:hidden}
.template .yzy-resource-error{display:flex;min-height:220px;align-items:center;justify-content:center;gap:14px;flex-direction:column;color:#667085;text-align:center;padding:24px}
.template .yzy-resource-error strong{color:#b42318;font-size:16px}
.template .yzy-resource-error span{font-size:13px;line-height:1.6}
.template .yzy-resource-pagination{display:flex;justify-content:flex-end;padding:20px 0}
@media(max-width:980px){
 .template .yzy-dashboard-grid{grid-template-columns:minmax(0,1fr)!important}
 .template .yzy-dashboard-main,.template .yzy-dashboard-side{width:100%!important}
 .template .yzy-dashboard-side{display:flex!important}
 .template .yzy-account-copy{min-width:0!important}
 .template .yzy-dashboard-table table{min-width:0!important;table-layout:fixed}
 .template .yzy-dashboard-table th{padding:0 8px!important}
 .template .yzy-metric a{display:inline-block}
 .template .yzy-account-actions{gap:8px!important}
 .template .yzy-account-actions a{padding:0 8px!important}
 #finance .finance .top{height:auto!important;min-height:80px;gap:20px;align-items:flex-start}
 #finance .finance .top-l{line-height:1.5!important;flex-shrink:0}
 #finance .content_searchbar{flex-direction:column;align-items:stretch;gap:12px}
 #finance .content_searchbar .left_tips{display:flex;flex-wrap:wrap;gap:8px;min-width:0}
 #finance .content_searchbar .tips_item{white-space:nowrap;flex-shrink:0;margin-right:0;font-size:12px;line-height:20px}
 #finance .content_searchbar .tips_item span{font-size:12px;line-height:20px}
 #finance .content_searchbar .com-search,#finance .content_searchbar .com-search .el-input{width:100%!important;margin-left:0!important}
 #finance .myPage{display:block;width:100%;max-width:100%}
 #finance .myPage .el-pagination{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:4px;white-space:normal}
 #finance .myPage .el-pagination__jump{margin-left:0}
}
@media(max-width:750px){
 .el-header .header-left{flex:0 0 auto!important;min-width:0}
 .el-header .yzy-header-title{white-space:nowrap;font-size:12px}
 .el-header .header-right{gap:8px!important;min-width:0}
 .el-header .header-right-item{margin-left:6px!important;margin-right:6px!important}
 .template .yzy-resource-table table,.template .yzy-nat-table table{display:block;width:100%!important;min-width:0!important;max-width:100%}
 .template .yzy-resource-table thead,.template .yzy-nat-table thead{display:none}
 .template .yzy-resource-table tbody,.template .yzy-nat-table tbody{display:block;width:100%}
 .template .yzy-resource-table tbody tr,.template .yzy-nat-table tbody tr{display:block;border:1px solid #e6eaf0;border-radius:8px;margin:12px 0;padding:12px;max-width:100%}
 .template .yzy-resource-table tbody td,.template .yzy-nat-table tbody td{display:flex;align-items:flex-start;gap:10px;justify-content:space-between;width:100%!important;height:auto!important;min-height:38px;padding:8px 0!important;border:0;overflow-wrap:anywhere}
 .template .yzy-resource-table td:before,.template .yzy-nat-table td:before{content:attr(data-label);flex:0 0 64px;color:#667085}
 .template .yzy-resource-table td>strong,.template .yzy-nat-table td>strong{flex:1;min-width:0}
 .template .yzy-resource-table td>small,.template .yzy-nat-table td>small{font-size:10px;flex-shrink:0}
 .template .yzy-mapping-cell{min-width:0;max-width:calc(100% - 74px);flex-wrap:wrap;justify-content:flex-end}
 .template .yzy-mapping-cell code{min-width:0;white-space:normal;overflow-wrap:anywhere}
 .template .yzy-resource-pagination{justify-content:center}
 .template .yzy-resource-pagination .el-pagination{white-space:normal}
 #finance .myPage{display:block;width:100%;max-width:100%}
 #finance .myPage .el-pagination{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:4px;white-space:normal}
 #finance .myPage .el-pagination__jump{margin-left:0}
}
